making bbPress (and WordPress) work better!

bbPress plugin: BB Tweaks

This plugin fixes some annoying default behaviours on bbPress

1. Get rid of the ?replies=# ugliness in topic links
2. add nofollow to post links
3. add target=_blank to post links
4. auto-close tags – bbPress’s auto-close tags is broken by default
5. get rid of [closed] on subjects – useful if you have a narrow template
6. adds extra tags to the allowed markup such as <hr>

You can edit it even further as you so desire.
bb-tweaks.txt (rename .txt to .php)

25 responses

  1. Honest Abe

    Don’t you want to change the extension to .phps? Otherwise it’ll muck with people’s browsers, as well as any OS that doesn’t detect a file’s mimetype (ie, Windows).

    July 23, 2007 at 12:37 pm

  2. Sorry for the confusion.

    You have to rename the file to .php from .doc because the website will not allow text files of any other extension other than .doc

    I’d use .phps but the attachements simply won’t allow it.

    July 24, 2007 at 1:45 am

  3. vlp

    Hi, I tried to install this plug-in (which sound pretty usefull), but I get error:

    Plugin could not be activated; it produced a Fatal Error.

    I’m using version

    July 28, 2007 at 3:07 am

  4. Hmm, I am not sure what could cause that.

    One thing I do notice is that somehow white-space (line feeds and spaces) have been added to the end of the text that I posted.

    Be sure to trim off anything that follows the ?> at the end

    July 28, 2007 at 3:12 am

  5. vlp

    I have white space after ?> but after I removed, still the same error

    July 28, 2007 at 3:18 am

  6. I’ve uploaded another version now

    See if that works?
    There might be some kind of function conflict.

    (If this doesn’t work, we’ll turn on php error reporting.)

    July 28, 2007 at 3:22 am

  7. vlp

    still the same error

    I forgot to mension I’m using User Topics To Favorites plugin as well

    July 28, 2007 at 3:26 am

  8. Hmm I wrote that one too right? Shouldn’t be a conflict.

    edit the .php file and right after the <?php add this temporarily to see if we can get more info on the actual error


    (remove it after you copy and paste any errors here, otherwise your visitors will see them too)

    July 28, 2007 at 3:28 am

  9. vlp

    Yes the other one your plugin too.

    I turn on the error reporting, but did not get any more description (I should put it to the bb-tweaks.php yes?)

    July 28, 2007 at 3:34 am

  10. yeah it goes into bb-tweaks.php
    very strange

    Well the only other thing I can suggest is to take section by section out of the plugin and try activating it until it stops complaining, then we know the culprit.

    try this very stripped down version
    (rename -test.txt to .php)

    July 28, 2007 at 3:41 am

  11. vlp

    this version works

    July 28, 2007 at 3:45 am

  12. okay we’ll add a little more then

    see if that works too

    July 28, 2007 at 3:45 am

  13. vlp

    yes, this is without problem as well, i tried it deactive and activate again for test

    July 28, 2007 at 3:51 am

  14. Well maybe it’s the .doc format getting messed up.
    I discovered by accident that will also allow .txt
    so try the full version this way (and rename .txt to .php)

    July 28, 2007 at 3:55 am

  15. vlp

    Now I get this error:

    Fatal error: Cannot redeclare force_balance_tags() (previously declared in /home/ in /home/ on line 27

    July 28, 2007 at 3:59 am

  16. AHA! Okay I have to rename my functions.

    Here you go:
    (make sure your browser does not send you the old version, this should say 0.04 inside)

    July 28, 2007 at 4:00 am

  17. vlp

    in your .txt it says version 0.03

    July 28, 2007 at 4:09 am

  18. vlp

    Version 0.04 works without erros when activating and deactivating….thanks:)

    July 28, 2007 at 4:18 am

  19. vlp

    Hi ck,

    I found out that

    “3. add target=_blank to post links”

    doesn’t work – you can see on this post

    August 12, 2007 at 4:10 am

  20. vlp

    I found that there was a conflict with wordpress function-formatting.php – I put the target=”_blank” to this file and it works.🙂

    August 15, 2007 at 5:48 am

  21. CK does this work with .83? Tags can be unclosed in .83, so this would be good.

    But just as importantly, I’d like links to open in new windows.

    I installed it, but a quick test of target=_blank shows that is not working for external links in posts.


    October 29, 2007 at 1:37 pm

  22. Luc

    Activating the WP default role doesn’t seem to work in 0.8.3 – it will register the user OK, but won’t set a role (leaving them in the “no role for this blog” list), and returns a blank screen after the user clicks “Register”. Any ideas/fixes?

    October 31, 2007 at 8:14 pm

  23. Trisha

    _ck_ is bbpress_tweaks still needed with the latest version of bbPress (

    April 13, 2009 at 1:34 pm

  24. Well technically it’s not even “needed” but it still allows you to change some behaviors which continue to be less than desirable IMHO.

    It should (mostly) work in but some of it’s functions may be pointless or even not work.

    I still use it on my and have a few more modifications in there, been meaning to publish it officially on some day.

    April 13, 2009 at 1:46 pm

  25. Trisha

    Thanks! I did look for it there first with no luck – it does have some good tweaks and I’m sure others would find it useful so you should consider putting it on

    April 13, 2009 at 2:39 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s