MyBB Hacks

Full Version: Only show the lockfolder icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone.

Well, I don't like the foldericons, so I remove them. The problem is that I only wish that appears the lock icon. Something like SMF and XenForo.

[Image: WNj3W.png]

[Image: xfRD2.png]

Maybe editing the forumdisplay file or using php in templates? Erf

I need your help. Thanks.
Replace all thread icons with the same icon, except for the locked thread icon.
That is not brilliant.....
Oh well, you have to make concessions some times.
forumdisplay_thread ->

Code:
<span class="thread_lock_{$thread['closed']}">{$prefix} {$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></span>


where you see the span class, that is what you need to add (thread_lock_{$thread['closed']}).

in global.css ->

Code:
.thread_lock_1 {
	background: url(images/yourstyle/lock.png) no-repeat 0 0;
}


Then upload a lock image to your theme and make sure the directory above is correct.

Reference URL's