PDA

View Full Version : Change code to get avatar from file system instead of the database?


beansbaxter
07-22-2010, 09:02 AM
I have a script that is grabbing the user's avatar from the database. This is the code that it's using:

$avatarURL = $vbulletin->options[bburl]."/image.php?u=".$vbulletin->userinfo[userid];

I have moved avatars from the database into the file system. What code would I use to replace this so it calls from the file system instead of the database?

I'm running vBulletin 3.8 if it matters. Thanks in advance.

BirdOPrey5
07-25-2010, 09:12 PM
I'd be interested in this too... I looked for this several weeks ago and came to the conclusion it wasn't possible. :(

Guest190829
07-26-2010, 02:44 AM
vBulletin has a built in function fetch_avatar_url() , that is probably what you are looking for.