The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
get avatar from database
I'm working on a script trying to get all members avatars from the database. I see that they are being listed and stored through mysql in the table "customavatar" how can I call the images from this database? since they actually do no reside on the server or at least i cant seem to find them. I know how to do sql queries ect, but I need to be able to call members avatars. ANY HELP MUCH APPRECIATED...
|
#2
|
|||
|
|||
|
#3
|
||||
|
||||
but if they dont have an avatar how can i make it so it just shows nothing and not a missing image? THX FOR THE HELP TOO
Im trying to make an conditional statement in order to show the avatar for the members who have avatars and for the ones that don't it shows nothing... |
#4
|
|||
|
|||
When you make your Query use Count(*) for the Selection portion. then you can check if the count is 0 or not with an if statement. If it is 0 show a specific image, otherwise show the avatar.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|