
07-29-2006, 02:51 AM
|
|
|
Join Date: Mar 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by LaCN
I love this
But I want to have colored prefixes.
Or be able to use images instead.
As a temporal sollution, I added it into the templates.
(dunno where to make it in php, since it all got very confusing now lol)
find in threadbit template
PHP Code:
<if condition="$show['threadprefix'] == 2">
<td class="alt1" align="$prefixalign" nowrap="nowrap">
<if condition="$thread['threadprefix']">
$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
</if>
</td>
</if>
:bunny: If you want an image, do something like this:
PHP Code:
<if condition="$show['threadprefix'] == 2">
<td class="alt1" align="$prefixalign" nowrap="nowrap">
<if condition="$thread['threadprefix']">
<if condition="$thread['threadprefix'] == '[GAME]'">
<img src="images/Casino_icon.gif" title="Win Win !! The game is open !" border=0 />
<else />
$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
</if>
</if>
</td>
</if>
:bunny: If you want colored prefixes:
PHP Code:
<if condition="$show['threadprefix'] == 2">
<td class="alt1" align="$prefixalign" nowrap="nowrap">
<if condition="$thread['threadprefix']">
$prefixmarkup[0]
<span style="color:
<if condition="in_array($thread['threadprefix'], array('[GREEN]', '[GREEN2]', '[GREEN3]'))">green</if>
<if condition="$thread['threadprefix'] == '[SCHEDULED]'">orange</if>
<if condition="$thread['threadprefix'] == '[PACK]'">purple</if>
<if condition="$thread['threadprefix'] == '[PACI]'">blue</if>
<if condition="$thread['threadprefix'] == '[PROGRESS]'">gray</if>
<if condition="$thread['threadprefix'] == '[STOPPED]'">red</if>
">
$thread[threadprefix]
</span>
$prefixmarkup[1]
</if>
</td>
</if>
:bunny: Or if you want it all...
PHP Code:
<if condition="$show['threadprefix'] == 2">
<td class="alt1" align="$prefixalign" nowrap="nowrap">
<if condition="$thread['threadprefix']">
<if condition="$thread['threadprefix'] == '[GAME]'">
<img src="images/Casino_icon.gif" title="Win Win !! The game is open !" border=0 />
<else />
$prefixmarkup[0]
<span style="color:
<if condition="in_array($thread['threadprefix'], array('[GREEN]', '[GREEN2]', '[GREEN3]'))">green</if>
<if condition="$thread['threadprefix'] == '[SCHEDULED]'">orange</if>
<if condition="$thread['threadprefix'] == '[PACK]'">purple</if>
<if condition="$thread['threadprefix'] == '[PACI]'">blue</if>
<if condition="$thread['threadprefix'] == '[PROGRESS]'">gray</if>
<if condition="$thread['threadprefix'] == '[STOPPED]'">red</if>
">
<else />
$thread[threadprefix]
</if>
</span>
</if>
$prefixmarkup[1]
</if>
</td>
</if>
|
Are you sure this code is working?
|