Results 1 to 12 of 12
  1. #1
    Lugares's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Sweden, Gothenburg
    Posts
    114
    Reputation
    14
    Thanks
    32
    My Mood
    Relaxed

    How to make a "Changing" Avatar!

    First of all do you need a webhost that can host PHP, I prefer Free Web Hosting with PHP, MySQL and cPanel, No Ads after that you have signed up there, open Notepad, and paste this code into it.
    Code:
    <?
    $file = "avatar".rand(1,2).".jpg";
    header("Content-Type: image/jpeg");
    $fh=fopen($file,"rb");
    while (!feof($fh)) { print (fread($fh, filesize($file))); }
    fclose($fh);
    ?>


    Now if you want more then 2 pictures to show, then change the "2" to like 4 if you want to have 4 pictures.
    Now save it as "avatar.php".

    Now name the two pictures that you want to "avatar1.jpg" and "avatar2.jpg".

    Open 000webhos*****m again, and go to the file manager:


    And upload the files(avatar.php, avatar1.jpg, avatar2.jpg) to the "public_html" folder:

    Now go to your website, in my case *******.comyr.com, and click on "avatar.php" and copy the link, now paste that link into your avatar settings here on MPGH.
    !!!!!INFO!!!!!!
    Iv'e noticed that this didn't work on MPGH.
    but check this link so can you see that it works CLICK ME! and first will you see one picture then refresh the page, and you should see another one(sometimes do you need to refresh the page several times!)
    Thank me if you liked this tutorial, think I will post some more PHP tuts!

  2. The Following 2 Users Say Thank You to Lugares For This Useful Post:

    curryisgood (03-16-2009),habamonboii (04-01-2009)

  3. #2
    NabDab's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In a house
    Posts
    1,985
    Reputation
    14
    Thanks
    135
    Orrrrrrrrrrrrrr You can make an Animated GIF
    ǝƃpnɟʇoɥ ɐsɐssʇıƃɯo ɹǝʞɐɯʎoʇ pooɥ ןıus opɐɹop ɥɔıʌouıʇɹɐɯ ʇıɹpuǝ -poƃ- ƃƃ2ƃƃ ɹɹɐɔɥsoɾ ןןǝɥz ǝqɐp ǝɔɹoɟunɹɐ ɐɯɐqo qɐpqɐu :ʇsıן ʇɔǝdsǝɹ

    ☻/
    /▌
    / \


    [IMG]https://i405.photobucke*****m/albums/pp139/st0n3rb3an/weed.gif[/IMG]

  4. #3
    Lugares's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Sweden, Gothenburg
    Posts
    114
    Reputation
    14
    Thanks
    32
    My Mood
    Relaxed
    Quote Originally Posted by nabdab View Post
    Orrrrrrrrrrrrrr You can make an Animated GIF
    Yes that works to:P, Just wanted to show a more "advanced" version on how to do it ;P

  5. #4
    curryisgood's Avatar
    Join Date
    Dec 2008
    Gender
    female
    Posts
    372
    Reputation
    10
    Thanks
    14
    My Mood
    Dead
    hey thanks my frend did this but i dont understand the part with avatar1.jpg stuff
    sorry im a choob

  6. #5
    Hyak's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    120°16.1'W 47°20'N
    Posts
    11,524
    Reputation
    508
    Thanks
    844
    is this like 1 of those things when u load the page it shows 1 image but when u reload the page it will show anuthr?

  7. #6
    sethclantrox's Avatar
    Join Date
    Mar 2009
    Posts
    46
    Reputation
    10
    Thanks
    20
    or u can just use flash animation and save it as a .jpg

  8. #7
    bjorn1213's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    .
    Posts
    154
    Reputation
    12
    Thanks
    6
    My Mood
    Bored
    Just make a animated .gif and if you make a good one it's advanced enough
    (im not saying i can do animated pics well)

  9. #8
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Lol I fail because i dunno how to make an animated gif... any help?

  10. #9
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah
    Quote Originally Posted by Lugares View Post
    Yes that works to:P, Just wanted to show a more "advanced" version on how to do it ;P
    this is not advance. and if you spend a while on mpgh, and get alot of posts and topics the shitty little ftp serevr will have its monthly bandwith limmit eaten and then will display a nasty error image like gouravs photobucket does.

  11. #10
    NatureSkillz's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    In This Thread
    Posts
    652
    Reputation
    17
    Thanks
    222
    My Mood
    Yeehaw
    nice one, good job
    Great Sig From TryMe, And Resized by bugmenot

    Click here to feed me a Nude Girl!!
    How To Create A MapleStory Private Server, Odin Based, And
    Fully Updated Aswel!:

    Click Here For A New MapleStory TUT V55

    Ever wanted to Spam/Troll/Flame without getting banned?<Free for Everyone!?!?>


    People I Respect;
    *- Natureskillz
    Contact me if you want to be on the Respect list, You must do something good against me, or have a good reason >.>

    +1 Post Count!

  12. #11
    Lugares's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Sweden, Gothenburg
    Posts
    114
    Reputation
    14
    Thanks
    32
    My Mood
    Relaxed
    Quote Originally Posted by hyak View Post
    is this like 1 of those things when u load the page it shows 1 image but when u reload the page it will show anuthr?
    Exactly, sometimes will it show the same picture, then just reload the page again:P

  13. #12
    Lugares's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Sweden, Gothenburg
    Posts
    114
    Reputation
    14
    Thanks
    32
    My Mood
    Relaxed
    Quote Originally Posted by GG2GG View Post
    this is not advance. and if you spend a while on mpgh, and get alot of posts and topics the shitty little ftp serevr will have its monthly bandwith limmit eaten and then will display a nasty error image like gouravs photobucket does.
    Ok, it's maybe isn't that advanced but atleast you dony destroy the quality of the pictures, then if you made a GIF.

Similar Threads

  1. How to make a game?
    By Dave84311 in forum General
    Replies: 4
    Last Post: 09-12-2006, 12:33 AM
  2. How to make a working NFV Hack
    By System79 in forum Game Hacking Tutorials
    Replies: 1
    Last Post: 09-04-2006, 04:56 AM
  3. How to make the server run
    By wowhaxor in forum Gunz General
    Replies: 3
    Last Post: 05-25-2006, 09:59 PM
  4. How to make a Zombie
    By arunforce in forum Art & Graphic Design
    Replies: 2
    Last Post: 01-27-2006, 08:07 AM
  5. How I make wallhack?
    By RaidenDXX in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-23-2006, 01:28 PM

Tags for this Thread