MyBB Community Forums

Full Version: What's {$altbg}
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking at {$altbg} in the classic postbit. I can see that if I replace it with a trow, the cell takes on that color. Is {$altbg} just a place holder? I don't see any CSS for it.

Below is an example:

<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
$altbg is assigned trow1 or trow2 alternatingly depending on what the previous value was. It is used to give table rows alternating classes that will cause it to have different colors etc.

If you want to edit the css for it then edit trow1 and trow2
(2011-01-19, 11:52 PM)- G33K - Wrote: [ -> ]$altbg is assigned...

Thanks. That clears it up.

Sorry, but, if we add "trow3" the {$altbg} automatically alternates it too?

Thanks anyway Smile
(2011-01-20, 08:17 PM)Maxii Wrote: [ -> ]Sorry, but, if we add "trow3" the {$altbg} automatically alternates it too?

Thanks anyway Smile

No, you'd need edit core code or create a plugin to do that.