In .T7 we have the option of having it so the admins (or admins and mods) can see the IP address of a user; through a feature request of Joe Siegler I pieced together a quick modification that will link the displayed IP Address of the user to the 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...
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.
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 /templates/showflat.tpl and /templates/showthreaded.tpl
7.2 Notice: If installing in 7.2, apply the showflat/showthreaded steps to post_side.tpl and post_top.tpl
there, updated the code block to add in a target location of a blank window; if you don't want it to go to a blank window, simply remove the target="_blank" from the link code in the last step.
I wonder how this will work with the new online features being added with version 7.1? I haven't installed any real hacks yet and this would be one of the first ones along with several others that I would place in the "must haves" category.
'eh I'll make something compatable when the time comes (should it not be compatable), even if i have to add that magnifying glass icon with a link for the ip information ...
I got it to work by editing in `showflat.inc.php` and `showflat.tpl` but couldn't find the same code in `showthreaded.inc.php` or `showthreaded.tpl` (no biggie for me as I view in `flat` not `thread`).
Would love to add jgeoff`s additions but can't see the altered code either.
Updated initial post with changes in 7.1 (for 7.0 users, simply ignore the search engines section of online.tpl). Also incorporated jgeoff's additions.
DomainTools have nice API which could be connected with this feature. Altough, they have some limitation. After certain number of queries you have to start paying
I'm very confused. Giz, is your first script up-to-date with all the changes in the rest of the thread?
Thanks, I'd like to apply this mod.
Hi Rose,
I took Gizmo's online "how to" and updated it for v7.2 and put it into an attachment. Also incorporated the Admin/Mod update he helped me with the other night. Just take a look at the attachment, it is commented for that section. As is it will allow both Admins and Mod's to view IP details.
[Gizmo, Mod's... feel free to relocate this attachment to the inital post if you wish]
It shouldn't be too much differant in 7.2; granted the showflat/showthreaded steps apply elsewhere, but i commented on that in the original post... I'm not sure what all would be differant; it's honestly just looking for the ip areas, I applied this on my sites but i'm not sure how much of the "how to" i actually followed in 7.2...
It shouldn't be too much differant in 7.2; granted the showflat/showthreaded steps apply elsewhere, but i commented on that in the original post... I'm not sure what all would be differant; it's honestly just looking for the ip areas, I applied this on my sites but i'm not sure how much of the "how to" i actually followed in 7.2...
Just minor things, like path to the template files (added the /default/ path) removing the reference to showthreaded since it dosesn't exist (at least on my v7.2 installation) and included the blurb on Admin & Mod permissions.
I like having the mod's in a text file as well since I can store that information for future reference.
This is very nice, and is something I wish was included in the standard code. We always check a new members IP# (and their email address via Google) to see what info turns up before we approve them.
Do you know if it is possible to do this with some other DNS sites? For instance the site http://www.ipligence.com/geolocation/# is sort of nice because it provides a map of the location (as do several other sites). But it looks like the IP# info is generated once you enter the number in their form and submit it. Is there anyway to do that with something like what the modifications listed here?
Thanks for responding Gizmo. I think the problem is that they don't allow input via the URL. Most of these sites return the IP informtion for the person who is accessing the page. So in the case of ipligence.come (and several others)if I put their URL in then when an Admin clicks on a users IP# they get information about themselves instead of info for the user.
The sites are set up with a form where you have to type in the ip# you want info on if you are not inquiring about your own IP. I don't know if it is possible to setup a URL which will pass the ip number to the form and submit it? That is what I was hoping was possible, but I suspect it is not.
Not a big deal, but the tie in to Google maps is helpful to get a sense of where they are.
Well, it'd be a little more involved than that... Those which allow input via URL use the GET input, wheres others use POST which would require them allowing outside input in the first place...
JEEZ! The delete time is pretty short here, no? (I mistakingly posted this under 7.0-7.2 rather than 7.3)
My linked IP addresses are no longer working because they come through as being enclosed in parentheses and -- while it used to work just fine for domaintools.com, they no longer do.
Am I missing something here that causes IPs to be enclosed in parentheses? I've been away from this code for so long -- did I put the parentheses somewhere else? lol
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.