This topic has 28 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #84869
     Oscar570
    Participant

    Hello

    On the Members page, I would delete the last activity of the member’s profile (in red). Instead I would put the city and the member’s age

    How can I do ?

    Thanks for your help.

    Regards

    Nathalie

    Attachments:
    You must be logged in to view attached files.
    #84906
     Radu
    Moderator

    Hi,

    Just add this snippet to your kleo-child/style.css

    COPY CODE
    
    function KleoRemoveLastActivityFromDirectory() {
        return false;
    }
    add_filter('bp_get_member_latest_update', 'KleoRemoveLastActivityFromDirectory');
    

    Cheers

    Radu

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

    Thanks Radu!
    I’d like to put the location and the age of each member. Any idea?
    Cheers

    #85522
     Radu
    Moderator

    Hi,

    Please add this file to wp-content/themes/kleo-child/buddypress/members/ after you download and unzip ( see attachment )

    Then add this css to your kleo-child/style.css

    COPY CODE
    
    .extrafieldsmeta b {
        display: table-caption;
    }
    

    Let me know if is ok.

    Best Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #85726
     Oscar570
    Participant
    This reply has been set as private.
    #85742
     Radu
    Moderator

    Hi,

    Login to FTP go in this location wp-content/themes/kleo-child/ and then make sure that there is a folder named buddypress and inside buddypress folder a folder named members and in members folder needs to be the file that i have you provided ( the file needs to be unzipped )

    Let me know if you solve the issue.

    Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #85891
     Oscar570
    Participant
    This reply has been set as private.
    #85970
     Radu
    Moderator

    Hi,

    Please take a look it should be ok,

    If you change these field names : Ville and Date de naissance

    The informations will disappear from members mansory.

    Let me know if is ok and if can close the topic.

    I’ve used this in members-loop.php from kleo-child/buddypress/members/members-loop.php

    COPY CODE
    
    
                <?php $bp_location = bp_get_profile_field_data( 'field=Ville&user_id=' . bp_get_member_user_id() );?>
                <?php $bp_age = bp_get_profile_field_data( 'field=Date de naissance&user_id=' . bp_get_member_user_id() );?>
                <?php
    	            $yearagearr = (explode(' ', $bp_age));
    	            $yearage = date("Y") - $yearagearr['2'];
    	            //echo $yearage;
                ?>
                <div class="extrafieldsmeta">
    
                <div style="clear: both;"> </div>
    
                <?php echo ' <p>' . __('Age:') .' ' .$yearage. '</p>'; ?>
                <?php echo ' <p>' . __('Ville:') .' ' .$bp_location. '</p>'; ?>
    
                </div>
                <div style="clear: both;"> </div>
    

    Best Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #86419
     Oscar570
    Participant
    This reply has been set as private.
    #86428
     Radu
    Moderator

    Hi,

    It’s ok now,

    The problem was at names of that fields, they have been renamed, now i’ve added ID’s instead fields name.

    Best Regards

    Radu

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

    Wahouuuu ! You’re the best ! thanks Radu ;-)))

    #86454
     Radu
    Moderator

    You’re welcome. 🙂

    Have a nice day

    Radu

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

    Hi Radu,

    I have a question please : I just see your BudyApp seems to be wonderful.
    How you saw, I try to create a website for dating people. Which one between Kleo and BudyApp is the best for that ?

    Could you tell me if I can add a plugins ?
    I tried your demo version for BuddyApp but I didn’t find the chat? Where is it ?

    Thanks for your feedback
    Cheers
    Nathalie

    #86573
     Oscar570
    Participant
    This reply has been set as private.
    #86656
     Radu
    Moderator

    Hi,

    Regarding to this

    Hi Radu,
    I have a question please : I just see your BudyApp seems to be wonderful.
    How you saw, I try to create a website for dating people. Which one between Kleo and BudyApp is the best for that ?
    Could you tell me if I can add a plugins ?
    I tried your demo version for BuddyApp but I didn’t find the chat? Where is it ?

    BuddyApp is for intranet and extranet propose and both themes kleo and buddy app have ability to use it as community.

    Regarding to square avatars

    Add this CSS to wp-admin -> Theme Options -> General settings -> quick css

    COPY CODE
    
    .buddypresswcamp a img.avatar {
        border-radius: 100% !important;
        width:35px;
    }
    

    Best Regards

    Radu

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

    ok thank you.
    the code doesn’t work look screenshot Radu…

    Attachments:
    You must be logged in to view attached files.
    #86708
     Radu
    Moderator

    Please visit your profile from anther profile.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #86757
     Oscar570
    Participant
    This reply has been set as private.
    #86796
     Radu
    Moderator
    This reply has been set as private.
    #88639
     Oscar570
    Participant
    This reply has been set as private.
    #88768
     Radu
    Moderator

    Hi,

    It works, the problem is because this profile : Mathilde Lenoir does not completed the ville field.

    http://lezgirls.fr/membres/

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #88823
     Oscar570
    Participant
    This reply has been set as private.
    #88849
     Radu
    Moderator

    Hi,

    Done

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #88853
     Oscar570
    Participant
    This reply has been set as private.
    #88861
     Radu
    Moderator
    COPY CODE
    
    #buddypress #members-list .item-title,#buddypress #members-list .item-meta {margin: 0 !important; text-align:center !important;}
    

    Cheers

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

    ok where do I add this code ?

    #89011
     Radu
    Moderator

    Hi,

    Sorry, the code can be added in Wp-admin -> theme options -> general settings -> quick css

    Cheers

    Radu

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

    Thanks a lot Radu, for me it’s perfect and resolved.
    Cheers

    #89043
     Radu
    Moderator

    Great,

    I will mark topic as resolved.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 29 posts - 1 through 29 (of 29 total)

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

Log in with your credentials

Forgot your details?