Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2019-07-03 16:18:57

jolticz
New member
Registered: 2019-07-03
Posts: 4

Styles of usernames

So i have the colorize groups mod, but i was wondering, is it possible for me to add gifs to my usergroup and colors at the same time, if so how would i go around doing it?

Offline

#2 2019-07-03 20:03:10

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,719
Website

Re: Styles of usernames

"Colorize groups" adds a HTML tag with a class of "gidXX" (where XX is the ID of the user group) around the username. You can use CSS to add a group-specific image before or after the element. Something like this maybe:

.gid3 {
  display: inline-block;
  content: '';
  width: 20px;
  height: 20px;
  background-image: url(...);
}

fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#3 2019-07-03 20:09:08

jolticz
New member
Registered: 2019-07-03
Posts: 4

Re: Styles of usernames

So where would i put this?

Inside of colorize_groups.php?

or in the actual css?

Last edited by jolticz (2019-07-03 20:09:21)

Offline

#4 2019-07-03 20:56:26

jolticz
New member
Registered: 2019-07-03
Posts: 4

Re: Styles of usernames

Nevermind! I figured it out. I just added my CSS to the top of every document I wanted, and it worked!

Offline

Board footer

Powered by FluxBB