View Full Version : Who am I a buddy of?
Gamingforce
05-05-2002, 10:00 PM
[ 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. :)
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:
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
Just use:
show_nopermission();
And the query should check for:
WHERE CONCAT(' ', buddylist, ' ') LIKE '% userid %'
Since the first user in the list doesn't have a space before its ID.
Boofo
05-11-2002, 07:07 PM
You mean like this?
$mybuddyq = $DB_site->query("WHERE CONCAT(' ', buddylist, ' ') LIKE '% userid %'");
Vivi Ornitier
05-11-2002, 07:35 PM
like this i think
$mybuddyq = $DB_site->query("SELECT userid,username FROM user WHERE CONCAT(' ', buddylist, ' ') LIKE '% $bbuserinfo[userid] %' ORDER BY 'username'");
Boofo
05-11-2002, 10:13 PM
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. :)
Erwin
05-14-2002, 10:36 AM
Great hack, thanks! :)
thescalper
07-10-2002, 03:25 PM
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 (http://shaded-legend.com/bin/whobuddies.jpg). Am I missing something?
Bro_Joey_Gowdy
07-14-2002, 04:49 PM
nice hack
thenetbox
07-17-2002, 05:14 PM
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?
Fuitad
07-19-2002, 07:38 PM
Important, everybody make sure you apply FireFly's modifications or it might not work correctly.
I just added the buddy link into the welcome panel hack I installed on my board :)
Attrox
10-05-2002, 06:01 PM
Nice hack, Gamingforce, it works like a charm. :)
FleaBag
10-11-2002, 09:29 PM
Installed and working on 2.2.7. Thanks! ;)
Andrus
10-16-2002, 07:25 AM
Works on 2.28 also :)
FleaBag
10-29-2002, 07:25 PM
Working with 2.2.8. :)
Dynamic One
11-01-2002, 07:13 PM
Thank you for the hack. Sure a useful one.
Boofo
12-31-2002, 02:50 PM
Is there a way to make this show in a pop up window instead of loading a whole page?
Zelda-King
01-08-2003, 07:43 PM
Working on 2.2.9, just so you know...
Gamingforce
01-08-2003, 10:01 PM
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!
Talisman
01-08-2003, 10:18 PM
Updated.... thanks!
tkeil69575
01-10-2003, 06:01 PM
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:
$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
maoz440
01-29-2003, 11:42 AM
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!
FleaBag
02-25-2003, 07:01 AM
Any updates on where the user profile hyperlinks went?
Kars10
02-25-2003, 12:45 PM
Hi hackers!!
I have modified this hack so it shows all users who ignore you!! :p
Hope its ok Gamingforce?? :)
tkeil69575
02-25-2003, 01:21 PM
hi kars :)
tolles benutzerbild hast du hier :D
ne mal im ernst. Great modification kars :)
greets tina
Kars10
02-25-2003, 01:30 PM
Thanks Tina!! :)
miss poison
05-17-2003, 11:25 PM
great hack! :)
legendarysk8er
09-18-2003, 05:18 PM
Installed on vB 2.3.2.
/me clicks install.
gmarik
09-24-2003, 01:31 PM
Oh, so is it ok on 2,32? Because it's something just like livejournal.com has ...
PsyBlast
11-22-2003, 04:32 PM
works on 2.3.3
just a suggestion, in the buddylist, each persons name should link to their user profile. if it does allready, its not working now >_<
Charlie Argueta
12-07-2003, 09:43 AM
works on 2.3.3
just a suggestion, in the buddylist, each persons name should link to their user profile. if it does allready, its not working now >_<
Well I want to install it, but I see that you comment about many errors... so the actual version is correct?
Also soon I'll upgrade to Gamma 3.0.0. so this hack will work or I have to wait until RC and when the new hacks will be allow?
See Ya
Angelus
07-25-2004, 06:08 PM
f?r die VB Version 2.2.9 geht not :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.