bbPress Plugin Browser »

Nicer Permalinks (5.0.7)

Download

Version: 5.0.7

Other Versions

Last Updated: 2011-4-3

Requires bbPress Version: 1.0 or higher

Compatible up to: 1.1-alpha

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5)

Your Rating

Author: mr_pelle


  1. Any updates? I can't see any errors in my htaccess file :/

    Posted: 2 years ago #
  2. spedro

    Member

    I have the same problem... the plugin dont work ยก404 eror!

    Posted: 2 years ago #
  3. mr_pelle

    Member

    Hi guys, sorry for the wait, I've been away for a couple of days...

    @driz: the file you posted looks exactly the same as any original .htaccess (except for the first line, of course): I think you had a problem during the update: did you perform automatic or manual? Anyway, replace all its content with the following (which is nicer-htaccess content):

    ## code by "Nicer Permalinks" plugin - do NOT remove this line, its needed by the plugin! ##

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # change this to match your forum path
    RewriteBase /forum/

    Options +FollowSymlinks

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

    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]

    # forums
    RewriteRule ^([^/]+)/page/([0-9]+)$ forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^([^/]+)/$ forum.php?id=$1 [L,QSA] # tailed / is mandatory for forum URIs! Props: Mohta

    # topics
    RewriteRule ^([^/]+)/([^/]+)/page/([0-9]+.*)$ topic.php?id=$2&page=$3 [L,QSA] # .* is needed for passing args (i.e. &view=all)
    RewriteRule ^([^/]+)/([^/]+)$ topic.php?id=$2 [L,QSA]

    # missing pages (needed for custom template 404.php)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ index.php [L]
    </IfModule>

    # END bbPress

    @spedro: please tell me more about your problem and also check if your .htaccess looks like driz's one.

    Posted: 2 years ago #
  4. Added the new htaccess stuff and the links are still broken :/

    Posted: 2 years ago #
  5. This still doesn't work for me (had to disable it because it breaks my site). Any updates for fixes?

    Posted: 2 years ago #
  6. Leander8728

    Member

    It doesn't work with Ajaxed Quote plugin. When i press on the link to go to the original post. My link is: example.com/forum//#post- I think it must look like this link: example.com/forum/tips-en-tricks/rich-text-editors#post-64

    For the rest of the plugin. It works really nice! Only this thing gaves a problem :(

    Posted: 2 years ago #
  7. mr_pelle

    Member

    Hi everybody! I've been busy last week and bbPress.org was under update, so I preferred to stop developing for a while. As you might know, bbPress.org plugins forum is currently not updating: you can found recent plugins updates here and download plugins here.
    I've released a new version few days ago and I'm currently testing the plugin with Ajaxed Quote, as I just read from Leander8728 that it was not working, but I've not figured out how to fix it yet.
    I'll continue working on that: keep an eye on the timeline! ;)

    EDIT: fixed for single page topics and if quoted post is located in topic last page. Moving on...

    Posted: 2 years ago #
  8. mr_pelle

    Member

    Fixed! =) Check version 3.6 and please let me know if it works for you too!

    EDIT: ahem, now it's not working 100% for posts on topic last page... still working for fix it, sorry... =P

    EDIT: fixed, with an horrible trick though... I hope to find a better solution in the future, in the meanwhile try this! :)

    Posted: 2 years ago #
  9. mr_pelle

    Member

    Better trick found and uploaded. The old one was broken if post id was >9... -_-"
    Still working to find a better solution. Let me know your thoughts!

    EDIT: final fix uploaded! =D

    Posted: 2 years ago #
  10. Leander8728

    Member

    Thanks man! Ajaxed Quote works!!
    Keep up the good work! Really nice plugin!

    Posted: 2 years ago #
  11. mr_pelle

    Member

    Plugins section is finally up to date!

    Posted: 1 year ago #
  12. Would it be possible to show sub forums in the url?

    So If I had:

    Apple
    -- Mac
    --- MacBookPro
    ---- Accessories

    The url would be domain.com/forums/apple/mac/macbookpro/accessories/

    Posted: 1 year ago #
  13. mr_pelle

    Member

    @driz: mmh, I don't think this is feasible...

    Forum uris would become domain.com/forums/parent-forum/sub-forum/ while topic uris domain.com/forums/parent-forum/sub-forum/topic-slug: how would htaccess distinguish topic slugs from forum slugs?

    Posted: 1 year ago #
  14. mr_pelle

    Member

    Version 4.0 finally released!

    Posted: 1 year ago #
  15. The forum permalinks always end with / using this plugin, and the topic permalinks never does. You can use this patch: http://llamaslayers.net/wp-content/uploads/2010/06/nicer-permalinks-hierarchy.txt

    Posted: 1 year ago #
  16. mr_pelle

    Member

    @Ben L: I'm currently testing your patch: it's very interesting, but when I activate it my browser cannot load my template's CSS anymore... I tried with other browsers too and it always occurred: did this happen to you too? Maybe it's a conflict with my other plugin, Swirl Unknowns: can you test combining the two plugins, please?

    EDIT: oh, the problem remains even when I deacivate the plugin... =PP My template CSS won't load even if I clean browser cache or restart the browser... any suggestion?

    Posted: 1 year ago #
  17. mr_pelle

    Member

    A-ha! Now I remember: I've already tried to resolve this "family" problem several weeks ago, but I ended up affecting even non-forum|topic URIs.

    Basically these 2 rules destroy all: RewriteRule ([^/]+)/$ forum.php?id=$1 [L,QSA] and RewriteRule ([^/]+)/([^/]+)$ topic.php?id=$2 [L,QSA].

    Simple proof: go to bbPress admin area. Does /forum/bb-includes/js/jquery/jquery.js?ver=1.4.2 load? No, because .htaccess thinks this is a request for a topic named jquery.js, child of a forum named jquery.

    Please tell me if I got it wrong!

    Posted: 1 year ago #
  18. Hello,

    First thanks a lot for sharing this plugin! It's working great so far.

    This said, I have one problem which I cannot manage to resolve alone.

    My main .htaccess, located at the root of my domain, has this rule on in order to force the WWW as subdomain :

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mydomain.com$
    RewriteRule ^(.*) http://www.mydomain.com/$1 [L,R=301]

    When "Nicer Permalinks" is off, this .htaccess rule does apply to my forum subdomain, like this : http://www.mydomain.com/forum

    Even when one types "mydomain.com/forum" in the browser's address bar, you're well redirected to http://www.mydomain.com/forum

    However, as soon as I activate and set up the "Nicer Permalinks" plugin, the rules it sets up seem to break the WWW forcing. So I finally have: http://mydomain.com/forum, anytime.

    This is a problem for Google's duplicate content, but also for the WordPress and BBpress cookie integration (with WWW set up on both site and forum, that's fine, the cookie works; but if the forum url lacks of the WWW, the cookie breaks, too, which means I'm not logged in anymore into BBpress. I have to manually add the WWW in my url to get logged in again...)

    I tried to replace l.10 in the generated .htaccess, like this :
    RewriteBase http://www.mydomain.com/forum/

    or with
    RewriteBase http://www.mydomain.com/forum/

    ...so far with no luck.

    Any idea or tip to fix this problem please ?

    Do you guys notice the same problem ?

    Thanks a lot in advance for your feedback.

    Posted: 1 year ago #
  19. mr_pelle

    Member

    @kreestal: hi! Thank you so much for your feedback! =D

    At my online test forum, located in a WordPress sub-folder, I get correctly redirected to http://www.example.com/forum/ if browsing to a www-less address. My WordPress .htaccess is the following, while the bbPress one was generated by my plugin:

    # BEGIN WordPress
    &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    &lt;/IfModule&gt;
    
    # END WordPress

    RewriteBase should not be the problem, as far as I know. I found this post by Zaerl, but it didn't help...

    P.S: substitute every &gt; and &lt; in my code with angular parenthesis. Damn bbPress.org bug...

    Posted: 1 year ago #
  20. Hi ! Thanks a lot for your feedback. After many tests, it appeared my problem wasn't caused by your plugin at all...

    However, I have a real problem this time about the redirection url after you submitted a new topic : I'm redirected to http://www.domain.com/forum//ezaeaeza?replies=1#post-6, whereas it should be http://www.domain.com/forum/subforum/ezaeaeza?replies=1#post-6

    Basically, after I post a new topic, I get a 404 (http://www.domain.com/forum//ezaeaeza?replies=1#post-6).

    I can't find the line I should change in the htaccess or plugin's files...

    Any help welcome :) Thanks a lot !

    (ps: I'm using the plugin and bbpress latest versions)

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.