vB 3.6.8 Set Thread Title Color

pmt

New Member
Import Product

edit template threadbit
find

PHP:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

replace with
PHP:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if> style="color: $thread[threadcolor];">$thread[threadtitle]</a>

Done!


Note: if "color value filed" is not show (newthread, editthread)
edit template newthead and editpost
find
PHP:
<!-- / subject field -->

add below
PHP:
<if condition="($bbuserinfo[usergroupid] == 6)|($bbuserinfo[usergroupid] == 5)|($bbuserinfo[usergroupid] == 7)">
        <!-- threadcolor field -->
        <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="smallfont" colspan="3">Set color for thread title:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="threadcolor" value="$threadcolor" size="50" maxlength="150" tabindex="1" /></td>
            <td>&nbsp;&nbsp;</td>
                    </tr>
        </table>
        <!-- / threadcolor field --></if>
at this version, only admin, smod, mod can set color (able to view filed), you can change code (edit file)
 
Back
Top