I want to deregister the default stylesheet that bbpress load when in compatibility theme mode
I tried with wp_deregister_style( ‘bbp-default-bbpress-css’ ) which is what I see in the header… but I think I need to filter something or remove an action
is this documented?
thank you
I’m creating a customised forums front page for bbPress, by listing forums in a different way to the bbPress default.
Essentially what I’m trying to do is replace the use of bbp_list_forums() with a second, nested bbPress loop so that I have greater control over how the sub-forums are displayed.
I know I can use the ‘before’ and ‘after’ parameters of bbp_list_forums() but that doesn’t give me as much control as I need.
The only question I found that came close was this one which doesn’t actually provide a definitive answer.
Code won’t paste nicely here so it’s over here: http://wordpress.stackexchange.com/questions/64681/creating-nested-forum-loops-in-bbpress
See the bbp_list_forums() reference – in place of that I want another “while (bbp_forums())…” loop but how do I do that without interfering with the main loop?
Thanks
-
This topic was modified 13 years, 7 months ago by
Philip John. Reason: dodgy formatting fix
-
This topic was modified 13 years, 7 months ago by
Philip John. Reason: try again
-
This topic was modified 13 years, 7 months ago by
Philip John. Reason: *sigh* linking to code instead
Hi
I am trying to remove the “Right Now in Forums” with a function but i don´t know hoe to target it. Someone how knows?
Code below:
function disable_default_dashboard_widgets() {
// Right Now Widget
remove_meta_box('dashboard_right_now', 'dashboard', 'core');
// Comments Widget
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core');
// Incoming Links Widget
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');
// Plugins Widget
remove_meta_box('dashboard_plugins', 'dashboard', 'core');
// Quick Press Widget
remove_meta_box('dashboard_quick_press', 'dashboard', 'core');
// Recent Drafts Widget
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');
// WordPress Blog Feed
remove_meta_box('dashboard_primary', 'dashboard', 'side');
// Other WordPress News
remove_meta_box('dashboard_secondary', 'dashboard', 'side');
// bbPress widget 'Right Now in Forums'bbp-dashboard-right-now
// *******Does not work right now *******//
remove_meta_box('bbp_dashboard_right_now', 'dashboard', 'core');}
if (!current_user_can('manage_options')) {
add_action('wp_dashboard_setup', 'disable_default_dashboard_widgets');
}
> newest version of bbPress is supposed to have theme compatability
It does. bbPress styles are enqueued by default. Image shows you’ve revised it and probably the template too, and you missed adding 100% width on the li.bbp-body (just a guess) or whatever container you’ve used for the page. Site URL?
If I insert a youtube url into a topic, instead of seeing the video, I see the link.
I did go into the settings and turned on oembed, both in the WP settings, and the forum settings.
Here is where it gets REALLY WEIRD:
I have the ability to switch the template on a per topic basis. If I switch away from using the built in bbPress theme and switch to a standard template, then the video shows up.
If I then edit the topic again, and choose to go back to the bbPress template, then the youtube video shows up just fine….
Is something wrong with the default bbPress 2.1 templates when it comes to oembed?
Not even sure how a template would have anything to do with it
I can replicate this issue quite easily as I can never see the video via bbPress, until I edit the individual topic template, and then revert back….
strange……
Hello, I am working on a website, and I’m trying to add the bbpress forums, I install the plugin and everything seems fine, until I want to view one of the forums, it always appear a 404 error message when I try to access example.com/forums/forum/…., this only happens when I set the permalinks to postname, because when I use the default permalink, there’s no problem and it doesn’t show the 404 not found error, anyone know what could be?
Hi, I can help you with this. I am doing the same and needed to figure it out as well. Hopefully they’ll add this in updated versions… Seems like a basic feature that can add awesome visual option via CSS. Anyways, I will assume you know a bit of CSS. For the PHP, I recommend that you create a folder “bbpress” inside your WP theme folder, i.e. wp-content/themes/yourtheme/bbpress Then go to /plugins/bbpress/bbp-theme-compat/bbpress and copy/paste the file “loop-single-reply.php” to your newly created bbpress folder from above. What this does is now make bbPress use that file instead of the default one. Now you can make changes to it and not worry about updates to bbPress overwriting your changes. On line ~ 30, you’ll see an opening DIV with id=”post-*some php”…
On the next line, enter this:
$reply_id = bbp_get_reply_id( $reply_id );
$abc_role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
Then the next line that’s already there should be:
div class="bbp-reply-author"
Turn it into this:
div class="bbp-reply-author ?php echo $abc_role ?>"
Add the bracket < before the first ?php in that above statment… I dont know why its not letting me show it.
And there you have it. The CSS class name will now contain the verbatim user role… This means that "Key Master" will actually be in the class.. No problem, just use:
div.Key { color: #abc }
to target the admin. Sure, “Master” will be in there but, but it’ll be taken as 2 different classes, “Key” and “Master”. With additional pvp, you could turn it into “keymaster” but its not necessary for 99.9% of applications and would just run more PHP. I’m literally doing this right now, so i havent checked other template files, but it’s the same thing.. So for instance, if you want to change the css in the index for only admins, to have lets say a special color link, find the template file that displays the index, add that same snippet in, and it will work the same. have fun. 🙂
Hi, please forgive me if I’m being stupid. I’m a bbpress newbie and just set up my first forum.
All is looking good. Except when I log out it takes me to the default wordpress login page. Is this default behaviour?
It’s a commercial site so I don’t want users to see the wordpress login at all if possible. Can I have it redirect to a page when logging out? e.g. back to the page they came from, or the site/forum home page?
Many thanks for any help!
I have the same problem. The forums base slug is ‘forums’ as default and so is my page, but my custom WP page is not taking precedence. The bbpress one is, which is causing problems as I can’t set page options, sidebar etc etc. Any idea’s?
hi – using wp 3.3.1 BBP – 2.0.2 i’m running into problems when editing replies. when i save it loses it’s parent association as the content of the TOPIC pulldown field usually says (no topic) –

we have many many topics but they dont default when in the edit screen.
is this a BBPress bug and/or has this been fixed in the newer releases?
(i believe we lose the original author reference also.)
thanks!
Hi,
I now this discussion is existing already in a lot of other topics.
Unfortunately all of the topics are 2-5 years old, most of the pastebin-links are not working anymore and besides this even the structure and the names like front-page.php are not the same anymore like in the old topics.
I don’t want to show on the frontpage the whole tree of forums, sub-forums and sub-sub-forums.
Just one level at the same time and when going one level deeper then also only one level.
I have read already nearly all topics about this on bbpress.org and on Google but as I said there is nothing up to date.
So: I am using WordPress 3.4.1 with the Skeleton theme and bbPress 2.1.2 and the default theme bbp-theme-compat.
In which file or files do I have to change what to hide the sub-forums at least from the frontpage or even better at every hierarchy-level?
Thanks!
How can I distinguish between the original post and replies, when viewing a topic?
The default template setup (single-topic.php) displays both the original post and the replies using a single loop (loop-replies.php).
Is there an alternative template part / function that allows us to isolate the original post from the replies to that post?
[aside: it’s somewhat confusing that bbPress treats the original post on a topic as a reply. What’s the logic behind that?]
Hi, all. In the BBpress plugin for WordPress, the default theme does not contain log-in and profile links at the header of every page. How do I add this? Thanks!
Edit: Also. How do I add the latest discussions to the home page?
-
This topic was modified 13 years, 7 months ago by
salromano.
Hi,
I have the same problem that I don’t want to show on the frontpage the whole tree of forums, sub-forums and sub-sub-forums.
Just one level at the same time and when going one level deeper then also only one level.
I have read already nearly all topics about this on bbpress.org and on Google.
Unfortunately all of the topics are 2-5 years old, most of the pastebin-links are not working anymore and besides this even the structure and the names like front-page.php are not the same anymore like in the old topics.
So: I am using WordPress 3.4.1 with the Skeleton theme and bbPress 2.1.2 and the default theme bbp-theme-compat.
In which file or files do I have to change what to hide the sub-forums at least from the frontpage or even better at every hierarchy-level?
Thanks!
I`m not sure how familiar you are with WordPress and PHP, I consider myself a novice in PHP but well-versed in WordPress. It might be a bit technical and it might be the wrong way to do things, but here is how I quickly put it together.
Open functions.php in your theme.
Add the following function to the file (within the PHP tags):
function bbp_get_user_replies( $user_id = 0 ) {
// Validate user
$user_id = bbp_get_user_id( $user_id );
if ( empty( $user_id ) )
return false;
// Query defaults
$default_query = array(
'author' => $user_id,
'show_stickies' => false,
'order' => 'DESC',
);
// Try to get the topics
$query = bbp_has_replies( $default_query );
if ( empty( $query ) )
return false;
return apply_filters( 'bbp_get_user_replies', $query, $user_id );
}
Then to list the replies just add to whatever page you want to list them:
As you can see this is basically the same code as the bbp_get_user_topics_started function, just modified to get the replies instead.
If anyone have a better solution I`d love to hear it.
Well…it seems like you want a working solution more than an ideal one, so here goes. You could replace archive-forum.php with:
http://pastebin.com/NktqDANZ
Plus anything else you explicitly want in the page.
DISCLAIMER: I don’t actually advise doing this. I feel like there are probably better ways to achieve the categorical forum listing that you describe. I implemented a categorical forum listing on my own site (http://tamrielfoundry.com), using the general method outlined by Lynq in this thread:
https://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/
What you are asking for is outside the default scope of bbpress functionality. It can definitely be modded in using some custom php functions and templates.
I tried a couple ways to put a comment form shortcode in my topic post (works outside of BBpress) but not inside. I also would like to have my topic/replies show in reverse order. Instead of default of newest to oldest I would like the most current reply on top… I don’t see an easy way to do this. I’m not using a totally compliant theme (weaver pro) since I’m about the blog more than the forum but it seems to work well enough… http://jeff-foliage.com/forums/topic/2012-fall-foliage-reports/ is my site and most recent post. Jeff Foliage
-
This topic was modified 13 years, 7 months ago by
folgerj.
Wordpress: 3.4.1.
BBPress: 2.1.2.
Site: http://www.prototype-gw2.com/forums/
Happens with default themes as well: Yes.
Hi, I`ve set up a BBPress install without much trouble, however there is some odd behaviour with private forums, namely they keep disappearing when I make changes to the forum. I use the recent topics widget, and the forums and posts are listed there as they should.
My setup is the following: 1 private category with 2 private forums. If I make 1 forum public I still can not see any forums. If I make 2 forums public I can see both forums.
Now if I make the category public and each of the forums private I can see the forums, however this time it says 0 topics and 0 replies and Freshness is “No topics” in the header. The topics and replies for the forum name is still correct though.
Am I doing something wrong or is there a bug in the permission system? If so, is there anything I can do to help resolve it?
You can try resetting your permalinks, that tends to fix some strange 404 errors for me.
If you try that and it still doesn’t work then try switching to a default theme or then disabling plugins one by one.
Profile pictures are a WordPress setting, not specifically bbpress. WordPress calls profile pictures ‘Avatars’ and you will find the settings for Avatars under the ‘Discussion’ link under ‘Settings’ on the Admin Dashboard.
By default WordPress does not allow users to upload their own Avatars to your WordPress website but instead uses a third party host called Gravatar. If you want your uses to upload directly to wordpress then you will need to install a plugin that allows them to do this. Search in the plugin directory on wordpress.org for ‘avatar’. I am currently evaluating Add Local Avatar for the the site I manage, seems to work OK.
Hi I am using wp 3.4.1 and using bbpress plugin for the forum. However I am trying to install a new theme but dunno how to start. I have already downloaded a new theme [derleth-bright] , just need a little bit of nudge on my head how to implement this.
And also as I am using the wordpress plugin for the bbpress forum , can someone tell me how to make it full-width page. Its by default coming as a post which includes also the author name, creation time etc. which I also dont want.
Can someone help me?
my website: atCampus
@Andre
Tried to deactivate all plugins, then tried to switch for buddypress default theme and the result is the same. No forums updates at activity stream.
By the way, are you using group forums or site wideforums, or eventually both enabled but using only one of them?
I have the bbpress forum on my website, all up to date and working well.
However, the first paragraph on every thread, reply has a smaller default text than the rest of the thread/reply.
Please can you help me correct this.
Here is a link example: http://yorkshirechess.org/forums/topic/just-what-happened-here/
The default theme will go this route eventually.