This topic has 4 replies, 2 voices, and was last updated 11 years by Tenshi.

  • Author
  • #3725
     Tenshi
    Participant

    Hello! It’s me again, hehe. I’ve been spending hours trying to figure this out but I really can’t so, how do I get the username (the one they use to log in) to show up here (members directory/listing)?

    http://puu.sh/4FyFZ.png

    Thanks in advance! I really love this theme!

    #3772
     SQadmin
    Keymaster

    Hi, This code added to sweetdate-child/functions.php does the trick:

    COPY CODE
    
    
    add_filter('kleo_bp_meta_fields', 'my_extra_data_mb_loop');
    function my_extra_data_mb_loop($output)
    {
    	global $members_template;
    	array_unshift($output,$members_template->member->user_login);
    	return $output;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3806
     Tenshi
    Participant

    Thank you! How do I center it though?

    #3818
     SQadmin
    Keymaster

    Maybe:

    COPY CODE
    
    add_filter('kleo_bp_meta_fields', 'my_extra_data_mb_loop');
    function my_extra_data_mb_loop($output)
    {
        global $members_template;
        array_unshift($output,'<span style="text-align:center">'.$members_template->member->user_login.'</span>');
        return $output;
    }
     
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3821
     Tenshi
    Participant

    Thank you again~

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?