![]() |
Display Friend count in Posbit
One of our members asked for this so I figured I would do a quick share here.
Go to AdminCP> Styles & Templates> Postbit Legacy. Find: Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<if condition="$post['userid']"><div>Friends: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if> |
Nice change! It would be nice if you could get it to load directly to the Friends tab. I tried to add "#friends" to the end of the url, but it didn't work.
|
Thanks, never thought of that.
|
Great one. Could we have similar for number of social groups?
|
Quote:
Quote:
|
If you download the friends browser mod you can then change the link to point to friends.php?u=$post[userid] which is what i've done.
|
What is the "friends browser mod"?
|
Very nice, thank you. I placed it a little differently, in postbit. not postbit legacy.
Code:
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if> Code:
<if condition="$post['userid']"><div>Friends: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if> |
Quote:
|
Quote:
|
All times are GMT. The time now is 06:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|