Search Results for 'code'
-
AuthorSearch Results
-
May 15, 2020 at 3:48 am #211072
In reply to: Disabling the option number of votes in the forum
Robin W
Moderatorok install this and put the code in the custom css section.
once activated go to
dashboard>settings>bbp style pack>custom css
May 15, 2020 at 3:26 am #211070In reply to: Disabling the option number of votes in the forum
Robin W
Moderatorok try
#bbpress-forums li.bbp-forum-reply-count { display: none !important; }May 14, 2020 at 1:41 pm #211060In reply to: Forum structure question
sleestak
ParticipantOK…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!
May 14, 2020 at 8:01 am #211042In reply to: Disabling the option number of votes in the forum
Robin W
Moderatorput this in the custom css section of your theme
#bbpress-forums li.bbp-forum-reply-count { display: none; }May 14, 2020 at 7:53 am #211040In reply to: Display issues
Robin W
Moderatoryour 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; }May 14, 2020 at 6:04 am #211030In reply to: Can’t give users custom roles.
batteman
ParticipantHello 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.
May 14, 2020 at 3:40 am #211026In reply to: Can’t give users custom roles.
Robin W
ModeratorI 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?
May 13, 2020 at 7:34 pm #211020In reply to: Can’t give users custom roles.
batteman
ParticipantGood 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.
May 12, 2020 at 2:00 pm #211013In reply to: Can you make a role to subscribe a forum?
Robin W
Moderatorupdate_option (‘rew_done’ , ‘done2’ ) ;should read
update_option (‘rew_done2’ , ‘done2’ ) ;May 12, 2020 at 1:53 pm #211011In reply to: Can you make a role to subscribe a forum?
Robin W
Moderatorthe 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' ) ; }May 12, 2020 at 1:33 pm #211010In reply to: Can you make a role to subscribe a forum?
tracykistler
Participant@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?
May 12, 2020 at 9:18 am #211007Topic: BbPress Latest Topic Widget Help need
in forum PluginsKikis
ParticipantHi 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
May 12, 2020 at 3:30 am #210994Robin W
Moderator@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>’;`May 12, 2020 at 3:27 am #210993Robin W
Moderatorbbp_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.
May 11, 2020 at 3:07 pm #210979nayanboost
ParticipantI 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?
May 11, 2020 at 12:18 pm #210975In reply to: Forum structure question
Robin W
ModeratorI 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.
May 11, 2020 at 12:14 pm #210974In reply to: edit profile notify checkbox
Robin W
Moderator<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>May 11, 2020 at 12:12 pm #210972In reply to: edit profile notify checkbox
Robin W
Moderatormy 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>May 11, 2020 at 7:05 am #210950In reply to: Allow user to post same post in different forums
brandi22
ParticipantThank 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?
May 11, 2020 at 3:52 am #210943In reply to: Forum structure question
Robin W
Moderatoronce 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.May 10, 2020 at 5:28 pm #210935In reply to: The profile name is not visible in
Robin W
Moderatorlooks like bbp_title is not working for users.
the code is called by a filter in
\bbpress\includes\core\filters.phpwhich 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
May 10, 2020 at 4:23 am #210912In reply to: The profile name is not visible in
robertherold
ParticipantYes, 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 anadd_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.May 7, 2020 at 6:02 pm #210868In reply to: Sidebar not showing on forum page
May 7, 2020 at 5:01 pm #210866In reply to: Sidebar not showing on forum page
Robin W
ModeratorMay 7, 2020 at 10:58 am #210860In reply to: How can I add registration to my site?
Robin W
Moderatormake forums private to make them visible to users only
use shortcode
[bbp-register]or anything in WordPress that does registration – bbpress just uses WordPress registration
-
AuthorSearch Results