Jake Bunce
Mon 8th May '06, 6:09pm
This mod will highlight threads from specific forums in a different color on search pages. This way users can easily identify these special threads in search listings where you cannot automatically assume that all listed threads are in a certain forum.
Edit this template:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit
Find this code and add the red code. Change the blue code appropriately, where X,Y,Z is a comma separated list of forumids of "special forums," and #123456 is the color code:
<if condition="$show['gotonewpost']">
<strong><a <if condition="$show['forumlink'] AND in_array($thread[forumid], array(X,Y,Z))">style="color: #123456"</if> href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a <if condition="$show['forumlink'] AND in_array($thread[forumid], array(X,Y,Z))">style="color: #123456"</if> href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
This will change the color of thread links for the specified forums when the thread links are being displayed in search results, be it a regular search or something like the "new posts" page.
Edit this template:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit
Find this code and add the red code. Change the blue code appropriately, where X,Y,Z is a comma separated list of forumids of "special forums," and #123456 is the color code:
<if condition="$show['gotonewpost']">
<strong><a <if condition="$show['forumlink'] AND in_array($thread[forumid], array(X,Y,Z))">style="color: #123456"</if> href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a <if condition="$show['forumlink'] AND in_array($thread[forumid], array(X,Y,Z))">style="color: #123456"</if> href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
This will change the color of thread links for the specified forums when the thread links are being displayed in search results, be it a regular search or something like the "new posts" page.