Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link to profile field

  • @marco-verhagen

    Participant

    Hi,

    I was able to link a member to their profile page. Members can now view the complete profile page of other members. However I prefer to show only one field (biography) to other members. So if someone visits its own profile it shows all profile fields. I someone else visits his profile it only shows the biography. How can I fix that? The code that I’am now using is added.

    
    <?php
    /* @var $EM_Event EM_Event */
    $people = array();
    $EM_Bookings = $EM_Event->get_bookings();
    if( count($EM_Bookings->bookings) > 0 ){
    ?>
    <?php
    $guest_bookings = get_option('dbem_bookings_registration_disable');
    $guest_booking_user = get_option('dbem_bookings_registration_user');
    foreach( $EM_Bookings as $EM_Booking){
    if($EM_Booking->status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
    $people[] = $EM_Booking->get_person()->ID;
    echo '<li><a>get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) .'<br> '. $EM_Booking->get_person()->display_name .'</a></li>';
    }elseif($EM_Booking->status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
    echo '<li><a>get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) .' '. $EM_Booking->get_person()->display_name .'</a></li>';
    }
    }
    }
    ?>
    

    For buddypress and wordpress I use the latest verstions

    I hope someone can help. Please let me know if I have to use other sources to find an answer on my question. 😉

    Thanks in advance!
    Marco

  • The topic ‘Link to profile field’ is closed to new replies.
Skip to toolbar