It’s very simple get_forum_id();
<?php echo "<div id='forum-".get_forum_id()."'>"; ?>
I don’t see how the cookie has anything to do with google indexing your pages. Forums hidden with the “Hidden Forums” plugin won’t be indexed either. If you want to prevent anyone (including search engines) from seeing certain forums, protect them with the Hidden Forums plugin. If you want to prevent search engines from caching public forums, then use the mini-plugin that _ck_ posted.
To use it as a plugin, just create a plugin file. The only difference between what _ck_ posted and a full blown plugin is the header.
<?php
/*
Plugin Name: No Archive
Description: Prevent some search engines from caching your forum
*/
function noarchive() {
echo "n".'<meta NAME="robots" CONTENT="noarchive">'."n";
}
add_action('bb_head', 'noarchive');
?>
Now, save that as a file, something like “noarchive.php” and save it in your my-plugins folder. Active the plugin in the admin and then load a forum page and check the headers to see if it worked.
_ck_ likes to create one plugin called bb-tweaks.php that contains all these little function tweaks. Then you just need one header and all the little functions can be dropped into the one file.
It’s too bad the pastebin code is no longer available.
where do we put this code?
If you don’t want Google to make a cached copy of any your forum pages, use this mini-plugin (Google will still scan and return results for your site, it just won’t show the “cache” link)
function noarchive() {echo "n".'<meta NAME="robots" CONTENT="noarchive">'."n";
} add_action('bb_head', 'noarchive');
Note that some search engines won’t obey “noarchive” and give away a cached copy anyway. This includes Alexa and others. Also note that installing this plugin doesn’t make existing “cache” links disappear instantly, Google has to re-scan your site (eventually) and then “cache” will disappear.
Hi,
i want to add simply sessions in my wordpress’s header (not the completed integration), how to that? like the phpbb session system 
bye!
By the way, for those on a linux server with shell and want to just install SVN as a client (and not the full blown server function) this is how you do it:
wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz
tar -xzvf subversion-1.6.5.tar.gz
tar -xzvf subversion-deps-1.6.5.tar.gz
cd subversion-1.6.5
./configure --prefix=$HOME --without-berkeley-db --with-ssl --with-editor=/usr/bin/vim --without-apxs --without-apache
make
make install
Then you are ready to use it via the command line svn
no, no.
i try to explain more:
– with your mod, CODE tags are generated at the beginning and the end of text, no?
– so i want there is to more code generated 
– in my example, “test test” is the text
– i would like, when i write “test test”, that the dl/dd are generated too 
-simply example: i would like to add a class at the code tag, in your mod, how to do that? 
thanks
i hope that i’ts more clear :p
bye!
It’s a mini-plugin, just make a plugin out of it.
I keep a single plugin composed of all my mini-plugins called tweaks.php
but you can call it anything.
<?php
/*
Plugin Name: Tweaks (mini-plugins)
*/
function delete_own_post($retvalue, $capability, $args) {
if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);
?>
I don’t follow.
You want to add dd/dt tags or do you want PHP code formatting/colouring?
There already is another plugin to do code formatting/colours but due to the spectacularly bad search and lack of 3rd party tagging on plugins, I can’t find it 
Ah here it is:
BBPress:Syntax Hiliter
https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/
This mini-plugin will fix your layout/graphics
for visitors that insist on using IE 8.0
function fix_ie8() {if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=7");}}
add_action('bb_send_headers','fix_ie8'); // for bbPress
add_action('send_headers','fix_ie8'); // for WordPress
Essentially it makes IE8 render like IE7 by sending a special (invisible) header only to IE8 users.
Problem solved.
It blows my mind that a page that can render perfectly in Opera – which is THE standards browser – can be messed up by Microsoft attempting to conform to standards. What a (continued) waste of everyone’s time.
ps. For those that don’t want to install IE8 permanently to just test their sites, this version will run in it’s own virtual box so it doesn’t affect the rest of your system:
http://start-o.xenocode.com/layers/ie8/8-0-0-0__2/ie8.exe
I take all that babble back……it turns out it is Hidden Forums 0.0.2 by _ck_ ……….i turned it on again, and it did it again……once i turned it off, the stuff hit the fan again.
so something in that code isnt jiving with my new admins
Hello,
I updated my test install with svn and get
Warning: Missing argument 1 for __construct() in /foo/bar/bbpress/bb-includes/backpress/class.bp-roles.php on line 11
and trying to post a messages issues :
Warning: Cannot modify header information - headers already sent by (output started at /foo/bar/bbpress/bb-includes/backpress/class.bp-roles.php:11) in /foo/bar/bbpress/bb-includes/pluggable.php on line 213
I may have put the code in the wrong place…where exactly did you put it and in which file.
Did you replace old code or just add this to it?
Sorry I am not exactly an expert with this kind of stuff.
Hi,
with the mod, we have a simply CODE balise, but i would like to modify like this: http://pastebin.com/f7c45ff6d
how to do that?
Hi everybody,
i use the bbcode-lite plugin by ck, and i want to add a <h1> in the list !
So, i have this:
$simple = array('b' => 'strong','i' => 'em','u' => 'u','center'=>'center','quote' => 'blockquote','strike' => 'strike','s' => 'strike','list' => 'ul','code' => 'code','h1' => 'h1');
but i have a br space after in the post: how to remove this? I think is the same thing that for li list
http://plugins-dev.bbpress.org/changeset?old_path=bbcode-lite%2Ftrunk%2FBBcode-lite.php&old=1000&new_path=bbcode-lite%2Ftrunk%2FBBcode-lite.php&new=1311
thanks
bye!
Thanks! Haven’t found anything, but I’ll do a lot more searching, thanks for the link!
Thanks so much for the tag code!
Is there a way to change the number of ‘Latest Discussions’ without changing the number of shown topics in the forums?
The last I heard was that import/export was going to be a Google Summer of Code project, but I can’t find any updates there:
http://www.google.com/cse?cx=015986126177484454297%3Apfmwlvdl42y&cof=FORID%3A0&q=bbpress&sa=Search
I was thinking when I read the subject line that this would be criticism of the amount of change between versions and the amount of work required to update the plugins for each new release. It took WordPress a while to get to their “automated notification” for plugins. Maybe it will take a while for something like that for bbPress.
1. Number of tags: in your template file, where the tags are displayed, there is a call to bb_tag_heat_map – that accepts parameters, the last of which is the number of tags to return. Put whatever you want in there. The first two parameters are font min and font max size, and the next parameter is what measure to use for the font sizes.
<?php bb_tag_heat_map( 9, 38, 'pt', 80 ); ?>
That’s 9pts minimum, 38pts maximum, return the top 80 tags
2. No suggestions for you there. Not sure I understand the concern.
3. This can be done in your template files as well.
You tried the second method and it does that?
It works for me, just tested it on 0.9
function delete_own_post($retvalue, $capability, $args) {
if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);
.
Note that the delete ability times out with the edit ability (1 hour in default install).
I also have the problem of members not being able to delete their posts.
I tried the above code, the delete button appears now but when clicked it says you do not have permission to delete.
I am not even sure if I put it in the right place though.
Does anyone have a tested method of making this work???
where do I find the css control for the right site menu, Im wanting to widen it out a bit to fit my template and cant seem to find the dimensions in any of the css files.
I have tried so far in a search & find: basic-profile-info, widget basic-profile-info, profile-data and secondary widgets.
which file is it and which code?
Nice theme by the way : )
Did you modify bb-config.php to use that language file? Once the file is installed, you need to put in the config to use it:
Near the bottom of bb-config.php – you need something like this:
define('BB_LANG', 'es_ES');