![]() |
Avatar Gallery Hack
_/?\_/?\_/?\_/?\_/?\_/?\_
Avatar Gallery Hack Version 1.2.1 26/10/03 By Hwulex ?\_/?\_/?\_/?\_/?\_/?\_/? History ======= One of the users on my board requested this earlier today, and rather than doing my uni work, thought I'd tuck into a bit of vBulletin. :D Strange request, but it's interesting, and useful imo being able to browse through seeing who's using what. All this hack does is display a list of your forum member's avatars. Unlike v1.1, there is now only the one option; view only those with an avatar set. This hack has not been tested on a large scale but worked perfectly on a local test installation of vB 2.3.2. Working Example: ================= At present, I do not have an online demo of version 1.2 of this hack working. You can see version 1.1 of this hack working on my forums: Xaprief Forum's Avatar Gallery. Contents ========= Contained in the .zip file are an example image, and instructions.txt (this file) - instructions.txt -> Instructions for hack installation. - example.gif -> Shows how the hack is used on the forum. Use ==== Tested on vBulletin 2.3.2 Files to modify: - memberlist.php Templates to modify: - memberlist Templates to add: - memberavatarlist - memberavatarlistbit Estimated Install Time: 3 minutes. Support: ========== I am a full time university student reading computing so I'm not always available, but I will offer support as much as possible. Contact: ========= Email: vbhacks (at) hwulex (dot) com Updates ======== - 1.2.1: 2-per-page and if problem fixed. Version History ============== - 1.1 - Designed for vB 2.2.6, works up to 2.2.9. - 1.2 - Fixed for 2.3.2, but two errors in code. - 1.2.1 - Fixed errors from v1.2. NB: If you do install this hack, please click on the INSTALL button. You will receive updates in your e-mail whenever I add new features to it. Also post a reply with your comments, they are appreciated. |
Screenshot:
|
heh nice, i might install this sometime
|
Cool idea, it beats what vB3 is currently trying to do by showing avatars within the memberlist page, which simply makes it look too cramped and a bit tacky. This works good though ;)
[high]* Velocd clicks install [/high] My only suggestion is to add the "memberlist" bar on the avatars page for searching through users by the first letter in their username. |
Very nice! thanks!
|
Thanks for comments guys :)
Velocd: I did think about having that as well, but wasn't appropriate for the size of the forums that I run. I may add it if people would like, a good idea for larger forums I suppose :) Nice forums there mate btw. I see you've also got my forum rules update installed too, cheers :D |
Looks great. Going to install it soon. :D
ETA: Looks perfect! *clicks install* |
Wow that's very nice looking buddy :)!
Good job :D Regards - miSt |
I get this message when I try to click on a member's profile through the gallery.
Quote:
|
Well spotted, cheers WitchyT.
After looking at my own, what seems to be happening is it doesn't have the $userid set on the end of the link. I'll take a look now why not. Clicking anyone that has an avatar works, but those that don't, doesn't. Strange. |
Fixed :D
In the MySQL query I had; SELECT * FROM user. And because of the JOIN to the avatar table, the userid field was ambiguous. To fix the problem, find: Code:
$users=$DB_site->query(" Code:
$users=$DB_site->query(" |
Great. It works. Thanks! :D
|
Cool! Installed and working great. I changed "Member's Avatars" (improper grammar) to "Avatar Gallery" in the templates.
I also changed the php code to include only those usergroupids that represent admins and subscribed members. Thanks! Jennifer |
Cool hack! Installed and working great on 2.3.0
|
Works nicely, thanks a bunch for this!
|
I doubt this is something I'd use, but still a nice job. :)
|
While playing with this, this hack when put into "show only users with avatars" mode will not work if you use general/non-custom avatars on your site.
If a user has a custom one uploaded that they're using it works perfectly fine. The minute you go into your admin cp and add an avatar you want to make available to all users, and they select it, then they will never show in the "show only users with avatars" list. There is one other hack that has this exact same problem, and that is this hack: UserCP Stats Panel https://vborg.vbsupport.ru/showthrea...threadid=51301 I'm going to post this to hopefully be corrected there as well. I hope this can be fixed, I won't be able to use this if it won't work with my 100 available avatars. :( -Jason |
Your wrote in instructions.txt :
Quote:
|
Yes, he meant template down on the bottom where he said replacements...
|
Nothing works on 2.3
Can somebody fix that? |
Works perfectly fine on vB 2.3.0.
|
Alien, than I give up.
Nothing at all worked on my 2.3 Even the profile was broken... (maybe my fault than or an older version of the hack) |
Sweet, got it working..
You might want to change your directions to actually say add template at the bottom and not add replacement. That messed me up for a while. Would it be possible to have it give you an option to remove the avatars from the gallery if your an admin? Like give it a yes/no toggle all set to yes for keep them but if you change it to no and submit it would set it to blank? |
I think I can figure most of it out if someone can just tell me what the basic command is to turn a users avatar on or off.
|
Quote:
Quote:
I will also update the instructions to say 'template' instead of replacement, and will do some testing with 2.3.0, which so far I have had no time to do. |
Thanks so much, I look forward to it. :)
-Jason |
Any luck? I'm still interested in the fix when you're able. :D
|
Not as yet sorry, I've just moved house and am starting a new job on Monday.
Sorry. :( |
Sweet!
Nice hack! Thanks |
Okay, thanks for the update. :) I look forward to when you have the time.
|
This appears to completely break in 2.3.2, so I guess it can still use that update whenever ya have time. ;)
|
I'd definetly use this when I hit 100 members or so :p
|
Quote:
Hoping for an update or a fix for v232 as well. |
You'll be pleased to hear (I hope) that I am, at this very minute, working on a fix/rewrite for 2.3.2. :)
I've got rid of the /0 error, and altered the templates a little. Now I just need to get it to output some actual avatars. ;) |
I don't have a working online version to demonstrate, but from my local testing, it's all good.
So here's the new instructions file for vB 2.3.2. Enjoy. Original post updated and hack-update sent. :) |
I get an error on this line
} #end if ($action=="avatar") .... If I remove the line it works but only getting 2 avatars a page. |
Ah crap, sorry.
I pasted over the instructions code with my memberlist.php code which was altered slightly for testing. Should be fixed now (files updated). :) |
Works perfectly now.
|
This is an old hack, but I'd love to see something like this for 3.6.8 - anyone?
|
ditto.
|
All times are GMT. The time now is 05:54 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:
|