"Dragon Illuminati" Wallpapers
Moderator:Æron
-
- Posts:4297
- Joined:Wed Oct 20, 2004 5:08 pm
- Location:On hiatus
- Contact:
<!--QuoteBegin-GhostWay+Dec 4 2004, 09:32 PM--> <table border='0' align='center' width='95%' ><tr><td class='quotetop'><b>Quote:</b> (GhostWay @ Dec 4 2004, 09:32 PM)</td></tr><tr><td class='quotebody'> Now I have an urge to make a dynamic image generator. Too bad I dont know <i>how</i> to do that.<!--QuoteEnd--></td></tr></table> <!--QuoteEEnd--><br><!--QuoteBegin-FelixSoftpaw+Dec 5 2004, 12:26 AM--> <table border='0' align='center' width='95%' ><tr><td class='quotetop'><b>Quote:</b> (FelixSoftpaw @ Dec 5 2004, 12:26 AM)</td></tr><tr><td class='quotebody'> About the random images, perhaps you could point your avatar image to "your-domain/folder/avatar.jpg" and upload a different image to it when you want to change? I'm not sure of any other way to do it...<!--QuoteEnd--></td></tr></table> <!--QuoteEEnd--><br>Using that technique, there is the problem where not all browsers will show the updated image, and instead show the version stored in its cache. However, if server-side scripting is available (such as PHP), there are various scripts one could find on the internet for said purpose. They entail the selection of a random image name (that exists) and an HTTP redirect (either "302 Found" or "307 Temporary Redirect") to the file in question.<br><br>Probably something like this:<br><!--c1--> <table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->// PHP code<br>$CorrectPath = // insert path where images are stored here in quotes, follow with ';'<br>$min = 1; // lowest numbered image<br>$max = 256; // highest numbered image<br>$num = rand($min, $max); // select a random image number<br>header("Status: 302 Found"); // generates redirect header - can also say "307 Temporary Redirect"<br>header("Location: " . $CorrectPath . $rand . ".jpg"); // generates header for location<br>exit(); // Send above headers<!--c2--></td></tr></table> <!--ec2--><br><br>Note that the above code requires PHP support, but as I said, there are other scripts, for other engines (such as Python or ASP), or even more robust (safer) PHP scripts, available on the internet (for those who are willing to search).
Bah. Sorry 'bout that. Here's the unborked link: <a href='http://www.abort-retry-ignore.net/img/av/avatar_src.psd' target='_blank'>Photoshop file</a><br><br>And I've tried using a dynamic image php script for avatars here, but the board doesn't allow it. Then again, I know <i>nothing</i> of PHP so it's quite possible I don't know what I'm saying.<br><br>What I really meant by an image generator was one that would have the user input the resolution, background color and symbol color, and then output a corresponding image. I've seen similar things before, just can't remember exactly where.<br><br>Also, I've made a WinRAR file of all the icons so far: <a href='http://www.abort-retry-ignore.net/img/av/DI_avatars.rar' target='_blank'>DI_avatars.rar</a>
Last edited by GhostWay on Sun Dec 05, 2004 10:25 pm, edited 1 time in total.
<i>Hold the newsreader's nose squarely, waiter, or friendly milk will countermand my trousers.</i>
-
- Posts:4297
- Joined:Wed Oct 20, 2004 5:08 pm
- Location:On hiatus
- Contact:
<!--QuoteBegin-GhostWay+Dec 5 2004, 12:58 PM--> <table border='0' align='center' width='95%' ><tr><td class='quotetop'><b>Quote:</b> (GhostWay @ Dec 5 2004, 12:58 PM)</td></tr><tr><td class='quotebody'> What I really meant by an image generator was one that would have the user input the resolution, background color and symbol color, and then output a corresponding image. I've seen similar things before, just can't remember exactly where. <!--QuoteEnd--> </td></tr></table> <!--QuoteEEnd--><br> That can be done in PHP - <a href='http://www.php.net/manual/en/ref.image.php' target='_blank'>here is the relevant documentation</a> for writing the code yourself.
Who is online
Users browsing this forum: No registered users and 19 guests