Quote:
Originally Posted by Blam Forumz
Ok, I have a problem, I use this in my phpinclude_start:
Code:
switch(intval(time() / 2) % 4)
{
case 0:
$banner = '/designs/images/skin/boredom.gif';
break;
case 1:
$banner = '/designs/images/skin/boredom1.gif';
break;
case 2:
$banner = '/designs/images/skin/boredom2.gif';
break;
case 3:
$banner = '/designs/images/skin/boredom3.gif';
break;
}
and then i use $banner in my header, when I compress all templates the images dont appear, but when I uncompress them they do, any idea?
|
Im using this in mine: phpinclude_start
PHP Code:
$b = array(
'images/v4/banner01.jpg',
'images/v4/banner02.jpg'
);
$banner = $b[array_rand($b)];
and my header is
Code:
<!-- logo -->
<a name="top"></a>
<center>
<table cellpadding='0' cellspacing='1' bgcolor='#C7C5BF' align='center' width="$stylevar[outertablewidth]">
<tr>
<td align='center' bgcolor='#F8F5F0'>
<table border="0" width='100%' cellpadding="0" cellspacing="0" align="center"><tr><td align="$stylevar[left]"><img src="$banner" border="0" alt="$vboptions[bbtitle]" /></td></tr></table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
It's working fine for me, maybe adjust yours to mine?