Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

Specific usergroup online

Joined
Jul 15, 2023
Messages
628
Credits
2,031
Is there a way to make the users online sidebar widget display a specific usergroup? My forum is really taking off and a lot of the dev team are signing up. I’d like the sidebar widget to display when they’re online.

So it would go:

Staff online
Dev team online
Members online

A plug in? A template edit?
 
Advertisement Placeholder
image_2023-09-14_191623719.png

How's this? Template editing is FUN!

All I need to do is work out how to change the hammer symbol.
 
View attachment 2136
How's this? Template editing is FUN!

All I need to do is work out how to change the hammer symbol.
You can modify this CSS and add it in extra.less . Here content is basically the fontawesome icon Unicode, that you can get from here : https://fontawesome.com/v5/search

CSS:
.block[data-widget-section="staffMembers"] .block-minorHeader:before {
    content: "\f0e3";
}

Make sure you target the right widget, using the widget section type in CSS.
 
You can modify this CSS and add it in extra.less .
I've added this to extra.less

Code:
.block[data-widget-section="staffMembers"] .block-minorHeader:before {
    content: "\f508";
}
.block[data-widget-section="developers"] .block-minorHeader:before {
    content: "\f509";
}

The developer icon changed, which was the primary goal - but I'd like to change the staff icon too - to something more friendly.

image_2023-09-15_084529461.png


f508 is https://fontawesome.com/v5/icons/user-tie?f=classic&s=solid but it won't display? Any idea why?
 
I've added this to extra.less

Code:
.block[data-widget-section="staffMembers"] .block-minorHeader:before {
    content: "\f508";
}
.block[data-widget-section="developers"] .block-minorHeader:before {
    content: "\f509";
}

The developer icon changed, which was the primary goal - but I'd like to change the staff icon too - to something more friendly.

View attachment 2139

f508 is https://fontawesome.com/v5/icons/user-tie?f=classic&s=solid but it won't display? Any idea why?
Try this it will work :)

Code:
.block[data-widget-section="staffMembers"] .block-minorHeader:before {
    content: "\f508" !important;
}
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 5 18.5%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 22 81.5%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds