Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • @manu-pb

    Participant

    Many thanks @shanebp
    The Repair Tool was suceesful !
    (I know about core files modification, was just a trial).
    Have a nice day.

    @manu-pb

    Participant

    Also now, I better understand the logic, thanks.

    @manu-pb

    Participant

    @shanebp
    Many thanks, I was able to remove the sender from the list of recipients with this custom function :

    function manu_bp_message_thread_to( $recipients ) {
    	global $messages_template;
    	foreach( (array) $messages_template->thread->recipients as $object ) {
    		if ( (int) $object->user_id !== bp_loggedin_user_id() ) {
    			$sender_links[] = bp_core_get_userlink( $object->user_id );
    		}
    	}
    	$recipients = implode( ', ', (array)$sender_links );
    	return $recipients;
    }
    add_filter('bp_message_thread_to', 'manu_bp_message_thread_to', 20, 1);

    @manu-pb

    Participant

    New Year is certainly not a favourable period for developers …
    Note : I tried without success to add to specific users an extra ‘bp_moderate’ capability in wp_usermeta : didn’t work.
    Well, I was able to find a workaround, probably not very safe, but suits me for the time being …
    In function bp_current_user_can () from /bp-core-caps.php, I have replaced (around line 190) :
    $retval = current_user_can_for_blog (...);
    by
    $retval = current_user_can( ‘level_1’ ); which gives access to all “contributors” (who have by default ‘Level_1’ capability).
    Hope it helps

    @manu-pb

    Participant

    [resolved] I have installed BP Xprofile Custom fields and the “nobody” option suits me.

    @manu-pb

    Participant

    @megainfo
    Thanks for answer.
    Is there any possibility then to hide a field to members ?
    And I wonder why the DB field value is called “adminsonly”and not as expected “memberonly” or “onlyme” ???

    @manu-pb

    Participant

    [Solved] In the import CSV files, just add \n : the line break is recognized by MySQL and then by BB.

    @manu-pb

    Participant

    Hello all,

    I have spent some time to understand what Andy said : “you can pass a “per_page=XX” parameter into the template loop”… I am pleased to share here the solution with you.

    In the file Themes / Your_Theme / Members / members-loop.php, change the line 5 :
    if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>
    to
    if ( bp_has_members( bp_ajax_querystring( ‘members’ ).’per_page=XX’ ) ) : ?>
    (note that there is a “dot” between bp_ajax_querystring( ‘members’ ) and ‘per_page=XX’) since arguments are passed as a chain.

    Hope it helps
    Manu

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar