• 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 - 31 through 45 (of 160 total)
  • Oddest thing is that none of these plugins seems to work properly.. Between this and the Sticky.. I am at a loss..
    Will this show a form???
    I copied a form.. everything between the form tags to a file called contact.php…
    then I uploaded it to the root..
    and executed this
    https://www.gravityworks.us/a.wpblog/index.php?static=contact
    Nothing at all happens?
    What is going on// anyone??

    Ring, your DL page is not there, its falling back to your index. I’ll check later in case your just working on the site.

    EzStatic2.php is in my plugins directory.. and it is enabled in my plugins..
    I am not sure what else you would like me to do…..
    When I go to your site and click on the link for wphacks it just keeps coming back to the same page.. where are the hacks?
    I have done everything I was suppose to..
    https://www.gravityworks.us/a.wpblog/wp-content/plugins/ezstatic2.php
    and it is enabled.
    any other suggestions?

    Thread Starter ringmaster

    (@ringmaster)

    That’s not a good sign, because that means that the EzStatic plugin isn’t working. ??
    When I go there, I see what I expect. I embedded the download page into my WordPress layout, in case that confused you. (I used a mod_rewrite directive to redirect “/wp-hacks” to “/index.php?static=wp-hacks”)

    Well,
    I can tell you that for some reason we see what I see when I go to my site.. the index page ??
    So yes there is something wrong.. I do not want to overwhelm you but there is also something wrong with the adhesive 1.3. you might want to check out that post as well..
    Good luck.. I hope you can figure this out.. these plugins are great.. if we could get them to work properly.
    Kind regards,
    Gravity

    Thread Starter ringmaster

    (@ringmaster)

    @gravity:
    Gah!! EzStatic is working fine. Your page is not a default WP index!
    Here’s what you do, it’s easy:
    Edit ezstatic.php. Near the end of the file (~line 157) change this text both times (appears 2 times!):
    <div id="content">
    To:
    <div id="content" style="clear:both;">
    I have no doubt that when you do the edits correctly, you’ll be up and running.

    You were dead on!
    https://www.gravityworks.us/a.wpblog/index.php?static=contact
    As a test page it seems to work.. nice!…
    Now, all we need is the adhesive to work perfectly and you can get a good nights sleep ??
    Kind regards,
    and much thanks
    Gravity

    any tips on getting everything back with the exception of the content for a normal post? Date tags, poster.. etc.. I guess I just have to chop up the code a bit..

    Little bit stupid question, how to make
    https://mydomain.com/index.php?static=about
    appear as
    https://mydomain.com/about
    Thanks.

    Thread Starter ringmaster

    (@ringmaster)

    You need to add a mod_rewrite entry to your .htaccess file.
    I’m not qualified to explain how to do this for your server, but this page seems like a decent tutorial.

    Hello RingMaster,
    I just downloaded 1.3 for EzStatic.. and I made the change I made in 1.2 for style=”clear:both;”
    However, this time it is not working. I have temporarily changed back to 1.2 with style=”clear:both;” which is working. You can see that here..
    https://www.gravityworks.us/a.wpblog/index.php?static=contact
    1.3 just gives me the index page again, even with the change.
    Kind regards,
    Gravity

    Thread Starter ringmaster

    (@ringmaster)

    Um… Check this out. It’s a picture of the URL and top of your page in FireFox. I get the same result in IE.
    This is very strange.
    This seems related to why you couldn’t see my hacks page embedded in my blog using EzStatic. (I had mod_rewrite set up to redirect there, and now I don’t.)

    What seems to be wrong with the url? It is following your directions.. /path to index.php?static=filename with no extension.
    Is that wrong?

    Thread Starter ringmaster

    (@ringmaster)

    There is nothing wrong with your URL. For me on my browser here at my computer, it works. For you, and apparently others going to the same page, it doesn’t.
    Very weird.

    I can do better..
    here is both files on the server as is..
    https://www.gravityworks.us/a.wpblog/wp-content/plugins/ezstatic1.2.txt
    https://www.gravityworks.us/a.wpblog/wp-content/plugins/ezstatic1.3.txt
    both files are names that so I know what version it is.
    If you need something less / else.. let me know
    Kind regards,
    Gravity

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