Thank you for this amazing addon.
I’m sorry but I really don’t know how to get this code working. I tried to copy-paste the first github file to my bbpress-functions.php, however my website got crashed due to a string error. Can you please explain a beginner like me how to do that from scratch?
Thanks!
I’d suggest adding a tag ‘featured’ to the topics you want featured and then use the short code [bbp-single-tag id=$tag_id] to display a list of all topics associated with a specific tag. eg.[bbp-single-tag id=64]
Stumbled into a solution for this.
In this file:
/public_html/wp-content/plugins/bbpress/includes/users/functions.php
Comment out lines 34 and 35. Lines 33 through 35 as appearing in the original are shown below. Line 33 contains the comment from the original.
33 // $url was manually set in wp-login.php to redirect to admin
34 elseif ( admin_url() === $url )
35 $url = home_url();
Hate to edit the core functions, but it works.
Please note: Running Theme-my-login Version 6.3.8, bbPress Version 2.5.1, WordPress 3.8.
Hi,
I’m running WP 3.8 with BuddyPress 1.9 and bbPress 2.5.1.
I’m writing my own theme and I want to create a new WP user role, “Special Admin” which is a normal admin user but with restrictions that I’ve manually applied in my theme functions.php.
What I now need to do is to give that user the KeyMaster rights for bbPress, but I can’t see how to do that.
My site actually comprises 3 themes, and this user will use all 3, so to avoid code repetition I’m setting up the rights in a bespoke plugin I’m writing.
I thought from reading the bbPress source that I could use the filter bbp_get_user_role_map to add. Here’s the code I’m trying:
// Give the Special Administrator the Keymaster capabilities.
add_filter('bbp_get_user_role_map', 'add_keymaster_to_special_administrator');
function add_keymaster_to_special_administrator($role_map){
$role_map['special_administrator'] = bbp_get_keymaster_role();
return $role_map;
}
The problem is that the filter is never processed – I’ve thrown a die in there to check and it’s not being executed.
Can anyone tell me what I’m missing?
hi guys what code do i need to modify users profile url?
its currently pointing to:
http://mydomain.com/community-forums/forumusers/username
i just need to change the format to point to:
http://mydomain.com/membership-services/view-profile/username
wouldn’t have thought it be difficult to change but been at it over 6hrs… cant find where or what changes to make, searched google and forums and see other people asking but nothing resolved…
thanks in advance for any guidance
cheers
jay
Have you got a page associated with the forum?
If not try creating a page called “forums” with a sidebar.
This should work.
If not try adding the following shortcode to that page
[bbp-forum-index]
You can also use a plugin called bbPress WP tweaks to add a specific forum sidebar
Firstly, that field is the ‘Post ID’ and everytime WordPress creates a post, page or bbPress topic, reply etc this gets incremented. This issue could happen ‘if’ there were 100 edits to a WordPress post, page or bbPress topic etc, though I think you might have mentioned that if that was the case.
I would suggest the quickest way to see what is going on would be in ‘phpMyAdmin’ and have a look at the wp_posts table and have a look at the ID field in this table, these will match the ID’s you mention above and then you can look at the id’s in betwwen those values and the other fields should give you an idea of what content is in those posts which will help you track down the issue.
Hi, i need some help!
I run my mainsite with frontend registration and frontend user profiles like: xxxxxxxxx.com/user/anyusername
I also installed bbpress and ONLY ALLOW USERS TO REGISTER FROM THE MAINPAGE – mentioned above.
I show the Forum in a page wiht the shortcode… the forum url is: xxxxxxxxx.com/forum/
SO far it works great!
My setting for the forum user profile slug is like that:
xxxxxxxxxx.com/forum/mitglied/anyusername (“mitglied” is for “user” in german)
My Question 🙂
In the users FORUM PROFILE page i have on the left site under the users Profile the menu links. The first of them links to the users FORUM PROFILE like:
xxxxxxxxxx.com/forum/mitglied/anyusername
Now i need the same URL LINK to the users MAINSITE PROFILE wich should be like:
xxxxxxxxxx.com/user/anyusername
IN …..bbpress/templates/default/bbpress/user-details.php it calls the url for the USERS FORUM PROFILE with this line of code:
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
How can i get the users MAINSITE PROFILE URL? (xxxxxxxxxxx.com/user/anyusername)
I cant find anything in the bbpress and wordpress docs 🙁 or im not intelligent enough to find a solution… i think to remove the slugs from the url is not possible to get a desired url structure for the link. I think there must be a other filter function for the users MAIN SITE PROFILE url…???
I think i must mention this:
I already managed to show the USERS AVATAR from the MAINSITE in the forum page with this code:
<?php $user_info = get_user_by('id', $wp_query->query_vars['author']); echo get_avatar($user_info->ID, '150'); ?>
The avatar call works great – hope it is possible to get the USERS PROFILE URL too 🙂
Thank you so much!
Hey guys. I am messing around with implementing Local Simple Avatars, and BBPress, and I have an issue. My Recent Topics widget, the picture of the user who recently posted something, that image is blurry.
I have edited the code in firebug, and even when I expand the image, its still blurry.
My website is http://www.subtopic.org check it out!

ok, plan b
upload the “widget logic” plugin
This lets you set widgets to appear in certain conditions
Once uploaded, using your normal sidebar, you can set when a widget appears
You’ll see a new box appear when you add/edit each widget saying “widget logic”. if you want it to appear on a forum page type
is_bbpress()
If you want the widget to appear on other pages, but not obn the forum page type
!is_bbpress()
so you login widget would have the logic
is_bbpress()
and appear only on forum pages
If you didn’t want search on the forum page, you’d put
!is_bbpress()
on that widget and it will not appear
In theory this is all you need to do, but please make sure you have a few backups of your database, after all these years you don’t want to lose everything now 😉
alter table the_table_name_you_want_to_convert engine=innodb;
That’s the theory anyway, to enable you to use the ‘alter’ command you need to uncheck the following setting:
phpMyAdmin -> Settings -> Main Panel -> Table Structure -> Hide table structure actions
Then open a table, and click ‘Operations’ and in the ‘Table options’ section you will now see ‘Storage Engine’ where you can change this from MyISAM to InnoDB once you click ‘Go’ you will a success or error message.
Hi Stephen – many thanks for your lengthy and considered reply. You are right that a lot of the php MySQL is over my head
I believe that the issue is that between 1.5.9 and 1.6 of kunena, the layout of the database changed in more ways than renaming the tables and therefore my old-style database won’t work. My information is in the jos_fb_ format
I have tried updating Kunena to a 1.6.x version however I’m hitting other problems with that –
Uncaught Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci’ at line 9 SQL=CREATE TABLE jos_kunena_version ( id int(11) NOT NULL AUTO_INCREMENT, version varchar(20) NOT NULL, versiondate date NOT NULL, installdate date NOT NULL, build varchar(20) NOT NULL, versionname varchar(40) DEFAULT NULL, PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci.
I believe I need to change TYPE to ENGINE and have found one set of instructions for that, but they do not work so I’m backed into a different corner.
I put up a post on the kunena forum asking for help, even if I have to pay a few bucks for that – but really I only need the old database content to be transferred into the new database in the correct format, the rest of the site is to be scrapped – is it possible that the database tweaks can be done independently from upgrading the kunena installation? or can I tweak the importer to work with the jos_fb_ version – I don’t have the skills to do that but I suspect it’s a major job and probably unfeasible.
Your importer clearly works as intended and thank you for making it available, the problem I believe is most likely to be upstream but I won’t know until I can sort that bit out. Unless there is a way to make the database transfer (I can pay a wee bit) I’m not quite sure where to go next.
Many thanks
Paul
It looks like you just paste that entire code into your themes functions.php file and change the values to the ones you want 🙂
I’m not familiar with exactly what you need but bbPress JavaScript files typically live here:
/wp-content/plugins/bbpress/templates/default/js for the following 5 files:
editor.js, forum.js, topic.js, reply.js & user.js
The following should work, a few CSS & JavaScript changes came with bbPress 2.5 😉
add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
function deregister_bbpress_styles() {
wp_deregister_style( 'bbp-default' );
}
This is a start…
https://gist.github.com/ntwb/8037110
add_filter ( 'bbp_before_has_search_results_parse_args', ntwb_bbpress_custom_search_results);
function ntwb_bbpress_custom_search_results() {
$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
$args['post_type'] = $default_post_type;
$args['orderby'] = 'date';
$args['ignore_sticky_posts'] = 'false';
$args['order'] = 'DESC';
return $args;
}
Just need to work out how to parse the other $args :/
https://bbpress.trac.wordpress.org/browser/trunk/includes/search/functions.php
https://bbpress.trac.wordpress.org/browser/trunk/includes/search/template.php
An easy way would be to follow this: https://codex.bbpress.org/theme-compatibility/
Then empty the bbPress CSS file, you can then use a caching plugin to mash css files together and limit requests so the extra file being requested wouldn’t hurt too much.
Hi, I want to disable the default bbpress .css file. I searched through the forums and found several solutions, but none seem to work.
I used to deregister bbp-default-bbpress with the code below, but that doesn’t work anymore after the WP 3.8 upgrade.
add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
function deregister_bbpress_styles() {
wp_deregister_style( 'bbp-default-bbpress' );
}
WP 3.8
bbpress 2.5.1
Thanks!
I think you will find the docs for that reference the_content in a WordPress context.
For bbPress things are similar but the following best explains it though in this case it was related to Jetpack, the methodology is still the same though.
https://bbpress.org/forums/topic/social-media-share-button-missing/#post-125857
This won’t work out of the box, and is by design. Jetpack hooks sharing options to the end of the ‘the_content’ filter. bbPress doesn’t use this filter, because blog content doesn’t have the same rules as forum content does; they work differently. To make it work, Jetpack’s sharing options would need to hook into bbp_get_topic_content and bbp_get_reply_content instead.
Someone could write a piggyback function to do this, but it may be more difficult than this first step once you’ve gotten this far. Replies don’t use the same “premalink” logic as topics, forums, pages, and posts do, since they are technically children of topics. There could be other quirks, too.
The best place to start would be the WordPress Plugin Developer Center
https://wordpress.org/plugins/about/
And checkout the bbPress Codex https://codex.bbpress.org/context/developer/
Currently the new feature (bbPress 2.5) of Subscribe to Forum returns plain text email. Perhaps this was a conscious decision to implement it in that way. I’d implore either changing the content-type default to TEXT/HTML or be given an option within the admin settings.
Typically you would only need to add the following:
add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
…before @wp_mail
Yes, that was what I inferred by ‘back end’ & ‘front end’ that I tried it from both places that we can create topics, the front end and the back end.
The one thing I did do, that I have just tested against was I had copied and pasted the the ‘content’ from the back end to create the topic in the front end.
I just manually typed the following into the ‘front end’ for single quote ', double quote " and
`
tilde symbols.

I am also using a clean install and the Twenty Thirteen theme so like yourself I am a little perplexed as to why we are seeing something different.
Your background image doesn’t stretch full width, so you would have to look at either making it longer, or removing it and just have a solid colour.
The code can either go inside your style.css or if you want to do it properly you can follow the instructions here: https://codex.bbpress.org/theme-compatibility/ and then edit the files inside /css/ in your theme files.
I would highly recommend looking into learning a little CSS, even a small amount can let you achieve a lot in bbPress and even WordPress.
Something you can do for example is: #bbpress-forums { background-color: #ffffff; color: #000000; } – this is just an example.
Good luck! 🙂
I would recommend learning a bit of css, even a little CSS lets you do amazing things with bbPress and even WordPress!
Some like: bbp-title { line-height: 20px; } This is just an example. I don’t know the exact html of your website.
Good luck!