Could try this:
add to template: <?php bbp_forum_id(); ?>
This way you’ll see the ID-number of a forum when you display it.
Say, forum 1 has number xxx, 2 yyy, 3 zzz.
Remove the line above from your template.
Add this to the sidebar:
<?php
$forum = bbp_get_forum_id();
if ($forum == xxx) {
echo ‘code forum 1’;
} else if ($forum == yyy) {
echo ‘code forum 2’;
} else if ($forum == zzz) {
echo ‘code forum 3’;
}
?>
If you want to add a shortcode, you can do it this way in php.
echo do_shortcode(‘[shortcode]’);
Hope this will work 🙂
Hi R,
Removing the search bar is easy; it’s a bbpress option. I don’t know the exact option description, cause my bbpress is in dutch, but should state something like this:
[forum options] –> [allow to search through all of the forum]
To remove the forums link the ‘ugly’ way, just add this to your .css file:
article.forum h2.entry-title a { display: none; }
I heavily edited all of my templates (both wp and bbpress), so don’t know how to remove the HTML, but I guess you’ll find your code in a content(-xxx).php file.
The text ‘Forums’ is probably echo’d by the_title()
Hi, this is a css conflict issue… find it in your css:
.reply a {
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
bottom: -2px;
display: inline-block;
font-family: 'BebasNeueRegular',sans-serif;
font-size: 0.875rem;
font-style: normal;
height: 20px;
padding: 6px 10px 2px;
position: absolute;
right: 0;
}
Now you try to remove: position: absoloute…
And they appear in correct position.. You must to change your css style.. If you search in this forum have other person wich your same problem…
I also do that but no change. i face same problem
Note: I am displaying forum on page(in wordpress)and use code
[bbp-forum-index]. Am i using right?
Thank you for that link.
In all honesty it doesnt make much sense to me as im not very good with coding etc.
I was hoping ti was a simple , find this file delete this code.
But thank you
That seems odd, can you refresh your permalinks and also run the repair tools on your forums and let me know the results.
https://codex.bbpress.org/repair-forums/
This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.
You will want to take a look at modifying some templates for your theme, details on getting started with this are here: https://codex.bbpress.org/theme-compatibility/
Trying to reproduce your issue and I cannot reproduce it accurately, if I search for a password protected topic I actually see both the topic and the reply in the search results, you should also see both.
I presume you are creating these (or protecting them after the fact) in the backend?
(/wp-admin/edit.php?post_type=topic), what I assume should be the case is that if you are manually protecting the topic you should manually protect the replies (/wp-admin/edit.php?post_type=reply) also.
In short bbPress doesn’t support password protected forums, topics & replies officially, yet. There is ‘some’ support in the backend and partially in some of the templates but we haven’t got ‘all of it’ in bbPress yet.
You will also have issues when browsing the topics via eg http://example.com/topics/ and not see the actual topics list. There are probably a few more places where this will break also.
Create a ticket on trac to remind us to look at this for a future bbPress release.
(It will also act as a subtle reminder to keep it in mind whilst other code is written)
https://bbpress.trac.wordpress.org/
Hello, I am trying to remove the Header 2 that says forums , please see the attached picture and the search box. I dont know much about code, but I do the inspect and can delete it but I dont know the actual files to remove this.
Can anyone help please.
what i need to remove: HERE 
What i need as end result : HERE
@antonyc You can change the ‘Forum Root’ in bbPress settings
See the docs here for the hows and where https://codex.bbpress.org/forum-settings/#forum-root-slug
And @ricov4 if you have SSH acces try
netstat -anp | grep -i mysql
@freewpress,
1. copy file loop-search-reply.php to your theme folder
2. Open it and find <?php bbp_reply_content(); ?> in line 57 or near it.
Change it with
<?php if ( !post_password_required(bbp_get_reply_topic_id()) ) { bbp_reply_content(); }
else {
?>
<span class="your_message_class">Sorry, you can't read this reply.</span>
<?php } ?>
Anyway, I hope the plugin authors check this issue.
OK, now I would like to change something in the template of the shortcode. Does anybody know where I can find these?
AFter 1 hour searching i found it 1 minute after posting this question….
<?php echo do_shortcode(‘[bbp-topic-index]‘); ?>
thanks anyway
Does anybody know how I can use a shortcode outisde a page or post?
Im not that much of a code reader…
I need a some code to add to the shortcode or the “sourcecode”.
(to add a forumpart to a .php file)
Thanks!
Hi Jhon james.. I just followed your video tutor bbpress on youtube, maybe I have missing html if possible check my setting plss http://new3dline.com/forums/ how resolve the code?
Thk you
To just change the text you can use a function.
It is a good idea to create a child theme of Twenty Eleven first so that you can use automatic updates without losing your work (there are instructions on how to create a Child Theme on the WordPress codex).
In your child theme folder, create a functions.php file and add this function: http://pastebin.com/CBaZjNCq
I don’t know whether this is a common problem or just mine. But if you use password protected topics you better check your forums to be sure your secret discussions aren’t read by everyone.
When a person enters the password protected topic name in the Search field, it shows the list of replies without any restrictions. While the title says that the topic is protected, the content of the reply is not hidden at all, and anyone can read it.
I fixed it with adding post_password_required check to the loop-search-reply.php file, but I think this should be double rechecked somewhere in the plugin code.
I tried a few themes including twentythirteen, looks like the problem doesn’t depend on a theme.
Hi guys, 😀
Thanks for all the incredible work you do on BBPress!
I’m using WordPress 3.6.1, BuddyPress 1.8.1 and BBPress 2.4.1
The page titles for wordpress and buddypress have been fixed.
However, BBPress has completely stopped interacting with Buddypress. By this I mean no new topics, posts, mentions or any action made by my members in BBPress are showing in their profile activity or in the ‘Notifications’ section of the WP admin bar.
I’ve also added this code to a base ‘Forum’ page:
<?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
<?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
And in the topic section the ‘Forum’ select field has ‘No forum’ as the default selection. Rather than taking the first forum as the default as in BBPress 2.3.2.
Thanks!
@manuxel
For the smileys I think that it is a better idea to replace ::) with 🙄 (: roll :).
Anonymous User 9588477Inactive
@stephen, thanks for your comment! I have solved the problem! I have doenlaod the translations .po and .mo from the /dev branch and upload those 2 files to wp-content/bbpress/languages/ and rename the files to bbpress-nl_NL.po & bbpress-nl_NL.mo
Can’t see anything wrong with your code is_bbpress()works on my conditional statements