Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Gallery Build

 

 


jakfunk
New User

Jan 15, 2012, 8:08 PM

Post #1 of 7 (534 views)
Shortcut
Gallery Build Can't Post

Hi all!

Pleasure to be a part of the community. Have a huge problem. Well huge to my hothead client anyways.

Interactivetools built me a gallery. The functionality consists of being able to upload an image. A thumbnail is automatically generated (works as it should). When rolling over the thumbnail a larger version of this image should be displayed. The problem is all thumbnails are displayed/listed as they should be on the PHP page containing the gallery but the main image is "missing" when one rolls over the thumbnail. I guess it is a path issue but I am admittedly a PHP idiot. Don't know why this is happening. Can't see what the problem may be. Please. I desaparately need help on this. The client is all over me. I may lose the client as a result of this. Please. Can someone take a look and see what the problem may be?

The URL of the page is http://www.homesbydesantis.com/gallery_main.php

Thank you so much in advance.

James.


Jason
Staff / Moderator


Jan 15, 2012, 11:00 PM

Post #2 of 7 (525 views)
Shortcut
Re: [jakfunk] Gallery Build [In reply to] Can't Post

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 - Programmer 
interactivetools.com

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


jakfunk
New User

Jan 16, 2012, 8:29 AM

Post #3 of 7 (491 views)
Shortcut
Re: [Jason] Gallery Build [In reply to] Can't Post

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 (8.98 KB)


Jason
Staff / Moderator


Jan 16, 2012, 9:04 AM

Post #4 of 7 (485 views)
Shortcut
Re: [jakfunk] Gallery Build [In reply to] Can't Post

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,


Code
<?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 - Programmer 
interactivetools.com

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


jakfunk
New User

Jan 16, 2012, 9:32 AM

Post #5 of 7 (484 views)
Shortcut
Re: [Jason] Gallery Build [In reply to] Can't Post

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

Thanks, again.

James.


jakfunk
New User

Jan 16, 2012, 10:00 AM

Post #6 of 7 (477 views)
Shortcut
Re: [Jason] Gallery Build [In reply to] Can't Post

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.


Jason
Staff / Moderator


Jan 16, 2012, 10:22 AM

Post #7 of 7 (473 views)
Shortcut
Re: [jakfunk] Gallery Build [In reply to] Can't Post

Hi James,

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

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