WordPress.org

Ready to get started?Download WordPress

Forums

EzStatic Plugin (160 posts)

  1. gravity
    Member
    Posted 10 years ago #

    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
    http://www.gravityworks.us/a.wpblog/index.php?static=contact
    Nothing at all happens?
    What is going on// anyone??

  2. Xyth
    Member
    Posted 10 years ago #

    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.

  3. gravity
    Member
    Posted 10 years ago #

    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..
    http://www.gravityworks.us/a.wpblog/wp-content/plugins/ezstatic2.php
    and it is enabled.
    any other suggestions?

  4. ringmaster
    Member
    Posted 10 years ago #

    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")

  5. gravity
    Member
    Posted 10 years ago #

    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

  6. ringmaster
    Member
    Posted 10 years ago #

    @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.

  7. gravity
    Member
    Posted 10 years ago #

    You were dead on!
    http://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

  8. gravity
    Member
    Posted 10 years ago #

    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..

  9. Nofie
    Member
    Posted 10 years ago #

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

  10. ringmaster
    Member
    Posted 10 years ago #

    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.

  11. gravity
    Member
    Posted 10 years ago #

    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..
    http://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

  12. ringmaster
    Member
    Posted 10 years ago #

    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.)

  13. gravity
    Member
    Posted 10 years ago #

    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?

  14. ringmaster
    Member
    Posted 10 years ago #

    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.

  15. gravity
    Member
    Posted 10 years ago #

    I can do better..
    here is both files on the server as is..
    http://www.gravityworks.us/a.wpblog/wp-content/plugins/ezstatic1.2.txt
    http://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

  16. ringmaster
    Member
    Posted 10 years ago #

    Ok, that's good, but what I need is exactly what I asked for. If you can visit the page above, view the rendered HTML source from your browser (literally, click View Source), and save that - that would be great. :)

  17. gravity
    Member
    Posted 10 years ago #

  18. ringmaster
    Member
    Posted 10 years ago #

    @gravity:
    IM?
    ICQ: 2569335
    AIM: RngMstrOW
    MSM: a_passport [at] midnightcircus [dot] com
    Yahoo: ringmasterow

  19. Anonymous
    Unregistered
    Posted 10 years ago #

    Code has been fixed.
    Works really well now.. even if you do not have a default WP index template page.
    You can get the latest version 1.5 over at - http://www.asymptomatic.net/wp%2Dhacks/
    If you have any issues please keep this post going. if you encounter some global information at the top of your static page.. edit the EzStatic.php file and put a couple slashes in front:
    //foreach
    around line 165, until it is changed.
    Kind regards,
    Gravity..
    Thanks Ringmaster for your help.

  20. Xyth
    Member
    Posted 10 years ago #

    Just so you know Zfeeder via EZstatic does seem to work in 1.5, but it seems to ignore the template selected in the admin routine, and uses the bare bones "blue" template. I use BlueLogo. If I do the rewrite mod stuff as you mentioned, is that how I can pass the template into EZStatic? I just want to know if that is correct before I start using rewrite (It has caused me problems elsewhere before) .
    Nice job doing that fix.

  21. adb
    Member
    Posted 10 years ago #

    This is the first plugin I got to work! I'm too excited, but I have a small problem. Can I add content to the pages using wordpress? If so, how? I've added content directly to the text files, but it the text displays in the title font used in the template. How can I change this.
    Any help is appreciated. Thanks!

  22. gravity
    Member
    Posted 10 years ago #

    @adb
    As far as editing the text from wordpress.. all you would have to do is go to your admin templates and type in the name of the file you want to edit from within the admin tool.. If your permissions are correct then you will see it and be able to edit it in the window above.
    As far as changing the font to be something else.. when you write your code for the text you are going to have to use some CSS there in the wp-layout.css file. What you do is create a new variable
    .nf { FONT-SIZE: 12px; COLOR: #EEE; } and then in the text file hopefully with a .htm or .html or .php extension you can add <font class="nf">the text to change</nf>
    then in your output the text should be changed based on the code changes you made. I hope that makes sense.
    If anyone knows of an easier method.. please do tell
    Kind regards,
    Gravity

  23. ringmaster
    Member
    Posted 10 years ago #

    @Xyth:
    You need to make sure that whatever is changing your style (an reference to Alex's style switcher, for instance) is in the head area of your index.php page, not in the content area of the body. It looks like you've got this sussed out anyway.
    @adb, gravity:
    Or... You can create a whole HTML page and reference that instead of the text file. If you use tags in the body of the page, they will render like tags normally do in your WordPress template.
    The added benefit of using a whole HTML page is that you can add stuff to the head area of your output. For example, if you had a CSS style that you wanted to apply only to the static page, you could include it in a <style> block in the <head> of your static .htm page, and EzStatic will embed that into the WP template output.
    Here is a sample page that shows what I'm talking about:
    http://www.asymptomatic.net/index.php?static=spin

  24. gravity
    Member
    Posted 10 years ago #

    Hello Ringmaster,
    When you get a moment I would like you to come online.. I wanted to ask you something about the plugins..
    Gravity

  25. Xyth
    Member
    Posted 10 years ago #

    @Ring: Zfeeder "almost" is working perfectly in your plugin. If your ready to stop trying an yell "Zfeeder is written by babboons", I don't blame you. However, if you want to see what isstill wrong, I left two links on my site, one called zfeeder which is my manual static page that works fine, and a link called zfeed include test, which works fine until you click on the "more" tab on a feed. Then it presents a page that is all categories dumped onto one page. Cool, but not quiet what it should display. Any ideas? Would doing the rewrite mod help?
    As always, thanks.

  26. wairoanz
    Member
    Posted 10 years ago #

    Now I just need a way to inject a custom <title> into each static page... probably a standard bit i.e. "Site Name " plus what is contained within <h3 class="storytitle">blah blah</h3> ... giving me <title>Site Name - blah blah</title>. Any ideas Ringmaster?

  27. ringmaster
    Member
    Posted 10 years ago #

    @wairoanz:
    It should already do that title stuff. :)
    EzSatatic extracts the <title> tag from the included page and uses Javascript to fling it into your title with your WP site name. If that's not working, give me an example of where it's not.
    Thanks for the mod_rewrite rules!
    @Xyth:
    Ugh, dude. Use CG_FeedReed. :)
    You should try the mod_rewrite stuff. That might fix up ZFeeder.
    @adb:
    Try using this and saving it with a .htm extension:
    <html>
    <head>
    <title>Put your title here</title>
    <style>.mystuff{font-size:10pt;font-weight:normal;}</style>
    </head>
    <body>
    <div class="mystuff">
    Put your text here
    </div>
    </body>
    </html>

  28. wairoanz
    Member
    Posted 10 years ago #

    @Ringmaster: Thanks, <Title> insert works a treat.

  29. Anonymous
    Unregistered
    Posted 10 years ago #

    hello,
    i am a newbie and i have a lot of problems because i have zero knowledge about php and wordpress.
    as written in the instructions i have installed ezstatic and get the message
    " Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0 ".
    >> http://www.zauselmonster.de/wp/index.php?static=test
    in another installation of wordpress it works very well. i can not understand why this error occurs..
    what can i do to kill this error?

  30. adb
    Member
    Posted 10 years ago #

    I have another problem. Using th code Ringmaster suggested, when I add content to the "about" page it goes behind the index--the text doesn't wrap. How can I correct this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.