vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Display Friend count in Posbit (https://vborg.vbsupport.ru/showthread.php?t=182279)

mvigod 06-11-2008 10:00 PM

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>
            </div>

Below that add:

Code:

<if condition="$post['userid']"><div>Friends: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if>
Thats it. Easy breezy. If you use itrader or an award mod, you can place it below the code for that as I have done.

Coop1979 06-12-2008 12:53 PM

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.

M-Tuning 06-12-2008 03:04 PM

Thanks, never thought of that.

redraider 06-12-2008 06:19 PM

Great one. Could we have similar for number of social groups?

mvigod 06-13-2008 12:19 PM

Quote:

Originally Posted by Coop1979 (Post 1547631)
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.

Yeah, it won't recognize the anchor #friends when entering the profiile. I tried it too, and ended up just leading the link to the profile page. I am sure there is a way and I'll look at it when I get some time.


Quote:

Originally Posted by redraider (Post 1547855)
Great one. Could we have similar for number of social groups?

I am not sure if there is a system count for social groups, but Ill look. If there is, it should be fairly simple.

Shill360 06-13-2008 09:57 PM

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.

Boofo 06-13-2008 10:18 PM

What is the "friends browser mod"?

BigDog56 06-14-2008 12:11 PM

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>
And placed above it.

Code:

<if condition="$post['userid']"><div>Friends: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if>
Nice location for me. Again, THANK YOU!

mvigod 06-14-2008 03:15 PM

Quote:

Originally Posted by Shill360 (Post 1548756)
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.

I agree with Boofo, havent heard of that one.

mvigod 06-14-2008 03:16 PM

Quote:

Originally Posted by BigDog56 (Post 1549111)
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>
And placed above it.

Code:

<if condition="$post['userid']"><div>Friends: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if>
Nice location for me. Again, THANK YOU!

No problem. Thanks for sharing your postbit placement.


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
  • Page Generation 0.01137 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete