Are these banners supposed to be in the header? I can see a banner image but it appears to be static.
Yes the banner images are in the header. This theme has 2 options, which are shown on the “theme options” page. You toggle one or the other. The one that is toggled ON right now is for the static banner. Because when I toggle the one for rotating banners, nothing is there at all except the alt text. I have uploaded 5 different banner images to the designated folder, but nothing happens when I toggle that choice ON.
Can you view the images on the server when you type their paths into the address bar? (In other words, make sure they’re where they are supposed to be so WP can find them.)
And when they rotate, do they rotate via Flash or on page refresh?
I had actually checked that already, but because you asked, I went back to look again and discovered a very interesting fact. The theme is stored in my directory as [writers-blog], but the folder referred to on the theme options page is [writers_blog]. I hadn’t noticed that before. So I actually created a folder with that name, and enclosed copies of all the necessary folder names until I got the exact path a it appears on the theme options page, very excited, but NO. no such luck. Even though I don’t know any php I am thinking that there must be something wrong with the code. I am going to copy it here.
<?php
/*
By Matt Mullenweg > http://photomatt.net
Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php
Latest version always at:
http://photomatt.net/scripts/randomimage
*/// Make this the relative path to the images, like “../img” or “random/images/”.
// If the images are in the same directory, leave it blank.
$folder = ‘ ‘;
// Space seperated list of extensions, you probably won’t have to change this.
$exts = ‘jpg jpeg png gif’;
$files = array(); $i = -1; // Initialize some variables
if (” == $folder) $folder = ‘./’;
$handle = opendir($folder);
$exts = explode(‘ ‘, $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) { // for each extension check the extension
if (preg_match(‘/\.’.$ext.’$/i’, $file, $test)) { // faster than ereg, case insensitive
$files[] = $file; // it’s good
++$i;
}
}
}
closedir($handle); // We’re not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
header(‘Location: ‘.$folder.$files[$rand]); // Voila!
?>
so if anybody knows enough php to look at that and tell me if it should be working or not?
Thanks
I found the reference in the header.php to the [writers_blog] and changed it to [writers-blog] so that it matches where the stuff really is, but still no dice.