PDA

View Full Version : Strike-Through Closed Topic Titles


ja5es
08-21-2002, 10:00 PM
I made this hack basied off an idea of another forum I saw (non vB).

When a thread is closed, sometimes the normal thread closed folder icon isn't enough. This hack makes the titles of locked threads have a line through them, just to make it clear that they are locked.

I know it's kind of a simple hack, but hey, it's my first one! :)

Here's a screen shot of it in action:
http://www.smaaash.com/strike.gif

Link14716
08-22-2002, 01:36 AM
nice, makes it more noticable that a thread is closed ;)

Sean123
08-22-2002, 02:56 AM
nice job for your first hack .. i might use this ..

eXtremeTim
08-22-2002, 02:57 AM
Ill see about installing tommorrow. :)

P.S. Nice work.

Velocd
08-22-2002, 03:06 AM
I'll pass on this one, but nifty idea ;)

Funkie
08-22-2002, 01:02 PM
Nice lill Mod there fella:)
Thanx for the work,same to all the modders..keep up the good work..

ULTIMATESSJ
08-22-2002, 01:43 PM
very nice indeed, not my cup of tea, but a good hack which would come pretty useful to ppl

DemiNeo0101
08-22-2002, 02:36 PM
very nice. Good job
/me clicks install.

ja5es
08-22-2002, 03:32 PM
Thanks for the comments guys! :)

Ninth Dimension
08-22-2002, 04:08 PM
wow, a nice and simple hack, might install this one :)

Funkie
08-22-2002, 04:10 PM
How about instead of strike through,have a lill locked icon or [Closed] Text on it??????

Would that be able to be done.

/me clicks install

Vile
08-22-2002, 05:41 PM
Cool hack.
Installed just fine:)

Chris M
08-22-2002, 07:12 PM
I like it:)

Great job:)

Satan

Obi-Wan
08-22-2002, 07:39 PM
clicked install.

But I wonder if something like this is possible:

Make an option in the bottom admin options to select wether you like to kust close the thread (incase you only wanna make a thread wich people read, and instead of an announcement) and an option were you can select the strikethrough.

ja5es
08-22-2002, 07:48 PM
Originally posted by Funkie
How about instead of strike through,have a lill locked icon or [Closed] Text on it??????

Would that be able to be done.

* Funkie clicks install Ok that's easy too. If you've already installed it, find this in forumdisplay.php:

if (!$thread[open]) {
$thread[newoldhot]='lock'.$thread[newoldhot];
// Strike-Through Hack
$thread[title] = "<span class='locked'>$thread[title]</span>";
// End Strike-Through Hack
}

And change it to this:

if (!$thread[open]) {
$thread[newoldhot]='lock'.$thread[newoldhot];
// Strike-Through Hack
$thread[title] = "[CLOSED]thread[title]";
// End Strike-Through Hack
}


As for the option to turn it on or off, I might look into that.

Funkie
08-22-2002, 08:02 PM
Nice 1 fella:)
thanx.

That gives the words in the topic as [CLOSED]thread[title]
Is that right???

Thanx again for the quick reply

Mr L
08-22-2002, 08:40 PM
Nice hack, I've clicked installed!

Slightly off topic, I asked in the request section, would it be possible to create some user code to do this for text. For example...

<STRIKE>Harvey</STRIKE>

...would produce my name with a line through it. If anyone can help here as well, I'd appricate it.

Thanks.

Remi
08-22-2002, 08:41 PM
Thank you very much for the hack.

Most of the tims admins hve to stick a thread and close it, you can see it even in this forum.

It does not look nice if a sticky thread posted by the admin was Striked-Through :D

any solutin for that

Thanks again :D

ja5es
08-23-2002, 01:14 AM
Originally posted by HLodder
Nice hack, I've clicked installed!

Slightly off topic, I asked in the request section, would it be possible to create some user code to do this for text. For example...

<STRIKE>Harvey</STRIKE>

...would produce my name with a line through it. If anyone can help here as well, I'd appricate it.

Thanks. That doesn't really require a hack, if you just go to your Admin CP and then look under Custom vB Codes you choose "Add".

Then just make the vB code tag , the vb code replacement <span style="TEXT-DECORATION: LINE-THROUGH;">{param}</span> and then save it, it'll work whenever someone type [strike]something.

Erwin
08-23-2002, 03:02 AM
Nice idea. :)

Mr L
08-23-2002, 08:43 PM
Originally posted by ja5es
That doesn't really require a hack, if you just go to your Admin CP and then look under Custom vB Codes you choose "Add".

Then just make the vB code tag , the vb code replacement <span style="TEXT-DECORATION: LINE-THROUGH;">{param}</span> and then save it, it'll work whenever someone type [strike]something.

Cool! Many thanks for this, I did try to make a custom code but failed totally!

Thank you!

Harvey.

Floris
08-24-2002, 12:11 AM
Nice little tweak! Love it :) Maybe installing it this weekend.

ja5es
08-24-2002, 12:37 AM
Originally posted by HLodder


Cool! Many thanks for this, I did try to make a custom code but failed totally!

Thank you!

Harvey. Ok, no wonder. It was my fault. Sorry.

Do the same thing, but for the vB code tage don't use the [ and the ]. Then it works!

Mr L
08-24-2002, 01:01 AM
Execellent, all working now!

Thanks!!!

ja5es
08-24-2002, 03:25 AM
No problem! :)

Funkie
08-28-2002, 12:27 PM
Wicked hack fella:)

How can i turn the text "CLOSED THREAD" into a lill Closed thread Gif.?????????


Thanx in advance for any help

ja5es
09-09-2002, 02:02 AM
Originally posted by Funkie
Wicked hack fella:)

How can i turn the text "CLOSED THREAD" into a lill Closed thread Gif.?????????


Thanx in advance for any help What do you mean?

Rose
09-18-2002, 01:59 PM
Originally posted by Remi
Thank you very much for the hack.

Most of the tims admins hve to stick a thread and close it, you can see it even in this forum.

It does not look nice if a sticky thread posted by the admin was Striked-Through :D

any solutin for that

Thanks again :D


I agree. I want to close some threads in the announcements forum so members won't spam them. However, I don't want it striked. maybe an option?

FleaBag
10-11-2002, 09:49 PM
Working with 2.2.7, thanks for this simple yet cool hack! :D

FleaBag
10-29-2002, 07:58 PM
Working with 2.2.8, thanks. :)

Dark_Angel2
11-09-2002, 08:18 PM
Great hack thanks! This is something my members complain about, they read a thread and only realise it's locked when they come to reply.

ForKmaN
03-25-2003, 08:15 AM
I noticed that when you close a thread in a private forum, it deletes the thread ...

Is there a fix for this?

Killsparer
04-15-2003, 09:40 AM
08-22-02 at 10:35 PM Remi said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=288991#post288991)
Thank you very much for the hack.

Most of the tims admins hve to stick a thread and close it, you can see it even in this forum.

It does not look nice if a sticky thread posted by the admin was Striked-Through :D

any solutin for that

Thanks again :D

Yes, would be perfect if the "Important"-Topics wouldn?t be striked-through.

jwoodall.2
08-05-2003, 02:18 AM
Crud, mine bombed out:

Parse error: parse error in /.../forums/postings.php on line 833

Alphawolf83
10-20-2005, 03:36 PM
Is there any hack which does the same for 3.0.7 ?
Thanks...

Alphawolf83
10-23-2005, 01:59 PM
Sorry for double posting, but here you can find the same for 3.0.x:
http://www.vbhacks-germany.com/forum/showthread.php?p=12260

Works great ;)