mr_pelle (@mr_pelle)

Forum Replies Created

Viewing 17 replies - 201 through 217 (of 217 total)

  • mr_pelle
    Participant

    @mr_pelle

    @cNc: the best thing would be to test the forum out of a WordPress page, so there would be no header/footer problems.


    mr_pelle
    Participant

    @mr_pelle

    @gerikg: that’s what I suspected too… bad integration?


    mr_pelle
    Participant

    @mr_pelle

    “First Forums” URI is http://car-n-car.com/forums/first-forums// and topics URIs look like http://car-n-car.com/forums/first-forums/topic-name/: there is an / in excess in every URI.

    Nicer Permalinks does not add slashes to topics URIs, so it’s coming from somewhere else…

    Deactivate the plugin, restore your original .htaccess and turn off permalinks. Then re-do everything from the beginning as described in my Installation instructions, trying to see exactly when links do not work anymore.

    EDIT: I also noticed that Forum links in header and footer are different, but they work the same… 0_o”


    mr_pelle
    Participant

    @mr_pelle

    I’ve just added +FollowSymlinks to nicer-htaccess: I don’t know if this was another config detail missing… give it a try!


    mr_pelle
    Participant

    @mr_pelle

    Sorry, you probably misunderstood me: I was trying to say that your URIs http://car-n-car.com/forums/forums/first-forum are different from mines http://my-host.com/my-forum-name/forum/my-first-forum-name not because you chose forums while I chose my-forum-name, of course, but because appended to the forum path I have the word forum while you have forums. That’s not a detail!

    As I said here, it seems that my forum (with just name based permalinks on, no plugins) would look like /my-forum-name/forums/my-first-forum-name too, but in the end it does not! It looks like /my-forum-name/forum/my-first-forum-name, exactly the same as the bbPress forums we are posting on.

    In this very moment your forum URIs look exactly as they should, but they are not working correctly: I’m pretty sure the reason is you did not update nicer-htaccess forum path before activating the plugin.

    Please let me know if this is the problem, in the meanwhile I will update Nicer Permalinks plugin page specifying everyone has to do this before activating it.


    mr_pelle
    Participant

    @mr_pelle

    Ahem.. taking a look to my Permalinks admin page I noticed it says name based permalinks will look like /forum/forums/first-forum but when I turn them on they look like /forum/forum/first-forum, so please cNc tell me if this happens to you too; if not, and if more people forums behave like this, I’ll have to make some changes to my plugin…


    mr_pelle
    Participant

    @mr_pelle

    @zaerl: thank you!! =D

    @cNc: my plugin is not working for you because your forum presents a different structure from the one I’ve always seen in bbPress, aka /bbpress-path/forum/forum-name (i.e. without “s” on “forum”). What version of bbPress are you using? I may rewrite my plugin to make it work even with your forum, though I think it would be better for you to get to standard structure and then activate Nicer Permalinks.


    mr_pelle
    Participant

    @mr_pelle

    Yeah, even less for me. =D


    mr_pelle
    Participant

    @mr_pelle

    “Nicer Permalinks” now available!!


    mr_pelle
    Participant

    @mr_pelle

    No answer, so I made a plugin upload request today: “Nicer Permalinks” will be online soon! ^_^


    mr_pelle
    Participant

    @mr_pelle

    I sent an email to Ashish Mohta asking for his thoughts about the updated plugin: if I won’t get an answer soon, I’ll create the missing documentation and upload the plugin.


    mr_pelle
    Participant

    @mr_pelle

    Sorry for keeping posting, but I really would like to submit the “upgraded” plugin, though I do not want to name it after me, as it is mainly a work by Ashish Mohta and Mark Robert Henderson…

    Does anyone have a mail of one of them or another way to contact them?


    mr_pelle
    Participant

    @mr_pelle

    If anyone would like to try my plugin, I’ve finally found out how to upload it! You may download it here. ^_


    mr_pelle
    Participant

    @mr_pelle

    Hi! I’ve worked all day on the plugin, but now it finally works as it should! ^_^

    I’ve also implemented 2 functions that grab both “plugin activated” and “plugin deactivated” events in order to swap .htaccess and the new file. Unfortunately you still have to change .htaccess permissions if you want the plugin to update it, but the only other way is manual edit…

    I’ve embedded them in the plugin by Ashish Mohta and Mark Robert Henderson, but I don’t know how to proceed: what do you think would be the better way to publish the updated plugin?


    mr_pelle
    Participant

    @mr_pelle

    I’m currently also working on a function, integrated with the plugin, that updates/restores .htaccess: updating is easy, but restoring needs to grab an hook on “plugin deactivated” event or a dedicated admin page where users can call these functions.

    I would opt for the former, but I don’t know if there is any way for a plugin to know the moment when it gets deactivated…

    Any clue?


    mr_pelle
    Participant

    @mr_pelle

    Hi! After 3 hours of brute-force testing, I found a working configuration:

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /forum/

    #handle admin stuff
    RewriteRule ^bb-admin/.*$ - [L,QSA]

    # handle the rest
    RewriteRule ^page/([0-9]+)/?$ ?page=$1 [L,QSA]

    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ profile.php [L,QSA]

    RewriteRule ^rss/?$ rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ rss.php?view=$1 [L,QSA]

    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ tags.php [L,QSA]

    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ view.php?view=$1 [L,QSA]

    # handle forums
    RewriteRule ^([^/]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^([^/]+)/$ forum.php?id=$1 [L,QSA] # no '?' before the closing '$' this time: very important!

    # handle topics
    RewriteRule ^([^/]+)/([^/]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]
    RewriteRule ^([^/]+)/([^/]+)/$ topic.php?id=$2 [L,QSA] # no '?' before the closing '$' this time: very important!

    # handle non-existent pages
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ index.php [L]
    </IfModule>

    # END bbPress


    mr_pelle
    Participant

    @mr_pelle

    dogeil, try these plugins:

    I had a similar need and I modified the former, ending up with a new (yet-to-be-released) plugin which redirect every non-logged-in user to a custom page. =D

Viewing 17 replies - 201 through 217 (of 217 total)