Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,851 through 2,875 (of 32,577 total)
  • Author
    Search Results
  • #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>
    #210972
    Robin W
    Moderator

    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>
    #210950
    brandi22
    Participant

    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?

    #210943
    Robin W
    Moderator

    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.

    #210935
    Robin W
    Moderator

    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

    #210912
    robertherold
    Participant

    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

    #210868
    Robin W
    Moderator
    #210866
    Robin W
    Moderator
    #210860
    Robin W
    Moderator

    make 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

Viewing 25 results - 2,851 through 2,875 (of 32,577 total)
Skip to toolbar