Previous Thread
Next Thread
Print Thread
Rate Thread
[7.3+] Admin IP Information #317881 03/04/2009 5:41 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
In .T7 we have the option of having it so the admins (or Admin's, Global Mod's, and Mod's) can see the IP address of a user. This quick modification will link the displayed IP Address of the user to the IP Address whois on Domain Tools which will provide the admin (or mod) to view where the IP is located, who the ISP is, if its blacklisted, and show what the reverse address search is...

I wrote this up on 7.5 however it should work fine from 7.2+ (as the post information was moved to post_top and post_side); any previous 7.x releases should use this mod.

There isn't really a demo (as you can't see ip's on my site unless you're an admin/mod), but you can see how the DomainTools.com IP listing looks here.

Posts View:
In scripts/showflat.inc.php:
Find:
Code
$postrow[$i]['IP'] = "({$results[$i]['POST_POSTER_IP']})";


Replace With:
Code
$postrow[$i]['IP'] = "{$results[$i]['POST_POSTER_IP']}";



In templates/default/post_side.tpl:
Find:
Code
<i>{$postrow[post].IP}</i>


Replace With:
Code
<i>(<a href="http://whois.domaintools.com/{$postrow[post].IP}">{$postrow[post].IP}</a>)</i>



In templates/default/post_top.tpl:
Find:
Code
<em>{$postrow[post].IP}</em>


Replace With:
Code
<em>(<a href="http://whois.domaintools.com/{$postrow[post].IP}">{$postrow[post].IP}</a>)</em>



Who's Online:
In templates/default/online.tpl
Find:
Code
{$regrow[user].IP}<br />


Replace With:
Code
<a href="http://whois.domaintools.com/{$regrow[user].IP}">{$regrow[user].IP}</a><br />


Find:
Code
{$anonrow[user].IP}


Replace With:
Code
<a href="http://whois.domaintools.com/{$anonrow[user].IP}">{$anonrow[user].IP}</a>


Find:
Code
{$botrow[user].IP}


Replace With:
Code
<a href="http://whois.domaintools.com/{$botrow[user].IP}">{$botrow[user].IP}</a>



Admin View
In templates/default/admin/showuser.tmpl:
Find:
Code
$regip


Replace With:
Code
<a href="http://whois.domaintools.com/$regip">$regip</a>




Find:
Code
$lastpostip


Replace With:
Code
<a href="http://whois.domaintools.com/$lastpostip">$lastpostip</a>


You can change the search engine you use (should you have one you prefer, such as the one at www.dollardns.net which is the original one I tested this on) you can just edit the domain line in the above replaces.

Last edited by Gizmo; 03/04/2009 6:39 PM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [7.3+] Admin IP Information [Re: Gizmo] #317882 03/04/2009 6:28 PM
Joined: Mar 2007
Posts: 15
SteveS Offline
Newbie
Offline
Newbie
Joined: Mar 2007
Posts: 15
I'm running 7.2.2

I hit a roadblock as soon as I started... I couldn't find this code in the original file.


Originally Posted by Gizmo


Posts View:
In scripts/showflat.inc.php:
Find:
Code
$postrow[$i]['IP'] = "({$results[$i]['POST_POSTER_IP']})";


Replace With:
Code
$postrow[$i]['IP'] = "{$results[$i]['POST_POSTER_IP']}";





I took a look at the "other" mod that you referenced for older versions, and it looks like it matches. So should this one be for 7.3+ ?


Re: [7.3+] Admin IP Information [Re: SteveS] #317883 03/04/2009 6:36 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Lemme take a look at the older versions i have here for that line; it'll likely be 7.3


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.3+] Admin IP Information [Re: Gizmo] #317884 03/04/2009 6:40 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Yeh, it's there in that format in 7.3; so updated the topic titles


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.3+] Admin IP Information [Re: Gizmo] #317906 03/17/2009 3:10 PM
Joined: Apr 2001
Posts: 96
jgeoff Offline
Power User
Offline
Power User
Joined: Apr 2001
Posts: 96
Originally Posted by Gizmo
Posts View:
In scripts/showflat.inc.php:
Find:
Code
$postrow[$i]['IP'] = "({$results[$i]['POST_POSTER_IP']})";

Replace With:
Code
$postrow[$i]['IP'] = "{$results[$i]['POST_POSTER_IP']}";



I was JUST going to report this. Domaintools, all of a sudden, has a problem with the parentheses so they needed to be taken out. Should've known Giz would be on top of it! laugh



GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Sponsored Links
Re: [7.3+] Admin IP Information [Re: jgeoff] #317907 03/17/2009 4:27 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
wink always a step ahead


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps

Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Pilgrim
Pilgrim
NH, USA
Posts: 190
Joined: June 2000
Forum Statistics
Forums63
Topics37,493
Posts293,671
Members13,829
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 745
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 13
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191111.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.031s Queries: 15 (0.008s) Memory: 3.2415 MB (Peak: 3.4376 MB) Data Comp: Zlib Server Time: 2019-11-14 00:02:19 UTC
Valid HTML 5 and Valid CSS