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?
Hi guys I need your assistance
I got a code online that’s allows users to set up featured image for a topic and I was able to do that now in my latest topic widget area I want to display the featured images beside there respective topics
And also is there a way to allow users to able to add featured images on front end
@nayanboost – what url do they take you to ?
this (changed) code from my plugin may help you create a link
`$text=__(‘Profile’, ‘bbp-style-pack’) ;
$class=’bsp_button1′ ;
$current_user = wp_get_current_user();
$user=$current_user->ID ;
echo ‘<a class=”‘.$class.'” href=”‘ . esc_url( bbp_get_user_profile_url( $user) ) . ‘”>’ . $text . ‘</a>’;`
@momomoko
bbp_get_template_part( ‘user’, ‘topics-created’ )
will use the template ‘user-topics-created.php’ – basically you put all the words together to make the file (that just how wordpress does it!)
These templates all sit in the same directory as the content-single-user.php file.
I am trying to create a custom user page template in bbpress. I have created a file single-user.php in my child theme. And placed the code from bbpress single-user.php there.
But the urls of the profile and other things are not working. Any idea of what is happening here?
I am looking to put announcements/notices above the listing of forums.
sorry, I’m confused – so exactly where? – can you mock up please
Preferably, I would like these to be Super Sticky posts instead of just notices but could work with that.
now you’ve confused me – if you make them super sticky posts, then they will appear as the top post in each forum – if that satisfies, then you don’t need anything further.
<p>
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe">
<label for="bbp_topic_subscription">Notify me of follow-up replies via email</label>
</p>
my code in that area is
<p class="bsp_topic_subscription_reply">
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" tabindex="102">
<label for="bbp_topic_subscription">Notify me of follow-up replies via email</label>
</p>
Thank you, Robin.
To be clear, if this code adds throttle to the participant role, does it allow moderators to have less posting restrictions on the site?
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Display enable item 6 forum description.
Then in
dashboard>forums>edit forum in each forum you can put in the content part whatever you want to appear. in your case the same description for each forum, but you can have a different.
Finally to get this on the main forums list, create a page called ‘forums’, and put your description at the top of this. Then add the shortcode [bbp-forum-index] to this. bbpress will then use this as the main forums page.
looks like bbp_title is not working for users.
the code is called by a filter in
\bbpress\includes\core\filters.php
which is
Line 43: add_filter( 'wp_title', 'bbp_title', 10, 3 );
the function bbp_title is held in
\bbpress\includes\common\template.php
and the function starts at line 2578.
I may get a chance to look further tomorrow (or maybe not!), but if you fancy having a look. The function has a filter at the end, so if you can work out what’s wrong, should be easy to add a fix
Yes, I am designing my own theme. But basic WordPress templates work the same way.
There is no longer a <title></title> tag in header.php. Instead, functions.php has an add_theme_support ('title-tag');.
If I remove this and write the title tag back to header.php, it will display the user’s name in the title bar.
View post on imgur.com
View post on imgur.com