View Full Version : Avatar URL in DM
sleepygiant
03-30-2012, 05:24 PM
Hi Folks,
I was wondering what the avatar URL key is for the datamanager:
$newuser = & datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('avatarurl', $avatar);
Tried looking, but it's such a common search term, I wasn't able to narrow it down.
Thanks!
I don't see avatarurl as something that you can set for a user. I think it gets set in the userinfo at some point, but it's not stored as part of the user db table.
Edit: Or maybe what you're asking is how to set an avatar for a user via the datamanager?
sleepygiant
03-30-2012, 05:37 PM
Edit: Or maybe what you're asking is how to set an avatar for a user via the datamanager?
Yes, that's what I'm looking on how to do. If unable, I think I can do it via a normal SQL query, but Just wanted to check to see if I can do it in DM.
I don't think there's any option for specifying that an avatar is an external url, except when setting your avatar, of course. When you provide a custom url it gets uploaded and then a record is added to the customavatar table. Looking at the file image.php, it looks like you need to have the image data in the customavatar table.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.