I password protected my most recent blog post and it is causing my BBPress forum searches (using the search widget on this page) to require the same password used for that post in order to return the search results. If I remove the password, the BBPress search no longer requires the password.
I opened a support ticket with the theme designer and he insists that it is a problem with the BBPress code rather than the theme. I was hoping someone could attempt to replicate the issue and/or help me solve my problem.
Thank you!
Hey there!
Yeah, its awesome! Never really liked bbP before I found out a way to layout the forums like that.
Here’s the way I’ve done it (looked it up somewhere, can’t remember where):
1. Create subdirectory called bbpress into your theme directory.
2. Inside the bbpress subdirectory, create a file called loop-forums.php
3. Place this code inside of it:
<?php
/**
* Forums Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php do_action( 'bbp_template_before_forums_loop' ); ?>
<?php while ( bbp_forums() ) : bbp_the_forum();
/* We print the header only if we want to show a category or if it's the first item of a no-parent forum list */
if (bbp_is_forum_category() OR !$bbp_forums_noheader)
{ ?>
<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
<li class="bbp-header">
<ul class="forum-titles">
<li class="bbp-forum-info"><?php if(bbp_is_forum_category()) { ?><a class="bbp-forum-title" href="<?php bbp_forum_permalink(bbp_get_forum_parent_id()); ?>"><?php bbp_forum_title(bbp_get_forum_parent_id()); ?></a><?php } else { _e( 'Forum', 'bbpress' ); } ?></li>
<li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
<li class="bbp-forum-freshness"><?php _e( 'Last Post', 'bbpress' ); ?></li>
</ul>
</li><!-- .bbp-header -->
<?php } ?>
<li class="bbp-body">
<?php /* If the forum is a category, we're gonna make another loop to show its subforums and sub-subforums as if those were forums */
if(bbp_is_forum_category())
{
$temp_query = clone bbpress()->forum_query;
bbp_has_forums('post_parent='.bbp_get_forum_id());
while ( bbp_forums() ) : bbp_the_forum();
bbp_get_template_part( 'loop', 'single-forum' );
endwhile;
bbpress()->forum_query = clone $temp_query;
}
else /* Otherwise, we print the forums the normal way */
{
bbp_get_template_part( 'loop', 'single-forum' );
$bbp_forums_noheader = 1; /* This prevents the header part to be printed again on next post in the loop */
} ?>
</li><!-- .bbp-body -->
<?php /* Prints the footer only if :
- it's a category
- or if it's the last forum of a no-parent forum list
- or if the next forum in the loop is a category */
if( bbp_is_forum_category()
OR (bbpress()->forum_query->current_post+1) == bbpress()->forum_query->post_count
OR bbp_is_forum_category(bbpress()->forum_query->posts[ bbpress()->forum_query->current_post + 1 ]->ID))
{ ?>
<li class="bbp-footer">
<div class="tr">
<p class="td colspan4"> </p>
</div><!-- .tr -->
</li><!-- .bbp-footer -->
</ul><!-- .forums-directory -->
<?php unset($bbp_forums_noheader); /* Needed if we have 2+ no-parent forums with at least 1 category between them */
} ?>
<?php endwhile; ?>
<?php do_action( 'bbp_template_after_forums_loop' ); ?>
That should do the trick for you! Keep in mind, General, the Guild, Off-Topic etc. that you see in my site, are all categories. Under the categories I’ve made forums where you can actually post. I encourage you to do the same for this trick to work ๐
Try the repair tools in the admin area. Tools > bbPress
The idea with the full WordPress with bbPress integration is that you can enable/disable certain features.
Some themes already come with a breadcrumb so being able to disable the bbPress one via a tickbox in the admin section would be quite handy, same goes with disabling the sidebar via a tickbox.
I’ll take a look at your theme later see what I can see, at quick glance I’m not too sure what is happening.
BParticipant
After a little digging, discovered my Custom Post Type Permalinks plugin wasn’t playing nicely with bbPress.
Problem and solution (albeit temporary) documented here: https://wordpress.org/support/topic/bbpress-topic-links-in-forums-break
Ultimately, edited the CPTP plugin file directly (ugh) line 290-something
$parentsDirs = "";
if( !$leavename ){
$postId = $post->ID;
if ( !in_array($post_type, array('topic', 'forum', 'reply') ) ) {
while ($parent = get_post($postId)->post_parent) {
$parentsDirs = get_post($parent)->post_name."/".$parentsDirs;
$postId = $parent;
}
}
}
Hi..im trying to create a forum with bbpress…i also have buddypress installed…..however, I notice when testing the forum, that all the “replies” to any forum post for some reason seems to change the avatar to a slightly smaller size, and also the Role Names seems slightly misaligned too.
The odd thing is, the First Post looks fine..it seems that this is only occurring to the “replies” that follow after the first post.
Hopefully someone can understand what I mean & make sense of this….I would appreciate any response that would help.
Thanks!
I recently read that we had a plugin for bbPress Threaded Replies which I guess is now included in the base bbPress, so I deactivated it and then completely reset the fourms. Created the following Fourm and topic.
http://home.outlandcraft.com/forums/topic/outlandcraft-beta-for-1-6-4/
Yet its still not showing the post/reply text that should be there. Does anyone have any helpful ideas that I could attempt? Thanks.
A little background, I have about 0 knowledge of WordPress and especially BBPress. The reason I am here is I am trying to help get some basic forms working that were setup an possibly messed up by a previous admin who is currently MIA. I have figured out my way around WordPress but am at a loss as to why the posts do not display within the topics. Any help would be appreciated.
This is a link to one of the forum topics that had a few post/replies but are not visible.
http://home.outlandcraft.com/forums/topic/test/
No worries
I’m currently investing an alternative solution to bbpress as I can’t find the css
Hi all, I know that to make changes to a theme in wordpress you use a child theme to avoid losing the changes upon updating the files. I am doing this and it works fine.
My issue is doing the same for a plugin. Does anyone have any idea on how to make changes to the css files and some php files without losing the changes when I update the bbpress file?
Any help would be greatly appreciated.
Thanks
Faith
Hi guys! sorry but I forgot to pin the notifications for this post so I just realized about your replies..
it wasn’t very technical actually, but I think it depends a lot on the theme you have.
if just added a conditional into the class of my page template main content and of the sidebar wrap:
<?php if (is_bbpress() || is_page('forum')){ echo "forum_layout"; } ?>
it will have to be added something like this:
<div class="grid__item main float--left <?php if (is_bbpress() || is_page('forum')){ echo "forum_layout"; } ?>">
then is all about css, so it depends on yours. but you should be able to override the interested divs, appending your .forum_layout class in this way:
.grid__item.main.forum_layout {
width:76%;
}
.grid__item.sidebar.forum_layout {
width:24%;
}
then at the same you can override the normal layout fonts, colours, etc.. if something is not considering your new style, try adding !important in this way:
width:24% !important;
hope that’ll help! ๐
Hi @avgmatt — Well, the category is kindda what I had in mind, but still wish there was a built in way in bbpress to structure a forum more like phpBB or vbullentin.
However, if you want the Categories to not be side by side..and List them under the main forum..check this link out. https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/
If you look at #1 – it gives you the exact line of code to put into your CSS to make it inline.
Hope that helps.
Hey all,
Great to hear you are working on your websites ๐
I am slowly working on a couple of new themes for bbPress and a full WordPress theme as well. The problem with just doing a bbPress theme is that I have no control over what the sidebars class or ids are so it makes it a bit problematic to remove them.
Good luck and keep on building!
I want my forum root to display the a list of forums instead of their parent categories.
I am able to do this using these shortcodes on a page I added myself:
[bbp-single-forum id=10621]
[bbp-single-forum id=10623]
[bbp-single-forum id=10625]
[bbp-single-forum id=10627]
[bbp-single-forum id=10611]
You can see this working on my forum page. This is how I want my forum root to look.
But when navigating the forum, the breadcrumbs link to the ‘real’ forum root. When I add
echo do_shortcode('[bbp-single-forum id=10621]');
to the template file of this page it adds the categories index again (just like [bbp-forum-index] would).
How could I get the individual forums on the forum root OR change the links in my breadcrumb?
Thank!
WP 3.8
bbPress 2.5.1
Website: 24Baby
.post-content #bbpress-forums p
#bbpress-forums is inside .post-content by the look of it?
I would recommend trying to get your theme working with bbPress, in the long run it will be a lot cleaner and easier for you to manage.
Is there anything in particular which is not working with your current theme?
I recently migrated a large forum from another platform. The forum is quite large (1M+). The issues I am having is that opening individual forums is slow and opening threads is pretty much the same. 20 seconds – 30 seconds sometimes. I am running the latest bbpress and the site runs on a dedicated server and had no issue with the previous forum platform.
It is truly frustrating. I would truly appreciate if someone can point in the right direction of what to look for?
I already post this topic in pollddady support forum because I don’t know who can fix this, maybe bbpress team, maybe polldaddy team…
https://wordpress.org/support/topic/polldaddy-shows-rating-on-bbpress-forum
Hi,
As title said, Polldaddy shows rating on bbpress forums. This is not a wanted feature. I know there is option to exclude pages to displays rating. But when there are so many forums and sub-forums, we will be tired of excluding them.
Hope there will be a better solution for this.
Thanks,
The membership I am using is Wishlist Member, so perhaps you are right. I have contacted them and they reassure me that there is nothing apparently wrong with my installation of their software. They even looked under the hood, so-to-speak, in my website. The thing is, the members can log in fine and see the replies, just not the topics, which would suggest a problem of compatibility with bbPress.
Is this one of those cases when 2 plug ins just do not tolerate each other very well? have you heard of anyone having a similar issue?
Thanks for your patience with me.
Thanks. I didn’t know I had a .post-content p as well as a #bbpress-forums.post-content p.
I’ve removed the first one and that seems to have fixed my problem.
Thanks!
Do you mean the margins between the post and the date of the post? Because it seems like the opposite actually fixes the problem (your first CSS bit in your post with 0 margin).
You also seem to have these two in your CSS:
#bbpress-forums .post-content p
and
.post-content p
Both are doing the same thing, so you could have a conflict with your CSS there. Remove one of them entirely and work with just the one you keep. Be sure to refresh your cache (ctrl+f5) after saving the change in your CSS file.
I am new to CSS and trying to change the formatting of my post-content div. My forum home page, and topic pages look okay but the margin in my post content page isnโt quite right. I can fix it by inspecting element and performing the change below, but then it reverts to being broke again.
I change it to this:
#bbpress-forums .post-content p {
margin: 0px 0px 0px !important;
display: block;
}
but then it reverts to this:
#bbpress-forums .post-content p {
margin: 0px 0px 20px;
display: block;
}
Any idea what Iโm doing wrong? Forum is here:
http://www.planitnz.com/new-zealand-travel-forum
I am new to CSS and trying to change the formatting of my post-content div. My forum home page, and topic pages look okay but the margin in my post content page isnโt quite right. I can fix it by inspecting element and performing the change below, but then it reverts to being broke again.
I change it to this:
#bbpress-forums .post-content p {
margin: 0px 0px 0px !important;
display: block;
}
but then it reverts to this:
#bbpress-forums .post-content p {
margin: 0px 0px 20px;
display: block;
}
Any idea what Iโm doing wrong? Forum is here:
http://www.planitnz.com/new-zealand-travel-forum/
Hi,
I have spent the better part of two days attempting to install bbPress on my site. I have come to learn that it’s my theme. While I do not want to abandon my theme, I do want to use bbPress. I have a few questions.
I can set up a subdomain. Is it possible to set up bbPress this way AND not require my users to set up a separate login? I have read something about Multi-site and have read that having multiple sites with the same login can be difficult. Is there an easier way?
I suppose I’d like to know if I do install bbPress on a subdomain is there a plugin that you’d recommend that would bridge my users login info to this installation from the main site.
Thank you in advance for any assistance,
Mike