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