Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

New Feature [Closed] Role color

8 Posts
3 Users
1 Reactions
1,190 Views
Posts: 9
 Monk
Topic starter
(@monk)
Active Member
Joined: 4 years 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: 3611
(@chris)
Famed Member
Joined: 4 years 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.

Tutrix
Posts: 1522
(@tutrix)
Noble Member
Joined: 5 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;
}
5 Replies
 Monk
(@monk)
Joined: 4 years ago

Active Member
Posts: 9

@tutrix any way to change for specific role?

Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1522
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

 Monk
(@monk)
Joined: 4 years 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.

Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1522

@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;
}

 

 Monk
(@monk)
Joined: 4 years 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 🙂