Hello everyone,
I would like to know if and how I can assign a default role in bbpress for users who registered. I have my forums set up that people who are not registered at all cant see or access some forums, while registered users can see and access those forums. Right now I have to manually assign every new registered user to that specific group. Is there a option I can link the wordpress role of participant to a group in bbpress?
it is in
\bbpress\templates\default\bbpress\form-reply.php
However it would be easiest to change the text using a function which you put in your functions file
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'old text' ) {
$translated_text = 'new text';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Functions files and child themes – explained !
no i dont want to do that , its harder for me to design the look of the widget.
here let me explain a little bit more on why i want to hack your shortcodes plugin to show recent replies.
well first i want my recent replies (and also recent topics) to look sort of like any recent comments widget. im going to use jetpacks recent comments on their website as an example.

I have already pretty much made a copy of your shortcode plugin , edited it and threw it in my functions.php and put the shortcode in the visual editor widget by blackstudio
heres what it looks like vs the default recent topics widget.

now to make a replies widget with your shortcode all i have to do is rearrange code and use css to style everything together.
to make it look like its showing recent replies, i just show the latest reply authors avatar , their name and what topic they replied on and im done.
The only problem when doing this is if there is no replies on a topic , it would just show the topic author instead.
Plus if you can figure this out i can also make a hack to make a replies archive. Which would be cool for something else i might do and ILL share it all when im done.
i just need help on only showing topics with replies instead of all topics. if that is possible.
you’d do better to just steal the replies widget I wrote for private groups
download
https://wordpress.org/plugins/bbp-private-groups/
and then open up and edit
includes/pg_forum_widgets.php
line 464 onwards has the replies widget, I’m pretty sure that lines 539 to 542
//PRIVATE GROUPS Get an array of IDs which the current user has permissions to view
$allowed_posts = private_groups_get_permitted_post_ids(new WP_Query($query_data));
// The default forum query with allowed forum ids array added
$query_data['post__in'] = $allowed_posts;
is all that’s added to the orginal code, so remove those lines.
and line 574 contains the size
you can just fork all that to the end of the file into your functions file
I managed to get user profiles and admin editing privileges to work after changed the url style to default instead of post name. But even after setting the user edit post time to 99999 I cannot edit a post as a user. I disabled all plug-in except bbPress and it still would not work.
1. Is it possible to disable the Text editor, hopefully with CSS?
yeah , heres a way
I dont know for sure if the visual editor is displayed by default when you see the reply form.
post it anywhere where you can put custom css
in your child themes css stylesheet
the jetpack plugin module custom css
a standalone custom css plugin
#bbpress-forums div.bbp-the-content-wrapper div.quicktags-toolbar {
display: none;
}
#bbpress-forums .wp-editor-tabs {
display:none;
}
Hi Guys,
I have a similar problem. I have the bbpress default search function on my main forum (forum-idex) but searches have no results. No matter whether I search for “sub-forum titles or topics.
I would like all “topic tags” to from all “sub-forums” to come up as a result.
Is this possible? What do I have to do?
Thanks!
Hello,
After recently updating my bbPress to 2.5.4 I have been getting people tell me they can’t edit their posts’s after posting. I have read that Remapping existing users to default forum roles would correct this. However, when I try this approach all I get is a blank screen. When user’s click on the Edit button they get redirected to a link similar to the following:
Edit Link: http://www.somewebsite.com/forum/reply/220120/edit/
Redirected Link: http://www.somewebsite.com/forum/reply/220120/
Hi Stephen,
Does
https://updraftplus.com/forums/topic/updraft-migration-issue/?theme_override=1
work (leaving aside the ugliness of an unconfigured default setup for that theme) for you? I’ve not had a failure yet.
David
Hi everyone,
Any one know how to filter topics on date base. means i want to list all last 5 days topics.
i see code this code in function bbp_has_topics( $args = '' )
$default = array(
'post_type' => bbp_get_topic_post_type(), // Narrow query down to bbPress topics
'post_parent' => $default_post_parent, // Forum ID
'meta_key' => '_bbp_last_active_time', // Make sure topic has some last activity time
'orderby' => 'meta_value', // 'meta_value', 'author', 'date', 'title', 'modified', 'parent', rand',
'order' => 'DESC', // 'ASC', 'DESC'
'posts_per_page' => bbp_get_topics_per_page(), // Topics per page
'paged' => bbp_get_paged(), // Page Number
's' => $default_topic_search, // Topic Search
'show_stickies' => $default_show_stickies, // Ignore sticky topics?
'max_num_pages' => false, // Maximum number of pages to show
);
is it possible to pass date filter in function bbp_has_topics argument.
ok, on the specific forum search, it is probably plugin or theme related
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
but since you say you don’t really want that, you could disable the forum search
Layout and functionality – Examples you can use
and to add forum searches to the main search use
function filter_search($query) {
if ($query->is_search) {
$query->set('post_type', array('post', 'pages', 'forum', 'topic', reply'));
};
return $query;
};
add_filter('pre_get_posts', 'filter_search');
This is untested code, I copied it from another forum, but should work, come back if it does or doesn’t to help future readers of this thread!
Sun 17 Aug 2014, 12:17 pm
Thanks, Robin.
Nope, it’s not a plugin problem. But I found the solution in another thread, and might as well pass it along here. This issue seems to come up for a lot of people, and it is v. perplexing.
The problem was a “permissions” issue. Somehow, I don’t know how, in my admin WP user account, my bbPress “role” was reset to “participant,” the default bbPress level for all new WP users. This may have happened because I deleted and reinstalled bbPress. Dunno, but participants do not see the forum links in the dashboard.
Fortunately, a stupid-but-effective solution: Create a new WP user, set as “admin.” Then set the bbPress role to “Keymaster.” As soon as I did that, the forum links in the dashboard reappeared.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Could be a number of things.
1. check that you are not present on multiple screens in the same browser, sometimes leaving yourself logged in on one screen whilst logged out on others can do funny things.
then it could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
@crushdg
I doubt that would be possible.
This script reverses the logic
so normally the database would have a list of forums you have manually subscribed to.
This changes it to have a list of forums you have manually unsubscribed to, thus you are subscribed by default.
So the code would not work to just have one forum.
Robkk,
This worked perfectly!!!! THANK YOU!
For anyone that is looking to do this, the following text below is what I saved in my notes:
“There is a custom theme for bbpress which is mainly used for Envato marketplace plugins or theme authors support. The link can be found below:
https://github.com/syamilmj/Supportte
Find meta-private.php with in the bbpress folder – The text can be found here:
https://github.com/syamilmj/Supportte/blob/61eff729838a28d0b88d6aeab6352a5368687ab8/bbpress/meta-private.php
Open FTP or File Manager and create this path:
public_html > wp-content > themes > YourTheme or YourChildTheme, then create a new folder called bbpress (all lowercase!!).
Inside the new bbpress folder, create a .php file named meta-private.php (you can find any .php file inside public_html, duplicate it, move it inside the bbpress folder, then rename it and replace the text inside with the default text below).
<div class=”bbp-template-notice not-logged-in”>
<p>Sorry, this forum is for verified users only. Please “>Login or “>Register to continue</p>
</div>
You can edit this to reflect whatever you’d like. I changed mine to:
<div class=”bbp-template-notice not-logged-in”>
<p>Sorry, this forum is for verified users only. Please Login or Register to continue.</p>
</div>
Now that it’s inside your theme or child theme, this text is safe for upgrades and the Login / Register links are no longer links!!”
Cheers, Robkk!! Greatly appreciated!
I’m trying to get rid of and change the layout of the: bbp-template-notice info and bbp-breadcrumb, in the topics index. So Home>Forums>Test Topic. I’m having trouble figuring out if there is a bug, or I’m missing something, or I just have the template hierarchy wrong.
How I believe the template hierarchy works: archive-topics.php>content-archive-topics.php>loop-topics.php>loop-single-topics.php
I figure the changes I would need to make would be in archive-topics.php or content-archive-topics.php, but when I delete the <?php bbp_breadcrumb(); ?> as a test it’s still there.
When I make changes to loop-topics.php and loop-single-topics.php, it works fine. It’s just those two page templates.
I’ve tried editing the bbpress.php file from:
<?php /* Start loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; // End the loop ?>
and swapping the content for <?php bbp_get_template_part( ‘content’, ‘archive-topic’ ); ?>. That worked but it messed with my forums index.
I’ve taken a look in the codex to try and figure out what I’m doing wrong and feel lost.
tep-by-Step Guide to Creating a Custom bbPress Theme
Getting Started in Modifying the Main bbPress Template
Sorry if this is a bother, but I’m completely stumped as to what’s going on
Not sure why you only want editing in the backend. Indeed I’m not sure why you want anyone to have access to the backend at all, apart from admins !
However presuming that you actually just want no-one to change their profiles
You will need to modify
wp-content/plugins/bbpress/templates/default/bbpress/user-details.php
make a copy of this file, and put in in a directory called bbpress within your theme, so you end up with
wp-content/%your-theme-name%/bbpress/user-details.php
The take out lines 63-69
<li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
<span class="bbp-user-edit-link">
<a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
This will stop any front end editing
Hi there
I’m not too sure if I’m in the right place to ask/mention this, but I live in hope 🙂
I am working on a site at work and we’re using BBPress for a forum. So firstly, ty very much for making BBPress so intuitive to extend and customise on a theme level! 🙂
Secondly, I may be doing this wrong but when I enable multi threaded replies and use the bbp_list_replies() function to list the replies I noticed that it doesn’t seem to use the custom walker I pass to it. So I thought that maybe there could be a conditional in said function using $r[‘walker’] or defaulting to BBP_Walker_Reply?..
Or I could be totally confused? 8)
Thanks for the great work,
[WP ver3.9.2; BBP ver2.5.4]
Seems a little weird, if you set the number of rows to 100 which is the default it should only take a few seconds before you see either “Converting forums” or “Converting Users”.
I would double check your phpBB config.php file (it should be in the root folder of your phpBB install.
e.g.
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli';
$dbhost = '';
$dbport = '';
$dbname = 'your_db_name';
$dbuser = 'your_db_user_name';
$dbpasswd = 'your_db_user_password';
$table_prefix = 'phpbb_';
$acm_type = 'file';
$load_extensions = '';
Make sure you use the correct table prefix.
I recently switched to the Graphene theme (which I must say is quite awesome!!!), mainly because I wanted something that I could integrate a forum into without creating a separate site or subdomain. Plus this was the only theme that looked great right out of the box.
With that said, if this is a bbPress issue and not a theme issue, I will certainly seek help in a different location. I am horrible with code but with simple instruction, I could navigate my way around it.
I uploaded the bbPress plugin, created a page, and promptly began placing the shortcode in the widget areas for loggin in and registering. The default log-in was already filled out for me and I clicked the ‘Log-In’ button and when I refreshed my screen it took me to the home page. I reopened my WP log-in screen and when I logged in, it took me to my home screen again, not my WP admin panel. Am I doing something wrong? I want to be able to integrate everything in this theme without having to leave and log-in to an entirely different site. Please help.
Thanks
bbPress should work fine using the ‘default’ settings including the default slugs:
The shortcode should be [bbp-forum-index] (You used bbb and not bbp)
The Japanese translations for forum and forums are the same, these should be different based on how the Japanese language uses plurals in this context as if they are the same this will cause a problem for bbPress, I had to use フォーラ so it was different from フォーラム 😉
Here it all is working for me, my domain is http://en-au2.wp.nw/build, yours would be http://careerkokusai.com/ and everything is using ‘native’ Japanese for the permalinks 🙂
bbPress Settings (Slugs/Permalinks) https://cloudup.com/iFKwgluP_5g
Page with (Back end) [bbp-forum-index] https://cloudup.com/icgezwdk6Vk
Single Page (Front end) with Menu link showing the above page フォーラム https://cloudup.com/iy4i3RksjRI
Forums (Front end) https://cloudup.com/iltDJlyKqXK
Single Forum (Back end) https://cloudup.com/iAvcWJ7qBs6
Single Forum (Front end) https://cloudup.com/i061G0kJwtx
Single Topic (Back end) https://cloudup.com/i-hfrIBhgT0
Single Topic (Front end) https://cloudup.com/iOMAKPqAlmu
As I don’t own a Mac, yet, I think this is the issue in that your MAMP setup is using port 8888:
https://bbpress.org/forums/topic/bbpress-2-3-now-available/page/3/#post-133305
The only difference between XAMPP and MAMP (free) is that XAMPP uses “localhost” host name, while MAMP (free) uses “localhost:8888″ when using MAMP ports by default (MAMP pro uses “localhost” that tell why it works OK with you). So I went to MAMP preferences and changed the ports settings to use default Apache and MySQL ports to use “localhost” instead of “localhost:8888″, and finally posting topics and replies is available again 🙂
Even better I setup a virtual hostname manually in MAMP (free) and the everything works fine.
I hope this will help others with the same issue with MAMP (free). Thanks for your time
Apologioes if I’m being thick, but line 29 of bbpress/templates/default/bbpress/form-reply.php says
<legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
Is that not the line you want to get rid of/change?
yeah just remove the “topics” and “posts” words in the header by the “latest post” word
it should be in loop-forums.php
the rest i guess you can look at the default bbpress stylesheet and use that to help you get it looking right.