Quote:
Originally Posted by Iain M
I don't use the Inferno shoutbox, but if you search for userid in the template you were editing you should be able to do something like
Code:
<vb:if condition="$inferno['userid'] == X">
custom code
<vb:else />
everyone else
</vb:if>
|
It isn't working for the things I have tried. This is the template code:
Code:
<vb:if condition="!$shout[s_me]">
<div style="padding-top: 1px; padding-bottom: 1px;<vb:if condition="$shout[s_notice]">padding-bottom: 6px;</vb:if>" class="smallfont"<vb:if condition="$shout[canmod]"> ondblclick="return InfernoShoutbox.edit_shout({vb:raw shout.sid});"</vb:if>><vb:if condition="!$shout[s_notice]">[<span class="time">{vb:raw shout.date} {vb:raw shout.time}</span>] </vb:if><vb:if condition="$shout[s_private] > 0 && !$ispmwindow"><b>[PM]</b> </vb:if><vb:if condition="!$shout[s_notice]"><a <vb:if condition="!$vboptions[ishout_disable_pm]">href="#" onclick="return InfernoShoutbox.open_pm_tab('pm_{vb:raw shout.userid}', '{vb:raw shout.javascript_name}');"<vb:else />href="member.php?{vb:raw session.sessionurl}u={vb:raw shout.s_user}"</vb:if>></vb:if>
{vb:raw shout.musername}
<vb:if condition="!$shout[s_notice]"></a></vb:if>: {vb:raw shout.s_shout}</div>
<vb:else />
<div style="padding-top: 1px; padding-bottom: 1px;" class="smallfont"<vb:if condition="$shout[canmod]"> ondblclick="return InfernoShoutbox.edit_shout({vb:raw shout.sid});"</vb:if>>*{vb:raw shout.musername} {vb:raw shout.s_shout}*</div>
</vb:if>
The part:
Code:
{vb:raw shout.s_user}"</vb:if>></vb:if>
{vb:raw shout.musername}
<vb:if condition="!$shout[s_notice]"></a></vb:if>: {vb:raw shout.s_shout}</div>
<vb:else />
That "{vb:raw shout.musername}" is what controls what the username does.