Whois users straight from the who's online list! - Printable Version +- howtothings.co.uk (https://www.howtothings.co.uk) +-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4) +--- Forum: Website Development, Implementation and General Webmaster Support (https://www.howtothings.co.uk/forumdisplay.php?fid=9) +--- Thread: Whois users straight from the who's online list! (/showthread.php?tid=473) |
Whois users straight from the who's online list! - Mark - 24-10-2010 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] |