PDA

View Full Version : Displaying Username Images on profile


WorldDomination
07-08-2009, 05:29 AM
I've coded a mod to use images for user names rather then a regular text username and I can't get this username to display on the profile correctly. I'm using this code:

<if condition="$bbuserinfo['field8']"><img src="$bbuserinfo[field8]" width="200" height="30"/> <else />$prepared[musername] </if>

and it displays your user name image (the person viewing the other persons profile) rather than the username image of the persons profile you are visiting.

I've been messing with this for hours and cannot figure it out.

Please post here or message me VIA MSN (xxworldxxdominationxx@hotmail.com) if you know how to get it to work.

cono1717
07-08-2009, 08:48 AM
Try


<if condition="$userinfo['field8']"><img src="$userinfo[field8]" width="200" height="30"/> <else />$prepared[musername] </if>


OR


<if condition="$post['field8']"><img src="$post[field8]" width="200" height="30"/> <else />$prepared[musername] </if>

WorldDomination
07-08-2009, 03:43 PM
I got it, it should be:

<if condition="$userinfo['field8']"><img src="$userinfo[field8]" width="200" height="30"/> <else />$prepared[musername] </if>

"$bbuserinfo[field8]" gets the current user (you) rather than the users profile you are viewing.

Thanks for the help, though. :)

cono1717
07-08-2009, 04:23 PM
lol no problem, I thought I was right first time with the $userinfo but something told me to tell you to try $post lol.