Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Is it Possible to Color Code User Groups?
Avatar
April
Virtual Dream Land
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2012 - 4:32 pm

Yes it is me again, promised I would be back. I have a coding question, I looked through the first 3 pages of this section and didn't find anything so forgive me if I missed this. I am wondering if it is possible to give colors to different user groups on the forum software. I have in the past used phpBB and VB and with both you can set usergroup names to different colors making it easier to pick out who is who, for example admins are usually red and mods are usually green. Is there a way to do this as right now everyone is black.

http://i872.photobucket.com/albums/ab288/april2011LBP/psrbanner.png

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2012 - 7:03 pm

yes you can!  so you really need to get firefox and firebug here...  invaluable for debugging and css tweaks...

but each row or post in the topic view is given a style for the users usergroup memberships... so you can uniquely style based on the usergroup class...

the style, applied to the row (also has class spTopicPostSection) will be of the form:

spUsergroup-name

where name is the name of the usergroup, ie spUsergroup-members

p.s.  too bad thats not an Xbox 360 site! kisscoolwink

Avatar
April
Virtual Dream Land
Member
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2012 - 9:08 pm

Mr Papa said

yes you can!  so you really need to get firefox and firebug here...  invaluable for debugging and css tweaks...

but each row or post in the topic view is given a style for the users usergroup memberships... so you can uniquely style based on the usergroup class...

the style, applied to the row (also has class spTopicPostSection) will be of the form:

spUsergroup-name

where name is the name of the usergroup, ie spUsergroup-members

p.s.  too bad thats not an Xbox 360 site! kisscoolwink

Okay, I will try it.


Oh and my site is not only playstation but also we do have pc, wii and Xbox topics, and even others who play xbox there as well. Maybe we can see you there . wink

http://i872.photobucket.com/albums/ab288/april2011LBP/psrbanner.png

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2012 - 9:40 pm

let us know how it goes... several folks requested that but have not seen any use of it yet...

Avatar
April
Virtual Dream Land
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 6:20 am

Mr Papa said

let us know how it goes... several folks requested that but have not seen any use of it yet...

Omg this is hard for me. Well I am just learning coding so I am lost >< I really want to assign colors to user groups. Hmmm is there a section on this forum to possibly ask for a bit of help from others? I feel I might need someone who knows what they are doing to come over and help me with this. confused

http://i872.photobucket.com/albums/ab288/april2011LBP/psrbanner.png

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 25, 2012 - 6:49 am

try adding to your theme CSS:

.spUsergroup-members { background-color: #XXXXXX; )

where 'members' is the name of your usergroup and XXXXXX is the colour you want the background to be.

That is assuming it is the background you want to colourise.

andy-signature.png
YELLOW
SWORDFISH
Avatar
April
Virtual Dream Land
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:05 am

Yellow Swordfish said

try adding to your theme CSS:

.spUsergroup-members { background-color: #XXXXXX; )

where 'members' is the name of your usergroup and XXXXXX is the colour you want the background to be.

That is assuming it is the background you want to colourise.

Umm, the background?  I want to change the colors of the members names according to their usergroups. So I don't think it is the background I want to color is it? Like I want to set it up like this, admin is red, mod is green, blogger is orange, etc. If I knew exactly where in the CSS to change the main parts.....arrrgggghh

http://i872.photobucket.com/albums/ab288/april2011LBP/psrbanner.png

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:05 pm

then change background-color to color...

its not a change...  you have to add it... by default, none of our themes color by usergroup so we dont have css for it... so you have to add it yourself... additionally, there is really no way for us to know ahead of time what your usergroups might be called...

Avatar
April
Virtual Dream Land
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 8:52 pm

So does it matter where in the CSS I add this? Can I just add it at the bottom?

 

EDIT, I added the code you provided me and replaced the usergroup with admin. Then changed the xxxx with the web color I wanted to use and still nothing changes. I pasted the code into the bottom of the theme btw.

http://i872.photobucket.com/albums/ab288/april2011LBP/psrbanner.png

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 26, 2012 - 5:03 am

If you give me a link to a forum/topic or whatever that has an example of that on it I can take a quick look.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620