SHARE
TWEET

Untitled

a guest Aug 11th, 2010 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bp-custom.php:
  2. <?php
  3. function cltgeeks_bp_core_get_userlink( $link, $user_id ) {
  4.         $displayed_user = bp_core_get_core_userdata( $user_id );
  5.         $oldtitle = 'title="' . bp_core_get_user_displayname( $user_id );
  6.         $newtitle = 'title="@' . bp_core_get_username( $user_id );
  7.         return str_replace( $oldtitle, $newtitle, $link );
  8. }
  9. add_filter( 'bp_core_get_userlink', 'cltgeeks_bp_core_get_userlink', 1, 2 );
  10. ?>
  11.  
  12. members-loop.php:
  13. <a href="<?php bp_member_permalink() ?>" title="@<?php bp_member_user_nicename() ?>"><?php bp_member_name() ?></a>
  14. or
  15. <a href="<?php bp_member_permalink() ?>" title="@<?php bp_member_user_login() ?>"><?php bp_member_name() ?></a>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top