vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Am I A Buddy Of - Version 2.0 (https://vborg.vbsupport.ru/showthread.php?t=67392)

Gamingforce 07-19-2004 10:00 PM

Who Am I A Buddy Of - Version 2.0
 
[ 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 ]
http://www.gamingforce.com/chocobo/whobuddies-cp.gif

http://www.gamingforce.com/chocobo/whobuddies.gif

Enjoy! :)

turbidblue 07-20-2004 01:18 AM

am i first? awesome!

super easy install and very very cool!

thanks so much!

[high]* turbidblue clicks install :)[/high]

JagFan 07-20-2004 01:58 AM

Thank you for this! Great hack!! (yes, very easy install!!)

Koutaru 07-20-2004 02:47 AM

Excellent hack I must say and coded well! :) Thanks!

KTBleeding 07-20-2004 03:39 AM

Awesome! I'll be installing this sometime shortly.

Bryan Ex 07-20-2004 05:33 AM

Wonderful addition! It took me all of two minutes to install and works perfectly. Nicely done.

Zelda-King 07-20-2004 10:12 AM

Thanks for the release. I was waiting for you to port this one.

nexialys 07-20-2004 10:19 AM

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

Zelda-King 07-20-2004 10:25 AM

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. :D

No really, I always liked this hack. vBulletin should really be shipped with such a feature, I reckon.

Gamingforce 07-20-2004 01:32 PM

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.


All times are GMT. The time now is 11:05 AM.

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.01132 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
  • (1)bbcode_php_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