I’m a solid 7.5 out of 10 on WP but 100% new to BBpress.
I plan on having about 15 categories with some 50 forums for each category on my site. The current default display isn’t easy to follow so I’m attempting to find a way to easily change the layout on the forum index display page.
However, I don’t want to show all of the forums as some are private to groups etc.
I’m looking to achieve this look on this page: http://theme-sphere.com/smart-mag/forums/
I understand CSS is involved here but I’m looking for a get me going fix.
How can I list multiple forum titles on one page. When I use the code [bbp-single-forum id=2733] and then use it again to show a different forum it will only show the first one.
Is this not possible with shortcode?
Could I create a graphic bar and separate groups of forum titles like in the page I linked to?
Thank you for whoever guides in the path of rest as I have exhausted these forums in an attempt to answer these questions.
🙂
depends what you mean by top menu, I suspect primary, in which case
add_filter( 'wp_nav_menu_items', 'rkk_add_auth_links', 10 , 2 );
function rkk_add_auth_links( $items, $args ) {
if (is_user_logged_in() && $args->theme_location == 'primary') {
 $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
 }
 elseif ( !is_user_logged_in() ) {
 $items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>';
 $items .= '<li><a href="'. site_url('wp-login.php?action=register') .'">Register</a></li>';
 $items .= '<li><a href="'. site_url('wp-login.php?action=lostpassword') .'">Lost Password</a></li>';
 }
 return $items;
}
Hello, I’m using this function from bbpress codex to add login/logout to the menu.
I want to show the login/logout on the top menu only, not on the header. Any way to do this? Hope its just a simple tweak. Thanks
add_filter( ‘wp_nav_menu_items’, ‘rkk_add_auth_links’, 10 , 2 );
function rkk_add_auth_links( $items, $args ) {
if ( is_user_logged_in() ) {
$items
Hello, I’m using this function from bbpress codex to add login/logout to the menu.
I want to show the login/logout on the top menu only, not on the header. Any way to do this? Hope its just a simple tweak. Thanks
add_filter( ‘wp_nav_menu_items’, ‘rkk_add_auth_links’, 10 , 2 );
function rkk_add_auth_links( $items, $args ) {
if ( is_user_logged_in() ) {
$items
_______________________________________________________________________________________
Hello everyone,
I have a lot BBpress related questions that i can’t find a good answer to. Is there someone that has some good experience in customizing and setting up BBpress who has Skype and is willing to help me trough Skype?
The answers i am looking for are related to these subjects.
*When user account is created, user logs in but when button log in is clicked, page refreshes and doesn’t show logged in account information. The same screen as when not logged in.
*When the user finally gets logged in there is a wordpress menu on top, how to delete this? (atleast on mobile we’ve seen it)
*We want a different page for the user that already has an account or for the new users that aren’t already logged in (forum page).
*BBpress sidebar is not showing up, tried many different things. Adding code manually, installed plugins etc. Only the main theme sidebar is showing.
*Breadcrumb path is displaying forums twice. We did some php code to hide the homepage but don’t know how to hide these double words.
Help would be really appreciated. If there is no way around i am willing to pay a small fee.
Thomas
Thank You, Where do I put the shortcode or how do I add the shortcode, Many thanks
Solved, and very simple
Create new page example forum option (no-sidebar)
Then insert the following code [bbp-forum-index]
I have tried so many codes on my child theme css to add custom codes. I can’t seem to get it done.
my website is: theceoafrica.com
theme: tdMacro theme
Can anyone PLEASE help me figure out how to:
1. To remove the blue link colour after mouse click on each menu item
2. To add a white border on current/active menu item
3. Please i also need to adjust the width of my website. It doesn’t fit into the window.
I would really appreciate your help. Thank You.
for main page then use the forum shortcode in the main page
[bbp-topic-index]
or use on of the other shortcodes
Shortcodes
you can add roles and/or change their names – see
Custom Capabilities
The following in an example that both adds new roles and changes the names of existing.
/* bbPress Custom Roles */
function add_custom_role( $bbp_roles ) {
$bbp_roles['my_custom_role2'] = array(
'name' => 'Craftsman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role3'] = array(
'name' => 'Journeyman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role4'] = array(
'name' => 'Adept',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role5'] = array(
'name' => 'Artisan',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
);
$moderator = bbp_get_moderator_role() ;
$bbp_roles[$moderator] = array(
'name' => 'Councilman',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator);
$keymaster = bbp_get_keymaster_role() ;
$bbp_roles[$keymaster] = array(
'name' => 'Advisor',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
);
$apprentice = bbp_get_participant_role() ;
$bbp_roles[$apprentice] = array(
'name' => 'Apprentice',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
you can limit access to forums byh changing their visibility
Public – Anyone can see these forums
Private – Only logged in registered users with a forum role can see these forums
Hidden: Only Moderators/keymasters can see these forums
or if you want more control by using :
https://wordpress.org/plugins/bbp-private-groups/
Hi guys,
I made a redirect php code the the main forum page but i want to display a custom message for each action that is made. So i the user doesn’t enter a password or a username i want to display a message like, you did enter the wrong password or username, please try again.
How do i add this in the php code?
This is the php code i got from the internet for redirecting to the forum page if…. .
add_filter( ‘login_redirect’, ‘login_redirect’, 10, 3 );
add_action(‘login_redirect’, ‘redirect_login’, 10, 3);
function redirect_login($redirect_to, $url, $user) {
if($user->errors[’empty_password’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[’empty_username’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[‘invalid_username’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[‘incorrect_password’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else{
wp_redirect(get_bloginfo(‘url’).’/forum/’);
$a = “Hello “;
}
exit;
}
Thanks in advance,
Jottem15
Hmm. Ok it looks like my theme (Kleo) has a different forum template. Simply put the custom reply.js file was going to the Parent Node wrapper which put the Reply form at the bottom of any child replies. I simply had to have it find the first child node of the wrapper so it could drop the reply form right underneath.
I just looked at your staging site which is a different template. Try this instead:
reply.appendChild(respond);
If you are not a coder then use the last post plugin above which does it for you
I’ve opened it up and can’t figure out how to hack it into my template. I was already able to rename the string to “Last Post”.
Now figuring out, which template files to edit and what lines to put/replace. Not a coder :/
Maybe we can use code in php my admin to setup key-muster role for the admin user?
@jon-fergus I got this fixed with the reply.js file you include in your child theme.
simply change this line:
reply.parentNode.appendChild(respond);
to this:
reply.parentNode.children[1].appendChild(respond);
And the reply box should appear directly under the post you are replying to.
bbPress includes the “no replies” view, so you would only need to replace the “top five” shortcode you are currently using with bbPress’ [bbp-single-view id=no-replies] 🙂
This sounds like an issue with your theme displaying next and prev links for bbPress’ forum custom post type.
If you temporarily switch to one of the default Twenty themes, say Twenty Fifteen can you still see the next and prev links?
If so you might want to contact the theme author or take a look at creating a custom bbPress template for theme, see: https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
I repost some questions
1) is there a way to add a sort of “code” somewhere, to have the QUOTE in bbpress posts?
2) If not, is there a plugin that somebody knows? Obviously, if possible, I would prefer some code to avoid another plugin
3) Anybody knows if the function “quote” will be updated in a future version of bbpress? I think I read it some years ago, but it didn’t still arrive.
Thank you for helping
Seems like integrating the “Edit Profile” link in various places on a site is a common issue here folks are running into on the forums.
So I hacked out a quick shortcode for a project i was working on that required us to include a link to the user’s edit profile page in a popup.
(Please note, the specific site i wrote this for was NOT using pretty links).
Placed in your child-theme’s functions.php file or in a custom plugin
/*--Generate BBporess Edit Profile Link in a shortcode--*/
function bbp_edit_profile_link($atts) {
extract(shortcode_atts(array(
'text' => "", // default value if none supplied
'class' => "" //Style class for link
), $atts));
if ($text) {
$current_user = wp_get_current_user ();
$user=$current_user->ID;
return '<a class="'. $class . '" href="/?bbp_user=' . $user . '&edit=1">' . $text. '</a>';
}
}
add_shortcode('bbp_edit_profile', 'bbp_edit_profile_link');
Attributes:
text = Your output text (i.e. “Edit My Profile”)
class = Custom anchor class (i.e. “my-link-style”)
Example
[bbp_edit_profile text="Edit My Profile" class"my-link-style"]
It’s a bit sloppy, but it works. Maybe someone else might find it useful…
It’s not. You have to look at the DIV CLASS that surrounds the html code. And then track that down and adjust it.
Wordpress 4.6.1
Bbpress 2.5.10 |
Hi there,
Today I found here the forum some very useful code to help me change something as colores and sizes.
But there is a component I could’t change, that is the Forum-Title.
Is there anyone that can help with some simple css as how to change the forum title
I thank you in advance.
Thank you @robkk for your code on how to change the bakground-color.
It help me a lot.
Kind Regards