Gallery Build

7 posts by 2 authors in: Forums > CMS Builder
Last Post: January 16, 2012   (RSS)

Re: [jakfunk] Gallery Build

By Jason - January 16, 2012

Hi James,

I took a quick look. What seems to be happening is that the javascript on each thumbnail is actually setting the main image to blank, which is why nothing is appearing.

If you could attach gallery_main.php to this page, I can take a look at the code and give you a better idea of how to fix it.

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 Build

By jakfunk - January 16, 2012

Thanks for your response, Jason.

I have attached the page. If you have a chance to look it over, I would really appreciate it.

Thank you very much.



James.
Attachments:

gallery_main.php 9K

Re: [jakfunk] Gallery Build

By Jason - January 16, 2012

Hi James,

I took a look at your code and I think I found the problem. The issue is that for both your main image and in your mouseover javascript, you are outputting the url path of your second thumbnail.:

ie,

<?php echo $image['thumbUrlPath2']; ?>

On your page, this is just outputting a blank string, most likely because your upload field (images) has not been set up to have a second thumbnail.

The quickest and easiest solution is to modify your upload field to create a second thumbnail of whatever size you like, and then re-create all your thumbnails for images already uploaded.

Here is an article describing how to do that:


http://www.interactivetools.com/kb/article.php?Resize-thumbnail-images-23


Give this a try and let us know if you run into any problems.

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/

Re: [Jason] Gallery Build

By jakfunk - January 16, 2012

Thanks for narrowing down the problem, Jason. I'll give it a try.

Thanks, again.

James.

Re: [Jason] Gallery Build

By jakfunk - January 16, 2012

Hey Jason,

Worked like a charm. Wow. Love you, man. In a manly have beer and watch a game kind of way of course. LOL.

Thank you so much for your quick response and solution. I really appreciate it.

Take care. If ever in B.C., beers are on me.

Thanks again.

James.

Re: [jakfunk] Gallery Build

By Jason - January 16, 2012

Hi James,

Sounds great! Glad to hear everything is working now. Please let us know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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