@cwdnow: sadly I found a reason why your suggestion would not work: paging. Forum and topic Nth page URIs would look the same.. =(
bbPress Plugin Browser »
Nicer Permalinks (5.0.7)
Download
Version: 5.0.7
Last Updated: 2011-4-3
Requires bbPress Version: 1.0 or higher
Compatible up to: 1.1-alpha
Average Rating





Your Rating
Author: mr_pelle
-
Posted: 1 year ago #
-
Hello,
I want to get rid of the "forum" name. To get urls like that:To do that I replaced in
nicer-filters.php
return str_replace( $bb->uri . 'topic', $bb->uri . get_forum( $topic->forum_id )->forum_slug, $link );
with
return str_replace( $bb->uri . 'topic', $bb->uri, $link );
but it results in a double slash after the domain name. So there is anywhere a standard function wich adds a trailing slash. How to get rid of it?
Thanks!Posted: 1 year ago # -
@mr_pelle
arrgh, I oversaw it ...
but anyway, would it be possible instead of a full delete of forum name to rewrite permlinks like that:http://domain/forum_name-topic_name
so forum_name and topic_name with their keywords are on the first level?
Posted: 1 year ago # -
@franzi: I have to think about that. Unfortunately I'm quite busy in these days! =(
Pretty sure hyphens are not a good choice for separator, btw..
Posted: 1 year ago # -
@mr_pelle
if you could integrate it, it would be a "killer app" ;) thanks for your efforts!Posted: 1 year ago # -
@mr_pelle: Thanks for taking the time to track that down. Since this is pretty important to me in terms of SEO, as well as being able to manage my links more efficiently, how about this solution:
example.com/topic-name
example.com/forum/forum-nameie. adding the sub-folder /forum/) to the slug to differentiate paging URL's?
Posted: 1 year ago # -
@cwdnow: isn't this solution almost identical to bbPress standard...? 0_o" Seems like we're getting back to the roots! ;-P
Posted: 1 year ago # -
404 File not found when i try to download
Posted: 12 months ago # -
@blank4rt: it worked for me, but I remember this issue already happened some time ago... Just try again and it will eventually work.
Posted: 12 months ago # -
@mr_pelle: You're right, more similar to the bbPress roots. In terms of SEO, however, the majority of the benefit comes from the topic names, and being able to remove "topic," so I still think this solution would be optimal. And maybe make the "forum" slug configurable, ie. instead of /forum/forum-name I might use /category/forum-name.
Finally, I'm noticing that my /sitemap.xml doesn't seem to be cooperating with nicer permalinks (sitemap generator plugin). It's listing every topic as /forum/topic-name. Is anyone else experiencing this issue?
Posted: 10 months ago # -
Okay, I've got it working. I simply modified bbpress_sitemap.php. Here's the file in zip.
Posted: 10 months ago # -
would it be possible to add the thread id number in the permalink as well?
ie: yourforum.com/forumname/your-topic/45
or: yourforum.com/forumname/your-topic?id=45
or: yourforum.com/forumname/your-topic/?45that way if someone ends up making a thread with the same title down the road they'll both be unique still?
Posted: 4 months ago # -
@joindie: it seems to me that bbPress already takes that into account, so that plugins do not have to worry about namespace collisions.
Posted: 4 months ago # -
unable to post topics from front end as a registered after activating nicer permalinks plugin
Posted: 4 months ago # -
Thank you
Posted: 3 months ago #
Add a Comment
You must log in to post.