[]Astaran said:<br />Have you added the function remoteFileSize as stated in the instructions and the the function that is needed for older php versions? [/]<br /><br />I must be blind, I added the function for the older php versions but didn't add the function for remoteFileSize, unfortunatly I had installed this before that was added to the instructions and wasn't made aware of it until this weekend.<br />Thanks for the help! <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
I would love to implemente this in 6.5 and run the check script for all those who have to big allready....<br /><br />Whats needed for this to work in 6.5???
works fine in 6.5, but there are some lines that must be changed manually, as it have been a few small changes in them by Infopop... anyway, kinda logic!
Anno
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
There is something missing in that code, only the first image found is checked for the size and other parameters, all others are not.<br />A for loop is missing so to say.<br /><br />Also, I found a remote file size check that doesn't download the images to check the filesize but checks the headers instead.<br /><br />http://www.php-editors.com/contest/1/33-read.html
[]Anno said:<br />There is something missing in that code, only the first image found is checked for the size and other parameters, all others are not.<br />A for loop is missing so to say.<br /> [/]<br /><br />In my original code or the updated one?
_________________________
Running a community? -> Keep informed and take it to the next level
Anno
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
In the one in your first post. <br /> <br />This part: <br /> <br />elseif ($images != 0) { <br />$imageUrl = "http" . $out['0']['2'] . "." . $out['0']['3']; <br /> <br />Should be included in a loop, the way it is now it only checks the first image found. <br /> <br />Also, you might check the function I use for the remote file size checking without the need to downlod the file to the server.
drkknght
Kahuna
Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
how much more difficult would it be to additionally force users to upload their signature images to my server? in a similar fashion as the user avatar's current upload setting.<br /><br />this way, i could (1) better monitor the content of the images and (2) ensure there's no page drag because a sig image is hosted on a slower server
_________________________
professional discussion killer due to intelligence limitations, i do not offer support. my site ~ my boards
drkknght
Kahuna
Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
in addition, i'd also prefer to have a little upload field, too, for the users to upload their sig images (which would help enforce the idea that they'd have to be hosted on my server) <br /> <br />any chance on whippin all this up for the codily handicapped? <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
professional discussion killer due to intelligence limitations, i do not offer support. my site ~ my boards
Hi, please help....<br /><br />I am using 6.3.2 and have gone into the admin panel - edit config settings. Where exactly do I add these variables? There isnt anywhere obvious to put them. can they be added to the php file manually?<br /><br /><br />
Code:
##################<br />Open your admin panel -> config settings and add these variables:<br />###################<br /><br />$config['sigMaxImages'] = '1';<br />$config['sigImageHeight'] = '80';<br />$config['sigImageWidth'] = '400';<br />$config['sigImageSize'] = '30720';<br />$config['sigMaxLines'] = '10';