Just found this : http://codex.bbpress.org/developers
lolz! Why it is like that? Looks like someone trying to port BuddyPress theme to bbPress codex by hardcoding links
Found the solution for the “nofollow” in signatures, similar to the one you proposed for posts:
https://bbpress.org/plugins/topic/bbpress-signatures/page/2/#post-3179
Ooops, I think we posted at the same time. Ok, I tested it and it works so now all links in the message area are nofollow with no holes and the profile has the follow as I wanted. Very good
Thank you, mwaterous.
Look for the function add_signature_to_post in bb-signatures.php, line 78 should look like;
$text.='<div class="signature">'.nl2br($signature).'</div>';
Change it to
$signature = nl2br($signature);
$text.='<div class="signature">'.bb_rel_nofollow($signature).'</div>';
Signatures problem most likely has to do with bb_send_headers(); on line 297, but I’d have to install it to find out for sure. If I can spare the time, I’ll let you know.
mwaterous, thank you again. Did I say thank you?
I followed your advise and created the file functions.php where I placed that line of code and incorporated it to the bbpress theme at the root. This worked equally well. The only url that wouldn’t get the “nofollow” is the one at the signature. Never thought about the upgrade issue 
Correct, the signature corresponds to _ck_’s plugin. Never thought about that either. Perhaps I should contact him privately for adding a piece of code? (maybe I should read discussions on this topic too.)
Style sheet solved. Yes, it was an issue with the “textarea” field. Problem was actually “cache” on my browser that wouldn’t let me see the changes. So I flush the dns and all was working fine.
—
I have found another bug in another plugin “subscribe to topics” where after activation admin will only be able to logout from within the forum. Attempting to logout from the admin panel will result in a serious of errors:
Warning: Cannot modify header information – headers already sent by (output started at /home/skincare/public_html/bbpress/bb-includes/functions.bb-core.php:596) in /home/skincare/public_html/bbpress/bb-includes/backpress/class.wp-auth.php on line 292
Should I discuss the above 2 topics (signature and subscribe-to-topics) in the corresponding threads?
Cool; phpMyAdmin I can do. 
So, I could probably upload that file into the same database as the WordPress install, right, since the prefixes are different? That would help integration immensely, if I’m not mistaken… and then configure bbPress to use WordPress’ user tables (which has been described before in many places)?
What happens then w/ the old bbPress users? Not that I actually care, much, if we’re using WordPress’ user tables… I guess I just don’t know what happens for the posts made by defunct users. Any advice there?
(and thanks again, everybody… this is supremely helpful.)
If your theme doesn’t already have a functions.php, you can create one and add that code to it – it will automatically be found and run by bbPress, and it’s a lot safer than adding it to the core code (next time you upgrade, it will overwrite).
1. bbPress doesn’t have signatures by default, so I’m guessing you’re using a plugin for this? If you are, hopefully the designer has added a filter which you can hook into, but we’d have to take a look at the specific plugin you’re using.
2. You should have a style.css file in your bb-templates/yourthemename/ directory. Find that file, and do a search for ‘textarea’. It should possibly be under ‘.postform textarea’ to be more specific. Look and see if there’s a font-size attribute there, and up the size.
Hi, mwaterous. That is FANTASTIC. Thank you!
I have to run some more tests but I think you nailed it. I tested:
Test.com
http://www.test.com (simply written www, no html)
http://test.com (http: but no html)
<a/ a tag)
Except for the 1st one, all were converted into a link and ALL carried the nofollow tag. This is for posting messages by members on regular threads.
I placed that last line anywhere inside /bb-includes/functions.bb-formatting.php, as I didn’t have any of the other files you mentioned. In case others need this, is it possible to stick this one up? When I researched this subject here I found a few topics with at least 7 or 8 members looking for an answer to this problem. But the only answer was provided by you today.
Still ONE MORE spammer alert: if a member places HTML in its signature (using the <a tag) this will escape your filter and the signature will go “follow”
On another subject, if I may…
1. Signatures: do they only appear in the first post made by the member? I believe so.
2. I messed up the .css and can’t refix it. The size of the font for the “textarea” where messages are entered is close to nothing and I have to glue my eyes to screen to read what I am writing. This is the only field where the font-size was nuked. Where and in which .css should I fix this?
Thanks!
I’m wanting to limit the number of tags in my forum to a pre-defined list of 10 topics, and have members click/choose one (or more) when posting. Bonus points for having them in a drop-down menu…
I saw someone wrote in a post, 8 months ago, “I hacked [my forum] so users would tick on tags that are pre-defined…” which is exactly what I want to do. Any ideas how to do that?
Didn’t get anything.
Put the code in between backtick (`) characters. You can find the key above of Tab
Use backticks ( ` ) to display code. Place one before the code and one after.
Hi, I’m a total novice at this. Trying to set up a closed member only forum for a group. Will bbpress work for this? We currently have blog set up for group (irecee.wordpress.com) and want to add link in to access member forum from it. As we have no server for this site, I have uploaded bbpress to my org website (www.moldovavision.org) and hope to link from there. I have uploaded ok into new dir called ‘talk’. What now? I can’t access the weblink to activate it – tried http://moldovavision.org/index.php/talk which is returning an error code:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
Confused. Can anyone help?
Thanks a mill
Looks like something got changed while pasting the code above. Will try with a few “x” in there. Looks like it removes the a href after <h1>. Will switch around “<” and “>” so code will stick to the page.
>div id=”header-container”<
>div id=”header”<
>h1<>a href=”>?php bb_option(‘uri’); ?<” title=”>?php bb_option(‘name’); ?>”<>span<>?php bb_option(‘name’); ?<>/span<>/a<>/h1<
</div>
</div>
<div id=”container”>
well, I found out part of the solution myself. The code in the plugin is quite simple and it actually uses the same bbPress function that generates in-topic pagination (paginate_links
).
And that function has several parameters on of which is show_all
– set that to false and it will not print all the links but just the links relative to the current page.
Setting the current page for the plugin is also through a parameter – current
which is set to 0
. That way we get a link only to the last page but it still is better that having a long row of useless page links.
=Edit=
So, I cracked some more of it. I wanted to make it display links only to the firs page and to the last 2-3 pages. So the current
parameter had to be somehow dynamically set to last page + 1
to trick the function. Here is the code I used (starting line 74 of the plugin):
$links = paginate_links(
array(
'base' => $uri,
'format' => bb_get_option('mod_rewrite') ? '/page/%#%' : '%#%',
'total' => ceil($posts/$perPage),
'current' => ceil($posts/$perPage) + 1,
'show_all' => false,
'type' => 'array'
)
);
And it works
We get links to the first page and to the last two pages.
* if you set current
to 1
you’ll get links to pages 2,3,4 and the last page which is also usable.
@Olaf: Firefox 3.5.3 with an adblocker
just looked at it under IE Tab and it loaded then hid the main content… but that’s probably just me
OK FIXED!!! (REMARKABLE SOLUTION)
I turned off error reporting, and all is well. Thanks Kawauso and Ashfame for your time
Turns out there is a bb_rel_nofollow()
already, it’s just not hooked into anything (?).
So you could just omit mine, and add the following;
add_filter('pre_post', 'bb_rel_nofollow');
@Kawauso,
which browser are you using ?
@johnhiller,
yes that are the same plugins, but I’m too lazy to maintain plugins on the bbpress server
bbpress homepage has HOME, ABOUT, DOCUMETATION and etc..
i wanted my blog to also look like the homepage. This is embarrassing but my blog is about computers – Computer Tech Stuff and I dont know how to do it. 
does bbpress support this?
1) https://api.wordpress.org/secret-key/1.1/salt
2) There won’t be. You have to add it directly to the wp-config.php file, in the following format:
define('SECURE_AUTH_SALT', 'replacewithyourstring');
Make one.
We promise we’ll cover our eyes.
Once you have one for your wp-config, load up your favorite phpMyAdmin (er…) and make sure there’s an entry for bb_secure_auth_salt in the bb_meta table, and that it matches the string you added to your wp-config.
If you have a my_plugins.php (or something similar) in your bb-plugins/, you can add this there. Alternatively, you could add it to your themes functions.php file. It’s only stopgap though, it’s not bulletproof, I’m a little rusty on regular expressions since I’ve been developing themes more lately than I have been doing real programming;
function my_nofollow ( $ret ) {
return preg_replace('#(<a[^"]+"[^"]+")>([^<]+</a>)#', '$1 rel="nofollow">$2', $ret);
}
add_filter('pre_post', 'my_nofollow');
I’m not sure if this would qualify for trac, considering it’s not so much of a bug as it is an oversight? Mods?
/profile.php?id=XX&tab=favorites
1. Haven’t looked into that yet, but it should definitely be nofollowed no matter how the link is formatted so this might be worth looking into/filing a trac for.
2. You run the risk of people spamming through their profile if they figure that out, but if you’re willing to take the risk, it’s not too difficult. Open up your templates profile.php, and add the following at the top of the page;
<?php $GLOBALS['bb_nofollow_off'] = TRUE; ?>
…then open bb-includes/backpress/functions.formatting.php and go to line 950 at the bottom of function _make_url_clickable_cb() and replace;
return $matches[1] . "<a href="$url" rel="nofollow">$url</a>";
with;
return (isset($GLOBALS['bb_nofollow_off'])) ? $matches[1] . "<a href="$url">$url</a>" : $matches[1] . "<a href="$url" rel="nofollow">$url</a>";
Note that if you have deep integration, you’ll have to change the above line in your WordPress version of the same function, not the bbPress one.
Just out of curiousity, why are you sending headers from your bb-config? bbPress/Wordpress will handle this all on their own.
You also shouldn’t call the blog-header, it causes other problems you can read about around the forums. You should be calling wp-load.php and the following should be more than adequate for your bb-config;
define('WP_BB', TRUE);
if (! defined('DB_NAME'))
require_once(dirname(__FILE__) . '/w/wp-load.php');
$bb->wp_table_prefix = 'wp_'; // your wordpress db prefix is
$bb->wp_home = 'http://domain.tld';
$bb->wp_siteurl = 'http://domain.tld';
I don’t think this will solve your next page problem, as it looks like they’re being sent wrong from bbPress for whatever reason, but it will avoid a plethora of other problems before they become apparent.