I added some css in the custom css plugin, in order to get my bbpress forums full-width (drawing the code from an example in these forums). Success! or so I thought.
But not quite. Now, the “members” pages associated with the pulldown menus at the upper right are “too long”–text entry/text display boxes run over into the space of my right content sidebar. When I deactivate the css plugin, my problem goes away.
(WP 4.2.2, bbpress 2.5.7, Buddypress 2.2.3.1; theme is TwentyFourteen; I was able to see the same problem previewing 2013.)
Here’s the css in question:
.site,
.site-header {
max-width: 100%;
}
.bbpress-forums .col-2cl .main {
background: none repeat-y right 0;
padding-right: 0;
}
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content {
max-width: 100%;
}
.form-allowed-tags {
display: none;
}
div.bbp-breadcrumb,
div.bbp-topic-tags {
font-size: inherit !important;
}
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
font-size: inherit !important;
}
#bbpress-forums {
font-size: inherit !important;
}
.bbpress .hentry {
margin: 0 auto 48px;
max-width: 100%;
}
@media screen and (min-width: 1008px) {
.bbpress .site-content {
margin-right: 0;
margin-left: 182px;
}
}
@media screen and (min-width: 1080px) {
.bbpress .site-content {
margin-left: 222px;
}
}
@media screen and (min-width: 1218px) {
.bbpress .site-content .entry-content {
margin-right: 0;
}
}
@media screen and (min-width: 673px) {
.bbpress .site-content {
margin-right: 0;
}
}
Can anyone help? I’d love to keep the full-width forum pages, but if it messes up the member pages, it’s a deal breaker…
And a year later I must add my thanks- I also have been able to use all this so that it works nicely, including the additional location field and with both website and/or location showing in the profile only if it is filled in…
Getting the location to show in the profile properly took a little more than the changes Steven mentions making to Robin’s code… For anyone else who might come this way here is all of it put together…
/* Add Location field to bbPress user profile page.
*/
function ntwb_user_contact_methods_location( $user_contact ){
/* Add user contact methods */
$user_contact['location'] = __('Location');
return $user_contact;
}
add_filter('user_contactmethods', 'ntwb_user_contact_methods_location');
/* Show Location in bbPress user profile.
*/
function user_profile_bbp_location_information() {
//this function adds the location to the profile display menu
$location=bbp_get_displayed_user_field( 'location' ) ;
if ( ! empty($location) ) {
$label1 = $rpi_options['item1_label'] ;
echo "<p>" ;
printf ( __( 'Location : ', 'bbpress' ));
echo $location;
echo"</p>" ;
}
}
add_action ('bbp_template_after_user_profile', 'user_profile_bbp_location_information') ;
/* Show website in bbPress user profile.
*/
function user_profile_bbp_website_information() {
//this function adds the website to the profile display menu
$url=bbp_get_displayed_user_field( 'user_url' ) ;
if ( ! empty($url) ) {
$label1 = $rpi_options['item1_label'] ;
echo "<p>" ;
printf ( __( 'Website : ', 'bbpress' ));
$url='<a href="'.$url.'">'.$url.'</a>';
echo $url;
echo"</p>" ;
}
}
add_action ('bbp_template_after_user_profile', 'user_profile_bbp_website_information') ;
Did posible use some diferent like this
<?php if (bbp_get_topic_forum_id() == bbp_get_forum_id('3263')) : ?>
this show category name for topick from number did posible use letter and from etc category general?
This work fine http://prntscr.com/73ah8d but u wont use letter not number
Is there any way instead of allowing the tag, just strip the code out?
@robkk , thanks. Actually, I had written some code like that for my website late last night. The result can be seen in action at http://dcjtech.info/forum/articles/operating-systems/linux/ . I even figured out how to migrate the bbpress-simple-view-counts data to my implementation. The migration was easy (a few SQL queries via phpMyAdmin) and not at all complex as other developers thought (https://wordpress.org/support/topic/sync-with-simple-view-counts).
I am use Sahifa from Themeforest. I put all the codes in the Theme.
Actually I already added ‘style’ to ‘span’, I added the paragraph ‘p’ as you mentioned but still the same issue!
Here’s the part of the HTML page that is treated in the function but still HTML tags appear in the post:
<p>
<span style="text-decoration: underline; color:
<a class="hashtag" rel="nofollow" href="http://localhost/wordpress/forums/search/?bbp_search=%23000080">#000080</a>
;ā>
<em>
<strong>
<span style="font-size: 12pt;font-family: arial,helvetica,sans-serif">test</span>
</strong>
</em>
</p>
Again, have I missed something?
Thanks for your help
Hope
its all self explatory really.
you can test them out by creating a test page and putting each shortcode into it to see what it does.
if you need help finding ids of bbPress post types install this plugin, then look in the certain post types section.
like say forums , you go to the WordPress back-end and go to forums> all forums and you will see all the forums post id to use for these shortcodes. It would be close to the same procedure for topics and replies.
https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/
i tried to make this and failed at it.
you can look for tutorials on the web for creating this type of thing like this.
bbPress Recent Replies Shortcode
or you can hire a developer to create this type of functionality for you.
if you need to post a job at http://jobs.wordpress.net/
you of course pass the ids of the specific forums and categories in each ()
this for category
if( bbp_is_forum_category() ) {
and i think this for forum
if( bbp_is_forum() ) {
explain to me where you put the code and how you did everything so i could see if you did anything wrong or not.
and also what theme are you using.
Iād set these to show short excerpts only
is this an option in your themes settings??
but im going to assume your theme thinks bbPress is a blog post , adn that you should create a bbpress.php file and remove any unwanted code.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
this plugin will help you find the right file to copy to create a bbpress.php file.
https://wordpress.org/plugins/what-the-file/
bbPress shouldnt have comments??
if you havent already create a bbpress.php file and remove any code for WordPress comments.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
this plugin will help find the file you have to make a copy of to create a bbpress.php file
https://wordpress.org/plugins/what-the-file/
this custom CSS should do it.
span.bbp-reply-post-date {
display: none;
}
create a bbpress.php and remove any post meta code like by (author) published (post date)
basically your theme thinks that the bbPress archive page is a blog post so it structures it like so , it keeps the forum limit low as if it was an excerpt.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
this plugin will help you find the file you would need to copy and create a bbpress.php file from.
https://wordpress.org/plugins/what-the-file/
you can use this as an alternative if you want.
https://wordpress.org/plugins/wp-postviews/
you would have to put this code somewhere in your loop-single-topic.php file in your child theme.
<?php if(function_exists('the_views')) { the_views(); } ?>
Maybe replace voice count?? or create a new column?? or just like simple view counts has like this.
function rk_bbp_postviews() {
if (function_exists('the_views')) {
echo the_views();
}
}
add_action( 'bbp_theme_after_topic_started_by', 'rk_bbp_postviews' );
heck you can even use jetpack for post views.
you have to add on to the code.
the original is this
// Span
'span' => array(
'class' => true,
),
you would have to edit it like this
// Span
'span' => array(
'class' => true,
'style' => true,
),
and probably the same thing for the paragraph tag ‘p’ , but for this you will need to just add it on like this.
// Paragraph
'p' => array(
'dir' => true,
'style' => true,
),
basically any child elements of the tag add it in the function.
Hello,
I’m creating own new WordPress theme for my website.
On the forum page I can see the forum [bbp-forum-index]
But I can’t see individual topics pages.
Am I missing any template in my theme?
@donutz Hy Peter, where can I Insert the code you wrote?
My site is in a internal server, and i didnt understand where I insert this code.
tks!
Thanks Robkk for your help! I tried the mentioned code but apparently it’s not working properly, I don’t know why! For example, I’m still having:
<span style=”text-decoration: underline; color: #ff0000;ā>test
Although “span” is supposed to be treated in the code.
Have I missed something?
Thanks for your help
Hope
I have had problems with yootheme on a project but have overcome them by simply ‘overriding’ ALL of the plugin files by copying them into the theme directory – not the directory for the ‘style’ as the warp framework calls it but the theme root directory. It seems you have to provide an override for every file to get all the different views working.
Just follow the process laid out in the codex:
https://codex.bbpress.org/theme-compatibility/
And remember to override ALL the files!
Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!
1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.
TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.
You’re welcome!!
Maya š
you insert this into a child themes function.php file or a functionality plugin
function rk_show_role_classes($classes) {
$replyid = bbp_get_reply_author_id();
$bbp_get_role = bbp_get_user_display_role($replyid);
$bbp_display_role = strtolower($bbp_get_role);
$classes[] = $bbp_display_role;
return $classes;
}
add_filter( 'bbp_get_topic_class','rk_show_role_classes' );
add_filter( 'bbp_get_reply_class','rk_show_role_classes' );
this custom css you can put in your child themes style.css file or a custom css plugin.
#bbpress-forums .bbp-body .keymaster div.bbp-topic-content,
#bbpress-forums .bbp-body .keymaster div.bbp-reply-content,
#bbpress-forums .bbp-body .moderator div.bbp-topic-content,
#bbpress-forums .bbp-body .moderator div.bbp-reply-content {
background: #f8f8f8 url(images/team-member.png) top right no-repeat;
}
now for this to work exactly like the other site , you can download this image from here, by right clicking save image as, then uploading the image to your child theme in a folder called images. Make sure its named “team-member”

Hello!
First, I want to say how much I appreciate the BBpress platform. I’ve been using it for over a year now and it has served the site well.
I have ran into an issue where every single comment ever made on posts now appear below the forums. I’m completely baffled as to how to handle this. It does seem to be a theme issue as this does not happen with the TwentyFifteen theme. Is there a way to remove showing the comments altogether on any forum page (which is preferred actually).
Has anyone had this same issue? Is there a way to simply have the comments not show up at all in the forums? Is there code that I can place in my functions.php that will make them not appear in the forums?
Any and all help would be greatly appreciated. As of now, this issue is causing some confusion and making my pages extremely long.
My site is FREEDOMcgc.com
Link to where the issue is happening: CLICK HERE
WordPress Version WordPress 4.2.2
bbpress Version 2.5.7
Buddypress Version 2.2.3.1