this is my website: https://www.toyzeum.com/store
this is my tpl_blank_sidebox.php file:
"<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
$content .= '<HTML><IMG SRC="https://www.toyzeum.com/store/images/main/rightsidebar_incoming2.jpg"><IMG SRC="https://www.toyzeum.com/store/images/main/rightsidebar_incoming<?
$num = Rand (1,6);
switch ($num)
{
case 1:
echo "1";
break;
case 2:
echo "2";
break;
case 3:
echo "2";
break;
case 4:
echo "2";
break;
case 5:
echo "1";
break;
case 6:
echo "1";
}?>.jpg"></HTML>';
$content .= '</div>';
?>
Description: As you can see... I have a basic image which is displaying fine in the right hand sidebar... followed by a random image PHP script contained within Image HTML coding. There should be two images displaying.. A normal image followed by a rotating image....Any ideas why it is not displaying correctly and if there is a way to get it being able to display random images? I also would like the image to be displaying at the very top of the sidebar but there is a small gap of whitespace? any idea what is causing that small gap and how to get rid of that ? I am a new forum user. Thank you kindly for your help. - Aaron![]()


Reply With Quote


