MyBB.de Forum
Highlight Threadstarter - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Veröffentlichungen und -Support (https://www.mybb.de/forum/forum-82.html)
+--- Thema: Highlight Threadstarter (/thread-25903.html)



Highlight Threadstarter - MyBB.de Bot - 24.06.2012

Eine neue Erweiterung wurde veröffentlicht: Highlight Threadstarter

Zitat: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.