Shape 5

Joomla Templates => Sea of Glass - September - Club => : rfarrell September 22, 2008, 09:50:47 PM



: S5 Slideshow Advance
: rfarrell September 22, 2008, 09:50:47 PM
Is it possible to link the "Extra Image" buttons in this extension to an article or a video instead of to an image?

The template looks great by the way.


: Re: S5 Slideshow Advance
: juxtafras September 23, 2008, 09:40:29 PM
yes, i would hope to have the great image transitions of the slideshow advance but be able to click the larger images to transfer to a related article on my site.  is this possible with this extension or any other shape 5 has?

i agree.  it looks outstanding!

thanks!


: Re: S5 Slideshow Advance
: jonahh September 24, 2008, 09:41:13 AM
Hello,

Yes this is possible but will require some editing to the code.  If you open up the mod_s5_slideshowadvance.php file and look at about line 328 you'll notice:

:
<div class="s5_magglasstop_sa">
 <a href="<?php echo $sa_picture1_1 ?>" rel="lytebox[gallery]" title="<?php echo $sa_picture1h1 ?> - Image 1">
  <span class="s5_magglass_sa"></span>
  <img src="<?php echo $sa_picture1_1 ?>" height="75" width="106" class="s5_thumbnails_sa2" alt="" />
 </a>
</div>

The second line is the link as you can see.  So you can change this to whatever you want, for example:

Original:

:
 <a href="<?php echo $sa_picture1_1 ?>" rel="lytebox[gallery]" title="<?php echo $sa_picture1h1 ?> - Image 1">

Changed to something like:

:
 <a href="http://www.yoursitehere.com">

Now you will notice there are 10 similar lines or chunks of code and each one includes 4 links for the additional images.  You can identify each slide by these chunks.  Look at line 318 and you'll notice:

<?php if ($sa_picture1 != "") { ?>   

This is for the first slide, the second is:

<?php if ($sa_picture2 != "") { ?>   and so on.

Hope this helps.

Regards,