Group specific tool bar

AI-generated summary

The Group Specific Tool Bar is a Discourse theme component by th21 that provides customized toolbars based on user group membership — including separate toolbars for non-logged-in users and users not in any specified group sets. Forked from Custom Admin Toolbox, it helps surface key actions for different user tiers and simplifies access for beginners. Toolbars are assigned by checking group membership in priority order — if a user belongs to multiple groups, only the highest-priority toolbar is shown th21. Heliosurge asked if it uses primary groups or blends toolbars; th21 clarified it checks all groups and applies the first matching toolbar. Screenshots show distinct toolbars for admins, non-logged-in users, and group-specific users th21. Heliosurge praised the component as “Awesome,” and Tiago_santos found it useful. Later, Heliosurge suggested extending it to show category-specific toolbars (e.g., for Company A vs. Company B), which th21 requested a mock-up for. An update fixed icon naming issues (e.g., “paint-brush” → “paintbrush”), though a broken tag persisted until Moin removed it. The component is available on GitHub: discourse-group-specific-tool-bar.

Provide different toolbars for 2 specific group sets, 1 for users who are not in specific group sets,1 for non-logged-in users.

A fork of Custom Admin Toolbox

Primarily I made this because I want to set a quick toolbar for users in different groups to indicate that whether they are granted higher-level access to the community or not. Also, I found some settings are too deep in the menu for discourse beginners so I put those also in the toolbar.

And for my convenience to check the admin panel, update site settings, etc.

6 Likes

Does this use User’s Primary Group? As some users maybe part of several groups.

And can you post a couple of ss of plugin in action?

No, it will check all groups the user has access to, for example, if you include group A and B in group set 1, users in A or B will see links you set for group set 1.

what is a ss?

1 Like

Screenshot.

So it will blend toolbars?

For Example group A gets Toobar A

Group B gets Toolbar B

Some members of Group A are also in Group B these ppl would get a mix of the 2 toolbars or just see one of them?

There are priorities in settings from top to bottom, e.g. I’m an admin(group set 1) and I’m also part of group A(group set 2), I got ONLY toolbar for admin.

Basically, it checks in order for whether a user belongs to group set 1 or 2, if not, check if they are excluded from the excluded group. Non-logged-in user doesn’t have group settings so they are checked separately.

My admin toolbar

Non-logged-in users toolbar

User in group A toolbar
image

User not in group B toolbar

*the icon color and suffix text αre not included in this component, I add extra css.

4 Likes

Thank you this is quite an Awesome theme componet and will be very useful. :vulcan_salute::smiling_face_with_sunglasses::+1::sparkles:

4 Likes

@th21 very usefull to me. thank a lot for sharing

1 Like

would you consider adding an option to use this instead for viewing a category with subcategories as a toolbar just below main site header? or perhaps a variant?

Not sure what you mean, do you have an example/mock-up?

1 Like

What I am looking to have to give an example when a user us viewing a A category, Say one dedicated to “Company A” Products they have an Toolbar under site header that gives links to that company’s Website with links say the company’s Store, tech support & so on

When the member reads a different category say one for company B then they have a toolbar under main site bar that has links for company B.

So

Comp A, Store, Support
Comp B, Store, Support

Problem with groups is member might be in both groups.

I updated the componet and it should work now, but it seems I can’t remove the broken tag?

Some icons might mising bc they are referred by differenct name now, eg: paint-brush → paintbrush

2 Likes

I have removed the tag.

2 Likes