-
Author
-
June 21, 2016 at 14:37 #126179jgavilanParticipant
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,
June 22, 2016 at 19:10 #126394RaduModeratorHi,
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 solutionJune 24, 2016 at 16:40 #126724RaduModeratorOK
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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.