Search Results for 'code'
-
AuthorSearch Results
-
May 18, 2020 at 8:48 am #211144
In reply to: Line spacing in bbpress forums
theicebooky
ParticipantThank you @myndphunkie for a great CSS code. Works very well!!!
May 18, 2020 at 3:28 am #211134In reply to: Styling body text in the TinyMCE Editor
Robin W
ModeratorPut this in your child theme’s function file – or use
or it is available as an option in
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form
May 17, 2020 at 11:59 pm #211133In reply to: Styling body text in the TinyMCE Editor
jamnet.kr
ParticipantWhere can I add that code?
I mean, could you give me information about number of line in functions.php?May 17, 2020 at 2:33 pm #211127In reply to: Not Blocking Bad-Words??
theicebooky
ParticipantIt did it guys with two codes :))
May 17, 2020 at 2:35 am #211115In reply to: How to show a specific number of pages of replies
rashidkalwar
ParticipantShortcodes
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.May 16, 2020 at 8:57 pm #211110Topic: my site does not make sense any code…ㅜㅜ
in forum Troubleshootingjamnet.kr
ParticipantI 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^^
May 16, 2020 at 1:59 pm #211106Topic: How to show a specific number of pages of replies
in forum Showcasecolorfulinaaaa
ParticipantHi, I already use the forum configuration to display only 10 replies, the I add the shortcode for topic id to a page and is showin me all of the replies at the same time, how can I reorganice that
May 15, 2020 at 12:47 pm #211082In reply to: Disabling the option number of votes in the forum
Robin W
Moderatortry 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; }May 15, 2020 at 3:48 am #211072In 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> -
AuthorSearch Results