1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My forum signature generator v.1.2 (also website banners etc)

Discussion in 'HTML, Graphics & Programming' started by Mr. Brightside, 2 May 2006.

  1. Mr. Brightside

    Wise Guy

    Joined: 27 Apr 2004

    Posts: 2,378

    I've just finished a test version of my new version of AMSG (acronym of Amazing Magical Signature Generator :p).

    It's written in PHP and uses GD.

    Features:
    Random or specified image selection
    png, gif, and jpg support
    Can overlay random or a specific quote from a quotes file
    Text shadowing + adjustable density (useful for ensuring visibility against images with similiar coloured backgrounds)
    Basic 'tag' support (viewer's IP, browser, OS)

    Think that's about it. It's pretty basic in some areas but I don't think I'm going to get any more developement done for a long while now (GCSEs soon! :eek: ), and so instead I'm publishing 'as is'.

    My reason for posting this is simple; to let people know about it, they can try it, see what they think, use it if they like it, and tell me what you all think!

    Download link:
    http://www.piggott.me.uk/projects/amsg 1.2 RC1.zip

    Project log:
    http://www.piggott.me.uk/index.php?m=projects&s=amsg

    This is my first real project with php aside from my website (which is pretty basic anyway), and so I'm pretty sure there are aspects about the way it works that could be improved on, and perhaps also syntax mistakes (php seems to be pretty flexible though so I wouldn't know). However, it worked for me, so go ahead and test :)
     
    Last edited: 2 May 2006
  2. Beansprout

    Man of Honour

    Joined: 31 Jan 2004

    Posts: 16,316

    Location: Plymouth

    Neat, let's have a fiddle :D
     
  3. lay-z-boy

    Sgarrista

    Joined: 27 Sep 2004

    Posts: 9,231

    Location: Nantwich

    will try it for you, getting tired of xfire, and i cant exactly game with my gcse's so soon. :)
     
  4. anotherF

    Gangster

    Joined: 5 Feb 2006

    Posts: 129

    Location: Birmingham

    I could not get it it to display the quotes only the pics
     
  5. mortals

    Mobster

    Joined: 17 Oct 2002

    Posts: 3,116

    hehe looks pretty neat :)

    I like the "192.168.1.1 I'm watching you!" lol :p :D
     
  6. Mr. Brightside

    Wise Guy

    Joined: 27 Apr 2004

    Posts: 2,378

    Yup interesting one that. The script does actually show the requesting IP address (192.168.1.1 is not hard coded in anywhere).

    Problem is that ever since I upgraded my router a few days ago, the NAT seems really messed up, in that all incoming traffic has the source IP replaced with that of the router thus making logging etc. a nightmare (http://www.piggott.me.uk/index.php?b=&m=status&s=status for full boring story).

    So it's only those signatures hosted on my server that show 192.168.1.1 (lay-z-boy's is hosted on my server too). Pretty much any other server should work and thus show 83.245.33.200 for example. Try and see if you don't believe it :p

    Thanks so far to everyone for the comments, is it really that bad that nobody else comments? :p (keep 'em coming!)

    Thanks, null :)
     
  7. robmiller

    Capodecina

    Joined: 26 Dec 2003

    Posts: 16,522

    Location: London

    Code:
    };
    };
    };
    };
    };
    /* snip */
    };
    };
    };
    
    :(

    Edit:

    Code:
    $backgrounds = glob($config["imagepath"]."/{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}", GLOB_BRACE);
    $background = $backgrounds[array_rand($backgrounds)];
    
    :cool:

    Edit 2:

    Pretty cool :)
     
    Last edited: 3 May 2006
  8. Mr. Brightside

    Wise Guy

    Joined: 27 Apr 2004

    Posts: 2,378

    You spotted it then :p Hope you don't mind :o

    But what was the first quote about? :confused:

    Thanks for comment :)
     
  9. robmiller

    Capodecina

    Joined: 26 Dec 2003

    Posts: 16,522

    Location: London

    'course I don't mind :)

    The first comment was about the semi-colons, which aren't required after braces in PHP. This is fine:

    Code:
    for( $i = 0; $i < 100; $i++ ) {
        if( $i == 5 ) {
            echo "lol!";
        }
    }
    
     
  10. Mr. Brightside

    Wise Guy

    Joined: 27 Apr 2004

    Posts: 2,378

    Ah ha... I thought I had read something somewhere about the semi-colons not being necessary everywhere but I couldn't remember under what conditions. So instead I put 'em everywhere just in case :p

    Will remember that in future thanks :)