This topic has 33 replies, 5 voices, and was last updated 9 years by Laura.

  • Author
  • #61508
     Shakinaz
    Participant

    How can I display ” Organisation filed ” on the group member card like the ” quote ” in the demo example

    #61533
     Laura
    Moderator

    Hello, could you specify a bit more? Thanks 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61534
     sharmstr
    Moderator

    – letting laura handle this one.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #61541
     Shakinaz
    Participant
    This reply has been set as private.
    #61549
     Laura
    Moderator

    Hello, could you share admin credentials and ftp? Thanks 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61550
     Shakinaz
    Participant
    This reply has been set as private.
    #61556
     Laura
    Moderator

    Better here as private 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61560
     Shakinaz
    Participant
    This reply has been set as private.
    #61563
     Shakinaz
    Participant
    This reply has been set as private.
    #61574
     Laura
    Moderator

    Hello, do you have a cache plugin?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61576
     Shakinaz
    Participant
    This reply has been set as private.
    #61577
     Shakinaz
    Participant
    This reply has been set as private.
    #61580
     Laura
    Moderator

    Hello, yes, your browser cache with CTLR+F5 and your website cache.

    For the group, its done, here is what i did:

    Created the function to show the field in functions.php of child theme:

    COPY CODE
    
    add_action( 'bp_directory_members_item', 'display_user_info' );
    function display_user_info() {
    	echo "Organization: ";
    	bp_member_profile_data('field=Organization');
    	echo "</br>";
    }
    

    Edited wp-content/themes/kleo/buddypress/groups/single/members.php

    Found:

    COPY CODE
    
    				<div class="member-list-content">
    					<h5><?php bp_group_member_link(); ?></h5>
    					<span class="activity"><?php bp_group_member_joined_since(); ?></span>
    					
    

    Added

    COPY CODE
    <?php do_action( 'bp_directory_members_item' ); ?>

    So it looks like

    COPY CODE
    
    				<div class="member-list-content">
    					<h5><?php bp_group_member_link(); ?></h5>
    					<span class="activity"><?php bp_group_member_joined_since(); ?></span>
    					<?php do_action( 'bp_directory_members_item' ); ?>
    

    Then copied the file to your child theme.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61581
     Laura
    Moderator

    Ok, edited and deleted
    echo “Organization: “;

    in the function.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61583
     Shakinaz
    Participant
    This reply has been set as private.
    #61586
     Laura
    Moderator

    Hello, thanks you so much 🙂 If you are happy please leave a nice comment and/or a 5 star rating on themeforest 🙂
    Thanks!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61593
     Shakinaz
    Participant
    This reply has been set as private.
    #61596
     Laura
    Moderator

    Hello, the member counter will only update when an user logs in for the first time, if you want me to change it so it counts when they register, let me know.

    This shortcode in homepage will add the topics counter
    [kleo_bbpress_stats type="topics"]

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61597
     Shakinaz
    Participant
    This reply has been set as private.
    #61606
     Laura
    Moderator

    Hello, yes it will work when they login for the first time 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61628
     Shakinaz
    Participant
    This reply has been set as private.
    #61630
     Abracadabra
    Participant

    Hello Laura, I’m actually interested in doing this as well.

    I already have custom code in my functions.php that adds extra information to my all members page profiles and I would like to have that visible on group members page as well.

    I have this code:

    COPY CODE
    add_action('bp_directory_members_item', 'bphelp_dpioml');
    function bphelp_dpioml(){
    
    $bphelp_my_profile_field_1='Location';
    $bphelp_my_profile_field_2='Company';
    $bphelp_my_profile_field_3='Position';
      
    
    if( is_user_logged_in() && bp_is_members_component() ) { ?>        <div class="bph_xprofile_fields" style=" margin-left:0 !important; text-align:center !important;"> <br />       
    
    <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_1 );  ?><br />        
    
    <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_2 ); ?><br />         
    
    <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_3 ); ?><br><br />         
    
    </div><?php       }}

    What I noticed is that the information you had given was for bp directory members item as well, so would that work for group members page?

    Im guessing there is a way just to copy the same code but replace the

    COPY CODE
    add_action('bp_directory_members_item', 'bphelp_dpioml');
    function bphelp_dpioml(){

    with something else for it to work with group members?

    #61673
     Laura
    Moderator

    Hello Shakinaz, please add this to your functions.php

    COPY CODE
    
    add_action('bp_core_activated_user', 'kleo_add_member_activity');
    function kleo_add_member_activity($user_id)
    {
    	add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s"));
    }
    

    This will count users once they register, now after you save it, go to Tools > Buddypress and check all options. This will recount your users and their activity etc…

    Hello Abracadabra, yes the way i added it will show it also in members page, with your code, there is no need to change nothing, just place

    COPY CODE
    
    <?php do_action( 'bp_directory_members_item' ); ?>
    

    In members.php of group files and will show your code, because you use the same action. Just add it like this

    COPY CODE
    
    <?php do_action('bp_directory_members_item', 'bphelp_dpioml'); ?>
    

    Let me know if it works 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61676
     Abracadabra
    Participant

    Hi Laura, thanks but i am not sure what to put and where

    I assume I only use the second code you provided the one with “bphelp_dpioml” in it?

    When I go to /wp-content/plugins/buddypress/bp-groups there are 14 different php files, which one do I use?

    If I entered that code in functions.php would that work?

    #61682
     Laura
    Moderator

    Hello, you need to follow the instructions i added for Shakinaz,
    that should be added in members.php in kleo/buddypress/groups/single
    Then copied to child theme.

    Find

    COPY CODE
    
    				<div class="member-list-content">
    					<h5><?php bp_group_member_link(); ?></h5>
    					<span class="activity"><?php bp_group_member_joined_since(); ?></span>
    

    And add it just after that, like this

    COPY CODE
    
    				<div class="member-list-content">
    					<h5><?php bp_group_member_link(); ?></h5>
    					<span class="activity"><?php bp_group_member_joined_since(); ?></span>
    <?php do_action('bp_directory_members_item', 'bphelp_dpioml'); ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61691
     Abracadabra
    Participant

    i added that line in kleo and in kleo-child in the specified folder, nothing has changed unfortunately.

    #61697
     Laura
    Moderator

    Hello, then please follow these steps https://archived.seventhqueen.com/forums/topic/display-extra-fields-group-member-card/#post-61580

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61701
     Abracadabra
    Participant
    This reply has been set as private.
    #61702
     Laura
    Moderator

    Hello, i think the update will be these days, maybe today or tomorrow

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #61703
     Abracadabra
    Participant

    Awesome 🙂

    #67031
     ianll
    Participant

    Is it possible to extend this function to also include pulling a larger image for the member card.

    #67233
     Laura
    Moderator

    Hello, do you mean bigger user avatars only in group?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #67247
     ianll
    Participant

    Yes, I’ve update the profile page to use the 150×150 profile avatar and made it square. On the directory page that lists my members I would like to use a 150×200 dimension of the avatar. Can you help?

    Thanks!

    #67304
     Laura
    Moderator

    Sure, please check out this https://archived.seventhqueen.com/forums/topic/member-customization it should give you a great layout, and you can customize the size. Let me know if you need more help on this 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?