Showing lock next to thread title
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #1
Showing lock next to thread title
hello,

i removed the topic folders from my theme (new posts, lockfolder, contains posts by you, etc), and i was wondering how i can add a lock next to locked thread names. right now users have to enter the thread to find out if it is locked or not but i would like them to see a lock on forumdisplay so that they choose whether or not to read the locked thread.

is there a variable or template that i can edit to show a Lock image if the thread is locked.

thank you!
10-16-2012 02:56 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Showing lock next to thread title
Just abuse {$thread['closed']} variable and make CSS classes based on it.
Eg

HTML Code
<div class="thread_lock_{$thread['closed']}">thread stuff</div>


My Blog
10-16-2012 04:22 PM
Find all posts by this user Quote this message in a reply
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #3
RE: Showing lock next to thread title
thank you, ZiNgA! i learn more everyday from this forum.
10-16-2012 04:25 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: