Highlight Threadstarter

Allow to highlight posts that were created by the creator of the thread

Author: Matthias M.
Submitted: 20th June 2012
Adds an additional array-value "isauthor" to posts that were created by threadstarter, easily usable for adding css-classes.

$post will get a new array-entry 'isauthor' with the value ' isauthor'.

Simply activate the plugin and edit your postbit or postbit_classic - template like this:

Code:
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder{$post['isauthor']}" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>


the important part is the inertion of {$post['isauthor']} in the class-attribute of the post. So the table gets the additional class 'isauthor'.

Now you can adjust the global.css by simply adding something like

Code:
.isauthor {
background-color: red;
}


or whatever suits your needs.