Log in

View Full Version : really dumb question (getavatarurl location)


upirate
04-13-2007, 10:51 AM
Anyone know where getavatarfunction is located in 3.6.5 ?

thanks

tobybird
04-13-2007, 11:43 AM
not following... are you referring to $avatarurl or $post[avatarurl]?

upirate
04-13-2007, 11:48 AM
the function getavatarurl()

it returns the URL to the users avatar

it used to be in the older versions of VB

tobybird
04-13-2007, 11:57 AM
Oh I'm sorry. blond moment. :rolleyes: And don't know right off hand....

Marco van Herwaarden
04-13-2007, 12:15 PM
There is no function with that name in vB 3.6.5.

you probably will need the function fetch_avatar_url(), which is defined in includes/functions_user.php.

upirate
04-13-2007, 12:26 PM
oooooooo ok.
They must have replaced the old one.

WOuld you know if it returns avatars from both the avatar tables ?

thanks for the reply

Marco van Herwaarden
04-13-2007, 12:41 PM
Both avatar tables?

WetWired
04-13-2007, 01:06 PM
Yes, fetch_avatar_url should always return the correct URL, regardless of if they use a stock or custom avatar, and whether it is in the database or the file system, to the best of my knowledge.

upirate
04-13-2007, 01:15 PM
coolio