php forum
php mysql forum
php mysql smarty
 
Topic Options
#317881 - 03/04/09 05:41 PM [7.3+] Admin IP Information
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
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.


Edited by Gizmo (03/04/09 06:39 PM)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317882 - 03/04/09 06:28 PM Re: [7.3+] Admin IP Information [Re: Gizmo]
SteveS Offline
Lurker

Registered: 03/27/07
Posts: 8
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+ ?

Top
#317883 - 03/04/09 06:36 PM Re: [7.3+] Admin IP Information [Re: SteveS]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
Lemme take a look at the older versions i have here for that line; it'll likely be 7.3
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317884 - 03/04/09 06:40 PM Re: [7.3+] Admin IP Information [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
Yeh, it's there in that format in 7.3; so updated the topic titles
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317906 - 03/17/09 04:10 PM Re: [7.3+] Admin IP Information [Re: Gizmo]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 95
Loc: NJ
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

Top
#317907 - 03/17/09 05:27 PM Re: [7.3+] Admin IP Information [Re: jgeoff]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
wink always a step ahead
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Moderator:  sirdude 
Who's Online
0 registered (), 35 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Ubb - Buy It!
best forum software
Latest Posts
[7.2.1] - Naked shoutbox
by MithofOT
08/31/10 01:58 PM
[7.5.5] getting $_COOKIE to work
by gtho4
08/29/10 12:28 AM
Jelsoft Bought
by AllenAyres
08/20/10 04:44 PM
UBBDev Now Running Threads 7.5.6
by AllenAyres
08/18/10 07:59 PM
How do I add another field to the profile page?
by Gizmo
08/05/10 09:24 AM
UBB developer needed.
by AllenAyres
08/03/10 02:57 PM
New Mods
How do I add another field to the profile page?
by Vee
08/05/10 06:02 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
stevebrummie, Neronrg, Vee, dessy, Manish
13533 Registered Users
Top Posters
AllenAyres 25565
JoshPet 11330
Rick 8373
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438
(Views)Popular Topics
Known public proxy servers 1224347
Finished-[6.5.2] Games Arcade Deluxe v1.9 375009
Integrated Index Page (IIP) 5.3.1 345193
Integrated Index Page (IIP) 5.1.1 322504
TLD Bv2.1 Released - Threads Links Directory 301614
[6.0x] Who's Online 4.0.0 [Finished] 267207
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 244632
[6.3.x] [beta] Hit Hack 2.0 197599
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 173774
FlashChat & UBB.threads 169520
Forum Stats
13533 Members
59 Forums
37128 Topics
290448 Posts

Max Online: 686 @ 06/28/07 07:04 AM
Featured Member
Registered: 07/03/01
Posts: 811

 

 

 
fusionbb message board php hacks