No, GD bbPress Toolbox Pro is a complex plugin with 50+ major features, and many are sharing the code and other things.
This is hardcoded in bbPress, the only way to change it, is to override the template and make the changes.
Hello,
I’m in need of a little help.
Forum
I am struggeling with getting my forum to full width.
My theme supports full width with an own template.
I added a new site and added the bbpress [bbp-forum-index] code.
The main site is full width.
But when I open a category or forum it switches back to the oder template.
I’m not good enough at css and stuff to fix it myself.
Hope someone can help me!
Regards,
Jens
If bove code not working then use this code;
$wp_roles = new WP_Roles();
$wp_roles->remove_role(“bbp_keymaster”);
$wp_roles->remove_role(“bbp_moderator”);
$wp_roles->remove_role(“bbp_participant”);
$wp_roles->remove_role(“bbp_spectator”);
$wp_roles->remove_role(“bbp_blocked”);
so to answer (or not!) your questions
by default the forum page is /forums you can amend this by changing the slug in dashboard>settings>forums or by using a page with a shortcode – see
Step by step guide to setting up a bbPress forum – Part 1
No idea what ‘ Hearthpwn’s deck builder to query Hearthstone’s card API ‘ means so cannot answer, but in terms of customization, then try this additional plugin, which has a ton of customizations in it.
bbp style pack
bbpress just uses the WordPress user account, and there is no way to detach this. But bbpress has a whole set of roles of it’s own, so if you set the user WordPress role to ‘no role for this site’, you pretty much achieve the same thing.
After completing the steps mentioned above add this code in your site theme’s functions.php file and reload the site, once done then remove this code from funtions.php file and save the file:
// This function will remove user roles. You may need to inspect the user role dropdown on the user profile page to see the correct user role label to use below
function wps_remove_role() {
remove_role( ‘bbp_moderator’ );
remove_role( ‘bbp_blocked’ );
remove_role( ‘bbp_spectator’ );
remove_role( ‘bbp_keymaster’ );
remove_role( ‘um_admin’ );
remove_role( ‘um_member’ );
}
add_action( ‘init’, ‘wps_remove_role’ );
[bbp-single-forum id=$forum_id]
where $forum_id is the id of the forum.
You can find the forum ID by going to
dashboard>forums>edit forum and when editing you will see this in the url
wp-admin/post.php?post=1245&action=edit
so in this example 1245 is the forum ID
Hi,
Thank you for your reply,
I would create 2 different forums in 2 different pages,
how could I have 2 different shortcodes which respect of each forum ?
Thank a lot !
Thanks @robin-w, it works beautifully!
For anyone who want to execute the code 2nd time (or more), reset the ‘rew_done’ option by running update_option('rew_done', '');
before activating the code again.
Regards.
this should do it
$list = get_users();
if (empty (get_option ('rew_done'))) {
foreach ($list as $user) {
$user_id = $user->ID ;
$role = bbp_get_user_role( $user_id );
if ($role == 'bbp_moderator') {
$forum_id = 3 ;
bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
}
}
update_option ('rew_done' , 'done' ) ;
}
Hi, just want to know how can we make the codes below role-specific? e.g. auto-subscribe moderator to forum with ID 3.
$list = get_users();
if (empty (get_option ('rew_done'))) {
foreach ($list as $user) {
$user_id = $user->ID ;
$forum_id = 3 ;
bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
}
update_option ('rew_done' , 'done' ) ;
}
Regards.
toy want to use either the
[bbp-forum-index]
or
[bbp-single-forum id=$forum_id]
shortcodes
Hi,
I have setup a forum in using bbpress,
forum name is travel, now I want to place this forum on my page in using the shortcode [bbp-forum-form] , but my travel forum didn’t display on the site,
How can I do it to modify that ?
Thank you very much!
When a specific keyword is searched for in the search form, it searches across all pages on the site. How can I set it up so that it only searches within the forum?
is this the forum search widget – if so link to a live example please
Also, the widget for bbPress is not visible in the widget area. How can I set it up to be visible?
Widgets
please explain which widget you mean
I’ve found this easaly “header-subnav.php”
https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php
<?php if ( !is_front_page() ) : ?>
<div id="subnav"><div id="subnav-inner">
<ul id="nav-secondary" class="menu">
<?php if ( is_user_logged_in() && function_exists( 'bbp_forums_url' ) ) : ?>
<li><a href="<?php bbp_forums_url( '/new-topic' ); ?>"><?php esc_html_e( 'Create New Topic', 'bborg' ); ?></a></li>
<?php endif; ?>
</ul>
<ul id="nav-user" class="menu">
<?php if ( ! is_user_logged_in() ) : ?>
<li><a href="<?php echo wp_login_url(); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li>
<li><a href="<?php echo wp_registration_url(); ?>"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li>
<?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?>
<li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Favorites', 'bborg' ); ?></a></li>
<li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Subscriptions', 'bborg' ); ?></a></li>
<?php endif; ?>
</ul>
</div></div>
<hr class="hidden" />
<?php endif;
ok that is not a tweaked WordPress toolbar, just a ‘look alike’
the code would be somewhere in here
https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base
But it would take ages to find it, so sorry not sure I can help
I can’t say. I noticed that the default lay-out is used for this page. I used to have a custom made lay-out which is developed by a specialist. He placed the codes for this in a child theme and everything worked just fine. But for a few weeks now, this lay-out is gone. The child theme is still active.
So I guess this is the problem.
While I do want to re-use the custom lay-out it is more important that when looking at the forum page without login people see only the latest activity.
So how can I make this happen?
try this
.single-topic .navigation {
display : none !important;
}
add this to the custom css in my plugin or your theme’s custom css area
I have setup BBPress to work with A Membership plugin so only members of the community can access the forum (in order to keep strangers from getting in) but even though I have marked the forums page with the “members only” restriction, if I have a direct link, I can still see that page even without logging in.
So I implemented shortcodes for specific forums and created pages specific to that forum while adding quick links to sidebar navigation, which works beautifully. But if you click on the forum within the bbpress window it goes to the generic forum topic page and not the new page I designed.
How can I keep the forum from being viewed by not logged in members with a direct link? I cant have just anyone accessing this forum. Thanks
Hi, when using the widget Recent Topics or Recent Activity nothing shows on my Forum page.
I don’t know why, because in the past this page always showed this information.It should show latest activity of the different topics. Should I use shortcodes?
Recente forum berichten
Can somebody help me with this?
Diane de Boer
I am working on a new client site and have started integrating bbPress into it, using the DIVI theme. I have created the Forums, Register, Member, Password Reset, and Login pages using shortcodes. I can create topics, threads, and replies. However, if I use the Search function, it displays a blank page. The URL structure of the search results is mydomain/forums/search/searchterm. There is no header or footer. I have no page created for mydomain/forums/search/
Do I need to create a template for this page, and if so, what is the shortcode I would use to display the search results?
The same thing is true for the “Users” page which displays at this URL – mydomain/forums/users/username – but is blank.
I’ve searched for shortcodes or details about this and have come up empty-handed.
It’s as I think we are using a Memberships plugin for it.
But I couldn’t see how to do this via BBPress properly.
I thought it would give me the shortcodes to add to a page, or a guide on how to do it.
Simon