Quote:
Originally Posted by Coldhands
I understand that there is a link to veiw more buddies, but I wanted to make the "Buddies(##)" also link in the same way as "alle Anziegen". The fine print "alle Anziegen" link isn't very obvious, where as if the "Buddies(##)" was also a link, it would become more obvious that you can view more friends.
I'm not sure where to go and edit the code for this area. Do I go into plugin manager, or should I go into replacement variable area or somewhere else?
|
When I answer my own questions, I like to come back and answer them for anyone else that may have the same question so here it is . . .
Go to Admin CP >> Plugin System >> Plugin Manager >> Click on [edit] Friends and/or Buddies in Profile >> then . . . .
(cut & paste into note pad the Plugin PHP Code, and use the find feature)
You need to find this line:
Code:
$FNB_HTML .= "<td class=\"tcat\" colspan=\"2\">".($vbulletin->options['fnb_show_friends'] ? $vbphrase['fnb_friends'] : $vbphrase['fnb_buddies']).( ($vbulletin->options['fnb_show_counts']) ? " (".count($FNB_choice).")" : "" )."</td>";
and replace it with this line:
Code:
$FNB_HTML .= "<td class=\"tcat\" colspan=\"2\">"."<a href=\"".$vbulletin->options['bburl']."/member.php?u=".$userinfo['userid']."&showall=1\">".($vbulletin->options['fnb_show_friends'] ? $vbphrase['fnb_friends'] : $vbphrase['fnb_buddies'])."</a>".( ($vbulletin->options['fnb_show_counts']) ? " (".count($FNB_choice).")" : "" )."</td>";
and that will make it so when your buddy has more than x amount of friends, you can click on "Friends (xx)" and it will link the same way as the very small, not so obvious text in the bottom right of the table that says
show all.
:banana: :banana: :banana:
P.S. Here's an example of how you can click on "Friends(xx)" so it's linkable.
Nothing very exciting, just a link.