slideshow block

Permalink 1 user found helpful
any one have a patch to disable the link on the images displayed in the slide show?

-Frank

wizardontherun
 
SVijay replied on at Permalink Reply
SVijay
In view.php on line 91 change the below code
url:"<?php echo $imgInfo['url']?>",

as
url:"",
wizardontherun replied on at Permalink Reply
wizardontherun
when I copy the view.php to /blocks/templeates and make the change, when my photos change the move down the page ( by the height of each image ) untill it goes back to the first image then starts back at the top of the page in the correct place?

http://www.climatemakersac.com

-Frank
AltaPlanning replied on at Permalink Reply
AltaPlanning
Did you fix this?

I'm experiencing the same problem- my slideshow (used as a background in the header) moves down the page. Really odd- started happening after the latest C5 upgrade.
wizardontherun replied on at Permalink Reply
wizardontherun
I found if I modified the /concrete/block/slideshow/view.php directly and not copy to the /block/slideshow/templates works fine.
aaronk replied on at Permalink Reply
aaronk
The only way I found to kill the image link is to NOT use a Set of images - choose Custom and then the images you want in the slide show. In this case each image will then have timing and optional URL capabilities. It's probably much more useful in this way as you could link specific images to custom urls. I wish the difference wasn't hidden in the interface, but I finally figured it out.
invision replied on at Permalink Reply
invision
I'm running into the same issue this morning.

When I use the block with a large image, everything's fine. When I use it with a small thumbnail-like image, I get the running down the page issue.

Perhaps it's a CSS positioning problem, not a javascript or PHP problem?

*UPDATE* No, it's not related to image size. I just applied a template (in the blocks folder) with a bottom margin added and it's working as it should.

Sherm Stevens
http://www.invision-studios.com
tbcrowe replied on at Permalink Reply
tbcrowe
This problem occurs because when the blocks/slideshow directory exists concrete5 looks for the view.css file (which is in concrete/blocks/slideshow) in that directory. The solution then is to just copy view.css to the blocks/slideshow.
30Square replied on at Permalink Reply
Thanks this fixed my problem!!
ajm216 replied on at Permalink Reply
ajm216
Thanks!!!!
This fixed the curse of the falling slide shows which was part of the header on multiple pages of my clients website!!!!
PassionForCreative replied on at Permalink Reply
PassionForCreative
it might be obvious but clear your cache after you make this change and you should see it working.
FatTony1952 replied on at Permalink Reply
FatTony1952
So far, none of these suggestions has worked. I even changed the original view.php.

I commented this line out
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>';         
      }


and commented this out
url:"<?php echo $imgInfo['url']?>",


to no avail.
adajad replied on at Permalink Reply
adajad
I only commented out the line below (around row 68), cleared my site cache and my browser cache, and the link was gone.

//el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';


Edit: Forgot to tell you I made my own template (copying view.php and view.css to blocks/slideshow/templates/nolink/) and made my changes there and then applied my custom "nolink" template.
cursal replied on at Permalink Reply
cursal
This worked great.

Just so it's all together in one post

1) locate these two files:
/concrete/block/slideshow/view.php
/concrete/block/slideshow/view.css

and make copies to
yoursite/blocks/slideshow/

and as adajad points out around line 68 find this:

el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';

and add your comment
//el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';


save and upload.

and as tbcrowe points out you MUST have the view.css in the same directory as your view.php

if you would like to use this as a template and not overwrite the block everytime just create a new folder here

yoursite/blocks/slideshow/your-template-name

be sure to take the other two files out if you just followed the first menthod.

Very happy about this, has been bothering me for a year!
PassionForCreative replied on at Permalink Reply 1 Attachment
PassionForCreative
What I've done is created a folder to share with the files required & the line commented out to over-ride the main function.

If anyone wants to use this please help yourselves, just drop the unzipped folder into your root blocks folder, Slideshow will then stop linking images.

Overrides Version 5.5.1

P.S. Don't forget to Clear your Cache