I installed
Nivo Slider and set it to display on my front page only by using the following code in my
header.php file where I wanted the slider to be displayed:
Code:
<?
if (substr(basename($PHP_SELF), 0, 5) != 'index') {
} else {
include($modules_folder . 'slider.php');
}
?>
And the following in my
templates/default/mainpage_modules/slider.php file:
Code:
<!-- Slider -->
<div id="slider">
<a href="slide1.html"><img src="images/1.png" alt="image title"></a>
<a href="slide2.html"><img src="images/2.png" alt="image title"></a>
<a href="slide3.html"><img src="images/3.png" alt="image title"></a>
<a href="slide4.html"><img src="images/4.png" alt="image title"></a>
</div>
<!-- /Slider eof -->
Obviously you need the Nivo javascript and jQuery installed too for it to work properly. I find this set up quite handy though cos it's easy to make changes, I can just upload the new slider.php file when changes are needed.
I don't have it activated on the site I'm using Nivo slider on at the moment, because the site is new and the slide content still hasn't been decided/designed but I have one with a different slider script (I don't recall the source of the script) using the same method viewable here:
http://offensivetshirtsuk.com (might not be considered safe for work).