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

  • Author
  • #126179
     jgavilan
    Participant

    When we use the Recently Active Members widget or the user friends widget or any widget where the profile photo actually displays (those little circles in the widget showing the profile photo) if you click on those photos they go to the user profile you’ve chosen, but especifically they go to the profile but showing the user last activity. Is there a way to link those little circled photos to the profile view tab instead.

    We would like that when someone navigates and visit another user profile the first thing they see is the information about that person, I mean the profile fields filled with the info user gave.

    Is there a way to do that?

    Thanks in advance,

    #126394
     Radu
    Moderator

    Hi,

    We don’t touch that widget is originally from buddypress the responsable file is : /wp-content/plugins/buddypress/bp-members/classes/class-bp-core-recently-active-widget.php and on line 85 you will

    see

    COPY CODE
    
    <div class="item-avatar">
    <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
    </div>
    

    And you can add after

    COPY CODE
    <?php bp_member_permalink(); ?>

    like :

    COPY CODE
    <a href="<?php bp_member_permalink(); ?>/profile" title="<?php bp_member_name(); ?>">

    This change will be re-writen at the plugin update, also if you have js knowledge you can do a script that modifies the profile links from that widget to point to your tab

    Cheers
    R.

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

    Thanks Radu, I’ll try what you told me.

    #126724
     Radu
    Moderator

    OK

    Have a nice week

    Cheers
    R.

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

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

Log in with your credentials

Forgot your details?