Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 192 total)
  • @megainfo

    Participant

    Hi @lucadgg,

    Add the code to functions.php of your current theme.

    
    /** this code hide comments for no logged in users*/
    add_filter( 'bp_activity_get_comment_count' , 'bp_only_loggedin_can_see_comments', 10,1 );
    function bp_only_loggedin_can_see_comments( $count ){
      if ( !is_user_logged_in() )
         $count = 0;
     
       return $count;
    }
    

    https://gist.github.com/dzmounir/8373632

    @megainfo

    Participant

    Hi @glyndavidson,

    Please read this ticket hoping this can help you to understand more about bp_moderate capability.

    https://buddypress.trac.wordpress.org/ticket/4991

    @megainfo

    Participant

    hi @scimea,

    Check
    wordpress.org/support/topic/mention-privacy-multi-select-features

    Regards.

    @megainfo

    Participant

    BuddyStream work fine if you follow the setting.

    @megainfo

    Participant

    hi @jnkfrancis1978mx,

    I think Bowe Codes plugin can help you:
    https://wordpress.org/plugins/bowe-codes

    @megainfo

    Participant

    bp_has_activities dont accept more than one value for scope param.
    ie : you can’t do that by using bp_has_activities

    @megainfo

    Participant

    Hi @wpdragon,

    I think BuddyPress Security Check plugin is the best.
    https://wordpress.org/plugins/bp-security-check/

    @megainfo

    Participant

    Hi @rianhall,

    add this code to functions.php :

    https://gist.github.com/dzmounir/8285459

    No need to edit any template files. Just change
    $excluded_roles = array( 'administrator', 'subscriber' );

    by puting the role ids to hide.

    @megainfo

    Participant

    Hi,

    There is no Visibility level for “admin only”,
    the “Only me” mean only the current member can see the field.

    @megainfo

    Participant

    hi,

    try this

    
    friends_get_friend_count_for_user( $user_id );
    
    

    Or this if you call it in a member page :

    
    friends_get_total_friend_count()
    

    @megainfo

    Participant

    @bphelp,

    Of course if your try the plugin in buddypress child theme other than the default will not work fine beceause the plugin use the default buddypress template !

    the plugin work with all wordpress themes if the theme use legacy buddypress theme,
    if it is child theme, in this case you must customize the plugin templates by modifying the template files. Just copy buddypress-wall\includes\templates\bp-default folder to your theme and edit the templates.

    A lot of Buddypress plugins present a template and suggest a customisation if the theme is buddypress child themes.

    @megainfo

    Participant

    Hi @funmi-omoba, check this example of code, he may help you

    function bp_new_link_class_get_add_friend_button( $button ) {
            // add new css classes to the button   
     	$button['link_class'] .= ' new-button-class2 new-button-class2 ';
    
    	switch($button['id']){
    		case 'not_friends' :
    			$button['link_class'] .= ' btn-add-friend';
    			break;
    		case 'pending' :
    			$button['link_class'] .= ' btn-pending-rel';
    			break;
    
    		case 'is_friend' :
    			$button['link_class'] .= ' btn-remove-friend';
    			break;
    
    		default :
    			$button['link_class'] .= '';
    			break;
    		default: 
    
    			break;
    	}
    	return $button;
    }
    add_filter( 'bp_get_add_friend_button', 'bp_new_link_class_get_add_friend_button' , 1);
    

    Regards,

    @megainfo

    Participant

    Hi

    You can use the filter bp_activity_after_save

    
    add_filter('bp_activity_after_save', 'bp_my_activity_filter');
    
    /**
     * New Filter for activity stream
     *
     */
    function p_my_activity_filter( &$activity ) {
    }
    

    @megainfo

    Participant

    hi @tduschei, i suggest you use private-community-for-bp-lite plugin by @bp-help

    https://wordpress.org/plugins/private-community-for-bp-lite

    @megainfo

    Participant

    Hi @Skeary,

    There is no filter for bp_directory_groups_search_form(), You can change create a new custom function and replace the old call of bp_directory_groups_search_form by the new function.

    
    function bp_custom_directory_groups_search_form() {
    
    	$default_search_value = bp_get_search_default_text( 'groups' );
    	$search_value         = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>
    
    	<form action="" method="get" id="search-groups-form">
    		<label><input type="text" name="s" id="groups_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
    		<input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Go', 'buddypress' ) ?>" />
    	</form>
    
    <?php
    }
    

    The other solution is by javascript, you can change the text of the button by this code :

    
    jQuery('#groups_search_submit).attr('value','Go');
    
    

    @megainfo

    Participant


    @hnla
    ,I dont remember from where i was past this part of text, but sure from an old buddypress readme.txt plugin and i was used since long time as template file for all my plugins.
    You can check the readme.txt for all my others plugins too.
    https://github.com/dzmounir

    I want ask you a question , why some old plugins have a forum support in the buddypress forum
    i mean ?

    Plugin Forums

    @megainfo

    Participant

    Hi @funmi-omoba, @bp-help, @hnla

    Thank’s funmi omoba for the post, i want tell you that the first version of plugin is now available for download from wordpress repo :

    https://wordpress.org/plugins/buddypress-wall/

    I Hope the Buddypress users will enjoy the plugin.
    Any suggestions are welcome.

    Regards,

    @megainfo

    Participant

    @megainfo

    Participant

    @megainfo

    Participant

    Hi,

    mybe this plugin can help you
    https://wordpress.org/plugins/bowe-codes/

    @megainfo

    Participant

    I think you can’t show the correct number, because you do the test about role of bbp_blocked in the loop, so the number of members is uknow before the loop, buddypress save the number of members before the loop in variable $total_member_count

    check bp_core_get_total_member_count() function.

    I think if you check how buddypress profil search work, you will find a solution for your problem.
    https://wordpress.org/plugins/bp-profile-search/

    Regards,

    @megainfo

    Participant

    hi,

    you can hide it by adding this css code in the style.css of your current theme.

    
    .widget.buddypress div.item-meta,
    .widget div.item-meta
     {
       display:none !important;
    }
    

    @megainfo

    Participant

    Hi,

    Check the version of jquery used by the theme. try to replace it by the last version.

    @megainfo

    Participant

    Check the functions.php file of your current theme, mybe there is some code who use bp_friends component functions.

    @megainfo

    Participant
Viewing 25 replies - 26 through 50 (of 192 total)
Skip to toolbar