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

Rewrites every bbPress URI removing the words "forum" and "topic" and emphasizes forum hierarchy.

Based on Ashish Mohta and Mark R. Henderson's Remove Forum Topic plugin.

Requires PHP 5 or higher.


  1. Leander8728

    Member

    When i want to create a new topic i got the following error: I'm sorry, but there is nothing at this URL.
    The link is this: /forum//?replies=1#post-

    Posted: 2 years ago #
  2. mr_pelle

    Member

    @Leander8728: hi! Do your forum links work? Do you have other double slashes around the forum? Seems like bbPress could not retrieve post info... Did you follow installation instruction?

    Posted: 2 years ago #
  3. mr_pelle

    Member

    @Leander8728: I'm testing the plugin in a fresh installation and indeed "New Topic" link is broken (though new topic is actually created)...
    The only change I made to bbPress (and that I forgot to mention) is point #4 of Henderson's instructions, which actually does the trick! =D
    I'm really sorry, but I forgot I did that line switch... try it and please tell me if your problems get solved, meanwhile I'll update installation instructions for the last time (I hope)!

    Posted: 2 years ago #
  4. Leander8728

    Member

    Yes it works! Good job! And nice plugin ;)

    Posted: 2 years ago #
  5. mr_pelle

    Member

    @Leander8728: finally!! I'm so happy it worked! Thank you for your feedback, please rate the plugin and feel free to contact me again for further problems! =)

    Posted: 2 years ago #
  6. citizenkeith

    Member

    I'm running bbPress 1.02 and received this error:

    Plugin could not be activated, it produced a Fatal Error. The error is shown below.

    Warning: file_get_contents() expects at most 2 parameters, 5 given in /path.to/html/forums/my-plugins/nicer-permalinks/nicer-permalinks.php on line 24

    Fatal error: Call to undefined function: file_put_contents() in /path.to/html/forums/my-plugins/nicer-permalinks/nicer-permalinks.php on line 39

    Note: I changed the actual path for security.

    Posted: 2 years ago #
  7. mr_pelle

    Member

    @citizenkeith: what version of PHP are you using? file_get_contents and file_put_contents require PHP5.
    I knew I had to check backward compatibility... -_-"

    Posted: 2 years ago #
  8. Any chance of getting this to work on bbPress 1.1

    At the moment the forums and topic urls return 404's

    Posted: 2 years ago #
  9. mr_pelle

    Member

    @driz: did you mean 1.0.1 or 1.1?
    At the moment I have no idea of the differences between 1.0.1 and 1.0.2, I should take a look at the sources, but I prefer to wait for 1.0.3 to be released and get the plugin to work on it rather than on old versions of bbPress...

    Posted: 2 years ago #
  10. mr_pelle

    Member

    @citizenkeith: try this beta and let me know if it works for you, please.

    Posted: 2 years ago #
  11. @mr_pelle: I mean: http://trac.bbpress.org/milestone/1.1

    The URLs do change but no longer work. They show the error message "I can't find that"

    Posted: 2 years ago #
  12. mr_pelle

    Member

    @driz: where did you get the 1.1 source? Anyway, I don't think testing something in a less-than-50%-completed-version is a really good idea...

    Posted: 2 years ago #
  13. @mr_pelle: I downloaded it from the SVN.

    I have tested this with 1.0.2 and it still doesn't work for me.

    Posted: 2 years ago #
  14. mr_pelle

    Member

    @driz: trunk version is tagged 1.1? Anyhow, I tested the plugin yesterday on a fresh 1.0.2 installation and it worked perfecfly after the line switch was done...
    Are you using PHP4? If so, see this beta.

    Posted: 2 years ago #
  15. Using PHP 5 and done the line switch (the lines differ on different editors by the way, on Coda 46 is an if statement for posting, where as with Notepad ++ it is the correct line)

    My site is here: http://www.paperviewmagazine.com/forums/ as you can see all the URLs have changed but all are broken!

    Posted: 2 years ago #
  16. mr_pelle

    Member

    @driz: URIs are perfect indeed... Did you change RewriteBase in nicer-htaccess to be your bbPress path before activating the plugin? Problem is located in .htaccess for sure.

    Line number should not differ whatever editor you use... at least, this is what I've always known!

    Posted: 2 years ago #
  17. mr_pelle

    Member

    @driz: I'm testing in this path http://localhost/mypath/forums/ and it works. RewriteBase in this case is /mypath/forums/, I just switched the lines and nothing more.

    Posted: 2 years ago #
  18. This the contents of my .htaccess file located here: http://www.paperviewmagazine.com/forums/

    ## 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
    RewriteBase /forums/
    
    RewriteRule ^page/([0-9]+)/?$ /forums/index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forums/forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /forums/forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ /forums/ [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forums/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /forums/topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ /forums/ [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forums/tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /forums/tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /forums/tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /forums/profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ /forums/profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forums/view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /forums/view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /forums/rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ /forums/rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ /forums/rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ /forums/rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ /forums/rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /forums/index.php [L]
    </IfModule>
    
    # END bbPress
    Posted: 2 years ago #
  19. Using a fresh install of 1.0.2 and moved the correct lines of 46 and 48. No luck though.

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.