PDA

View Full Version : Can't figure out how to add a lock icon to threadbit.


TrultToast
12-13-2016, 03:37 AM
Howdy!

Ive' been trying to figure out a way to do this but I've had no luck so i finally decided to make a thread here...

I want to add a lock icon after a threads title in the threadbit template if a thread is closed/locked. I have no idea what if condition to use and if there even is one.

Here is an example of what I'm trying to do.
https://vborg.vbsupport.ru/external/2016/12/4.jpg

Thank you.

MarkFL
12-13-2016, 05:43 AM
Howdy!

Ive' been trying to figure out a way to do this but I've had no luck so i finally decided to make a thread here...

I want to add a lock icon after a threads title in the threadbit template if a thread is closed/locked. I have no idea what if condition to use and if there even is one.

Here is an example of what I'm trying to do.
https://vborg.vbsupport.ru/external/2016/12/4.jpg

Thank you.

If a thread is closed, then the following condition will be true in the threadbit template:

!$thread['open']

TrultToast
12-13-2016, 11:05 PM
If a thread is closed, then the following condition will be true in the threadbit template:

!$thread['open']

Worked like a charm!
Thank you MarkFL. :up: