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>
Anyway, it would be nice if mods could select a color from a list, in the same form they create/edit the prefixes.
And optional select an image from a images/prefixes/ folder or soemthing.
I found out that once a prefix is in the database in the thread-table and it's wrapped with <span color... It shows it in color on the forum.