Perfect _ck_, thank you, that’s all I needed.
For anyone else interested I added class to the array so I can style the images, so the function now reads:
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
then added:
.featureimage {
padding: 4px;
background: #eee;
border: 1px solid #ccc;
max-width:560px;
}
.thumbnail {
float: left;
width: 100px;
height: 100px;
margin: 0 20px 10px 0;
padding: 4px;
background: #eee;
border: 1px solid #ccc;
}
to my style.css
This would be fairly straightforward to do via a plugin.
Sam recently modified a filter for a post class based on my suggestion in 1.0
https://trac.bbpress.org/ticket/1091
https://trac.bbpress.org/changeset/2093
All you would have to do is hook the filter and examine the user for the post, then add a class based on role.
So the framework you need is something like this:
add_filter( 'post_del_class', 'post_class_by_role',10,2);
function post_class_by_role($classes, $post_id ) {
$post=bb_get_post($post_id);
// do stuff here, add class to $classes if necessary
return $classes;
}
This won’t work in 0.9 however, you would need a template modification instead.
MDA tried to put in code that prevented malformed image tags. Since bbPress uses raw html and not bbcode by default, it’s always something to consider. However you can run a minimal plugin to allow any and all images quite easily:
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array()); return $tags; }
That’s all that’s needed to permit the image tag.
Single Sign-on is a very convenient feature to have in an organization, and for web services (on apache, at least) it’s very conveniently provided by mod_auth_kerb.
However, there is a problem preventing its use with bbPress, namely user name handling.
Kerberos user names are of the form user@DOMAIN.TLD. bbPress username sanitization rules are too strict and strip the ‘@’ character outright. And anyway, domain concept is not supported throughout the code and in underlying database.
Moreover, the whole HTTP auth support (purportedly, a basic thing in any web app) relies on external and somewhat broken plugin (it uses bb_user_exists deprecated function, which is not working properly in 1.0, or at least it seems so to me).
In my most extant dreams (phpbb style
, SPNEGO auth plugin should be also able to query an LDAP database (which is most often present in such set-ups) for extra user info.
This doesn’t solve the other problems like.. Underlining, Stricking the text, font size increasing etc. And in the links that we add using TinyMCE editor gives an extra quote in the resulting form content link!
I am using bbpress 1.0 and there is a file by name functions.bb-forums.php inside bb-includes folder. I opened it and saw these codes
function bb_allowed_tags() {
$tags = array(
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()),
'blockquote' => array('cite' => array()),
'br' => array(),
'code' => array(),
'pre' => array(),
'em' => array(),
'strong' => array(),
'ul' => array(),
'ol' => array(),
'li' => array()
);
I added 'p' => array(),
to solve the <p>
tag problem.
But all other problems regarding underline, stricking the text, adding image also doesn’t work(I have installed allow-image plugin), font size increasing also doesn’t work.
Please help.. and if possible get back to me at satish at technotip DOT org [ Its .ORG and not .COM ].
Thanks
I see you have finally converted to the new admin style… congratulations!
It looks really good (except the green buttons in some places). Thanks.
hi there.
I successfully integrated wpmu 2.7.1 with bbpress 1.0. all works as its supposed to, except for some small questions/problems:
– the forums are located here: http://zice.ro/forum/ so basically bbpress is isntalled in a folder called forum
– the links to the forums looks weird, notice the link contains forum twice? i.e. http://zice.ro/forum/forum/pluginuri
– I checked my .htaccess inside the forum folder: http://pastebin.com/f3b96dbc9 notice the rewrite base says: RewriteBase /forum/ I tried changing it to / but that doesn’t help. What is it supposed to look like?
– besides why do almost all rewrites inside that file have an additional forum inside? i.e. RewriteRule ^page/([0-9]+)/?$ /forum/index.php?page=$1 [L,QSA] is that automatically taken from the isntallation folder?
– how could I get rid of that additional forum? Looks stupid 
– bbpress sees all my registered users, but claims they have no role. I’d realy hate to have to manually edit all users and give them memebr privileges. shouldn’t there be a way to automatically promote all existing wpmu users to bbpress members?
– I tried the DEEP INTEGRAATION, but still, even if using <?php wp_head(); ?>
inside mh header.php doesn’t trigger all wordpress plugins that should be triggered when calling the wp_head – is there a way to autoamte this?
It appears, that the “admin” issue is also SSL related.
In admin.php:8 bb_auth is called with implied, default scheme “auth”.
However, later on in functions.bb-pluggable.php:145, the following code is encountered:
if ( is_ssl() ) {
$scheme = ‘secure_auth’;
} else {
$scheme = ‘auth’;
}
Which, given that is_ssl() returns true, will make the validation fail and user bounced out of admin page.
For now, I replaced ‘secure_auth’ with ‘auth’ in ssl branch as well, which appears to be a reasonable hack for me.
Thanks ck…
But, you forgot to escape .
So, the correct code is:
$url = bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\"),"\"),array("","/"),dirname(__FILE__)),' /\').'/';
BB_PLUGIN_URL is useless as there are several places a user can put a plugin. Most users also don’t know they aren’t supposed to use bb-plugins
and make my-plugins
because the powers that be refuse to ship bbpress with a pre-made my-plugins
directory.
After much trial and error and problems reported by windows users, I figured this out:
$url=bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\"),"\"),array("","/"),dirname(__FILE__)),' /\').'/';
$path=rtrim(dirname(__FILE__),' /\').'/';
Where $url is the full uri to the local plugin’s directory (ie. if you have an image in there, that’s the url to it)
The $path is the local storage path that will work in both windows and linux.
It may look like these functions can be simplified but if you do that, I guarantee you’ll break it under one environment or another.
Why the part of code of “Reply” “New Topic in this Forum” is it not editable in the template ? I must modify a core file to edit this
What’s the code to show the rss favorite link ? Thanks
Sam mentioned that he’d be making an official bbPress Codex the week after 1.0 came out… so maybe we’ll get an official one soon.
Simply installing wiki software does not a codex make.
It’s been tried a few times before and no one has taken any time to do documentation, especially on a slow 3rd party server that can disappear at any time.
It took WordPress a few years and only after 2.0 did volunteers finally get some documentation done, I expect it will be the same for bbPress.
Hi all, using bbPress 1.0, how do I add an image to a topic?
Using <img src=”path_to_image” /> just displays that code on the topic.
I think gautam2011 means outputting the path to bbPress’ plugin URL directory.
Is there a constant variable like WP_PLUGIN_URL?
I’m looking for this too! I’m porting a WP plugin over.
[EDIT]
Found it! It’s in bb-settings.php
The variable is BB_PLUGIN_URL.
Simple as that!
Thanks r-a-y, thanks Jason_JM…
I am now convinced that I need to go straight to WP MU 2.7.1 instead of upgrading to regualr WP 2.8
The thing is that I have a running site with bbPress alpha 6 integrated and didn’t figure out the best way to switch to a WP MU + BuddyPress + bbPress 1.0 configuration.
Anyway, you’re right I should make another post for it, but where? WordPressforum? bbPress forum (here)? BuddyPress forum?

The biggest trouble I am having now is to figure out how can I test all thenew configuration and set up leaving the existing site running and than switch to the new congfig, when I see that everything works properly. Copy the existing into a subfolder and with anew database? Mmmh…
+1 on WPMU 2.7.1, BuddyPress 1.0.2 and bbPress 1.0.
No issues… yet!
At the moment, WP and WPMU are separately maintained. But there are plans to merge the two codebases into one, don’t expect that in the next couple of months. More like next year sometime.
So if you’re planning on using BuddyPress in a few months, I would recommend getting acquainted with WPMU 2.7.1 since it works with the latest version of BuddyPress. This is just my advice, but I wouldn’t upgrade to WP 2.8.
Moving over from WP to WPMU is not that straightforward. You have to do a number of things in order to get things right.
Since this is straying away from the original topic, create a new thread about this and others can chime in.
no new pot in the repository, is possible force the generation manually? thanks!
You can submit plugins here:
https://bbpress.org/plugins/forum/requests
Once they’re approved, you’ll get a bbPress URL for your plugin.
I am a big fan of bbPress. One thing that has been missing has been in depth documentation. With that in mind, I have created an un-official bbPress Codex. You are welcome and encouraged to add to and help edit the information there.
It is currently rather raw and incomplete, but with help we can get going.
@Marcomail; Thanks for raising this point about a sidebar forum list. I was curious and tested out the code I posted above, and it works very well (without the table definition). I just put the forum loop into the hottags div section and it looks fine. The site link is in my previous post if you want a look, and the code I used is;
<div id="hottags">
<h2><?php _e('Forums'); ?></h2>
<?php if ( bb_forums() ) : ?>
<?php while ( bb_forum() ) : ?>
<a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br />
<?php endwhile; ?>
<?php endif; // bb_forums() ?>
<br />
<h2><?php _e('Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map( 9, 13, 'pt', 50 ); ?></p>
</div>
It tidies up the front page a lot, and there’s less need to scroll down to see the recent posts. Cheers!
@ashfame; In the example I gave, I’d just pulled some stuff out of my front-page.php, which is a modified version of Kakumei. It has tables because it came that way – here’s the fist code section;
<div id="discussions">
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><div class="hints"><?php forum_description(); ?> (<?php bb_forum_pad( '</div>' ); ?><?php forum_topics(); ?> topics, <?php forum_posts(); ?> posts)</div></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>
I read somewhere that using lists is not good (can’t remember why). I removed all the alternative line colourings to give a very simple layout, which you can see at http://mbforum.letsdoo.org.
How would I use a list to get the same layout? I once removed the remaining table stuff, but the page turned into a mess. A list will add bullets or numbering, won’t it?
It may be simple using hard-coded html tags but php
code will serve the needs of all those who are looking for that functionality.
Michael’s code seems fine (I just don’t get the point of using table, should have been a list).