Well this is still an issue and the very first problem I ran into within minutes of installing bbpress. I am no expert as I am new to this plugin but what seems to be a workaround for this is to just name both the forum root and the single slug with the same name (in most cases, “forum”). You will get a red warning in the admin that says “Possible bbPress conflict: Forum slug” but so far it seems to make no difference on the front end. Am I setting myself of future disaster here though?
I am a little concerned with my choice of bbpress now as I see this has been a well voiced topic of concern for over 7 years and nothing has been done to fix it. Should I be considering a different solution altogether?
In loop-fourms.php file add your custom “Add Topic” button:
<a href="/new-topic/?ForumId=<?php echo bbp_get_forum_id()?>">New Topic</a>
Add this code to a custom .php file or directly to your theme function.php file:
//BBpress New Topic Button //
add_shortcode('wpmu_bbp_topic', 'wpmu_bbp_create_new_topic', 10);
function wpmu_bbp_create_new_topic(){
if ( isset($_GET['ForumId']) ){
return do_shortcode("[bbp-topic-form forum_id=".$_GET['ForumId']."]");
}else{
return do_shortcode("[bbp-topic-form]");
}
}
//End BBpress New Topic Button //
Make sure you’ve created a custom page titled “new topic” with a friendly url of “new-topic”
Place the new shortcode we registered into this page:
[wpmu_bbp_topic]
This will automatically display contact create form of the selected forum if ID exists in the URL otherwise fall back to default shortcode.
You can see it in action on my site:
http://artofwargaming.net/forums/
Hope this helps anyone who was looking to create a “new topic” button.
I can’t take credit for this, this was all thanks to the help of the guys over at WPMUDEV – Sajid, Anang, and Tyler.
No i don’t have any topics just yet, i’m really just trying to get it styled at present and yeah, i’m using cloudflare, is this not something that can be done with bbpress then? To be fair, i am new to all of this forum malarky so don’t really know what the do’s and dont’s are but i learn fast and can take on anything people would suggest. I just want to get my forum up and running 🙂
Hi Pascal,
Thanks for answering so quickly. I installed WordPress, then I added my Weaver Xtreme Pro template, and then I added bbPRess.
At this point I am not using any plugins that deal with members’ roles or anything like that. It pretty much plain vanilla settings except for the settings.
I do have the settings set for auto role but it doesn’t appear to be saving the “Participant” role that I preset.
So far we are still in testing mode so we haven’t promoted the site to customers yet. I just noticed that the logins that I was creating didn’t have the forum role specified in the profile.
One of the issues is that someone subscribes to the site, they get the subscriber role in WordPress but that doesn’t automatically give them a forum role. Most of the people that we are dealing with are “low tech” so If they have to log on and give themselves a forum role that will make things difficult for them. Is there a way to automate the process?
Thanks again,
Andy
Hi Andy,
1. If you just installed bbPress on top of WordPress, then your usermanagement is done by having normal users in WordPress (see the extra fields like setting the forum roles)
2. Are you using any plugins that deal with members or roles ? If you have set the ‘Settings > Forums > Auto role’ it should be sufficient. Try also to run the repair tool “Remap existing users to default forum roles”
For the forums on the frontend, have a look at this: https://bbpress.org/forums/topic/is-it-possible-to-allow-all-users-create-new-forum/
Hope it helps,
Pascal.
Hi there, i’m pretty new to this so i may well be doing something wrong but i just installed bbpress, got the bbp style pack to make it easier to pimp out my forum and i made 1 single change to see what was what… I changed the background colour to black from default. I went out of the room for 20 minutes, came back and went to make more changes but now it doesn’t want to change anything at all. I’ve tried changing the background colour back with no effect. I’ve disabled my caching plugin to see if that was having any effect but nay…..
I’ve even deleted ALL options from the bbp style pack options but it’s kept the styles on the page which is even stranger.
Please can someone help with this if they can as i’ve spent a whole week attempting another forum plugin only to realise that it was pony and i should have gone with this one in the first place but now i can’t this one to work either haha. 🙁
my website is 10tu8.com but it’s nowhere near a complete site just yet.
Thanks in advance for any help at all 😉
Neil
Hi,
Most probably a security issue or a redirect to your login page that does not work. If you have any security plugins (like Theme my login) or captcha (like in Jetpack), try to deactivate. Somebody found this: https://bbpress.org/forums/topic/users-unable-to-register-and-login/
Just be careful : Editing .htaccess can block your complete site. Make sure you have a contact point with your provider and you know what you are doing
Defaults for the .htaccess can be found here: https://codex.wordpress.org/htaccess
Let me know if it helped,
Pascal.
1.
Instead of using the shortcodes, download this loop-forums.php file and place it in your child theme in a folder called bbpress.
https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout
2.
I think this would show up if you use the file above. It might not have nice color coordinated categories though.
3.
Download this bbpress.php and put it in the root of your theme to have full width forums.
https://gist.github.com/robkk/f51753f1c7a5641796d8
Hello. I want to disable the edit profile link on my forum using bbpress, which I have found the following code to add to functions.php. It works, except for next to the username and profile pictures there is a comma, and it looks messy… anyone with php knowledge know why this code is producing a comma next to the username and profile pic?
Thanks
<?php
add_filter( ‘bbp_get_author_link’, ‘remove_author_links’, 10, 2);
add_filter( ‘bbp_get_reply_author_link’, ‘remove_author_links’, 10, 2);
add_filter( ‘bbp_get_topic_author_link’, ‘remove_author_links’, 10, 2);
function remove_author_links($author_link, $args) {
$author_link = preg_replace(array(‘{<a[^>]*>}’,'{}’), array(“,”), $author_link);
return $author_link;
}
?>
I use the following code on a webshop to display all tags being used on the website in the custom post type product
<?php
$terms = get_terms( 'product_tag' );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
foreach ( $terms as $term ) {
print '<option data-filter="tag-'.$term->slug.'"value="tag-'.$term->slug.'">'.$term->name.'</option>';
}
} ?>
How do I find the equivalent for bbPress to `product_tag
Hi Chris,
What I know is that forum moderation is being completely reviewed and improved a lot for v2.7 of bbPress. If you want to meet today those requirements, you might need a combination of plugins and custom development to get there.
And to answer your next question: No, I don’t know when 2.7 will be released. It’s all done by volunteers in their spare time.
Pascal.
Hi – thank you. I should have stated this in my post (sorry) – the BBPress forums aren’t locked – in the footer there’s a nav tab Forum 2 – those are the BBPress ones I am trying to get configured.
I just finished all this. Total pain. I had to reverse engineer the DB posts, then look at the bbpress functions to see what ones I could use, or simply which queries etc I could utilize.
Hi all
I have a question before I move forward installing bbpress. I will be creating a forum for my company that will have different categories based on company departments. Each category would be assigned a moderator within that department in the company and I need different moderators to be notified of new posts within their category.
In other words, can you assign different admin notifications depending on the category a post is created in?
I hope that made sense and thank you for the help.
Chris
Hi Trent,
For bbPress: both a topic and a reply are inserted in the ‘posts’ table. The thing that mainly changes is the ‘post_type’. Then the meta data (dates, parents, …) go into the ‘post_meta’ table. So the global idea is exactely like posts, yes.
Pascal.
TK, I’ve already extended an existing plugin of mine to post regular wordpress posts to the website using the wp_insert_post function. Is that the same function I need be using to post to bbpress, just with additional metadata?
Link to your site as @casiepa suggested, so we can check on it and make sure.
You can try some troubleshooting to see if this only occurs in your current theme. You can try the other additional solutions to troubleshoot too.
Troubleshooting
There is an issue with the .hentry class that bbPress is inheriting for its posts. This is a common theme conflict.
#bbpress-forums .bbp-body .hentry {
margin: 0;
}
Some themes are not handling well the replies. Could you try to add this somewhere as extra css:
#bbpress-forums .reply {
font-size: inherit;
padding: inherit;
position: relative;
right: inherit;
top: inherit;
}
Pascal.
Hi – running BBPress a modified version of the TwentyFifteen theme but i am finding my users posts are being hidden.
Tried displaying the overflow but still no joy – any suggestions would be so needed!
Kind regards
Alix
Hello peoples,
We have a WordPress site running WP 4.3.1 and bbPress 2.5.8. We have a instance coming up that we would like to open up one of the forums parent groups on our forum to allow anonymous posting, but keep the rest of our forums locked up.
Is this possible? Either through coding on bbPress or through a 3rd party plug-in? Hmmm
Ok, that makes sense. Again thank you very much. You just turned my bbpress forum into a much more useful forum system. Have a nice day.
It is a common theme issue related to styling wordpress comments.
Your theme has this CSS to style the wordpress comments. Thing is bbPress has an entire class for each reply which is .reply and it affected any link in a bbPress reply.
.reply a {
font-weight: bold;
float: left;
padding: 0;
font-size: 12px;
}
That worked – thank you very much 🙂 Was this a mistake in my WP theme or in BBpress?
Add this custom css anywhere you can add custom css like in your child themes style.css stylesheet or in a separate plugin.
#bbpress-forums .reply a {
float: none;
}