vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   avatar from profile field (https://vborg.vbsupport.ru/showthread.php?t=195389)

KrU$ty 11-04-2008 12:24 AM

avatar from profile field
 
hey all,

Im looking at doing a small mod for my site, and am not quite sure how to go about it.

What i want, is this link:

http://img.eve.is/serv.asp?s=64&c=1108662580

where 1108662580 is a profile field. What i wanted to know was, how would i go about firstly making the link accept the field and secondly, having it replace the user avatars.

Im assuming i would just create a field, add the info to my profile field, and then use <img src="http://img.eve.is/serv.asp?s=64&c=fieldx"> to display (correct me if im wrong). But how would i go about making it so that avatars cannot be chosen and only this automated one will display, as well as where to put the avatar code.

Thanks in advance.

KrU$ty 11-12-2008 04:36 PM

Aside from the profile field tutorial, does anyone have any info or example scripts at all?

SEOvB 11-12-2008 05:15 PM

<img src="http://img.eve.is/serv.asp?s=64&c=$post[fieldx]" alt="$bbuserinfo[username]'s Avatar"> will work better.

You can disable avatars in the vBulletin admincp, then edit the postbit(_legacy) templates to match your needs, replacing the standard vBulletin avatar code, with the one above

KrU$ty 11-15-2008 04:03 AM

thanks very much. It works a treat.

KrU$ty 11-16-2008 09:49 AM

just one more question. When i enter it into the post bit, it works fine, but when i enter it into the usercp or navbar it does not pick up the field.

How come?


All times are GMT. The time now is 01:40 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.01322 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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