24-10-2010, 10:28 PM
Whois users straight from the who's online list!
This is a quick tutorial on how to add a "Whois" button to your who's online list. This gives you the ability to whois any user and IP in one click.
Steps
By default, it'll look like this:
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a></span>[/code]
Change it to this:
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> - <a href="http://whois.domaintools.com/{$user['ip']}">[Whois]</a></span>[/code]
Optionally, you can also add target="blank" so that the whois page opens in a new tab so it'd be:
[code=php]
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> - <a href="http://whois.domaintools.com/{$user['ip']}" target="blank">[Whois]</a></span>[/code]
[/code]
Save it then go check out your newly improved who's online list.
Here's what it looks like on mcompute
[spoiler][/spoiler]
This is a quick tutorial on how to add a "Whois" button to your who's online list. This gives you the ability to whois any user and IP in one click.
Steps
- ACP
- Templates & Style
- Templates
- *your theme*
- Who's Online Templates
- online_row_ip
By default, it'll look like this:
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a></span>[/code]
Change it to this:
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> - <a href="http://whois.domaintools.com/{$user['ip']}">[Whois]</a></span>[/code]
Optionally, you can also add target="blank" so that the whois page opens in a new tab so it'd be:
[code=php]
[code=php]<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> - <a href="http://whois.domaintools.com/{$user['ip']}" target="blank">[Whois]</a></span>[/code]
[/code]
Save it then go check out your newly improved who's online list.
Here's what it looks like on mcompute
[spoiler][/spoiler]