• 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 10 replies - 151 through 160 (of 160 total)
  • Ok. I’ll keep pecking at it and let you know if I resolve the issue in case you run into it again. Thanks for the help!
    If anyone else out there discovers the answer, I’d appreciate hearing about it.

    One question: How did the encoding get changed from UTF-8?
    All I did was decompress and install.

    Thread Starter ringmaster

    (@ringmaster)

    I don’t know what’s giving you the impression that you’re not serving UTF-8. Everything I see here says you are.
    Yeah, if you work out how this is happening, I’d be glad to know. ??

    It’s very strange for me, Firefox shows empty page with the <html><body></body></html> but IE works fine with the very same URL.
    yuuzhantar.despayre.local – – [21/Dec/2004:09:15:52 -0600] “GET /index.php?static=hc-cemetary.txt HTTP/1.1” 200 71713 “-” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0”
    yuuzhantar.despayre.local – – [21/Dec/2004:09:16:04 -0600] “GET /index.php?static=hc-cemetary.txt HTTP/1.0” 200 13317 “-” “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)”
    yuuzhantar.despayre.local – – [21/Dec/2004:09:16:09 -0600] “GET /print.css HTTP/1.0” 304 – “https://arioch.net/index.php?static=hc-cemetary.txt&#8221; “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)”
    yuuzhantar.despayre.local – – [21/Dec/2004:09:16:09 -0600] “GET /wp-layout.css HTTP/1.0” 304 – “https://arioch.net/index.php?static=hc-cemetary.txt&#8221; “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)”

    I’ve just activated EzStatic but none of the files I’ve tried to imbed work. The error I get is :

    <!– EzStatic could not embed: /home/goonsho/public_html/blog/test/test.html.asp –>

    My query string looks like this:
    https://www.goonshow.za.net/blog/index.php?static=test.html

    No matter what file I use I get the same error. Please help.

    never mind…..idiot me….putting files in root directory instead of WP root.

    OK. I installed this. Read ALL instructions. Tried it with every theme. No errors on page. page shows:
    https://www.bkdesign.ca/index.php?static=BKDesignmain.htm

    Tried with other files also. Tried editing page.php index.php including the code start and stop. plugin in enabled. I know this probably isnt enough info, but its all I have. I spent hours at this.

    I guess its a no go for me. Thanks anyways

    Anything similar out there?

    so here’s my problem…
    I got it installed, it works great EXCEPT if the page has special characters in it…

    https://www.corryzahn.com/main/index.php?static=2e042c05

    vs

    https://www.corryzahn.com/main/2e042c05.htm

    any thoughts?

    OH, and if I make an entry and type the characters in, they work fine…

    https://www.corryzahn.com/main/?p=167

    Can’t see how to do this, and wanted to know if it had already been documented or established as impossible.

    A link like…
    https://www.blah.com/sc/index.php?static=vt&table=1
    doesn’t apparently work, in the sense that the variable $table isn’t readable by the code in the vt.php file. (vt.php appears just nicely, though!)

    Am I just expecting too much? Or is there a way of making the variable accessible?

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