vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbulletin-ip Plotter (https://vborg.vbsupport.ru/showthread.php?t=42340)

DrkFusion 08-14-2002 10:00 PM

vbulletin-ip Plotter
 
Re-Release
This hack has been re released.

Description
What this does is allow you to plot an ip on a world map, it will tell you where the person lives, there isp etc.

Installation
Please see file for steps

Thanks
DrkFusion (Arunan)

DrkFusion 08-15-2002 08:44 PM

To restrict this to everyone except Admins, follow the following instructions.

Move vbipplot.php to the admins folder, and move the iplocation folder to the admins folder as well, make sure all the files are in the folder after you have moved it to the admins folder.

Then delete vbipplot.php and the iplocations folder from the mods directory.

To remove the link from the moderator-cp
Find in index.php of the mods directory:
Code:

// *************************************************
makenavoption("Mass Move","thread.php?action=move","<br>");
makenavoption("Mass Prune","thread.php?action=prune");
makenavselect("Thread Control","");
// *************************************************
makenavoption("Locate-ip","vbipplot.php?address=","<br>");
makenavselect("Member-ip Plot","<hr>");
// *************************************************

and replace with
Code:

// *************************************************
makenavoption("Mass Move","thread.php?action=move","<br>");
makenavoption("Mass Prune","thread.php?action=prune");
makenavselect("Thread Control","");
// *************************************************

Save and re-upload.
Now open the index.php file in the admins directory and find the following
Code:

makenavselect("Users");
// ***
makenavoption("Locate-ip","../mod/vbipplot.php?address=","<br>");
makenavselect("Member-ip Plot","<hr>");
// ***

replace with
Code:

makenavselect("Users");
// ***

save and re-upload.

Now in the template [threads_displayip] located in
Thread Management Templates>threads_displayip
and replace the whole thing with:
Code:

The IP Address is: $postinfo[ipaddress]. The host name is: $postinfo[hostaddress]. Please click <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid">here</a> to return to the thread.
If you experience any trouble, please notify me asap.
Thanks
Drk

Attrox 08-15-2002 08:50 PM

This is perfect, now I'll have more knowledge of banned users browsing with a new username. Great hack. :)

wot-Mike 08-15-2002 09:14 PM

Hehe, you beat me to it. I was working on a way to integrate this wonderful thing with vBulletin, in a slightly different manner, but ok :)

NTLDR 08-15-2002 09:40 PM

Looks very nice DrkFusion, installing now ;)

Tim Wheatley 08-15-2002 09:46 PM

Thank you very much. This will be very useful for further proving when someone is rejoining as a new registration after banning. :)

Boofo 08-15-2002 10:13 PM

DrkFusion, is there any way to have this as an option in the user.php so you can turn it on or off for specific users? Then you don't have to resrrict it to mods OR admins. What do you think there, big fella? :)

NTLDR 08-15-2002 10:22 PM

Quote:

Originally posted by Boofo
DrkFusion, is there any way to have this as an option in the user.php so you can turn it on or off for specific users? Then you don't have to resrrict it to mods OR admins. What do you think there, big fella? :)
I've changed:

PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").

To:

PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").
makelinkcode("plot ip","../mod/vbipplot.php?s=$session[sessionhash]&address=$user[ipaddress]").

In my admin/user.php so that it automatically gets the users ip address and shows as a link when you click find etc...

NTLDR 08-15-2002 10:29 PM

And I have changed my mod/user.php so when they view the profile, the link appears next to the IP address field.

Change:
PHP Code:

makeinputcode("IP Address","aipaddress",$user[ipaddress]); 

To:
PHP Code:

makeinputcode("IP Address <a href=\"vbipplot.php?address=$user[ipaddress]\">[plot ip]</a>","aipaddress",$user[ipaddress]); 

This again, automatically gets the users ip address.

DrkFusion 08-15-2002 11:06 PM

Hey, nice work NTLDR, if you do not mind may I add this in the read me? as an extra, or put it as a feature into the hack?

Thanks
Drk


All times are GMT. The time now is 01:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete