Forum Support

Shape 5
March 28, 2024, 01:36:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: S5 Slideshow Advance  (Read 498 times)
rfarrell
Jr. Member
**
Offline Offline

Posts: 156



« on: 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.
Logged
juxtafras
Jr. Member
**
Offline Offline

Posts: 42



« Reply #1 on: 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!
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #2 on: 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:

Code:
<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:

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

Changed to something like:

Code:
<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,
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.