Can certain things in this drop down be hidden with CSS and attached to a certain moderator group?
Announcement
Collapse
No announcement yet.
Moderator tools
Collapse
X
-
It seems to be possible hiding each of them separately using CSS but I still have to check. But I was thinking that some of them can be controlled by usergroup permissions? For example, I think there's a permission for Can Delete Post. If you disable it, then I think the corresponding moderation menu item will not be displayed.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Thanks Glenn
I tried all the different combinations of user permissions. They either show to many or not the right ones that I need. If I can pick and choose which ones show would be fantastic. The software should really have been built with this feature.
Example!!
I need the moderator to be able to move entire topics, and edit / soft delete. I don't want them to be able to move individual posts around, merge threads etc... Plus there is the invert, sticky and other unneeded things
A CSS for each item under the cog and the note pad is what i'm looking for
- Top
- Translate
- Bottom
Comment
-
I finally had a chance to look into the HTML and CSS used for the Inline Moderation submenus. Please see below:
Administrative Submenu (with Cog or Gear icon) CSS Classes:- Move Topic: moderation-move
- Open Topic: moderation-open
- Close Topic: moderation-close
- Approve Topic: moderation-approve
- Unapprove Topic: moderation-unapprove
- Copy Topic: moderation-copy
- Edit Topic: moderation-edit
- Delete Topic: moderation-delete
- Undelete Topic: moderation-undelete
- Stick Topic: moderation-stick
- Unstick Topic: moderation-unstick
- Remove Redirects: moderation-remove-redirects
- Feature Topic: moderation-feature
- Unfeature Topic: moderation-unfeature
Moderation Submenu (with Notepad icon) CSS Classes:- Move Posts: moderation-move
- Merge Posts: moderation-merge
- Copy Posts: moderation-copy
- Delete Posts: moderation-delete
- Undelete Posts: moderation-undelete
- Approve Posts: moderation-approve
- Unapprove Posts: moderation-unapprove
- View Selected Posts: moderation-view
- Select All: moderation-select-all
- Select None: moderation-select-none
- Invert Selection: moderation-select-invert
- Select Unapproved Posts: moderation-select-unapproved
- Select Deleted Posts: moderation-select-deleted
- Select Posts with Attachments: moderation-select-attachments
The format for the CSS selector would be:
For example, if you want to hide Move Topic and Delete Topic in the Administrative submenu for Moderators usergroup:Code:/* Hide Administrative Submenu (with Cog or Gear icon) items by Usergroup */ #vb-page-body[data-usergroupid="[COLOR=#FF0000][I]userGroupIdNumberHere[/I][/COLOR]"] .administrative-submenu [B].[/B][COLOR=#FF0000][I]submenuItemCSSClassHere [/I][/COLOR]{ display: none; } /* Hide Moderation Submenu (with Notepad icon) items by Usergroup */ #vb-page-body[data-usergroupid="[COLOR=#FF0000][I]userGroupIdNumberHere[/I][/COLOR]"] .moderation-submenu [B].[/B][COLOR=#FF0000][I]submenuItemCSSClassHere[/I][/COLOR] { display:none; }
If you want to hide Move Posts and Delete Posts in the Moderation submenu for Moderators usergroup:Code:/* Hide Administrative Submenu (with Cog or Gear icon) items by Usergroup */ #vb-page-body[data-usergroupid="7"] .administrative-submenu .moderation-move, #vb-page-body[data-usergroupid="7"] .administrative-submenu .moderation-delete { display:none; }
If you want to hide items for multiple usergroups, just the follow the format and add it to an existing code and separate it with comma as shown in the example above.Code:/* Hide Moderation Submenu (with Notepad icon) items by Usergroup */ #vb-page-body[data-usergroupid="7"] .moderation-submenu .moderation-move, #vb-page-body[data-usergroupid="7"] .moderation-submenu .moderation-delete { display:none; }
Let me know if there's something I didn't explain clearly. Or if the code doesn't work. I didn't test the code and just wrote it by hand.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Add !important
Code:[I]yourCssSelectorHere[/I] { display:none [COLOR=#FF0000]!important[/COLOR]; }
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Glad you figured it out.

My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Latest Posts
Collapse
-
Reply to some ideas for new modsin Chit Chatby desmomax
I finally created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that...
Today, 03:59 AM -
Get Affordable and Fast VPS for vBulletin -
by flohseHi Glenn, what do you think about adding "Like Counts" similar to "Like Counts on Postbit and Profile" (when this mod is in use) in...Yesterday, 11:28 PM
-
Reply to push notification prompt?by desmomaxhy glenn
have you thought about this?Yesterday, 05:44 AM

Comment