Info
- 8 posts
- 6 voices
- Started 4 years ago by fel64
- Latest reply from Simon99
- This topic is not resolved
Getting rid of ?replies=#
-
- Posted 4 years ago #
On the end of URLs in my forums it always attaches a
?replies=#to the topic link (or redirects you if you open a topic without that in the url) where # is the number of replies to the topic. It's really ugly and I want to get rid of it; no other forums apart from this one that I've seen have it! I'm using slug permalinks but I believe it was there before that. I've got the rules frombb-admin/rewrite-rules.phpin my .htaccess because Multiviews didn't seem to work for me. Anyone know how to get rid of that? -
- Posted 4 years ago #
Make a new file in your my-plugins/ directory with the following code in it. Then activate the plugin in your bbPress' admin panels.
<?php /* Plugin Name: No ?replies Description: Get rid of the ?replies=# ugliness in topic links Plugin URI: http://bbpress.org/forums/topic/getting-rid-of-replies Author: fel64 Version: 1.0 */ remove_filter( 'get_topic_link', 'bb_add_replies_to_topic_link' ); ?> -
- Posted 4 years ago #
Thank you very much. I didn't realise it would be as simple as removing a filter, that's cool :)
-
- Posted 4 years ago #
Slick! Applies this one and it looks "MUCH" better! Thanks mdawaffe!
Trent
-
- Posted 4 years ago #
Another something I never knew I always wanted! Thanks. :)
-
- Posted 4 years ago #
Thanks for this.
Do you know anything about the 'under_title' hook or where it might be documented?
-
- Posted 4 years ago #
under_titlelooks like a pretty lame hook; I doubt you can trust it's existence in every theme and it may get removed entirely in some later version of bbPress.If you need to add content to a topic page there, I'd just edit your custom theme.
-
- Posted 4 years ago #
Aha, glad I spent an extra couple of minutes searching, as I was about to ask this same question. bbpress looks great btw, I really like the slimline approach. :)
-
You must log in to post.