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:
The mod works as described, and with the above, I've limited the additional information to just the Administrators.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?
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by 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:
The usergroup IDs 5 and 7 are Super Moderators and Moderators, respectively. Specifying their usergroupd IDs in the CSS will hide the new IP link to them and thus only Administrator will see it.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 */
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by 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:
The code is saying if the usergroup ID is NOT 6, hide the new IP link. So specify the usergroup ID that you DO want to see the new IP link.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:
The above CSS code means if usergroup ID is not 6 AND not 5 AND not 7, then hide the new IP link.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.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
-
I just realized this part is wrong. I'll post the updated instructions later.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.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
-
what i did wrongOriginally 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.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
There are 2 instances of the code to be replaced as mentioned in Steps 8 and 10.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
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 -
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