1. Click here to join our community discord server.

How to change the Look of the Stats Sig ?

Discussion in 'General Discussion' started by Cocaine, Jun 15, 2011.

  1. Cocaine

    Cocaine Head Administrator

    ....... Anyone ?
     
  2. Nova

    Nova Senior Member

    All I know is that it's the same dynamic signature that's generated by a predefined php script by hlstats.
    The only thing that does change is the color that rotates on a random basis between a different set of colors.
     
  3. L1teHawk

    L1teHawk Senior Member

    If you look at the URL of the image, it looks like this:
    HTML:
    <img src="http://mgftw.com/stats/sig.php?player_id=305577&background=random" />
    The &background=random is a PHP $_GET[] modifier, so by changing the GET array value, you'll modify the image. It's as simple as renaming random to a HLStats supported color.

    It's as simple as that :)

    Just a side note, supported colors vary from (0,12), not including 0 or 12. For example, light blue background would be:
    http://mgftw.com/stats/sig.php?player_id=305577&background=1

    Black background:
    http://mgftw.com/stats/sig.php?player_id=305577&background=3

    Blue background:
    http://mgftw.com/stats/sig.php?player_id=305577&background=5

    Just shift the bits and integer index till you get the color you want.

    Code:
    if ((isset($_GET['background'])) && ( (($_GET['background'] > 0) && ($_GET['background'] < 12)) || ($_GET['background']=='random')) )
    		$background = valid_request($_GET['background'], 0);
    
     
  4. August

    August MG Donor

    Regarding signatures,

    What's the link to the stats signature? I copied the link on my stats page but vbulletin says invalid file.
     
  5. Collector

    Collector <img src="http://mgftw.com/leadweb.png" />

    you can also adjust size and texture i found out :)