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

Al

Get Boosted
Bronze Member
Joined
Jul 15, 2023
Messages
625
Credits
3,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?
 
So cool to see you get the recognition it deserves by the devs!

I assume it is possible with a template edit, same style it would show the staff team. I’ll try to find something today.

Otherwise, @SoluDome and @Tyrsson coulf probably help out too.
 
I think it would be quite a popular additional to the xenForo resources so could probably be released as a paid option.
 

I've had two developers reach out with offers to do this (at a cost, of course). Before I confirm with them, if AJ want to do it and release it, it would be a great inclusion and boost for the community.
 
Last edited:
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
Activity
So far there's no one here

Users who are viewing this thread

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

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

    Votes: 19 79.2%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds