Last Updated: February 25, 2016
·
1.101K
· leefish

Variables as css classes

You can use any variable in MyBB to create CSS classes, here is an example using the {$thread['closed']} variable

HTML

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

CSS

.thread_lock_1 {
background: #ED00FE;
}