vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Avatar URL in DM (https://vborg.vbsupport.ru/showthread.php?t=280901)

sleepygiant 03-30-2012 05:24 PM

Avatar URL in DM
 
Hi Folks,
I was wondering what the avatar URL key is for the datamanager:
Code:

                $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!

kh99 03-30-2012 05:30 PM

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

Quote:

Originally Posted by kh99 (Post 2315112)
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.

kh99 03-30-2012 05:47 PM

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.


All times are GMT. The time now is 03:06 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
  • Page Generation 0.00974 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete