WordPress.org

Ready to get started?Download WordPress

Forums

New Pluign: Faked Folders (62 posts)

  1. Stevarino
    Member
    Posted 10 years ago #

    ieure: What was causing the implode error? I developed this using PHP 4.3.6, so I should have recieved that too, right?
    And everyone else: It seems the Guvner bug is immortal and there is no stopping it. However I'm working on 2.1 right now and that will have better debugging support for eliminating that meddlesome bug. :)
    Also expect a better upgrade script (because the current one seems to be as useful as toast) and a "view page" method so you don't have to worry about where your pages are.
    all these bugs and requests... how can i ever expect to get this documentation done!?! ;)

  2. ieure
    Member
    Posted 10 years ago #

    Stevarino: I tried emailing you with the patch yesterday, but it looks like I sent it to the wrong address. I will resend it, if you like. In short, PHP < 4.3.0 requires two arguments to implode(), and it is not recommended that you use the >= 4.3.0 syntax. PHP's implode() documentation gives you a bit more information.
    I actually got things mostly working by just ripping out the tempfile code and forcing it to use tempnam(). Not an ideal solution, to be sure. I can now access my static pages if I go to the real URL; that is, http://www.mysite.com/index.php?static=true&name=test
    I have had no luck getting the Rewrite rules working so I can go to /Static/test/. Is there something I have to do to tell mod_rewrite that RewriteRules are allowed in a .htaccess file?

  3. ieure
    Member
    Posted 10 years ago #

    Oh, and I'm quite sure that changing the ini_get() statement didn't work for me.
    It looks like I simply can't use mod_rewrite in .htaccess files. I've tested it, and none of the rules in there are ever applied. There has to be some magic to enable that - anyone know how to do it?

  4. ieure
    Member
    Posted 10 years ago #

    TheMole: It should be /folderName/postSlug
    E.g. if you create a 'Static' folder, and add a post to it called, 'foobar', the URL would be http://www.mysite.com/Static/foobar

  5. Stevarino
    Member
    Posted 10 years ago #

    ieure: This is really why I need to get to documentation. I mentioned support for non-.htaccess weblogs. The trick is this: simply put "index.php" between your wp-install directory and your static file.
    An example:
    Your regular weblog is at "http://domain.com/blog/". You create an about page using my plugin, and its URI should be "http://domain.com/blog/about/". To get the same effect without using rewrites, try the domain "http://domain.com/blog/index.php/about/". It looks like a normal redirected domain, but functions like a query string. :)
    And thanks for the assistance with the support Guvner and ieure. One small note to what ieure said: if you want you could set "foobar" to be the folder's index, in which case the uri would be http://mysite.com/static/

  6. Stevarino
    Member
    Posted 10 years ago #

    Oh, and thanks for the heads up ieure. To be honest it was a typo on my part that implode was coded in that way, I didn't even know that the string was optional! It will be fixed in 2.1, promise.
    And my email is steve at stevarino with a dot and a com. Feel free to email me any suggestions, fixes, questions, whatever. :)

  7. ieure
    Member
    Posted 10 years ago #

    Stevarino: No worries. I saw your correct address in your profile here, but I wasn't able to find it on your blog anywhere. The patch I linked above is the same one I sent you. The database creation is the more severe of the two issues, anyways.
    I'd really like to get the rewriting working, but it's not a huge deal. I really only need one static directory, so I just modified the rule and added it to my Apache config.
    This plugin could definitely use some polish, but I have it under control now.

  8. Guvner
    Member
    Posted 10 years ago #

    Now I'm, scared, the error pages are working fine for me, but I can't resist the temptation to update. Damn, another day at work spent doing something I shouldn't then.

  9. Stevarino
    Member
    Posted 10 years ago #

    Heh heh. You can stay with the version if you want, but I THOROUGHLY tested the code that was giving you trouble. And I did find a few bugs here and there, so I recommend giving it a shot. ;)

  10. Stevarino
    Member
    Posted 10 years ago #

    Documentation is now available. Whew!
    Also I've included some screenshots because I know some people dig those. ;)
    btw, all those pages were created with Faked Folders.

  11. Stevarino
    Member
    Posted 10 years ago #

    Um, there are no redirects in Faked Folders. Where are you getting these?

  12. Dextro
    Member
    Posted 10 years ago #

    database tables are ok. Ik kan maken the folders, and put a draft in it. Then the draft is clickable, with the url. When I click on it, then I get the redirect error.
    A simple explanation, i hope you understand me ;)

  13. Stevarino
    Member
    Posted 10 years ago #

    Yah, I think I get it now: it only appears when you try to view a page. I'm just a bit confused with why it's giving you errors.
    What is the hyperlink's address before you click on it (right click and select "Copy Target" or something similar)? What is your normal weblog URI?

  14. Dextro
    Member
    Posted 10 years ago #

  15. Stevarino
    Member
    Posted 10 years ago #

    Cool, thanks... The problem is that the page is coming up 404.
    Then when it tries to load your error page: http://www.dextrose.be/errorpages/404.html it goes into a loop. Your error page is calling your error page. :\
    Not sure what's causing the second problem (you can email me and we can work it out if you want), but the first seems pretty easy. I notice that in your weblog you don't use pretty-urls, they all use the index.php?p=x URI. I'm not sure if your weblog can handle a .htaccess file, but regardless this can be fixed.
    In the faked-folders main page where you see a listing of all your folders, scroll to the bottom. You should see a button labeled "Disable Mod-Rewrite." Click it. Now your links will work:
    http://www.dextrose.be/index.php/wordpress/about/about
    There is an error there, but try following the instructions it gives. Create a file called fakedfolders.txt and chmod it to 666. Then try it again.
    If you have any more trouble let me know! :)

  16. Stevarino
    Member
    Posted 10 years ago #

    Alright, thanks for letting me know about those errors. They were nothing serious, but looked pretty intimidating.
    Anyway the plugin is updated so no errors should pop-up. This is hardly a complete update, so the source says 2.1b. Upgrade if you want, but I wouldn't bother. :)

  17. Dextro
    Member
    Posted 10 years ago #

    No problem for me too, I just want to help you with building a plugin who is stable and error free, that's all. :)
    I'm totally new to wordpress, so first I have to learn the intern building and so. Then it is time to build plugins myself.

  18. TheMole
    Member
    Posted 10 years ago #

    Excellent, works straight off now.
    Brilliant, thank you!

  19. wairoanz
    Member
    Posted 10 years ago #

    Bah!

    Database error: [You have an error in your SQL syntax near '' at line 1]
    SELECT * FROM sonja_posts WHERE ID =
    Fatal Error
    Unable to create temp file or pre-designated file.
    To continue using this plugin, please create a blank file called "fakedfolders.txt" in your WP root directory and chmod it to be 666.
    Below is the error log from attempting to create the page:
    Could not open temp file for writing.
    Temp file failed. Plan B: attempting to write to and include fakedfolders.txt.
    Could not write to fakedfolders.txt. Are you sure the file has the correct attributes (chmod 666)?

    And yes, I have fakedfolders.txt chmod'd to 666.
    This thread has become very confusing... so, if possible, would someone please give me a clue as to what I should be looking for from here to get this working?

  20. Anonymous
    Unregistered
    Posted 10 years ago #

    Just wondering, has the wp-stat plugin when using Faked Folders been fixed? Or can someone point me out on how to get it fixed.
    Thanks!

  21. Stevarino
    Member
    Posted 10 years ago #

    wairoanz: Interesting error, havn't seen that one yet. ;)
    Excuse the flood of questions, but I really need to figure out what's going on in there.
    When are you getting these? When you view a static-page? Are you using Mod-Rewrite? What version of WP are you using?
    Try this for me: find a post that has been made static in the faked-folders admin page. To the far left should be a number in bold (the post id number). Then go to your weblog and type in your regular weblog URI, but with index.php on the end. Then change it to this:
    index.php?static=true&p=x
    ... where x is the post id you looked up. Click here for an example. Do you still get that error?
    Anon: Sorry, let that one slip by. I'm checking it out now and hope to have a fix soon enough. :)

  22. Dextro
    Member
    Posted 10 years ago #

    Another little problem. It seems to me that it is not possible to use several pages on a static page. Can someone confirm that?

  23. wairoanz
    Member
    Posted 10 years ago #

    Stevarino: http://www.wairoa.com/index.php?static=true&p=122 but same problem. Yes, I have mod rewrte enabled and am using with Faked Folders. The rule is:
    # BEGIN FAKED FOLDERS RULES
    RewriteRule ^faked/([^/]+)/?$ /index.php?static=true&name=$1 [QSA]
    # END FAKED FOLDERS RULES

    I'm using WP 1.2 Mingus. Hope that helps! :)

  24. Anonymous
    Unregistered
    Posted 10 years ago #

    With reference to Dextro's post. Is it possible to have sub category posts on a fake folder static page?

  25. Dextro
    Member
    Posted 10 years ago #

    another tip: it is now not possible to edit the name and description of a template

  26. Stevarino
    Member
    Posted 10 years ago #

    Sorry guys, Tuesday through Thursday is crunch time for me...
    wairoanz: Hm, interesting. I want to say it's a plugin-conflict and something is mucking about with the $p variable (probably more likely than I want to think). I'm going to include a debug utility for you in the next version but in the meantime you can try disabling your plugins in the faked-folders page (not the entire site, just the listing in that faked folder).
    Anon: wp-stats. Neat little script, but I don't see anything in the setup instructions about installation of the stats page. Gr... I'll get it working eventually.
    Dextro: The template thing was known, but I really didn't put much thought into it at the time. It will be there next time. And the multiple pages: yah, those won't work. Theres no way to tie them into the plugin reliably and I don't see a point in adding that functionality. All multiple pages allow you to do is alter the way content is presented, and because of this plugin you can do all that yourself to no end.

  27. Anonymous
    Unregistered
    Posted 10 years ago #

    Is this supposed to work with WordPress 1.3 from CVS? I download and installed the plugin and the two framework files. Then I pressed "Advanced" next to the plugin entry. I got the screen to begin installation... but then I got a blank screen when I tried to start the installation. Now when I go back and press "advanced" I get nothing but a blank screen...
    Also, once this is working, will these faked folder posts be shown in search results?

  28. KyleGM
    Member
    Posted 10 years ago #

    I have the same problem as wairoanz,
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT * FROM wp_posts WHERE ID =
    All the plugins were deactivated in the fake folder.
    # BEGIN FAKED FOLDERS RULES
    RewriteRule ^inicio/([^/]+)/?$
    /index.php?static=true&name=$1 [QSA]
    # END FAKED FOLDERS RULES

  29. flyingrabbit
    Member
    Posted 10 years ago #

    Reading the documentation - I'm not sure I understand this plugin. Will it solve the problem I describe here?

  30. CarLBanks
    Member
    Posted 9 years ago #

    I love this plug-in, created an Archive for my BlogRoll and created a Guestbook.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.