GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Sig Rules Script (https://gfy.com/showthread.php?t=114101)

Voodoo 03-08-2003 12:26 PM

Sig Rules Script
 
This might help...

[?php
$sig_URL = "../../../sig.gif,jpg,swf";
$sig_dim = getimagesize($sig_URL);
$calc = $sig_URL[0] * $sig_URL[1];

if($calc >= "7201") {
echo "Your Sig Is Tooooo Big!";
}
php?]

It would need to be modified a bit to find/replace the images in the sig code, but, it's a start. :Graucho

funkmaster 03-08-2003 02:49 PM

BeYouAmPee

3Xguru 03-08-2003 03:18 PM

I think I have seen some 60X480 sigs here.
A script lke this would be usefull:thumbsup

Fletch XXX 03-08-2003 03:19 PM

Quote:

Originally posted by 3Xguru
I think I have seen some 60X480 sigs here.
A script lke this would be usefull:thumbsup

thats the flaw of the script though.

some 460 banners are allowed.

so it conflicts with lens rules for paid advertisers ya know.

:glugglug

Voodoo 03-08-2003 04:37 PM

Hmm... Maybe adding a database of paid advertisers, that the sig script checks to see if they are valid, and if so, then it allows the 468x60 sigs, otherwise it displays the "Too Big" text.
:2 cents:

Libertine 03-08-2003 04:52 PM

Quote:

Originally posted by Voodoo
This might help...

[?php
$sig_URL = "../../../sig.gif,jpg,swf";
$sig_dim = getimagesize($sig_URL);
$calc = $sig_URL[0] * $sig_URL[1];

if($calc >= "7201") {
echo "Your Sig Is Tooooo Big!";
}
php?]

It would need to be modified a bit to find/replace the images in the sig code, but, it's a start. :Graucho

Since sigs contain more than an image, you'd need regexps to find the pics.
Also, $sig_URL[0] and $sig_URL[1] should be $sig_dim[0] and $sig_dim[1]
Besides that, calculation seems unnecessary - just check if either width or height is higher than it's supposed to be. A 1*7200 image would then also be killed :)
:2 cents:

Lensman 03-08-2003 05:04 PM

Excellent idea, I'll have one of my programmers put it in next week!


All times are GMT -7. The time now is 06:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123