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.
Version: 5.0.7
Last Updated: 2011-4-3
Requires bbPress Version: 1.0 or higher
Compatible up to: 1.1-alpha





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.
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-
@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?
@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)!
Yes it works! Good job! And nice plugin ;)
@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! =)
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.
@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... -_-"
Any chance of getting this to work on bbPress 1.1
At the moment the forums and topic urls return 404's
@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"
@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...
@mr_pelle: I downloaded it from the SVN.
I have tested this with 1.0.2 and it still doesn't work for me.
@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.
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!
@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!
@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.
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 bbPressUsing a fresh install of 1.0.2 and moved the correct lines of 46 and 48. No luck though.
You must log in to post.