Is there a reason the fixes in the patches above haven’t been integrated into trunk?
This has been driving our users crazy and I’m surprised to find such an old thread here with an apparent solution. I made the changes and it seems fixed. Is there a hidden downside or complication that’s prevented it from becoming part of the standard codebase?
@robkk
Is it possible to hide the link? What is the code. Differently from killer_x10, I would like to hide the topic subscribtion link (I only want forum link). Is this possible to just hide it?
Never mind, I found and edit the code already… if you wanna know my code:
#bbpress-forums > #subscription-toggle{
float:right;
}
#bbpress-forums div.bbp-reply-content a.subscription-toggle,
#subscription-toggle a{
font-weight:bold;
padding: 8px 8px 4px 8px;
border: 0px solid #66FF33;
background-color: #66FF33;
color: white;
}
#bbpress-forums div.bbp-reply-content a.subscription-toggle,
#subscription-toggle a:hover{
background-color: #00FFFF;
color: white;
}
#bbpress-forums div.bbp-reply-content .is-subscribed a.subscription-toggle,
#subscription-toggle .is-subscribed a.subscription-toggle{
border: 0px solid #e6e6e6;
background-color: #e6e6e6;
padding: 2px 4px 2px 4px
}
@mjonesnerdery and @hoch to fix this issue add this function in the theme functions.php file
// Add adminbar blank div to fix BBPRESS jQuery issue
function add_admin_bar_div() {
echo '<div id="wpadminbar" style="display:none;"></div>';
}
add_action('wp_footer', 'add_admin_bar_div',15);
Hi,
I’ve added a blog element (pulling in topics) to my community homepage but need to display some additional stats in the feed.
I need to display the following:
1. # of views (Ive selected this in the settings, but stats are not displaying)
2. # of likes
3. # of replies
Additionally, there is an ‘0’ after the excerpt. I’ve set the excerpt length to 160 characters to pull in a large portion of the title. The ‘0’ appears where the title is less than 160 characters. Is there a CSS code I can use to hid the ‘0’?
See the page here. https://community.catalysttech.co/
Would appreciate any advice.
Thanks.
can you post the code you are using
Thank you @myndphunkie for a great CSS code. Works very well!!!
Put this in your child theme’s function file – or use
Code Snippets
or it is available as an option in
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form
Where can I add that code?
I mean, could you give me information about number of line in functions.php?
It did it guys with two codes :))
Shortcodes
Codex Home → bbPress Features → Shortcodes
Since Version 2.0 bbPress support so called Shortcodes. They have been introduced for creating macros to be used in the layout of your forum content on WordPress pages. To use any of the shortcodes simply insert the desired shortcode into any WordPress page.
To get the required numerical ID for $forum_id, $topic_id, $reply_id and $tag_id you will need to visit your /wp-admin/ section and either by editing the post or by hovering your mouse over the applicable forum/topic/reply/tag post type you will see a numeric ID for that post eg. /wp-admin/post.php?post=47
Forums
[bbp-forum-index] – This will display your entire forum index.
[bbp-forum-form] – Display the ‘New Forum’ form.
[bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]
Topics
[bbp-topic-index] – Display the most recent 15 topics across all your forums with pagination.
[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.
[bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]
Replies
[bbp-reply-form] – Display the ‘New Reply’ form.
[bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]
Topic Tags
[bbp-topic-tags] – Display a tag cloud of all topic tags.
[bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]
Views
[bbp-single-view] – Single view – Display topics associated with a specific view. Current included ‘views’ with bbPress are “popular” [bbp-single-view id=’popular’] and “No Replies” [bbp-single-view id=’no-replies’]
Search
[bbp-search] – Display the search input form.
[bbp-search-form] – Display the search form template.
Account
[bbp-login] – Display the login screen.
[bbp-register] – Display the register screen.
[bbp-lost-pass] – Display the lost password screen.
I mean, if I use write text “<H2>test</h2>”, then it opened “<H2>test</h2>” like this “https://prnt.sc/si6o1q”
Anyone can give me idea^^ advice^^
try any/all of these
li.bbp-forum-reply-count {
display : none !important;
}
li.bbp-forum-topic-count {
display : none !important;
}
li.bbp-topic-reply-count {
display : none !important;
}
li.bbp-topic-voice-count {
display : none !important;
}
ok install this and put the code in the custom css section.
bbp style pack
once activated go to
dashboard>settings>bbp style pack>custom css
ok try
#bbpress-forums li.bbp-forum-reply-count {
display: none !important;
}
OK…that’s kind of what I needed to know. I am a programmer (though haven’t done PHP). I definitely know FTP. I needed to determine if it could be done with existing tools before I dove into the code.
Thanks!
put this in the custom css section of your theme
#bbpress-forums li.bbp-forum-reply-count {
display: none;
}
your theme is limiting stickies – not sure why
add this to the custom css of either your theme or my style pack plugin
.sticky {
display: inherit;
}
Hello Robin,
First of all, thank you to answer me !
I putted this code in the functions.php of the child theme.
In fact, I have the same issue as above, since liyacaty : new role is showing in users profile, but I can’t allocate it to one user. If I do it, user have no role displayed (“-No roles for this forums-” displayed in the profile).
Hope it can give you some hints.
I just tried that code on my test site, and I made a user ‘revendeur’ and it worked fine.
Can you describe what is not working – eg role is not showing in users profile, role showing but can’t allocate etc.
Also where are you putting this code?
Good evening (in France, it’s 1:31 am ^^)
Did you find an answer to these problem ? I’ve the same issue too with this “code” :
/* Ajouts de rôles-clone à bbPress*/
function add_revendeur_role( $bbp_roles )
{
$bbp_roles['bbp_revendeur'] = array(
'name' => 'Revendeur',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_revendeur_role', 1 );
I tried a few “codes” found on this forum without success.
Thank you.
update_option (‘rew_done’ , ‘done2’ ) ;
should read
update_option (‘rew_done2’ , ‘done2’ ) ;
the update_option bit stops it being run more than once.
so to run it a 2nd time use
$list = get_users();
if (empty (get_option ('rew_done2')) {
foreach ($list as $user) {
$user_id = $user->ID ;
$forum_id = 3 ;
bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
}
update_option ('rew_done2' , 'done2' ) ;
}
@robin-w I was able to use this code to subscribe all of our members to our main forum and it worked great. Thank you! I have since tried to run it to subscribe them to our other two forums and it’s not working. Any idea what I can do to get them subscribed to the others?