Photo Gallery- next/prev links not displaying images

17 posts by 2 authors in: Forums > CMS Builder
Last Post: September 22, 2011   (RSS)

I've been using a really simple, flexible program called Slideshow© - http://www.electricprism.com/aeron/
Slideshow is open-source with an MIT-style license and easy to integrate with CMSB.

You might want to have a look

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Photo Gallery- next/prev links not displaying images

Thanks for the link! It looks somewhat similar in appearance to the one I was going to use:

http://www.scriptiny.com/2008/12/javascript-slideshow/

You've been a great help. :) Thanks! Tina
Hi Tina,

if memory serves me, the issue may revolve around illegal characters in the code that's fed to your script.

I bet that inside the <span></span> you can't use certain characters like " or possibly others.

Try this and, if it works, see where you get, and then add the width and height one by one and see where it breaks.

(I'm assuming that you're using the image's info1 field for the title and info2 for the short description)

<ul id="slideshow">
<?php foreach ($homepageRecord['upload_images'] as $upload): ?>
<li>
<h3><?php echo $upload['info1'];?></h3>
<span><?php echo $upload['urlPath'] ?></span>
<p><?php echo $upload['info2'];?></p>
<a href="#"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="Image One" /></a>
</li>
<?php endforeach ?>
</ul>


BTW, It looks like the script you're using hasn't been changed since December 21, 2008. That's a bit long in the tooth for even the most basic code isn't it?

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Photo Gallery- next/prev links not displaying images

well how awesome are you?!! It worked perfect. I'll go back and add in the width/height but those are controlled by css so not sure if I need them.

2008 can seem pretty young in some terms... babies, cars, wine, ha... Good point. the guy who made that one also has some updated slideshows, I just liked the way this one worked. However. I think the one you suggested has a lot more options. I have another photographer's site coming up. I think I'll do his with that one.

thanks again for your help. You saved me a ton of time beating it with a rock.
Such kind words.

Thanks.

If you need the heights and widths you can try changing the characters to html entities. IE

< = &lt;
> = &gt;
" = &quot;

here's a link from my CMSB Cookbook http://wwww.thecmsbcookbook.com with lots more:

http://www.digitalmediaminute.com/reference/entity/index.php

Glad it worked,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Photo Gallery- next/prev links not displaying images

oh great! I'll try those just to make sure it's covered. :)