BuddyDev

Search

Replies

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Graphically separating user field groups #29310

    Resolved

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Graphically separating user field groups #29285

    Hi Brajesh, fair enough, what I was looking for basically was just a way to add some white space like insert a <br> tag to separate the user profile groups.

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Graphically separating user field groups #29276

    One more design issue regarding the profile fields, which are difficult to style.

    Is it possible to gather all table elements in one div for easier styling of eg. background-color and border-radius?

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Slug for current profile? #29247

    Hi Brajesh, thank you very much for offering this extraordinary support, even if the topic might be off scope

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112

    Hi Brajesh, that’s fine, thanks for all your help with the functions.

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Slug for current profile? #29223

    Yes, I can see I am wrong, it breaks my site.

    What I do not understand is, that these functions you gave to me seems to be urls, but apparently I can’t just replace a normal url with these.

    So my question is, how do I use these functions/urls?

    Regards
    Carsten

    • This reply was modified 4 years, 6 months ago by calu.
    • This reply was modified 4 years, 6 months ago by calu.
    • This reply was modified 4 years, 6 months ago by calu.
    • This reply was modified 4 years, 6 months ago by calu.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Slug for current profile? #29221

    Hi Brajesh, just to clarify this, then eg

    href=$url = bp_loggedin_user_domain();"

    replaces

    href="https://domain/members/carstenadmin/profile/change-avatar/"

    or am I wrong?

  • Participant
    Level: Yogi
    Posts: 1112

    Hi Brajesh, thanks, I found out that visitors_get_unique_visitors_count must be the correct one, or?

    One more question to this markup of the class below, which is probably not correct, It seems like defining the class below is redundant, as it has no effect?

    
    
    <li id="visitors-personal-li">
    	<a  href="https://domain/members/me/visitors/" id="user-visitors" class="recent-visitors-for-buddypress-profile" >
    		
    		Besøg <span class="count"></span> 
    	</a>
    
    <?php echo visitors_get_unique_visitors_count( bp_loggedin_user_id() ); ?> 
    	</li>
    
    

    The correct class must be something like the one for messages defining the button:

    class="menu-item menu-item-type-post_type menu-item-object-post messages-personal-li button"

    but I don’t know where to look it up?

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112

    Hi Brajesh, I think I found the right function

    <?php echo visitors_get_visit_count( $user_id ); ?>

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112

    Hi Brajesh, thank you very much, again, for your valuable help, it’s working perfectly.

    Can I ask you to give me with the corresponding code for the visitors count?

    Thanks again

    Carsten