Help with a simple badge.
#8
You need to use only 1 class or ID and then add this:

{$usergroup['gid']}

For example:

badge{$usergroup['gid']}

This is for the postbit (I don't know if this works outside the postbit template). This takes the usergroup ID and add it to the class or id, then you have badge1, badge2, badge3, badge4, etc (each number represent the current usergroup of the user).

Then you only need to style it to your liking, for example admin usergroup is 4 so:

.badge4 {
   color: #ff0000;
}
I don't give support on PM.


Messages In This Thread
Help with a simple badge. - by mynewcar - 2016-11-20, 12:34 PM
RE: Help with a simple badge. - by subzr1 - 2016-11-20, 05:54 PM
RE: Help with a simple badge. - by mynewcar - 2016-11-20, 07:28 PM
RE: Help with a simple badge. - by subzr1 - 2016-11-20, 08:09 PM
RE: Help with a simple badge. - by mynewcar - 2016-11-20, 08:22 PM
RE: Help with a simple badge. - by subzr1 - 2016-11-21, 03:58 PM
RE: Help with a simple badge. - by mynewcar - 2016-11-21, 04:38 PM
RE: Help with a simple badge. - by eNvy - 2016-11-21, 07:03 PM
RE: Help with a simple badge. - by subzr1 - 2016-11-21, 07:22 PM
RE: Help with a simple badge. - by xatpaul - 2016-11-25, 11:28 PM
RE: Help with a simple badge. - by .m. - 2016-11-26, 02:28 AM
Help with a simple badge. - by .m. - 2016-11-26, 02:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)