Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,826 through 2,850 (of 32,522 total)
  • Author
    Search Results
  • #211144
    theicebooky
    Participant

    Thank you @myndphunkie for a great CSS code. Works very well!!!

    #211134
    Robin W
    Moderator

    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

    #211133
    jamnet.kr
    Participant

    Where can I add that code?
    I mean, could you give me information about number of line in functions.php?

    #211127
    theicebooky
    Participant

    It did it guys with two codes :))

    #211115
    rashidkalwar
    Participant

    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.

    jamnet.kr
    Participant

    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^^

    #211106
    colorfulinaaaa
    Participant

    Hi, 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

    #211082
    Robin W
    Moderator

    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;
    }
    #211072
    Robin W
    Moderator

    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

    #211070
    Robin W
    Moderator

    ok try

    #bbpress-forums  li.bbp-forum-reply-count {
    	display: none !important;
    }
    #211060
    sleestak
    Participant

    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!

    #211042
    Robin W
    Moderator

    put this in the custom css section of your theme

    #bbpress-forums  li.bbp-forum-reply-count {
    	display: none;
    }
    #211040

    In reply to: Display issues

    Robin W
    Moderator

    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;
    }
    #211030
    batteman
    Participant

    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.

    #211026
    Robin W
    Moderator

    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?

    #211020
    batteman
    Participant

    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.

    #211013
    Robin W
    Moderator

    update_option (‘rew_done’ , ‘done2’ ) ;

    should read

    update_option (‘rew_done2’ , ‘done2’ ) ;

    #211011
    Robin W
    Moderator

    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' ) ;
    }
    #211010
    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?

    #211007
    Kikis
    Participant

    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

    Robin 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>’;`

    Robin W
    Moderator

    @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.

    #210975
    Robin W
    Moderator

    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.

    #210974
    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>
Viewing 25 results - 2,826 through 2,850 (of 32,522 total)
Skip to toolbar