speedingorange wrote:I also want to make the banner image randomly change for a banner with different products featured in it.. i was looking at this script..
http://www.pearsonified.com/2006/10/sim ... r_blog.php" onclick="window.open(this.href);return false;
Would it work? and where would it need putting into the header.tpl?
Well here is how I do it.
The example is how I manage showing just about anything you want on any given page of your website. I also make a library of the calls and use an include statement to bring in the library and then use a PHP echo variable name from the library.
In this case I'm managing the title of certain pages so as not to have duplicates like for "/" vers "/index.php" and /index.php?route=common/home and so on. You can do this with your header as well. Just place the code where the header image is displayed. In your case you need to make a few other changes because currently the header image is a background image of div1. Your going to have to make the logo your entire banner, then it will work.
Code: Select all
<?php
if ($_SERVER['REQUEST_URI'] == '/index.php?route=common/home'){
echo "<title>OpenCart Shopping Cart E-commerace Websites | NWISG webStudio</title>";
} elseif ($_SERVER['REQUEST_URI'] == '/index.php'){
echo "<title>OpenCart Business & Hobbyist Shopping Cart | NWISG webStudio</title>";
} elseif ($_SERVER['REQUEST_URI'] == '/){
echo "<title>OpenCart - Hosting - Themes - Templates - Modules | NWISG webStudio</title>";
} elseif ($_SERVER['REQUEST_URI'] == '/index.php?route=product/category&path=35'){
echo "<title>$title Products | NWISG webStudio</title>";
} elseif ($_SERVER['REQUEST_URI'] == '/index.php?route=product/category&path=39'){
echo "<title>$title | NWISG webStudio</title>";
} else {
echo "<title>OpenCart $title | NWISG webStudio</title>";
} ?>
I should note you can also handle this by writing a Jquery script. I don't have an example of this right now but it can be done.
If you go to my webStudio you see a silver banner that changes based on page URL. I made a module called carousel where I mange the output. This module is not plug and play, you would have to make some changes to the core files for it to work, but this is an example of things you can do with it. In my new website that I'm building you will see this method being use coupled with Jqurey effects.