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. mr_pelle

    Member

    @cwdnow: sadly I found a reason why your suggestion would not work: paging. Forum and topic Nth page URIs would look the same.. =(

    Posted: 1 year ago #
  2. Hello,
    I want to get rid of the "forum" name. To get urls like that:

    http://domain/topic-name

    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 #
  3. mr_pelle

    Member

    @franzi: as I explained before, doing so is not a good idea, because it would break paging. Sorry, but it will never be implemented.

    Posted: 1 year ago #
  4. @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 #
  5. mr_pelle

    Member

    @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 #
  6. @mr_pelle
    if you could integrate it, it would be a "killer app" ;) thanks for your efforts!

    Posted: 1 year ago #
  7. @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-name

    ie. adding the sub-folder /forum/) to the slug to differentiate paging URL's?

    Posted: 1 year ago #
  8. mr_pelle

    Member

    @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 #
  9. 404 File not found when i try to download

    Posted: 12 months ago #
  10. mr_pelle

    Member

    @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 #
  11. @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 #
  12. Okay, I've got it working. I simply modified bbpress_sitemap.php. Here's the file in zip.

    Posted: 10 months ago #
  13. 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/?45

    that 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 #
  14. mr_pelle

    Member

    @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 #
  15. unable to post topics from front end as a registered after activating nicer permalinks plugin

    Posted: 4 months ago #
  16. Thank you

    Posted: 3 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.