Sig Rules Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Voodoo
    ♥ ♦ ♣ ♠
    • Sep 2002
    • 10600

    #1

    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.

    "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
  • funkmaster
    So Fucking Banned
    • Sep 2001
    • 7938

    #2
    BeYouAmPee

    Comment

    • 3Xguru
      Confirmed User
      • Sep 2001
      • 1281

      #3
      I think I have seen some 60X480 sigs here.
      A script lke this would be usefull
      -=Free Webmaster Tools=-

      Comment

      • Fletch XXX
        GFY HALL OF FAME DAMMIT!!!
        • Jan 2002
        • 60840

        #4
        Originally posted by 3Xguru
        I think I have seen some 60X480 sigs here.
        A script lke this would be usefull
        thats the flaw of the script though.

        some 460 banners are allowed.

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


        Want an Android App for your tube, membership, or free site?

        Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me

        Comment

        • Voodoo
          ♥ ♦ ♣ ♠
          • Sep 2002
          • 10600

          #5
          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.

          "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

          Comment

          • Libertine
            sex dwarf
            • May 2002
            • 17860

            #6
            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.
            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
            /(bb|[^b]{2})/

            Comment

            • Lensman
              GFY Chaperone
              • Jan 2001
              • 9846

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

              Comment

              Working...