• I know there are a bunch of static-making plugins out there, but I thought I would toss this out as an easy (if inefficient) way to implement static pages.
    Get a copy of EzStatic.php and put it in your plugins directory. Activate it.
    Put a file in your web root (same directory as index.php). It can be html or php. Take the base name of the file (for “test.php” use “test”) and incorporate it into a URL like so:
    https://www.example.com/index.php?static=test
    The plugin will find your file, execute it, and embed it into your WP template. If your file was a php file, you can even use WP functions inside it.
    No messy file editing or deleting, just activate the plugin. Another proof of concept plugin from yours truly. Enjoy!

Viewing 15 replies - 61 through 75 (of 160 total)
  • @adb: Seems you no longer have the bio/about text on your server, so ezstatic is not creating anything at the moment. If you put it back we can take a looksee.

    It’s back up. Check it out when you have a minute. Thanks.

    For starters, put this in the .txt or .html file (i.e. what ever extension you are using):
    <head>
    <title>all about me</title>
    </head>
    Ok, writing a 100 things about me list seems the most painless way of telling a little bit (and I do mean a little bit) about myself. Here goes:

    That didn’t work. ??

    No, this is what you have in bio.txt:
    <html>
    <head>
    <title>all about me</title>
    <style>.mystuff{font-size:10pt;font-weight:normal;}</style>
    </head>
    <body>
    <div class="my stuff">
    Ok, writing a 100 things about me list seems the most painless way of telling a little bit (and I do mean a little bit) about myself. Here goes:
    </div>
    </body>
    </html>

    Drop all the style and divs html and body tags… just try it first as I described above.

    That didn’t work. ?? Any other suggestions will be appreciated. Thanks.

    I guess you need the “post” div:
    <div class="post">
    Ok, writing a 100 things about me list seems the most painless way of telling a little bit about myself. Here goes...
    </div>

    Thanks Wairoanz!

    Hi there,
    This is very cool ??
    Is there a way that you DO NOT have to use the default DIVs of WP?
    Many thanks
    Kark

    Hi,
    i dont get this to work. It always takes me to my index page.
    Maybe someone can help me.
    This is my url: https://www.ringrocker.com/meuspath/index.php?static=bio
    Thx in advance
    Christian

    Hmmm. I see your text is at https://www.ringrocker.com/meuspath/bio.txt. I’m not 100% sure on this, but you may need to look at the ezstatic.php around line 138 for:
    if(is_dir($contentfile)) $sfile .= '/index'; // get index page?
    and try changing it to:
    if(is_dir($contentfile)) $sfile .= '/meuspath/index'; // get index page?
    If that doesn’t work change it back, and we’ll start scratching our head again. ??

    thx
    i found another way to get it working by following these instructions here
    https://techgnome.anderson-website.net/posts/2004/02/19/static-wp-pages-made-easy/
    seemed easy to me, working fine
    thx fpr yout help

    Thread Starter ringmaster

    (@ringmaster)

    I’ve been shopping for a car. Sorry for the neglect.
    @wairoanz:
    You shouldn’t change that line you mentioned. Rather, I should explain what it does, and then you’ll know for yourself when you should. ??
    That line lets you specify a directory as the static “page”. Say you have an installation of FoF (an RSS aggregator) in the directory “fof”. The real home page is “/fof/index.php”, but you can just tell EzStatic “?static=fof” and it will find the index. So if your indices are different than “index” (like on IIS, “default”), then you should change that. Otherwise… no.
    Thanks for your help with support!

    Thread Starter ringmaster

    (@ringmaster)

    By and by, regarding TechGnome and other tutorials:
    Although they work, and they may be easy, you’re missing the point.
    Using EzStatic (after you get it working) allows you to change your index.php template page and have your changes propagate across all of your static pages. If you do this via one of these tutorials, you might have to make changes in several files in order to make your layout changes appear on every page.
    No doubt, some tutorials are better than others, but if you get EzStatic to work, you don’t have to bother with all of that.
    Also… If you’re having trouble with ob_gzhandler issues, go into the WP admin Options>Reading (I think, read the instructions in the EzStatic file itself, which are correct) and turn off the compression option.

    OK, i changed the line as waioranz mentioned but it doesnt work for me
    by typing this url https://www.ringrocker.com/meuspath/index.php?static=bio
    wp shows up with the index page
    i still have no idea whats going wrong there

Viewing 15 replies - 61 through 75 (of 160 total)
  • The topic ‘EzStatic Plugin’ is closed to new replies.