![]() |
Quote:
Drk Also Guys if you want a link to download GD, you can find it at http://www.boutell.com/gd/ Drk |
PM me with what you need and we can get it done. :)
Quote:
|
please tell me, what the heck is GD ????
I'm on a Linux Server! cu Schorsch |
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?
|
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 |
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 Code:
Notice: Undefined offset: 1 in /home/boofo/public_html/forum/admin/db_mysql.php on line 84 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 |
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 |
wow,
thats a really good hack. I'll install it! :) |
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 |
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,
|
Quote:
PHP Code:
PHP Code:
|
Thanks NTLDR, still getting a CGI script error. Can't seem to figure this one out???
|
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? |
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? |
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. |
Ok, finally got ticked off and rebuilt my web server. Everything working great now! Nice hack, very usefull!
|
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? |
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. |
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? ;) Quote:
|
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 |
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?
|
nice hack m8
|
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. |
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? :)
Quote:
|
Maybe...I will talk to you when I get back, I am going out of down for few days.
Bye! |
Don't forget to bring me back a souvenir, Drk. :)
Quote:
|
Quote:
|
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?
|
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. PHP Code:
|
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? Quote:
|
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.
[sql]ALTER TABLE usergroup ADD canplotip SMALLINT (6)[/sql] Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Shouldn't this?:
Code:
makeyesnocode("Can view Plot IP?","canplotip,1"); Code:
makeyesnocode("Can view Plot IP?","canplotip",1); |
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 ;)
|
Thank you. now, is the default set at on for usergroups or off?
|
By default it is off for all usergroups ;)
|
You forgot to tell me about this in the usergroups.php.
Code:
makeyesnocode("Can view Plot IP?","canplotip",$usergroup[canplotip]); |
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:
PHP Code:
PHP Code:
|
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? |
Also, does anyone know how to have the IP address show in the getinfo template for the profile?
|
Quote:
Code:
<link rel="stylesheet" href="cp.css"> Quote:
Quote:
PHP Code:
|
All times are GMT. The time now is 01:16 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|