• 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 - 136 through 150 (of 160 total)
  • Thread Starter ringmaster

    (@ringmaster)

    Incidentally, now that I’m thinking about it, there are certain things that you can’t do inside of a static page to be inserted by EzStatic. I’ll have to look at it again to remind myself what it is, and when I do, I’ll document it on my wiki.
    Nonetheless, one of the files that you can’t include that way is the Nicer Archives file, archives.php. If you want to use Nicer Archives in EzStatic, I’ve provided a working version on the EzStatic download page. It works fine, as you can see on my site here:
    https://www.asymptomatic.net/_archives
    aka
    https://www.asymptomatic.net/index.php?static=archives

    I am a relatively new, but determined, WP user.
    I intend to use EzStatic, and more needed, Microwiki. (BTW: Thanks for your efforts for us less code-educated!)
    Both are now installed on my site, per instructions. Yet when I link to my wiki all I get is a blank page. Something tells me that I’m not the first to see this. And I’ll just bet there is a thread somewhere that I’ve missed concerning the correction.
    If someone could point me in the right direction I will reserve no efforts in repairing the problem.
    Thanks!
    Omar*

    Thread Starter ringmaster

    (@ringmaster)

    Looks like it’s working to me… Still having issues?

    Aye!
    All I see is a blank white page. What gives?
    Confused,
    Omar

    Any way to correct this for Firefox?

    Thread Starter ringmaster

    (@ringmaster)

    I’m looking at omar’s page in Firefox and I see it just fine.
    My Firefox version info: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
    What’s yours?
    @kiwinessie:
    I don’t think you’re using my archives.php. The reason I don’t think you are is because there are two headers on your archives page, which is one thing that happens when you use the original file.
    Download my revised version from here and try that to be sure that’s not the problem.

    I just tried IE with the same results. Blank page. Very strange…
    I’ll keep digging to the best of my limited ability

    BTW: My Firefox info is:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

    Thinking it may help, I upgraded to:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
    No change.

    So, I wrote off Firefox as the problem. So I reopened my link to the wiki, and then did a View Source, thinking that *maybe* something was being read, but just not showing for some reason. All I got was:
    “<html><body></body></html>”
    I suppose this means that for whatever reason, I’m not accessing the wiki files. Can’t be the layout if some of you are seeing it.

    EUREKA!
    I went to “Tools” and as I was headed to “Options” I hit “Translate Page” for some reason.
    It worked!
    Now, why would I need to “translate” the wiki page?

    Thread Starter ringmaster

    (@ringmaster)

    Where is this “Translate” option? In Firefox? I don’t have one of those.

    In the toolbar, (File Edit View Go Bookmarks Tools Help), go to “Tools”. In the drop down menu, about mid way down, is “Translate Page”.

    The page – when readable – has a header added to it from Google. Apparently the “translate page” option is a Google extension, (Translate Page v.0.1). The url is: https://www.google.com/help/faq_translation.html. Hope this helps.
    Leave it to Omar to find the most screwy bug around….
    It is still beyond me why the wiki needs translation at all. Translation from what??
    Could it be the encoding? I noticed by doing a “page info” command from the toolbar that the blank page has ISO-8859-1 encoding while the “translated” page has UTF-8.

    Thread Starter ringmaster

    (@ringmaster)

    Ok, a few things…
    I don’t have that option in Firefox. It’s a firefox extension you can find here.
    I installed the extension from that page, and I still don’t have your issue on your site or mine, no matter what encoding I set mine to.
    The recommended encoding for WP is UTF-8, anyway. All of my pages are produced as UTF-8 and look fine. Changing the encoding to ISO-8859-1 did nothing to the display.
    Still no idea what the issue is.

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