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

Reply
 
Thread Tools
Who Am I A Buddy Of - Version 2.0 Details »»
Who Am I A Buddy Of - Version 2.0
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-19-2004 Last Update: Never Installs: 46
 
No support by the author.

[ Feature Description ]
This feature allows users to easily see who they are buddies of along with an easy way to add/remove buddies right from the page! This modification is a big upgrade from the one I made for vBulletin 2. It has proved to be a very useful tool for my members. As of this version, there are noother known performance optimization techniques, nobugs and no security problems.

[ Version 2.0 Fix Log ]
2.00 -> 2.01 - July 20, 2004
  • Updated a non code related error in the installation instructions. (Bug finder: Dennis B)
  • Fixed a bug for people using tables with prefixes. (Bug finder: the Sandman)
2.00 -> 2.01 - July 20, 2004
  • Fixed a small warning that was displayed if zero people had you on their buddy list. (Bug finder: Zelda King)
  • Templates are now cached. (Bug finder: Zelda King)
[ Updates From Version 1.0 ]
  • Uses only one query to get all the information needed for this! (This took me a while to figure out but I got it all into one query using regular expressions and left joins).
  • User CP navigation link and proper displaying added.
  • Better formatting.
  • Easy add/remove buddies from the list with a "- buddy" if a user is already a buddy and a "+ buddy" if the user is not a buddy.
  • Percentage of users that are mutual buddies (both of you have each other on buddy lists).
  • Updated a security bug.
  • Huge performance increase.
  • Fixed the big bug that didn't display results if your userid was at the beginning or end of the buddylist.
[ Screenshots ]




Enjoy!

Show Your Support

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

Comments
  #2  
Old 07-20-2004, 01:18 AM
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Location: Indiana
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

am i first? awesome!

super easy install and very very cool!

thanks so much!

[high]* turbidblue clicks install [/high]
Reply With Quote
  #3  
Old 07-20-2004, 01:58 AM
JagFan JagFan is offline
 
Join Date: Jul 2002
Location: Arizona
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this! Great hack!! (yes, very easy install!!)
Reply With Quote
  #4  
Old 07-20-2004, 02:47 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack I must say and coded well! Thanks!
Reply With Quote
  #5  
Old 07-20-2004, 03:39 AM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! I'll be installing this sometime shortly.
Reply With Quote
  #6  
Old 07-20-2004, 05:33 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderful addition! It took me all of two minutes to install and works perfectly. Nicely done.
Reply With Quote
  #7  
Old 07-20-2004, 10:12 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the release. I was waiting for you to port this one.
Reply With Quote
  #8  
Old 07-20-2004, 10:19 AM
nexialys
Guest
 
Posts: n/a
Default

i thought that we had enough with vBFriends - View your social network is working well, easy to manage, one file script, very attractive look too...
Reply With Quote
  #9  
Old 07-20-2004, 10:25 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a note: the following templates are uncached in whobuddies.php;

USERCP_SHELL (1)
usercp_nav_folderbit (3)
whobuddy (1)

EDIT: Here, I fixed it.

EDIT 2: If you have no buddies you get this error: Warning: Division by zero in /domain/url/whobuddies.php on line 50 (note line 50 is counting my template caching [in my attached file]. The default file would be about line 45 or something;
PHP Code:
$mutualpercent round((($mutualcount $buddycount) * 100),2); 
).

Also noted: This hack adds a page so a Who's Online location needs adding. I'd post the code but I just used that Custom Add Online Locations hack.

No really, I always liked this hack. vBulletin should really be shipped with such a feature, I reckon.
Reply With Quote
  #10  
Old 07-20-2004, 01:32 PM
Gamingforce's Avatar
Gamingforce Gamingforce is offline
 
Join Date: Oct 2001
Location: New York City
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Zelda-King for spotting these!

2.00 -> 2.01 - July 20, 2004
-Fixed a small warning that was displayed if zero people had you on their buddy list. (Bug finder: Zelda King)
-Templates are now cached. (Bug finder: Zelda King)

To upgrade, all you need to do is download the new attachment in post #1 and upload the new whobuddies.php to your server.
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 06:43 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.05008 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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