View Full Version : Strike Closed Topics
teedizz
02-01-2004, 12:19 AM
Was wondering if someone can make a hack that would put a line thru closed topics.
Zachery
02-01-2004, 01:03 AM
Was wondering if someone can make a hack that would put a line thru closed topics.
I belive they already check to see if a thread is closed, and i dont think making this happen would be much more than a template conditional :)
I could be wrong however :)
Kentaurus
02-01-2004, 03:03 AM
Was wondering if someone can make a hack that would put a line thru closed topics.
In the threadbit template, find this:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>
replace it with:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="!$thread[open]"><span style="text-decoration: line-through;"></if><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if><if condition="!$thread[open]"></span></if></a>
you're done, closed topics are now with a line-through. I don't see why you would want to do this, though. Normally i want closed topic to have less focus, not more :)
teedizz
03-06-2005, 06:39 PM
Thx alot bro. I was wondering if you knew of a way not to strike the topic if it was a sticky
Sebastian
03-07-2005, 03:29 AM
try replacing with:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="!$thread['open'] AND !$thread['sticky']"><strike>$thread[threadtitle]</strike><else /><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></if></a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.