Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Highlight Threadstarter

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

Version: 1.0
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.