6 is Administrator. The CSS is for those usergroups you don't want to see the new IP link by hiding it, not the one who should see the new IP link.
Announcement
Collapse
No announcement yet.
Add Detailed IP Info Modal to the Who's Online page
Collapse
X
-
Originally posted by glennrocksvb View Postthis also means that this mod cannot be done in vbcloud as it does not allow to edit existing vb5 templates.
boooooo
- Top
- Translate
- Bottom
Comment
-
I corrected the HTML Code I cited in post #15 (input error). This is now what I have added to css_additional.css:
Code:/* Hide Detailed IP Info link with Modal - START */ #vb-page-body[data-usergroupid="5"] .resolveIpLink-new, #vb-page-body[data-usergroupid="7"] .resolveIpLink-new, #vb-page-body[data-usergroupid="20"] .resolveIpLink-new, #vb-page-body[data-usergroupid="29"] .resolveIpLink-new, #vb-page-body[data-usergroupid="30"] .resolveIpLink-new, #vb-page-body[data-usergroupid="31"] .resolveIpLink-new, #vb-page-body[data-usergroupid="32"] .resolveIpLink-new, #vb-page-body[data-usergroupid="33"] .resolveIpLink-new, #vb-page-body[data-usergroupid="34"] .resolveIpLink-new, #vb-page-body[data-usergroupid="35"] .resolveIpLink-new, #vb-page-body[data-usergroupid="36"] .resolveIpLink-new, #vb-page-body[data-usergroupid="37"] .resolveIpLink-new, #vb-page-body[data-usergroupid="38"] .resolveIpLink-new, #vb-page-body[data-usergroupid="39"] .resolveIpLink-new, #vb-page-body[data-usergroupid="43"] .resolveIpLink-new, #vb-page-body[data-usergroupid="44"] .resolveIpLink-new, #vb-page-body[data-usergroupid="53"] .resolveIpLink-new { display: none; } /* Hide Detailed IP Info link with Modal - END */
The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
Glad it's now working.
You have a lot of usergroups. Which usergroups did you restrict the Who's Online module permissions to? Did you allow those usergroups to see the module?Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
In our case, those listed in the css_additional.css are the usergoups who can see Who's Online. My understanding (correct me if I'm wrong) is that this MOD allows the additional information to be accessed by those usergroups who are allowed to access Who's Online, and the css_additional.css entry simply prevents identified usergroups from seeing the additional data the MOD provides.
Do I have that right?The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
Every vB5 module has module-level permissions to restrict which usergroups to view that module. This is true even without this mod. I don't know how you set the module-level permissions for the Who's Online module. Let's say you set the module to be viewable by Administrators, Moderators and Super Moderators only. These users would be able to see the Who's Online module itself. Now if you installed this mod and let's say you wanted the new IP link with modal to be only available to Administrator, then the CSS code would be:
Code:/* Hide Detailed IP Info link with Modal - START */ #vb-page-body[data-usergroupid="5"] .resolveIpLink-new, #vb-page-body[data-usergroupid="7"] .resolveIpLink-new { display: none; } /* Hide Detailed IP Info link with Modal - END */
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Step 1.
Edit Navigation Bar > Who's Online
Step 2:
Step 3.
Select User Groups who have permission to see Who's Online
Step 4.
Click OK and Save
The above makes the Who's Online 'tab' available only to those selected User Groups.
The MOD makes additional IP info available to any user group who has permission to Who's Online, and the css_additional.css code I have prevents user groups (identified in the css_additional.css code) from seeing the additional IP info.
I hope I have that right.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
That looks right.
If you want to see the detailed IP Info modal to just one or fewer usergroups than the module permissions, you could shorten the CSS by using this code instead:
Code:/* Hide Detailed IP Info link with Modal - START */ #vb-page-body:not([data-usergroupid="6"]) .resolveIpLink-new { display: none; } /* Hide Detailed IP Info link with Modal - END */
To add another usergroup, then append :not([data-usergroupid="XXX"]) to the existing CSS rule and then change XXX to the desired usergroup ID. For example:
Code:#vb-page-body:not([data-usergroupid="6"]):not([data-usergroupid="5"]):not([data-usergroupid="7"]) .resolveIpLink-new { display: none; }
Last edited by glennrocksvb; 02-03-2022, 03:14 PM.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
-
Originally posted by glennrocksvb View PostTo add another usergroup, then add another CSS rule #vb-page-body:not([data-usergroupid="XXX"]) .resolveIpLink-new separated by comma and then change XXX to the desired usergroup ID.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
-
Originally posted by glennrocksvb View PostGo to the Who's Online page on your forum (/online) to confirm the change is working. See sample IP Address modal below:
1 Photo
- Top
- Translate
- Bottom
Comment
-
Updated first post for mobile. Previously, it wasn't working for mobile.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
There are 2 instances of the code to be replaced as mentioned in Steps 8 and 10.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
-
Guest
Latest Posts
Collapse
-
by seekit is simple if you go to your first page site and edit there code redirect in to :http:// url " site name and that's it if you want script i can...Yesterday, 11:35 PM
-
by seeki have license this version expire date is non if you need let me know i can provide you for cheap priceYesterday, 11:32 PM
-
Reply to 4.2.5 Available?by seeki have license if you need let me know 4.2.1 and i am using come lets me waiting if you needYesterday, 11:31 PM
Comment