The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
So I was messing around in the template "inferno_shoutbox_shout". I notice that I could make everyone's name do different things like so:
I was wondering how I could do it for only one user or several? So like say I want mine like that but then I will billy's to have something different? How can I do this? Thanks ![]() --------------- Added [DATE]1332190780[/DATE] at [TIME]1332190780[/TIME] --------------- This is on another forum: That's what I want it like without having to make a usergroup since then my name would be displayed like that on the whole forum. |
#2
|
||||
|
||||
![]()
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> |
#3
|
|||
|
|||
![]() Quote:
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> 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 /> |
#4
|
||||
|
||||
![]()
Try replacing the {vb:raw shout.musername} with:
Code:
<vb:if condition="$shout['s_user'] == X"> <span style="CUSTOM STYLING">{vb:raw shout.musername}</span> <vb:else /> {vb:raw shout.musername} </vb:if> |
#5
|
|||
|
|||
![]() Quote:
Also, how could I do a different one for each user? |
#6
|
||||
|
||||
![]()
How many users are we talking about? You could end up with a lot of code... but a quick way is just add an else if for each user....
Code:
<vb:if condition="$shout['s_user'] == X"> <span style="CUSTOM STYLING">{vb:raw shout.musername}</span> <vb:elseif condition="$shout['s_user'] == X" /> <span style="CUSTOM STYLING">{vb:raw shout.musername}</span> <vb:else /> {vb:raw shout.musername} </vb:if> |
#7
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|