vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who am I a buddy of? (https://vborg.vbsupport.ru/showthread.php?t=38326)

Gamingforce 05-05-2002 10:00 PM

Who am I a buddy of?
 
[ Feature Description ]
A member on our message board thought it would be cool if you could find out how many people have you on their buddy lists and which members have you on their lists. This hack displays that information using only one MySQL query. Installation is simple. Just modify one template, add one template and upload the php script to your forums directory.

[ Change History ]
Version 1.0 to 1.5:
- The script is now using a more accurate query to retrieve buddy list information. The previous version didn't report some buddies under some circumstances. This has been fixed. (Credits to FireFly)
- Using the shownopermission function for unregistered users trying to access the script.
- The list of buddies no longer has a trailing comma.

[ Upgrade Information ]
Just upload the new whobuddies.php to your forums directory!

[ Installation: What you need to modify/add ]
Files to modify: none
Template to modify: usercp
Templates to add: 1

[ Works on ]
vBulletin versions 2.0.0 - 2.2.9

[ Example ]
http://www.gamingforce.com/stuff/whobuddies.gif

Enjoy and as always, comments are appreciated! Also click install if you install the script so I get an idea of who's using the script and to send you updates whenever they happen. :)

Ian 05-06-2002 07:27 PM

Great hack, thanks!

Xenon 05-06-2002 07:30 PM

very usefull, thanks !

ZiRu$ 05-06-2002 08:01 PM

I guess I'll install it! I dont use the buddies but someone might!

Floris 05-06-2002 08:50 PM

How do you know this works on vBulletin 2.2.6 ? :)

Gamingforce 05-06-2002 09:40 PM

Lucky guess ;-)
I make no file changes with this so it should work with all vBulletin versions 2+.

afterlab 05-07-2002 02:38 AM

Ah, crazy good hack, Gamingforce. It reminds me of MSN's "who has me on their contact list" feature. I'll be sure to install it.

zachb 05-07-2002 03:43 AM

Same here. Great job! :)

Takara 05-07-2002 06:35 AM

Very nice hack, I love the ones that just make subtle changes. Thankyou :bunny:

Admin 05-07-2002 12:22 PM

Good hack, two notes though. Instead of:
Code:

        eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
Just use:
Code:

        show_nopermission();
And the query should check for:
Code:

WHERE CONCAT(' ', buddylist, ' ') LIKE '% userid %'
Since the first user in the list doesn't have a space before its ID.


All times are GMT. The time now is 08:31 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.01169 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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