Slideshow block URL

Permalink 5 users found helpful
HI all

When I link the slideshow to a set it auto links the image to that item.

I have tried editing the code but it stops the images from showing.

Anyway round this?

senshidigital
 
senshidigital replied on at Permalink Best Answer Reply
senshidigital
Think I sorted it.

In the view.php take out the following code:

if(this.imgInfos[num].url.length>0) {
         //el.linkURL=this.imgInfos[num].url;
         var clickEvent='onclick="return ccmSlideShowHelper<?php echo intval($bID)?>.imgClick( this.href  );"';
         el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';         
      }


Seems to work. Incidentally, it also stops the user drag images off to there desktop, which is hand for my other clients site! ;-D
simonchilton replied on at Permalink Reply
simonchilton
Hi. Tried this and it didn't work for me. Images in a slideshow created from a set still link to the image.

Any ideas? Thanks
senshidigital replied on at Permalink Reply
senshidigital
hmm It has worked for me and many others.

Wondering if you are using C5 5.4.1 (the new release)? Maybe they have changed something.
senshidigital replied on at Permalink Reply
senshidigital
You also need to clear the cache afterwards.
liebel replied on at Permalink Reply
To correct this issue do you remove this one instance of [echo intval($bID)]or all
ajm216 replied on at Permalink Reply
ajm216
Thanks, this did the trick!!!
tallacman replied on at Permalink Reply
tallacman
Thank you again! I don't like this feature in the block but have never had the time to figure it out. Now I do.

Steve
larryt replied on at Permalink Reply
The slide show blue line issue is still not fixed. I have Version: 5.4.1.1.

I am having this problem when I create a slide show using "Pictures from File Set". However "Custom Slideshow" does not exhibit this problem.

I also tested this issue with several themes using view.php and some that did not use view.php.

I think the "Pictures from File Set" would be an excellent feature to have and hope this issue will be corrected.
chassa2556 replied on at Permalink Reply
chassa2556
Hi - I'm still not able to take off the links when the slideshow is in sets. Has anyone found a work around for this I urgently need to take this unnecessary feature off...
senshidigital replied on at Permalink Reply 1 Attachment
senshidigital
Hi. The above adjustment to the code works every time for me.

Its on line 63. Incase it has changed this is the code:

if(this.imgInfos[num].url.length>0) {
         //el.linkURL=this.imgInfos[num].url;
         var clickEvent='onclick="return ccmSlideShowHelper<?php echo intval($bID)?>.imgClick( this.href  );"';
         el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';         
      }


I have attached the amended file. Remember to duplicate the slideshow block to the top level blocks folder first.

You may need to clear the cache or delete the slideshow from the page and add again.
chassa2556 replied on at Permalink Reply
chassa2556
Hi - thanks replying so promptly - have used your revised view.php however and its still got the pesky link on there....it is using view by sets. Any other ideas?
senshidigital replied on at Permalink Reply
senshidigital
yeah it does use view by sets. Is that what you have set up?
chassa2556 replied on at Permalink Reply
chassa2556
Yes I have this set up and have overwritten the view.php file in the slideshow block directory. Its still showing the link on the slideshow at the top...

http://www.redback-client.net

Any ideas...
senshidigital replied on at Permalink Reply
senshidigital
Can you PM me ftp details and a site login?

This way I can take a look and know whats happening.
senshidigital replied on at Permalink Reply
senshidigital
That should be it sorted now.

Within:

concrete/blocks/

You must copy the slidehow files you amend into the top level blocks folder.

This overrides the original files and if the add-on ever gets updated, it will not override your changes.

Hope this helps.
chassa2556 replied on at Permalink Reply
chassa2556
Hey Chris - thanks so much for sorting this for me working great now...
Adevade replied on at Permalink Reply
Adevade
Hello! I found that editing one line at the bottom of view.php seems to solve this problem.

Around line 90 we have this code:
fileName:"<?php echo $f->getFileName()?>",
fullFilePath:"<?php echo $f->getRelativePath()?>",
duration:<?php echo intval($imgInfo['duration'])?>,
fadeDuration:<?php echo intval($imgInfo['fadeDuration'])?>,
url:"<?php echo $imgInfo['url']?>",
groupSet:<?php echo intval($imgInfo['groupSet'])?>,
imgHeight:<?php echo intval($imgInfo['imgHeight'])?>


I simply changed the url value to the following, so that it outputs nothing:
url:"<?php echo ''?>",


This works fine with my file set slider :)
senshidigital replied on at Permalink Reply
senshidigital
Thats works a treat!
rayjohn66 replied on at Permalink Reply
This works great, and seems an elegant solution. Makes me think it should be in the controller. Thank you and DoJo for sharing your solutions.