Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #22  
Old 10-11-2002, 09:29 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working on 2.2.7. Thanks!
Reply With Quote
  #23  
Old 10-16-2002, 07:25 AM
Andrus Andrus is offline
 
Join Date: Dec 2001
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 2.28 also
Reply With Quote
  #24  
Old 10-29-2002, 07:25 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working with 2.2.8.
Reply With Quote
  #25  
Old 11-01-2002, 07:13 PM
Dynamic One's Avatar
Dynamic One Dynamic One is offline
 
Join Date: Nov 2001
Location: Somewhere on the net
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the hack. Sure a useful one.
Reply With Quote
  #26  
Old 12-31-2002, 02:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make this show in a pop up window instead of loading a whole page?
Reply With Quote
  #27  
Old 01-08-2003, 07:43 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on 2.2.9, just so you know...
Reply With Quote
  #28  
Old 01-08-2003, 10:01 PM
Gamingforce's Avatar
Gamingforce Gamingforce is offline
 
Join Date: Oct 2001
Location: New York City
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.5 has been released with the following changes:
  • 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.
  • Using the shownopermission function for unregistered users trying to access the script.
  • The list of buddies no longer has a trailing comma.

To upgrade, just upload the new whobuddies.php into your forum directory. The new version can be downloaded from the first page of the hack thread.

Credits to FireFly for the updated query!
Reply With Quote
  #29  
Old 01-08-2003, 10:18 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated.... thanks!
Reply With Quote
  #30  
Old 01-10-2003, 06:01 PM
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi gamingforce,
thanks for the update, just uploaded the new php file, however now the links to the memberprofiles are missing. guess they are somehow being stripped out???

anyideas

by the way if you add:

PHP Code:
$cpnav = array();
$cpmenu = array();
$cpnav[1]="{ secondaltcolor}";
$cpnav[2]="{ secondaltcolor}";
$cpnav[3]="{ secondaltcolor}";
$cpnav[4]="{ secondaltcolor}";
$cpnav[5]="{ firstaltcolor}";
$cpnav[6]="{ secondaltcolor}";
$cpnav[7]="{ secondaltcolor}";
$cpnav[8]="{ secondaltcolor}";
$cpmenu[5]="class=\"fjsel\" selected";
eval(
"\$cpnav = \"".gettemplate("usercpnav")."\";"); 
before the $mybuddyq = $DB_site->query

you get the usercp menu on top - thought maybe someone might like that.

greets
tina
Reply With Quote
  #31  
Old 01-29-2003, 11:42 AM
maoz440 maoz440 is offline
 
Join Date: Nov 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this hack running perfect (per your install instructions) on my 2.29 forum up until 2 days ago. At that time I switch servers and moved my MySQL database. Everything in the forum works well, and the custom WhoBuddy template and Usercp template revisions remained in tact. I just had to re-upload the whobuddies.php to my main forum directory. Now I am getting this error message when I click on the "Who am I a buddy of?"

Warning: Unknown(/usr/local/apache/htdocs/mysite.com/vbb/whobuddies.php): failed to create stream: Permission denied in Unknown on line 0

Warning: Unknown(): Failed opening '/usr/local/apache/htdocs/mysite.com/vbb/whobuddies.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

The whobuddies.php file hasn't been modified at all. I just can't figure out what the problem is. Any help would be greatly appreciated!
Reply With Quote
Reply

Thread Tools

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 04:29 AM.


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.12318 seconds
  • Memory Usage 2,302KB
  • 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_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