How To Change Thread Link Color For Special Forums

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    How To Change Thread Link Color For Special Forums

    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:

    Code:
    			<if condition="$show['gotonewpost']">
    				<strong><a [color=red]<if condition="$show['forumlink'] AND in_array($thread[forumid], array([color=blue]X,Y,Z[/color]))">style="color: [color=blue]#123456[/color]"</if>[/color] href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
    			<else />
    				<a [color=red]<if condition="$show['forumlink'] AND in_array($thread[forumid], array([color=blue]X,Y,Z[/color]))">style="color: [color=blue]#123456[/color]"</if>[/color] 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.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...