Sigx
http://forum.sigx.org/phpbb/

Random Skins Code
http://forum.sigx.org/phpbb/viewtopic.php?f=7&t=88
Page 1 of 1

Author:  admin [ Tue Jan 27, 2004 2:18 pm ]
Post subject:  Random Skins Code

Are you not happy with just showing 1 sigx skin? would you like to rotate a few skins that you like from our large selection?

i have created a script that will randomly pick the skin you like.

With this you can create random skins from a list of skins i already have on my site.

Code:
<?
// Random Skins
// Version 1.0
// Date: Jan 27, 2004
// coder: Yuriy ([email protected])

$username = "myusername";

// list of skins you may like
$skins = array("Apples",
            "Bronze",
            "Dark Win in Blue 6",
            "Depressed",
            "Digital in Blue",
            "Digital in Light Blue",
            "Digital in Yellow",
            "DOS",
            "Eating Apples",
            "Dwelt",
            "Gemini in Light Blue",
            "Gray",
            "Green Neon",
            "Ligth Win in Blue 1",
            "MacOSX",
            "Red Neon",
            "Red",
            "River",
            "Simile XP Red",
            "Titanium",
            "WEB",
            "WEB2"
            );
            
// pick a random skin         
$x = rand(0,count($skins)-1);
$name = urlencode($skins[$x]);


header("location: http://sigx.yuriy.net/images/skin/$name/0/x$username.png");

?>



Preview:
Image

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/