Here comes the functions.php code:

And here comes the bbPress code:

You could install the BuddyPress plugin, which has forums listed under groups. If you decide to go with this option, make sure to do a backup of your database first, just in case.
Or you could customise your forum list page using bbPress shortcodes (https://codex.bbpress.org/shortcodes/). You would just need to get the IDs of the forums. Such as:
Forums page
———–
Main forums
[bbp-single-forum id=32]
[bbp-single-forum id=1]
[bbp-single-forum id=5]
Other forums
[bbp-single-forum id=23]
[bbp-single-forum id=12]
[bbp-single-forum id=54]
[bbp-single-forum id=3]
[bbp-single-forum id=7]
[bbp-single-forum id=8]
I’m trying to create a page that includes only recent topics which would only be available to a forum role of Participant and a visibility of Private.
Creating a new page and using the short code [bbp-topic-index] doesn’t work, as the Private page visibility is based on WordPress user roles and not bbPress.
Is there a way to create an additional forum template that lists recent topics? This would not replace the main forum list view, but would be an additional page.
Still, my music forum is still only capable of using BBpress 2.1.2 – The “Automatically assign default role to new, registered users upon visiting the site.” doesn’t seem to work for me. My newly registered users cant use the forum if I update 🙁
After upgrading to 2.2.4, only the “keymaster” role gets the normal fancy post editor with a choice between WYSIWYG view and source code view.
Normal “participant” users only get the source code view (exactly like in this support forum). There’s the row of helper buttons to insert code, but you can’t switch to the WYSIWYG view.
I checked that there are no JS errors. (This is usually what prevents the tabs for switching to show up).
I figure it must have something to do with the capabilities of the forum roles, but I don’t know how I would be able to view or change these. I use the Members plugin to edit roles and caps for the rest of WP.
Thanks Justin and John for all your amazing contributions to the community. I have a few questions/thoughts…
Dynamic roles – how to edit their caps?
The switch to “dynamic” roles in the most recent BBPress has left me completely puzzled. I’m still not sure what “dynamic” is supposed to mean?!
I can’t seem to find anywhere to view and/or edit the caps of these new forum roles. I’d like to, for some reason only “keymaster” users get the wysiwyg post edit form, whereas “participant” can only see the source code pane (no, there are no js errors?!).
Roles and capabilities in WP
I have been using Justin’s Members plugin, which made roles and caps in WordPress work like I feel it should. In the same way as in Drupal core. Any number of roles can be assigned to a user. Caps are assigned to roles – never to one single user of course. One specific user will have the combined capabilities of the roles he/she has.
Am I right that the only thing keeping us from just having a happy life together with Members plugin – assigning many roles to one user – is WP core’s User Edit screen that cuts everything else but one role away when you click save? If so, this should be easy to fix by just modifying this User Edit form. Right!?
Thanks! 🙂
Hoping someone can confirm this bug to avoid this issue being skipped for the 2.3 release since it is considered critical
———————–
john the admin creates group1 – jane creates group2 (private)
when jane visits group2 to create a forum post, it is posted to group1 and everyone can view the private forum post.
tested twice with new installs wordpress 3.5.1 + buddypress trunk-6779 + bbpress trunk 4761
jane is a standard user (participant)
Does anyone know if this works, or if there is any ability to make it work? I’m manually transferring a busy forum over to bbpress.
I am trying to do something which i feel should be pretty simple.
I want to make forum/topics that are only visible and accessible by certain users i can determine myself.
For instance one forum/topic that only 2 forum users say “john” and “paul” have access to along with our admin.
There does not appear to be a way of doing this and i have tried most of the plugins the last 4 days of googling have provided.
Surely im missing something simple?
Im using the latest versions of wordpress and bbpress, just downloaded this week.
The forum in question – though not live, can be seen here: http://69.195.124.85/~youngmo7/12/shortcode-forums/
Any help or advice is greatly appreciated.
Thanks
Hi, I have BBPress installed in my wordpress GEO Theme. My site is US nationwide which means people can post their place listing for every State and City. I would like to offer the option to the place listing owners to create a private forum for their place. So, it will more than likely be thousands of private forums within my site. Is this possible with BBPress?
Thanks for your reply.
I have just tried putting something at the top of the bbpress.php file but it seems that it never even reaches that file, wordpress seems to decide straight away that the page doesn’t exist so sends it to the 404 bypassing bbpress completely….
`
<?php
/*
Plugin Name: Test add_user_to_blog with bbPress
Plugin URI:
Description: Does what it says! Menu item will appear under Users Menu in admin’s CP
Author: sontru
Version: 1.0.0
Author URI:
*/
add_action( ‘admin_menu’, ‘ad_the_wp_menu’);
function ad_the_wp_menu() {
global $bbtestpage;
$bbtestpage = add_users_page(‘bbPressBugtest’, ‘bbPress Bug Test’, ‘administrator’, __FILE__, ‘addsutoblogfunc’);
}
function addsutoblogfunc()
{
if(trim($_POST[‘username’]) === ” || trim($_POST[’email’]) === ”) {
echo ‘<h3>bbPress Bug Test</h3>’;
echo ‘<p>Activate the bbPress plugin. Add a user using this page, refresh by displaying to All Users. If there is an issue, all sub sites will appear in this user\’s My Sites drop down list.</p>’;
echo ‘<form method=”post” name=”create-user-test” action=”‘ . the_permalink() . ‘” />’;
echo ‘Username: <input type=text value=”” name=”username”> Email: <input type=text value=”” name=”email”><input type=submit value=”Create User”>’;
}
else {
$my_user = trim($_POST[‘username’]);
$my_email = trim($_POST[’email’]);
$my_user_id = username_exists($my_user);
if( !$my_user_id and email_exists($my_email) == false) {
$random_password = wp_generate_password( $length=12, $include_standard_special_chars=false );
$my_user_id = wp_create_user( $my_user, $random_password, $my_email );
echo “<p>Creating new user: $my_user with email: $my_email | Generated userID: $my_user_id</p>”;
if($my_user_id && !is_error_id($my_user_id))
add_user_to_blog(get_current_blog_id(),$my_user_id,’administrator’);
} else echo ‘<p>User: $my_user exists or email: $my_email exists! Nothing done!</p>’;
}
}
?>
`
Use with care!
Thanks for confirming the first bug. (I’ve also found that this bug can be fixed by simply saving the settings as is.)
I’ve been doing some more investigation on the second issue. It looks like it is not the add_user_to_blog function but the wp_create_user function (probably used in conjuction with add_user_to_blog) that is causing the problem. I’ve written a simple admin page (menu item appears under the Users menu) that will manifest the issue on my multisite setup.
`
[code with angle brackets removed to be posted]
`
Unfortunately, I have not been able to replicate this using a new install of WordPress MS v3.4.2, bbPress and a few sub sites and users. I will have to carry on looking to why my live MS site is causing this issue to manifest.
Thanks for your reply.
I suspect Better WP Security and bbpress and/or BuddyPress are not compatible or I didn’t figure out the right settings yet.
What is happening: one creates an account, and after receiving an activating e-mail, one fills in name and password, and after that the defeault WP login screen appears (huh) an one has to fill name and password again. I think this is where one can make an new user?
WP-login is supposed to be hidden by Better WP Security, instead some sort of redirect appears in the URL. See testforum http://www.nietdragenmaarklagen.nl
The users multiplied by night, there are 5 now. What is remarkable: these users have WP user role: subscriber and Forum role: none.
The next question is: how to secure this forum? With what plugin or settings?
Thanks.
Hello. Good day! I have installed BuddyPress Plugin on some of my sites. But earlier, I have tried running the exploit scanner plugin on those sites and it has found ‘base64_decode’ and ‘eval()’ lines of code. (Kindly see attached image). I don’t know if I would have to remove the plugin because i found out on some forums and articles that those codes are threats and can cause hijacking and injecting malicious stuffs and the likes. Looking forward on your reply regarding this matter. Thanks!
Thanks for that.. I guess i will worry about that later then and worry about the rest of my site design.
Any idea when 2.3 will be released ? just wondering as ive just started messing around with some BBpress templates and CSS so if the next release is near then i might just hold off on adding the forums for now.
Thanks for your help.
Regards, Darren
Michael, can you post a bug on trac over here https://bbpress.trac.wordpress.org/ and with some luck someone with better coding skills than I will write a patch for a future release.
(Use your same wordpress.org/bbpress.org username and password)
This site is testing the upcoming bbPress 2.3 that will be released in the near future.
bbPress does not have user ranks builtin, you must have had another plugin installed.
What does any of this have to do with bbPress?
If you have a WordPress question post them on WordPress’ support forums https://wordpress.org/support/
If you have a BuddyPress question post them on BuddyPress’ forums https://buddypress.org/support/
Hey all,
How would one go about extending the default BBpress post editor ? I would like my users to be able to add images and links.. the current editor seems very basic (I am using the latest version of BBpress)..
Even the editor used here on bbpress.org is much better than the default one.
Thanks in advanced for any assistance on this matter.
Regards, Darren
@Lynq Something went funky with the pull request I just submitted so I closed it, can you drop me an email stephen@netweb.com.au and I will discuss it with you privately.
I’m working at a WordPress site in which I want to use the bbPress plugin. Now, I want to create a link between the normal WordPress comment function and bbPress. I just want to do one thing. Under my standard WordPress blog entries, the users of my site can post comments. The comments are listed under the respective blog article. Next to each comments there the picture of the user that creates the comment. Now I want to create a link between the picture of the commentator and his bbPress profile page. When someone presses the picture of the commentator, there should be a forwarding to the bbPress profile page of the commentator. Observer of my blog can get a few informations about the commentator by that. Unfortunately I’m not able to create the link.
This is the code of my functions.php, that describes the comments setup of my normal WordPress commenting system:
And this is the bbPress php code which creates the user avatar link to the profile page:
Can somebody tell me the way how I have to modify the WordPress functions.php?
Even now, many thanks for your Help!