MyBB Hacks

Full Version: Showing lock next to thread title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Just abuse {$thread['closed']} variable and make CSS classes based on it.
Eg

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

thank you, ZiNgA! i learn more everyday from this forum.
Reference URL's