• 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 - 106 through 120 (of 160 total)
  • Is there a solution for the Fatal error: [] operator not supported for strings in …/wp-blog-header.php on line 469.
    There was an earlier question about this issue.
    Thanks!

    This is a great plugin, just what I was looking for
    I was having a wee bit of trouble until I found the following which solved it.

    WP admin Options>Reading and turn off the compression option.

    ??
    That fixed it for me anyway.
    Big thanks to you ringmaster
    and gravity too by the looks of it!
    ??
    sometimes its the simple things

    I don’t think I’m understanding this hack – what exaclty does this do?
    -Michael

    Great plugin – just what I needed.
    I thought I’d mention a problem I was having in case others run into it as well.
    If you are calling wordpress functions from inside your static page, you should have no trouble. But if you are calling functions defined by another plugins, you might find yourself getting “undefined function” errors.
    This occurs because the EZStatic filter is trying to display the content of the page before the other plugin has had the chance to “do its stuff” to the content.
    I solved the problem by lowering the priority number of filter added by the other plugin to a number less than 10. All filters that have been added to the same hook are applied to the hook in priority order, from low to high (1 – 10 are allowed values, 10 is the default). This causes the other filter to execute before EZStatic does anything with the content, and it works like a charm (the hook in my case was ‘the content’, but it would apply to any hook). See here for more filter info.
    The other other plugin in my case was psnGallery, and all I did was change:
    add_filter('the_content', 'run_CPGxxxx')
    to
    add_filter('the_content', 'run_CPGxxxx',9)
    A similar change should solve any “undefined function” errors when you are calling functions defined in other plugins.
    Anyway, thanks again Ringmaster, for a great plugin.

    Ringmaster — I just spent a good bit of time reading this thread, playing around with stuff. I found the plug-in a few days ago, and kept getting discouraged. My knowledge of php / etcetera is barebones, yet I’m running a modified index (specifically kubrick).
    In a previous post, you posted your aim sn. I added you, and was about to im when VOILA. I did something, and it began to work.
    Thank the lord. And thank you, for the plug-in ??
    redskunk
    bakshi.us/redskunk

    Where exactly do you put the files you want to call up? I have this.
    BLOG/Index.php (This is my blog)
    GB/index.php ( I would like to call this in a static page)
    How would the URL look? can I call this or do I have to put it in the BLOG/ folder first? Im not sure where to put the page I want to call.

    Thread Starter ringmaster

    (@ringmaster)

    EzStatic won’t let you do that for reasons of security. If it let you go up through your directory tree, you could possibly access files in places other than your web diretory. That’s not good.
    Instead, put the files directly in the same directory as WP’s index.php. You can put them in a subdirectory in there, if you like.
    If you arleady have the pages you want in another place, you’ll have to play with the EzStatic source to allow access to your other directory.

    Thanks RingMaster. It works! haha. I feel good@ I KNEW THAT I WOULD!

    adb

    (@adb)

    7milesdown

    (@7milesdown)

    I wanted to use other php scripts on my static pages such as a guestbook. They dont work properly. Is there limitations to static pages?

    wiredkiwis

    (@wiredkiwis)

    7milesdown
    I use a plugin called Run Php for using php in posts (works in EzStatic’s pages too). Not sure if it’s what your after but it might be worth a look.

    sdollen

    (@sdollen)

    I’ve read through the thread and can’t figure out what I’m not doing correctly – I can’t get the plugin to display anything other than the header and footer on a test page.
    https://www.vondollens.us/index.php?static=test
    Running kubrick 1.3 and WP 1.3. Any help is greatly appreciated.
    I keep thinking it has something to do with the content div…but, just not sure.

    kiwinessie

    (@kiwinessie)

    I have this working with the test file https://www.blognessie.com/index.php?static=bio and https://www.blognessie.com/archives.php is also working. However, for some reason https://www.blognessie.com/index.php?static=archives just gives me the index page. What do I need to do to fix this? Thanks,
    Vanessa

    Anonymous

    EZSTATIC doesn’t work with KUBRICK template?
    I install it here:
    https://www.officialsm.net/test/wordpress/wordpress
    and i make a page called amministratore.htm,
    buti can’t view it?
    Could anyone help me?
    Thanks in advance

    Anonymous

    Hello!
    I just managed to setup WordPress and installed succesfully the kubrick theme for my test blog on my MacOS X.
    Also I installed and actived ESStatic plugin.
    Basically what I would need is to have 2 or 3 static pages with the kubrick desing without sidebar, etc. (just the header and the body to include my own html) to get about page, etc. Unfortunately I do not have much idea of css. I tried to get rid of unnecessary code within a copy of index.php, but whatever I try i messed up the design.
    I there a god soul out there that would provide me a “cleared” index.php for the kubrik design I could use as template for my static pages? Thank you very much!
    Emilio

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