PDA

View Full Version : SIG Testing...


JoeVeeDubber
06-19-2004, 02:26 AM
Show up please!

JoeVeeDubber
06-19-2004, 02:28 AM
Show up please!
again.....

bugzy
06-19-2004, 02:28 AM
:smokem:

CadenceX
06-19-2004, 03:36 AM
crazy foos

cynicalgeek
06-19-2004, 09:45 AM
Testing my sig...

cynicalgeek
06-19-2004, 09:52 AM
Testing my sig...

Hmm - pic won't show up with img tags. When editing my sig, down below it says that img code is off. I'm thinking this needs to be turned on for sigs to work.

bugzy
06-19-2004, 10:47 AM
Hmm - pic won't show up with img tags. When editing my sig, down below it says that img code is off. I'm thinking this needs to be turned on for sigs to work.
question is, should allow images in signatures

creanium
06-22-2004, 12:59 AM
question is, should allow images in signatures
Yes

Greenwing
06-23-2004, 04:30 PM
question is, should allow images in signatures

Another yes from me. :thumbsup:

madajb
06-23-2004, 04:52 PM
Absolutely.
-ajb

mario
07-02-2004, 02:40 AM
Absolutely.
-ajb
2nd

FunkTron
07-02-2004, 03:22 AM
ditto

wrongbeach
07-14-2004, 07:00 PM
ditto
werd son i needs my sig in dis bisch.

bugzy
07-14-2004, 07:02 PM
Going to talk to Tony, and see if we can figure out a way to have a built-in signature image size check

i dont want people having sigs larger than 100 pixel heights and 640 pixel widths, just to keep things clean and sizes arent bigger than 40k

Keeps the site running smooth and fast

Arts_1_8t
07-14-2004, 09:02 PM
is it working????

madajb
07-15-2004, 12:38 AM
i dont want people having sigs larger than 100 pixel heights and 640 pixel widths, just to keep things clean and sizes arent bigger than 40k
Keeps the site running smooth and fast
Unless the sigs are served from the site, it wouldn't make much difference. =)
-ajb

FunkTron
07-15-2004, 12:40 AM
question is, should allow images in signatures


actually......the question REALLY is........ "Should images be allowed in signatures?"

lmao!

creanium
07-15-2004, 01:05 AM
actually......the question REALLY is........ "Should images be allowed in signatures?"

lmao!
Yes, and be sure to send all comments to socaleuro@hotmai.com ;)

paultakeda
07-15-2004, 05:26 PM
Going to talk to Tony, and see if we can figure out a way to have a built-in signature image size check

i dont want people having sigs larger than 100 pixel heights and 640 pixel widths, just to keep things clean and sizes arent bigger than 40k

Keeps the site running smooth and fast



// where $destinationFile is the image URL supplied by user

$size = @getimagesize($destinationFile);
if ($size != NULL)
{
if ($size[0] > 640 || size[1] > 100)
{
// display "MY SIG IS TOO BIG BECAUSE I'M A DUMBASS" image
}
else
{
// display image
}
}

SYNYSTAGLI
07-15-2004, 05:29 PM
hells yea, we need something to moderate besides all the A1 people :rolleyes: :D

bugzy
07-15-2004, 05:33 PM
We dont have access to upload for sigs, only Avatar and Profile picture. Sigs would have to be linked. But even so, even though the sig might not be posted on the server, it still can make load times slower for some end users. Got any suggestions on how to restrict things. I know DTMPower.net had some hack for vb, that worked for sigs



If sigs no bigger than 40k, allow sig uploading. Then when a file is uploaded you can do this (requires ImageMagick (http://www.imagemagick.org/), which most people shove in anyway):


/*
* In file "uploadsig.php" which is the file listed under a forms "action"
*/
$extension = ".jpg";
$filename = strtolower($_FILES["postUploadedFile"]["name"]);
if (strpos($filename, ".gif"))
$extension = ".gif";
else if (strpos($filename, ".png"))
$extension = ".png";

$destinationFile = SIG_DIRECTORY . "/" . $user.id . $extension;
move_uploaded_file($_FILES["postUploadedFile"]["tmp_name"], $destinationFile);

$size = @getimagesize($destinationFile);
if ($size != NULL)
{
$newWidth = 0;
$newHeight = 0;
if ($size[0] > 640)
{
$newWidth = 640;
$newHeight = ceil(($size[1] / $size[0]) * 640);
}
if ($size[1] > 100)
{
$newWidth = ceil(($size[0] / $size[1]) * 100);
$newHeight = 100;
}
if ($newWidth > 0 || $newHeight > 0)
exec('convert -antialias -quality 80 -sample "' . $newWidth . 'x' . $newHeight . '" "' . $destinationFile. '" "' . $destinationFile. '"');
}

madajb
07-15-2004, 05:36 PM
What version are we running?
-ajb

paultakeda
07-15-2004, 05:49 PM
This works. I just tried it.

http://www.maxon.net/pages/products/c4d/images/highlights/ar/audi.jpg

This image is obviously too big, thus test.php?url=http://www.maxon.net/pages/products/c4d/images/highlights/ar/audi.jpg (http://linus.grumblemutterspit.org/test.php?url=http://www.maxon.net/pages/products/c4d/images/highlights/ar/audi.jpg) Will cause a load abort. Click on the link to see.

http://www.carprices.co.uk/images/audi.gif

This image fits the parameters. And so test.php?url=http://www.carprices.co.uk/images/audi.gif (http://linus.grumblemutterspit.org/test.php?url=http://www.carprices.co.uk/images/audi.gif) works just fine. Click on the link to see.


<?php
/*
* This is the content of file test.php.
*
* Change $_GET["url"] to $user.sigUrl or whatever parameter is used to store the image URL
*/

$size = @getimagesize($_GET["url"]);

if ($size != NULL)
{
if ($size[0] > 640 || $size[1] > 100)
{
echo "<img src=\"stuff/dumb.jpg\" border=\"0\">";
}
else
{
echo "<img src=\"" . $_GET["url"] . "\" border=\"0\">";
}
}
?>

chris
07-15-2004, 10:13 PM
Linus..you and Alan are uber geeks :D I have no idea what all that sh*t means, but if it's going to allow us to post up pictures in our siggies, I'm all for it :)

:stupid:

*Testing Sig*

creanium
07-16-2004, 02:09 AM
Linus..you and Alan are uber geeks :D I have no idea what all that sh*t means, but if it's going to allow us to post up pictures in our siggies, I'm all for it :)

:stupid:

*Testing Sig*
Basically the code just says "If the picture is greater than 640pixels wide or 100 pixels tall, then don't display it; otherwise display the image"

But, you probably didn't care anyway. :p

PDVR6
07-16-2004, 03:06 AM
poopy doopy

SYNYSTAGLI
07-16-2004, 07:22 AM
poopy doopy
PD in da house :D

paultakeda
07-16-2004, 10:32 AM
Basically the code just says "If the picture is greater than 640pixels wide or 100 pixels tall, then don't display it; otherwise display the image"

But, you probably didn't care anyway. :p

More to the point, if the picture is greater than 640 pixels wide or 100 pixels tall, display this instead:

http://linus.grumblemutterspit.org/stuff/dumb.jpg

THE_SHADOW
07-16-2004, 10:39 AM
Test

robvel80
07-16-2004, 10:44 AM
Going to talk to Tony, and see if we can figure out a way to have a built-in signature image size check

i dont want people having sigs larger than 100 pixel heights and 640 pixel widths, just to keep things clean and sizes arent bigger than 40k

Keeps the site running smooth and fast

BIG yes