Gallery Question

9 posts by 4 authors in: Forums > CMS Builder
Last Post: September 16, 2010   (RSS)

By KCMedia - September 14, 2010 - edited: September 14, 2010

Hi Guys

i am having an issue with a gallery i have setup.

I am using lightbox to display the images and they are great but i am also calling the info1 feild from each of the gallery images and if they have one then that is great they show up on the bottom of the images but when i click though each of the images the same info from one picture to the next is showning up even if that image dosnt have any info on.

Some images will have info and some wont have images.

i have attached the code of the page to see what i am doing with lightbox.

also here is a link to the page http://www.pvm.com.au/venuemgt/galleryDetail.php?City-Recital-Hall-Turns-10-3

thanks

Craig
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

gallerydetail.php 5K

Re: [kcmedia] Gallery Question

By Chris - September 14, 2010

Hi Craig,

Your code looks good, I can't see what might be causing the problem. Are you certain that there are blank info1 fields for that record? It looks like your info1 fields are:

-
Credit: Hilary Cam
Credit: Hilary Cam
Credit: Hilary Cam
Credit: Hilary Cam
Credit: Eric Sierins
-
Credit: Eric Sierins


If you can't get this figured out, please fill out a Second Level Support Request and cite a link to this forum post in the Comments section so we can take a look:

[url http://www.interactivetools.com/support/]http://www.interactivetools.com/support/[/url]
All the best,
Chris

Re: [chris] Gallery Question

Hi Chris

at the moment the client put "-" into the info1 field to stop it from happening so if take out the "-" from the info1 field it will just put the same detail into the next image that was in the image before it.

hope this makes sense.

Craig
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Gallery Question

By Chris - September 14, 2010

Hi Craig,

Please fill out a Second Level Support Request and we'll get this figured out for you.
All the best,
Chris

Re: [chris] Gallery Question

Hi Chris

I have done that just please dont over write the file that is there just let me know what needs to be changed.

Cheers

Craig
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Gallery Question

By Jason - September 15, 2010

Hi Craig,

I took a look at this for you and think I've got it fixed. There wasn't anything wrong with your code, I think it was something weird with the gallery script.

When nothing is entered into the description (info1), it just uses the previous value. I added this one line of code to your foreach loop:

<?php if(!$upload['info1']){$upload['info1']=" ";}?>

What this does is if the info1 has no value, it gives it a value of a blank space. That seems to satisfy the gallery script.
http://www.pvm.com.au/venuemgt/galleryDetail.php?City-Recital-Hall-Turns-10-3

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Gallery Question

Hi Jason

thanks for that can you tell me where you want me to put this peice of code then please.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Gallery Question

By Jason - September 16, 2010

Hi,

I actually put the code in already to make sure that it would work. If you're looking for it, it's right before it outputs the image. Everything should be working correctly now.

thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/