MyBB Community Forums

Full Version: Is this possible w/out a plugin?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I was wondering if it'd be possible without a plugin to make it so that on all admin posts, the background is light yellow, on all mod posts, backgroun dis blue, etc, etc.

Is this doable?

Thanks
plugin or core edit neeed. right now, the code does not care what usergroup the poster belongs to when outputting the message content.
For an actual answer, it is indeed possible with some ingenuity:
<div class="post_ug_{$post['usergroup']}">

Of course, you need to understand the concept behind this for it to work, as well as know CSS.
Haha, Idea from Jagex?
(2011-05-17, 11:44 PM)Bapun Raz Wrote: [ -> ]a plugin must needed.

Yumi just posted a way it's possible without a plugin.

Basically if you did that, it would output post_ug_4 as the class when it's an admin post; make a class called post_ug_4, style it, and you're away.
Yumi and Matt are correct, but only if you care about the base Usergroup for the poster and want to ignore additional usergroups or the display group for the user.