Notifications
Clear all

New Feature Role color

8 Posts
3 Users
1 Likes
492 Views
Monk
Posts: 9
 Monk
Topic starter
(@monk)
Active Member
Joined: 12 months ago

I use widget you provide to see all online members, but i want to make colors for admins, moderators...etc just like it is everywere on forum. Because now everyone has the same color.

7 Replies
Chris
Posts: 2385
Admin
(@chris)
Support Team
Joined: 1 year ago

Hi @monk,

wpForo doesn't have that function yet, but We will add it to our to-do list, so it will be included in 2.0 version of wpForo.

Reply
Tutrix
Posts: 827
(@tutrix)
Noble Member
Joined: 3 years ago

@monk

you can change the colors with CSS via the profile link

Example for the online widget

#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineuser[href="https://wpforo.com/community/profile/monk/"] {
    color: #ff0000 !important;
}
Reply
5 Replies
Monk
 Monk
(@monk)
Joined: 12 months ago

Active Member
Posts: 9

@tutrix any way to change for specific role?

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 827
Posted by: @monk

@tutrix any way to change for specific role?

this works regardless of the user role, just use the color code you want to be displayed

Reply
Monk
 Monk
(@monk)
Joined: 12 months ago

Active Member
Posts: 9

@tutrix ok lets go again. You didnt understand me. I want every online admin to have red color name. Im using widget "wpforo online members" but all names are the same color. I dont want only my name to be red color, i want every admin to be red. That specific widget is not getting color from wpforo, it has no colors.

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 827

@monk 

the admin also has a profile
then only use red for the admin profile

example you have 3 admins, Monk, Stottlemeyer and Fleming

the CSS code should look like this

#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineuser[href="https://yoursite.com/community/profile/monk/"],
#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineuser[href="https://yoursite.com/community/profile/stottlemeyer/"],
#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineuser[href="https://yoursite.com/community/profile/fleming/"] {
color: #ff0000 !important;
}

 

Reply
Monk
 Monk
(@monk)
Joined: 12 months ago

Active Member
Posts: 9

FIXED:

Online Users Widget – Page 2 – How-to and Troubleshooting – wpForo Support Forum

this helped me a lot, thank you for your help anyways 🙂

Reply