Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Highlight Threadstarter
#1
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.
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  ThreadStarter MyBB.de Bot 6 2.229 08.01.2023, 23:25
Letzter Beitrag: MyBB.de Bot
  Highlight Direct Speech MyBB.de Bot 1 1.275 26.09.2022, 10:37
Letzter Beitrag: joumi
  Highlight own threads MyBB.de Bot 0 1.974 04.01.2009, 19:03
Letzter Beitrag: MyBB.de Bot