View Full Version : How Can I allow Variables in the Username HTML Markup
mcyates
05-28-2007, 11:58 AM
I need to add this just before the username in the opening Username HTML Markup.
<img src="images/flags/$loggedin[field12].gif">
To show a flag for each persons nationality.
Thanks in advance.
nexialys
05-28-2007, 03:25 PM
this is actually impossible, as the html tags are not made to parse internal data...
mcyates
05-28-2007, 04:05 PM
Is there a way where someone could develop a hack/modification where this may be possible?
I have even changed the template: forumhome_loggedinuser to this:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">
<img src="images/flags/$loggedin[field12].gif" title="$loggedin[field12]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
that didn't work so I changed it to this:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">
<if condition="$bbuserinfo[field12] != ''">
<img src="images/flags/$bbuserinfo[field12].gif" title="$bbuserinfo[field12]" align="center"></if>$loggedin[musername]</a>
changing $loggedin to $bbuserinfo but its showing the flag for everyone, I only need it to show it for the people who have selected a flag.
Why is it so hard to get this to work!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.