KukY wrote:And I found out the problem in the random banner script, and fixed it.
What do you guys think about that approach of using multiple banners at same time?
It's a good idea. I'm sure there are people who like to be surprised. "Oh hey, cool new banner, Ummmm"
But seriously good idea. How will the script decide the pool of pictures to choose from?
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce
j0shdrunk0nwar wrote:It's a good idea. I'm sure there are people who like to be surprised. "Oh hey, cool new banner, Ummmm"
But seriously good idea. How will the script decide the pool of pictures to choose from?
Well, here is the script. Comments are pretty self-descriptive.
<?php
//Define the .php file as a image.
header('Content-Type: image/jpeg');
//Add image URLs to array. Each goes in a separate line
$images[1]='http://i29.tinypic.com/15czrie.jpg';
$images[2]='http://i28.tinypic.com/358p65j.jpg';
$images[3]='http://i31.tinypic.com/wbbe2r.jpg';
//Done placing images.
//Randomize which image will we display. Value is random between 1 and nuber of strings in the array.
$displayed=rand(1,count($images,0));
//Finaly, place the image using an URL from the array.
include ($images[$displayed]);
?>
The flaw is that it requires "allow_url_include" to be on, and none of my free web hosting accounts supports it. So hosting the script is the problem. Also, it needs to be matinained with links to new banners. But that is not a too big problem.
For all our german members that use meinVZ and studiVZ, I opened a group called:
Warzone 2100 - Strategie für alle! (Win, Linux, Mac, BSD)
It says "Strategy for everyone!" It can be found on both networks, as there are only few WZ groups. Most other groups are abandoned or just not posting any news!
EDIT:Since "Warzone2100" isn't mentioned anywhere in it, maybe adding the website as well would be better? Or else how would people know what we're talking about? Looks like you fixed it, great!
Last edited by JDW on 27 Jul 2010, 22:54, edited 2 times in total.
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce
Excellent wordings, it makes a good point (though we should see how 3.0 will run on low-end systems). First sentence seems to be merging with the white background.
No mention of "Warzone2100"? How are people to know what we are talking about?
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce