Been looking but cant find (General)
The script that process the users name, I need to take the heavy off and add <i></i>.
by Line Chef , Sunday, March 22, 2009, 16:53 (5517 days ago)
The script that process the users name, I need to take the heavy off and add <i></i>.
by Mark, Sunday, March 22, 2009, 17:06 (5517 days ago) @ Line Chef
edited by Mark, Sunday, March 22, 2009, 17:16
Edit /templates/default/subtemplates/index.tpl.inc
<strong> {if $data.$element.user_type==2}<span class="admin" title="{#administrator_title#}">{$data.$element.name}</span>{elseif $data.$element.user_type==1}<span class="mod" title="{#moderator_title#}">{$data.$element.name}</span> {else}{$data.$element.name}{/if} </strong>
Remove the <strong> and </strong>. You've inspired me to do this to my forum too :)
note: I couldn't post this because one of the lines was too long & had to add some spaces, so it won't exactly match the template.
by Line Chef, Sunday, March 22, 2009, 18:00 (5517 days ago) @ Mark
Thanks a bunch Mark worked out fine.. :)
by Alex , Sunday, March 22, 2009, 18:25 (5517 days ago) @ Mark
Edit /templates/default/subtemplates/index.tpl.inc
... and /templates/default/subtemplates/entry.tpl.inc
note: I couldn't post this because one of the lines was too long & had to add some spaces, so it won't exactly match the template.
You can use the [code]...[/code]
for this purpose:
<strong>{if $data.$element.user_type==2}<span class="admin" title="{#administrator_title#}">{$data.$element.name}</span>{elseif $data.$element.user_type==1}<span class="mod" title="{#moderator_title#}">{$data.$element.name}</span>{else}{$data.$element.name}{/if}</strong>
... or [code=html]...[/code]
:
<strong>{if $data.$element.user_type==2}<span class="admin" title="{#administrator_title#}">{$data.$element.name}</span>{elseif $data.$element.user_type==1}<span class="mod" title="{#moderator_title#}">{$data.$element.name}</span>{else}{$data.$element.name}{/if}</strong>
... or [code=smarty]...[/code]
:
<strong>{if $data.$element.user_type==2}<span class="admin" title="{#administrator_title#}">{$data.$element.name}</span>{elseif $data.$element.user_type==1}<span class="mod" title="{#moderator_title#}">{$data.$element.name}</span>{else}{$data.$element.name}{/if}</strong>
More about the syntax highlighter here...
Alex