Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Who am I a buddy of? Details »»
Who am I a buddy of?
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-05-2002 Last Update: Never Installs: 117
 
No support by the author.

[ 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-11-2002, 07:07 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean like this?

PHP Code:
$mybuddyq $DB_site->query("WHERE CONCAT(' ', buddylist, ' ') LIKE '% userid %'"); 
Reply With Quote
  #13  
Old 05-11-2002, 07:35 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

like this i think

Code:
	$mybuddyq = $DB_site->query("SELECT userid,username FROM user WHERE CONCAT(' ', buddylist, ' ') LIKE '% $bbuserinfo[userid] %' ORDER BY 'username'");
Reply With Quote
  #14  
Old 05-11-2002, 10:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! It is working great now. I couldn't get it to work with the original php file for some reason. But all is well now. Thanks again! (Can you tell how new I am at this?) Is there a level below Tyro Hacker? Because I should probably be there for now.
Reply With Quote
  #15  
Old 05-14-2002, 10:36 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, thanks!
Reply With Quote
  #16  
Old 07-10-2002, 03:25 PM
thescalper thescalper is offline
 
Join Date: May 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it, exactly how the readme files says, but when i click the link "who are your buddies" I get a screen that looks like this. Am I missing something?
Reply With Quote
  #17  
Old 07-14-2002, 04:49 PM
Bro_Joey_Gowdy's Avatar
Bro_Joey_Gowdy Bro_Joey_Gowdy is offline
 
Join Date: May 2002
Location: Hickory Flat MS 38633
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack
Reply With Quote
  #18  
Old 07-17-2002, 05:14 PM
thenetbox thenetbox is offline
 
Join Date: Mar 2002
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some people added me to the buddy lists .. but i dont see them.. i added them to mine.. and they dont see me

I get 7 buddies.. but thats it.. why isnt it updating?
Reply With Quote
  #19  
Old 07-19-2002, 07:38 PM
Fuitad's Avatar
Fuitad Fuitad is offline
 
Join Date: Nov 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Important, everybody make sure you apply FireFly's modifications or it might not work correctly.
Reply With Quote
  #20  
Old 07-20-2002, 04:59 AM
Sue's Avatar
Sue Sue is offline
 
Join Date: Nov 2001
Location: Springfield, MA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just added the buddy link into the welcome panel hack I installed on my board
Reply With Quote
  #21  
Old 10-05-2002, 06:01 PM
Attrox's Avatar
Attrox Attrox is offline
 
Join Date: Jan 2002
Location: St.Paul, MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, Gamingforce, it works like a charm.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13365 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete