• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whois users straight from the who's online list!
#1
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
  • 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&amp;ipaddress={$user['ip']}&amp;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&amp;ipaddress={$user['ip']}&amp;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&amp;ipaddress={$user['ip']}&amp;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][Image: whos_online_whois.png][/spoiler]


  Reply


Messages In This Thread
Whois users straight from the who's online list! - by Mark - 24-10-2010, 10:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to move "search" to the top of the members list Mark 0 15,304 19-10-2010, 12:28 AM
Last Post: Mark
  List of free webhosting providers. Loka123 !p9TllnK6yg 15 37,764 05-08-2010, 03:48 PM
Last Post: Blue_Social

Forum Jump: