View Full Version : vbulletin-ip Plotter
DrkFusion
08-14-2002, 10:00 PM
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:
// *************************************************
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
// *************************************************
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
makenavselect("Users");
// ***
makenavoption("Locate-ip","../mod/vbipplot.php?address=","<br>");
makenavselect("Member-ip Plot","<hr>");
// ***
replace with
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:
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
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:
makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]")."
To:
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:
makeinputcode("IP Address","aipaddress",$user[ipaddress]);
To:
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
Boofo
08-15-2002, 11:09 PM
Drk, when you get it done, let me know and I will take another look at it. I really hate to install it and have to change everything to make it work like I want to, if you know what I mean. :)
Originally posted by DrkFusion
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
NTLDR
08-15-2002, 11:15 PM
Originally posted by DrkFusion
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?
No problem, go right ahead, this is a great hack and usefull too ;)
Works a treat :D
DrkFusion
08-15-2002, 11:26 PM
Thanks man, great addition :) brb, let me update the file.
Originally posted by Boofo
Drk, when you get it done, let me know and I will take another look at it. I really hate to install it and have to change everything to make it work like I want to, if you know what I mean. :)
Do you mean NTLDR modification?
Originally posted by NTLDR
No problem, go right ahead, this is a great hack and usefull too ;)
Works a treat :D
NTLDR
08-15-2002, 11:34 PM
Who's online edit: Adds a P before the IP address in the who's online page so you can see where visitors are from ;)
Change in the whosonlinebit_ip template:
<td bgcolor="$backcolor" align="left">
To:
<td bgcolor="$backcolor" align="left"><smallfont><a href="mod/vbipplot.php?s=$session[sessionhash]&address=$userinfo[ipaddress]" target="_blank">P</a>
Change the target and letter P as required :D
DrkFusion
08-15-2002, 11:50 PM
Hey NTLDR, may I add that aswel??
hehe
Drk
NTLDR
08-15-2002, 11:52 PM
Originally posted by DrkFusion
Hey NTLDR, may I add that aswel??
hehe
hehe, sure add away :banana:
DrkFusion
08-15-2002, 11:56 PM
I got some screen shots...please bare with me :)
Drk
DrkFusion
08-16-2002, 12:11 AM
The Main View of the Plotted Map
DrkFusion
08-16-2002, 12:12 AM
Admin CP:Edit Users View
THANKS TO NTLDR FOR THIS MODIFICATION
DrkFusion
08-16-2002, 12:12 AM
Edit User Profile in Mod CP
THANKS TO NTLDR FOR THIS MODIFICATION
DrkFusion
08-16-2002, 12:13 AM
Whos Online:
Link to map, with ip address.
THIS ADDON WAS ALSO MADE BY NTLDR.
Thanks again NTLDR.
DrkFusion
08-16-2002, 12:16 AM
Note the file has been updated.
SemperFidelis
08-16-2002, 03:27 AM
Damn cool hack
Thanks for all your efforts.
:)
But, has anyone got this error so far ?
Could not open socket to caida.org
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 84
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 97
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 84
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 97
Here is my line 84 :
80 $pageendtime=microtime();
81 $starttime=explode(" ",$pagestarttime);
82 $endtime=explode(" ",$pageendtime);
83
84 $beforetime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
85
86 $this->query_id = mysql_query($query_string,$this->link_id);
And here is line 97 :
93 $pageendtime=microtime();
94 $starttime=explode(" ",$pagestarttime);
95 $endtime=explode(" ",$pageendtime);
96
97 $aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
98 $querytime+=$aftertime-$beforetime;
99
100 if ($showqueries) {
DrkFusion
08-16-2002, 03:53 AM
Wierd....this doesn't have anything to do with mysql...'_'
Drk
SemperFidelis
08-16-2002, 05:36 AM
Well yeah thats what I thought too.
Hmmm
This has got me rather stumped !
Anyone got any ideas ?
SemperFidelis
08-16-2002, 05:51 AM
Updated Info :
In ipconf.inc I had to change
# set $use_firewall to "1" if behind a proxy
$use_firewall="1";
to the correct details
But I am still getting the above error
(minus Could not open socket to caida.org)
Also when you view an IP from within a post, and then select
'Click Here to find the location of this member'
Wouldnt that look better if it opened within a page of forum rather than how it crrently does ?
Znaper
08-16-2002, 11:02 AM
In the plotimage.php are the files
include("plotconf.inc");
include("plot.inc");
included, where are the files.
In the ZIP-Package is none.
bye Znaper
NTLDR
08-16-2002, 12:12 PM
Another place to add the link ;)
In admin/user.php change:
".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]").
To:
echo "<li>$ip[ipaddress] (".gethostbyaddr($ip[ipaddress]).") ".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]")."".makelinkcode("plot ip","../mod/vbipplot.php?s=$session[sessionhash]&address=$ip[ipaddress]")."</li>\n";
This will add the plot ip link when you search for IP addresses in the Admin CP.
Feel free to add this in to the readme as well DrkFusion ;)
ULTIMATESSJ
08-16-2002, 12:20 PM
fanciness, great hack
/me clicks install
NTLDR
08-16-2002, 12:37 PM
w00t!! Another Mod :D
This will resolve the IP and display it after the text with the location.
In vbipplot.php find:
# START HTML
And add directly before;
unset($resolved);
unset($ipres);
$resolved = gethostbyaddr($values["address"]);
if ($values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";
}
Next find:
if(isset($address)) {
print "$values[desc]";
And add directly after (and before the } which directly follows):
print "<br>";
print "$ipres";
This will now display the resolved IP address (where it can be resolved of course ;))
DrkFusion
08-16-2002, 01:30 PM
Hey, I forgot to mention the firewall part :-/ Sorry guys, It can open in a page within a forum, I really intended to get the mods to use the mod-cp...the mods at my forum are quite...uhh loose, as in they don't know crap bout vbulletin. I was also aiming to make this work, with the fewest modifications.
Originally posted by v-net
Updated Info :
In ipconf.inc I had to change
# set $use_firewall to "1" if behind a proxy
$use_firewall="1";
to the correct details
But I am still getting the above error
(minus Could not open socket to caida.org)
Also when you view an IP from within a post, and then select
'Click Here to find the location of this member'
Wouldnt that look better if it opened within a page of forum rather than how it crrently does ?
Umm, that was taken from the original file by Ivan, I renamed many files, and modified little bits of the code, replace that bit with
include("ipconf.inc");
include("ipplot.inc");
It is located in the locationip directory. I will update the zip.
Originally posted by Znaper
In the plotimage.php are the files
include("plotconf.inc");
include("plot.inc");
included, where are the files.
In the ZIP-Package is none.
bye Znaper
DrkFusion
08-16-2002, 01:32 PM
Originally posted by NTLDR
w00t!! Another Mod :D
This will resolve the IP and display it after the text with the location.
In vbipplot.php find:
# START HTML
And add directly before;
unset($resolved);
unset($ipres);
$resolved = gethostbyaddr($values["address"]);
if ($values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";
}
Next find:
if(isset($address)) {
print "$values[desc]";
And add directly after (and before the } which directly follows):
print "<br>";
print "$ipres";
This will now display the resolved IP address (where it can be resolved of course ;))
So Ntldr... :tired:<--Tired
hehe j/k
Drk
NTLDR
08-16-2002, 02:40 PM
Originally posted by DrkFusion
So Ntldr... :tired:<--Tired
hehe j/k
Drk
hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)
Dean C
08-16-2002, 05:58 PM
To Mist:
No, You cannot get full addresses, and credit card numbers with this.
++++ off - i already knew that fool lol ;)
___________
great hack mate... :D
beemer
08-16-2002, 06:12 PM
Anyone know the link to the GD app that DRKFusion is referring to in the readme.txt file? I guess Win2K doesn't support this by default.
DrkFusion
08-16-2002, 07:11 PM
I emailed you the link ;) Look for a binary version.
Good Luck
Drk
DrkFusion
08-16-2002, 07:12 PM
Originally posted by Mist
++++ off - i already knew that fool lol ;)
___________
great hack mate... :D
;)
hehe
Thanks
Drk
DrkFusion
08-16-2002, 07:13 PM
Originally posted by NTLDR
hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)
Mind making me a mod, so I may test it at your forums :smoke: :cool:
Boofo
08-16-2002, 07:19 PM
Drk, you're more than welcome to install this at my forums. ;)
Originally posted by DrkFusion
Mind making me a mod, so I may test it at your forums :smoke: :cool:
DrkFusion
08-16-2002, 07:50 PM
Originally posted by Boofo
Drk, you're more than welcome to install this at my forums. ;)
Bring it :banana:
Drk
Also Guys if you want a link to download GD, you can find it at
http://www.boutell.com/gd/
Drk
Boofo
08-16-2002, 07:51 PM
PM me with what you need and we can get it done. :)
Originally posted by DrkFusion
Bring it :banana:
Drk
Also Guys if you want a link to download GD, you can find it at
http://www.boutell.com/gd/
Drk
Schorsch
08-16-2002, 07:56 PM
please tell me, what the heck is GD ????
I'm on a Linux Server!
cu
Schorsch
beemer
08-16-2002, 08:01 PM
DRKFusion, in your instructions you state that the mod directory permissions should be 777. Can you tell me what you mean by that, is this a UNIX term?
DrkFusion
08-16-2002, 11:04 PM
Yes its unix term, don't worry about it for windoes servers. Boofo...pm me the info :) My net connection is getting knockd off every few minutes, so I can't go through with pming you lol.
Schorsch:
GD, is a special program that is installed on servers that will allow you to manipulat the image in real time, with out opening it into a image editor then exporting it. I have included a link above go and read about it.
Test this on your servers, it might work without GD :D
Drk
DrkFusion
08-16-2002, 11:53 PM
OK NOTE, TO PEOPLE WHO GET THE DB_MYSQL.PHP ERROR.
Ignore it, it is nothing harmful, its just differences in time offset, because of the logs.
The error will look similar to
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 84
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 97
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 84
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 97
If you also see a broken image, open the readme file and scroll down the the bottom and read teh instructions.
you will only get A BROKEN IMAGE IF YOU DON'T HAVE GD ENABLED, SO IF YOU WANT THIS TO WORK, READ THAT PART ;)
Enjoy
Sketch
08-18-2002, 12:58 AM
can I simply ask (since I'm lazy and don't feel like analyzinbg the php on a sunday evening :D) what the secret to mapping the IP is....what PHP function/combo of functions? The reason I ask is this has been something that has come up over at SitePoint about how to analayze where an IP is from.....and I have no idea. Thishack would be useful to apply elsewhere in a non-hack place. :D
Thanks
Aaron
KarateKid
08-19-2002, 05:38 PM
wow,
thats a really good hack.
I'll install it! :)
Schorsch
08-20-2002, 03:13 AM
seems to work fine, thank you !
has the leave out of this GD thing and instead using css any disadvantages ?
If not, why don't you do this hole hack completley without this GD thing ?
cu
Schorsch
beemer
08-20-2002, 05:14 PM
Does anyone know how to use css instead of GD? I am running vbulletin on Win2k server and since I'm not a seasoned C++ programmer, I am not sure how to add GD? I would love to use this hack if I can. Anyone else get it working on a Win2K server? Thanks,
NTLDR
08-20-2002, 05:18 PM
Originally posted by beemer
Does anyone know how to use css instead of GD?
In ipconf.inc change:
$trygd = "1";
To:
$trygd = "0";
This will then use CSS, this works fine for me.
beemer
08-20-2002, 07:06 PM
Thanks NTLDR, still getting a CGI script error. Can't seem to figure this one out???
NTLDR
08-20-2002, 07:53 PM
I'll try this on my IIS server and see if it will work, I know the CSS works fine under appache and linux.
UPDATE:
It works fine for me under IIS 5.1 with PHP 4.2 installed using the CSS method, what errors are you getting?
beemer
08-20-2002, 08:25 PM
I'm getting a CGI error that says :
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
So a new question, when using IIS5 are css sheets enabled by default or do I have to install some msdn peice to make them work? I am using PHP4.2 but I'm not sure what mean when you say you installed it using the CSS method?
NTLDR
08-20-2002, 09:19 PM
I just followed the instructions for the hack, but made $trygd=0; other then that I made no other changes, are you running PHP as an ISAPI or as a CGI exe?
I allways used to get the error on the Admin CP home page with IIS.
beemer
08-21-2002, 05:07 PM
Ok, finally got ticked off and rebuilt my web server. Everything working great now! Nice hack, very usefull!
scottct1
08-21-2002, 06:57 PM
It works however I am gettiing the following error when it plots the screen (the error is at the bottom of VBipplot.php
Notice: Undefined variable: encoding in /home/dbstalk/public_html/admin/adminfunctions.php on line 44
Any ideas?
DrkFusion
08-22-2002, 01:28 AM
There may be errors like this because of differences in server setup, and server preferences.
So if the plotter works, and it plots the ip ok, then its nothing to wory about.
Boofo
08-22-2002, 01:34 AM
Drk, my server seems to be set up with GD. Is there a way around the errors that show up for the time probelm? :)
Also, how can I put the dir for the files in the Admin dir instead of the mod dir and still make it work like it does now, buddy? ;)
Originally posted by DrkFusion
There may be errors like this because of differences in server setup, and server preferences.
So if the plotter works, and it plots the ip ok, then its nothing to wory about.
DrkFusion
08-22-2002, 01:44 AM
That is very easy, take out the links in mod/index.php, move the file vbipplot.php and everything in the ..locatio folder into the admin folder.
It should look something like this
admin/vbipplot.php
admin/{thelocationfolder}
Now then edit admin/index.php find ../mod/vbipplot.php and change it to vbipplot.php
in user.php in the admin directory find ../mod/vbipplot.php and replace it with vbipplot.php find it again I believe and replace with vbipplot.php.
Now uhh I forgot the changes i made to your forums hehe, so any instances of../mod/vbipplot or mod/vbipplot to admin/vbipplot or just ipplot.
Its farely easy
Boofo
08-22-2002, 03:06 AM
Ok, Drk, I moved everything and changed all of the links and it works fine except now every-time I run it from the on-line.php on the site, It makes me login to the Admin CP first before it shows. Any way to bypass that?
DrkFusion
08-23-2002, 03:42 PM
Boofo:
did you edit it in the Whos Online? The Link? If so, then you got to edit one of the php files included in the zip.
Hmm..I will check it out, but Im suer vbipplot.php is me best bet. There may be file includes telling it to go yo mod folder.
Boofo
08-23-2002, 05:40 PM
It goes to the plotter window fine, it just asks for my login password to the admin dir every-time I do now, is all. Once I give it, it will allow me to go there again and again without the password having to be entered again. Cookies, maybe? :)
Originally posted by DrkFusion
Boofo:
did you edit it in the Whos Online? The Link? If so, then you got to edit one of the php files included in the zip.
Hmm..I will check it out, but Im suer vbipplot.php is me best bet. There may be file includes telling it to go yo mod folder.
DrkFusion
08-23-2002, 06:04 PM
Maybe...I will talk to you when I get back, I am going out of down for few days.
Bye!
Boofo
08-23-2002, 06:12 PM
Don't forget to bring me back a souvenir, Drk. :)
Originally posted by DrkFusion
Maybe...I will talk to you when I get back, I am going out of down for few days.
Bye!
NTLDR
08-23-2002, 09:09 PM
Originally posted by Boofo
It goes to the plotter window fine, it just asks for my login password to the admin dir every-time I do now, is all. Once I give it, it will allow me to go there again and again without the password having to be entered again. Cookies, maybe? :)
This is true of all files in the admin directory that include admin/global.php and use cpheader(); and cpfooter(); Its a security feature in vB.
Boofo
08-23-2002, 09:17 PM
That makes sense. I supose I could move it all to the forum root directory. That wouldn't hurt anything would it? No one but the admin should see it even from there, should they?
NTLDR
08-23-2002, 09:35 PM
It won't hurt being there, however you need to remove the cpheader(); and cpfooter(); lines as that will cause parse errors.
If you do move it into the forums directory I suggest that you add this code after require('./global.php'); so that only admins can view the page, and everyone else gets the no permission error.
if ($bbuserinfo[usergroupid]!=6) {
show_nopermission();
}
Boofo
08-23-2002, 10:43 PM
Good idea, although, with it set up like it is, I think only Admins can view IPs on my site already, so it should be set to go if I move it there. The show nopermissions is a good safety catch though. :)
Let me ask you this...how could I do the permissions for like it is set for in the Admin CP, for whoever I have it set for to be able to see IPs?
Originally posted by NTLDR
It won't hurt being there, however you need to remove the cpheader(); and cpfooter(); lines as that will cause parse errors.
If you do move it into the forums directory I suggest that you add this code after require('./global.php'); so that only admins can view the page, and everyone else gets the no permission error.
if ($bbuserinfo[usergroupid]!=6) {
show_nopermission();
}
NTLDR
08-23-2002, 11:20 PM
You would need to add another field to the usergroup table and a few lines to your usergroup.php and modify the show_nopermission code.
ALTER TABLE usergroup ADD canplotip SMALLINT (6)
Find:
makeyesnocode("Can view board","canview",1);
And add after:
makeyesnocode("Can view Plot IP?","canplotip,1");
And find:
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,showgroup,canse arch,canemail,canpostnew,canmove,canopenclose,cand eletethread,canreplyown,canreplyothers,canviewothe rs,caneditpost,candeletepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate,cantrackpm,candenyp mreceipts,maxbuddypm,maxforwardpm,canwhosonline,ca nwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$showgroup,$cansearch,$canemail,$canpo stnew,$canmove,$canopenclose,$candeletethread,$can replyown,$canreplyothers,$canviewothers,$caneditpo st,$candeletepost,$canusepm,$canpostpoll,$canvote, $canpostattachment,$ismoderator,$canpublicevent,$c anpublicedit,$canthreadrate,$cantrackpm,$candenypm receipts,$maxbuddypm,$maxforwardpm,$canwhosonline, $canwhosonlineip,$cangetattachment)");
And replace with:
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,canplotip,showg roup,cansearch,canemail,canpostnew,canmove,canopen close,candeletethread,canreplyown,canreplyothers,c anviewothers,caneditpost,candeletepost,canusepm,ca npostpoll,canvote,canpostattachment,ismoderator,ca npublicevent,canpublicedit,canthreadrate,cantrackp m,candenypmreceipts,maxbuddypm,maxforwardpm,canwho sonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$canplotip,$showgroup,$cansearch,$cane mail,$canpostnew,$canmove,$canopenclose,$candelete thread,$canreplyown,$canreplyothers,$canviewothers ,$caneditpost,$candeletepost,$canusepm,$canpostpol l,$canvote,$canpostattachment,$ismoderator,$canpub licevent,$canpublicedit,$canthreadrate,$cantrackpm ,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$can whosonline,$canwhosonlineip,$cangetattachment)");
And change the code I gave above to:
$permissions=getpermissions();
if (!$permissions[canplotip]) {
show_nopermission();
}
Then you can select which usergroups can plot ips ;)
Boofo
08-23-2002, 11:27 PM
Shouldn't this?:
makeyesnocode("Can view Plot IP?","canplotip,1");
actaully be this?:
makeyesnocode("Can view Plot IP?","canplotip",1);
NTLDR
08-23-2002, 11:37 PM
It does work both ways actually (which is odd, I done it the way I posted for a hack and it works), although the change you have made would be the correct way to do it ;)
Boofo
08-23-2002, 11:40 PM
Thank you. now, is the default set at on for usergroups or off?
NTLDR
08-23-2002, 11:42 PM
By default it is off for all usergroups ;)
Boofo
08-23-2002, 11:56 PM
You forgot to tell me about this in the usergroups.php.
makeyesnocode("Can view Plot IP?","canplotip",$usergroup[canplotip]);
and isn't there another spot for an update db query or something?
NTLDR
08-24-2002, 12:01 AM
Sorry Boofo, its 2AM here and I'm kinda tired, I forgot those sections from the text file, the other query you need to replace is:
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostne w=$canpostnew,canmove=$canmove,canopenclose=$canop enclose,candeletethread=$candeletethread,canreplyo wn=$canreplyown,canreplyothers=$canreplyothers,can viewothers=$canviewothers,caneditpost=$caneditpost ,candeletepost=$candeletepost,canusepm=$canusepm,c anpostpoll=$canpostpoll,canvote=$canvote,canpostat tachment=$canpostattachment,ismoderator=$ismoderat or,canpublicedit=$canpublicedit,canpublicevent=$ca npublicevent,canthreadrate=$canthreadrate,cantrack pm=$cantrackpm,candenypmreceipts=$candenypmreceipt s,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardp m,canwhosonline=$canwhosonline,canwhosonlineip=$ca nwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid");
With:
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,canplotip=$canplotip,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostne w=$canpostnew,canmove=$canmove,canopenclose=$canop enclose,candeletethread=$candeletethread,canreplyo wn=$canreplyown,canreplyothers=$canreplyothers,can viewothers=$canviewothers,caneditpost=$caneditpost ,candeletepost=$candeletepost,canusepm=$canusepm,c anpostpoll=$canpostpoll,canvote=$canvote,canpostat tachment=$canpostattachment,ismoderator=$ismoderat or,canpublicedit=$canpublicedit,canpublicevent=$ca npublicevent,canthreadrate=$canthreadrate,cantrack pm=$cantrackpm,candenypmreceipts=$candenypmreceipt s,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardp m,canwhosonline=$canwhosonline,canwhosonlineip=$ca nwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid");
Boofo
08-24-2002, 12:16 AM
That's ok, I found it and put it in there. :) Thanks for getting me that far though. Are you ready for this? I think I found a way to fix that error everyone keeps getting with the time problem. Since I moved it to the root dir, there are no more error showing up on the page and it comes up a lot faster now. The only thing is, the background of the page is white now instead of the Admin CP default. Any way to add that back in? Or some kind of background, anyway? Also, you said to take out the cpheader and cpfooter lines right? I want to make sure there is no security risk.
Also, when I was talking about the permissions, I meant the permissions to view IPs. It is probably better this way, but can it be made to just follow the View IP addresses permissions?
Boofo
08-24-2002, 02:39 AM
Also, does anyone know how to have the IP address show in the getinfo template for the profile?
NTLDR
08-24-2002, 07:24 PM
Originally posted by Boofo
The only thing is, the background of the page is white now instead of the Admin CP default. Any way to add that back in?
Add some where between <head> and </head> in the HTML:
<link rel="stylesheet" href="cp.css">
That will use the ACP colours.
Also, you said to take out the cpheader and cpfooter lines right? I want to make sure there is no security risk.
If you have the code I mentioned earlier it will work only for those users with have canplotip set to 1.
Also, when I was talking about the permissions, I meant the permissions to view IPs. It is probably better this way, but can it be made to just follow the View IP addresses permissions?
Use this code for that:
$permissions=getpermissions();
if (!$permissions[canwhosonlineip]) {
show_nopermission();
}
DrkFusion
08-27-2002, 06:20 PM
Wow..NTLDR is the best, he knows this hack inside out, hehe.
Anyways Im back :)
Boofo
08-27-2002, 09:11 PM
By the way, thanks, NTLDR, for all of the help. It works great here. :) And you, too Drk, for coming up with it in the first place. ;)
NTLDR
08-27-2002, 09:18 PM
No problem Boofo, glad I could help you out and add to a great hack :)
SemperFidelis
08-28-2002, 06:03 AM
Originally posted by DrkFusion
OK NOTE, TO PEOPLE WHO GET THE DB_MYSQL.PHP ERROR.
Ignore it, it is nothing harmful, its just differences in time offset, because of the logs.
The error will look similar to
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 84
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 97
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 84
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 97
Has anyone come up with a solution for this yet ?
I know it doesnt do any harm, it just takes the gloss off an otherwise exceptional hack.
Boofo
08-28-2002, 06:11 AM
I moved the dir and the main file from the admin directory to the forum directory and those errors do not show up at all now. Follow the directions by NTLDR in this thread, though or it won't work by just moving them. :)
Originally posted by v-net
Has anyone come up with a solution for this yet ?
I know it doesn't do any harm, it just takes the gloss off an otherwise exceptional hack.
SemperFidelis
08-28-2002, 07:07 AM
Cheers
:D
Boofo
08-28-2002, 07:15 AM
Did you notice that it comes up a little quicker now, too? :)
Originally posted by v-net
Cheers
:D
SemperFidelis
08-28-2002, 07:22 AM
Haven't done the modifications yet
Will be doing it later on tonight
I'll let you know if I notice any speed difference
Buddha
09-09-2002, 07:31 PM
i'm getting this when i try to plot the ip.
Could not find element CITY
any thoughts?
I got everything installed..I don't know if I have GD or not, but with the 0 and the 1 for TestGD or wahtever I get this error when I click on PLOT in the Whos Online Page....
Warning: Failed opening './iplocation/ipconf.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/public_html/forums/mod/vbipplot.php on line 8
Warning: Failed opening './iplocation/ipplot.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/public_html/forums/mod/vbipplot.php on line 9
Fatal error: Call to undefined function: getstuff() in /home/public_html/forums/mod/vbipplot.php on line 28
Buddha
09-10-2002, 03:09 PM
still getting the city problem, but not all the time.... but now when i try to plot an ip, when i get the map, the location and whatnot are there, but there is something missing on the map (the dot to signify the location).
check out the attached image to see what i mean.
there's something missing there?
any thoughts?
wot-Mike
09-10-2002, 06:31 PM
Originally posted by Buddha
still getting the city problem, but not all the time.... but now when i try to plot an ip, when i get the map, the location and whatnot are there, but there is something missing on the map (the dot to signify the location).
check out the attached image to see what i mean.
there's something missing there?
any thoughts?
Switch to css, see:
https://vborg.vbsupport.ru/showthread.php?postid=287868#post287868
Buddha
09-10-2002, 07:30 PM
thanks.
sorry, i only thought you had to switch to css if you didn't have gd.
i have gd, but was still getting errors.
anyway, it works perfectly now... many thanks.
RayMatrix
09-18-2002, 06:54 AM
. . .this 'Could not find element CITY' Problem :(
But it appears not at all IPplots...
Any Idea ?
Originally posted by RayMatrix
. . .this 'Could not find element CITY' Problem :(
But it appears not at all IPplots...
Any Idea ?
I get that too and alot of "ip here" cannot be located.
Help?
Originally posted by 410
I got everything installed..I don't know if I have GD or not, but with the 0 and the 1 for TestGD or wahtever I get this error when I click on PLOT in the Whos Online Page....
Warning: Failed opening './iplocation/ipconf.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/public_html/forums/mod/vbipplot.php on line 8
Warning: Failed opening './iplocation/ipplot.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/public_html/forums/mod/vbipplot.php on line 9
Fatal error: Call to undefined function: getstuff() in /home/public_html/forums/mod/vbipplot.php on line 28
RayMatrix
09-26-2002, 08:37 AM
Did you Set the Mod and IPLOCATION Folder to CHD 755 ?
C.Birch
09-26-2002, 08:14 PM
Originally posted by 410
Help?
Move the iplocation folder to inside the mod folder has it needs to be inside it not in your boards main folder.
that worked, but now I get this error when I try to plot it...
"Could not find element CITY"
wolfman
09-28-2002, 02:51 PM
First I really like this hack and use often.
I am getting this in the bottom of the window when I do a search on an ip
Warning: Undefined variable: encoding in /home/virtual/site26/fst/var/www/html/forum/admin/adminfunctions.php on line 44
When I go through and look at the files that have been altered this is not one of them.
DrkFusion
09-28-2002, 03:00 PM
Originally posted by 410
that worked, but now I get this error when I try to plot it...
"Could not find element CITY"
That would either mean the ip is behind a router, or the ip has been assigned to a city, from an outside source.
Try to check the hostname, if the host name is there then do a isp checkup, if you want.
Dark Shogun
09-29-2002, 04:53 AM
DrkFusion do you know why I get this error:
Could not open socket to caida.org
and how to fix it?
Dark Shogun
DrkFusion
09-29-2002, 03:44 PM
Caida.org wouldn't happen top be your site or host would it?
If it is, then I believe a connection to the library of cities, and hostnames could not be opened through the web.
Do not take my word on this, ome sites are not meant to use this software, mainly because it has alot of permissions that it needs.
I am sorry if it will not work, again Im not really familier with your problem, I will ask my host, my host is very very familier with these stuff, I wills ee if he knows what the problem is.
-Arunan
Originally posted by DrkFusion
That would either mean the ip is behind a router, or the ip has been assigned to a city, from an outside source.
Try to check the hostname, if the host name is there then do a isp checkup, if you want.
No, this happenes every time I go into the IP Plotter...like when I try to get into it from the CP..it gives me this error, also whenever I push the * next to ANYONES name....?
PHiXTiT
10-01-2002, 07:08 AM
I too am also getting the below error.
I am running a win2k server.
Could not find element CITY
Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\site\forum\admin\db_mysql.php on line 84
Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\site\forum\admin\db_mysql.php on line 97
Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\site\forum\admin\db_mysql.php on line 84
Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\site\forum\admin\db_mysql.php on line 97
I get no map, just the errors.
I have changed to 0 instead of 1 in ipconf.inc as well.
I am not sure about GD.
Any ideas?
DrkFusion
10-01-2002, 08:17 PM
This hack is not available anymore, Im sorry, read the first post for info
https://vborg.vbsupport.ru/showthread.php?s=&postid=285631#post285631
I do not mind people that have already installed this to help each other. Just do not re-release this hack without my written permission.
Thank you again,
Arunan
yeah thanks for the help .....
look4you
10-02-2002, 10:34 PM
Too bad that the hack got removed.
Oh well...
PHiXTiT
11-28-2002, 11:21 PM
I get the above error still.
Help would be greatly appreciated. :)
ScruffyDeluxe
01-02-2003, 04:36 PM
Although the hack works great for me, I get this above the map:
"Warning: Undefined index: HTTP_USER_AGENT in /www.phuck-ign.com/forums/mod/vbipplot.php on line 48"
...bizarre.
Auero
01-02-2003, 08:58 PM
Ok I have this running and after editing it for a bit I finally got it to work.
I just viewed my details and they were correct. Now, I click on the details for a guest and i get this .... Could not find element CITY
.. any ideas?
drumsy
01-08-2003, 10:12 PM
Originally posted by Auero
Ok I have this running and after editing it for a bit I finally got it to work.
I just viewed my details and they were correct. Now, I click on the details for a guest and i get this .... Could not find element CITY
.. any ideas?
None, and I've installed it and get the same thing sometimes...
ranger2kxlt
01-11-2003, 04:07 PM
Try this newer version:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=47598
*credit given*
lynda
03-05-2003, 06:47 PM
Ummmmm, the files are still calling for plotconf.inc, etc and the files are not included in the zip.
Am I the only one having this problem?
lynda
03-05-2003, 06:59 PM
Okay, it looks like there is remnant of old code here which may be why many people cannot get GD to work.
I had to do the following in order to get this to work...
plotimage.php is still calling up plotconf.inc and plotip.inc or whatever the OLD files are named. It should be changed to include ipconf.inc and ipplot.inc.
Also, in ipconf.inc include("./iplocation/translate.inc"); should be changed to just include("translate.inc") since it exists in the same directory.
Made those two changes and GD works great for me now!
Wonderful hack! My paranoid admins absolutely love it. :)
gmarik
05-24-2003, 08:53 AM
How is it with 2.3?
enzo81
07-12-2003, 03:50 PM
does tis work wif 2.3.0?
Crank
02-27-2004, 03:28 PM
hey i installed this in 2.3.4 and it works fine but i am not able to see the red dot for the location. its not just a city problem its a issue with every ip. any help please?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.