To enable you to see detailed IP information, we can utilize the ipinfo.io website to give us those information. Please see instructions below on how to do it.
- Logon to AdminCP.
- Go to Styles → Search in Templates
- Choose the target style/theme in the "Search in Style" dropdown.
- In the "Search for Text" field, type onlineuser_details.
- Select "Yes" in the "Search Titles Only" radio button.
- Click Find button.
- In the search results, double-click the template to edit it or select it then click Customize button.
- Find the following code:
HTML-Kodu:<a href="#" class="resolveIpLink">{vb:var onlineUser.host}</a>
- Replace it with the following code:
HTML-Kodu:<vb:comment><a href="#" class="resolveIpLink">{vb:var onlineUser.host}</a></vb:comment> <a href="https://ipinfo.io/{vb:var onlineUser.host}/json" class="resolveIpLink-new" target="_blank" rel="noopener" onclick="var w=600,h=200,y=window.outerHeight/2 + window.screenY - (h/2),x=(window.outerWidth/2) + window.screenX - (w/2);window.open(this.href, 'ipInfoWin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + y + ', left=' + x);return false;">{vb:var onlineUser.host}</a>
- Click Save button.
- Repeat Steps 2-10 for other active styles/themes on your forum (if any).
- Go to the Who's Online page on your forum (/online) to confirm the change is working. See sample IP Address modal below:
Go to https://vbmods.rocks/forum/vbulletin...-s-online-page for screenshot and more info.
If you are using CloudFlare, Sucuri or something similar, you may not be able to see the actual user's IP address. To fix that, you have do this.
NOTE: This mod requires editing an existing vB5 template which means a template merge conflict may arise during vB5 upgrade. In which case, you'd need to resolve the conflict to make sure the template would still be working as intended. This also means that this mod cannot be done in vBCloud as it does not allow to edit existing vB5 templates.