PDA

View Full Version : avatar from profile field


KrU$ty
11-04-2008, 12:24 AM
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?