![]() |
Who am I a buddy of?
[ 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. :) |
Great hack, thanks!
|
very usefull, thanks !
|
I guess I'll install it! I dont use the buddies but someone might!
|
How do you know this works on vBulletin 2.2.6 ? :)
|
Lucky guess ;-)
I make no file changes with this so it should work with all vBulletin versions 2+. |
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.
|
Same here. Great job! :)
|
Very nice hack, I love the ones that just make subtle changes. Thankyou :bunny:
|
Good hack, two notes though. Instead of:
Code:
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");"); Code:
show_nopermission(); Code:
WHERE CONCAT(' ', buddylist, ' ') LIKE '% userid %' |
You mean like this?
PHP Code:
|
like this i think
Code:
$mybuddyq = $DB_site->query("SELECT userid,username FROM user WHERE CONCAT(' ', buddylist, ' ') LIKE '% $bbuserinfo[userid] %' ORDER BY 'username'"); |
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. :)
|
Great hack, thanks! :)
|
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?
|
nice hack
|
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? |
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 :)
|
Nice hack, Gamingforce, it works like a charm. :)
|
Installed and working on 2.2.7. Thanks! ;)
|
Works on 2.28 also :)
|
Working with 2.2.8. :)
|
Thank you for the hack. Sure a useful one.
|
Is there a way to make this show in a pop up window instead of loading a whole page?
|
Working on 2.2.9, just so you know...
|
Version 1.5 has been released with the following changes:
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! |
Updated.... thanks!
|
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:
you get the usercp menu on top - thought maybe someone might like that. greets tina |
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! |
Any updates on where the user profile hyperlinks went?
|
Hi hackers!!
I have modified this hack so it shows all users who ignore you!! :p Hope its ok Gamingforce?? :) |
hi kars :)
tolles benutzerbild hast du hier :D ne mal im ernst. Great modification kars :) greets tina |
Thanks Tina!! :)
|
great hack! :)
|
Installed on vB 2.3.2.
/me clicks install. |
Oh, so is it ok on 2,32? Because it's something just like livejournal.com has ...
|
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 >_< |
Quote:
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 |
f?r die VB Version 2.2.9 geht not :(
|
All times are GMT. The time now is 06:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|