Connecting Tech Pros Worldwide Help | Site Map

thickbox gallery image is not working

Familiar Sight
 
Join Date: Aug 2008
Posts: 175
#1: Jun 15 '09
Hey all,
I have integrated Thickbox Gallery images for multiple images. So that once a member/client/visitor view the images he/she can navigate easily.

It just do not show any image if i used it's property rel means same rel element and value. It does not work. Can some body view on my script and tell me what is the problem behind this issue.
here is the live demo of the my work

Go to this link
http://www.neovantage.net/projects/carsbay/search.php

Then click on Start Finding button. Once the page will open it show only one record. Click on Dealer Enquiry Link or click on images. it will take to you on the detail page. There you will see the pictures list and here i integrated Thickbox image gallery. when you will click on thumbnail then you will get my problem that it loads nothing just keep on browsing the page n that's it

kindly solve my problem Sir.

kind regards,
Mohsin Rafique
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jun 15 '09

re: thickbox gallery image is not working


Have you followed the instructions exactly as described here and with the latest version?
Familiar Sight
 
Join Date: Aug 2008
Posts: 175
#3: Jun 16 '09

re: thickbox gallery image is not working


Yes i did. there is not even a single line change in it
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Jun 16 '09

re: thickbox gallery image is not working


Well, the src of the image and the link href attribute don't match. Try making sure they match.
Familiar Sight
 
Join Date: Aug 2008
Posts: 175
#5: Jun 16 '09

re: thickbox gallery image is not working


Sir it does not matter as my same script is running on my another project and it is working there.
here is the URL of that other website
http://www.oneownercar.com.au/site/search.php

Same script is working there. My href and image src points to the same image.

If i exclude the property of rel in my website then thickbox works fine on
this URL
http://www.neovantage.net/projects/carsbay/search.php

But when i used property rel it does not work.

and my href and src image points to same image source. I checked that too

Here is my code

Expand|Select|Wrap|Line Numbers
  1. <table cellspacing="0" cellpadding="0" border="0" align="left" width="727">
  2.                                             <tr>
  3.                                                 <td align="left" valign="top" width="400">
  4.                                                     <?
  5.                                                     if(!empty($photo_info['photo_1']) && file_exists($photo_info['photo_1'])) {$img[0]=$photo_info['photo_1'];}                                
  6.                                                     if(!empty($photo_info['photo_2']) && file_exists($photo_info['photo_2'])) {$img[1]=$photo_info['photo_2'];}
  7.                                                     if(!empty($photo_info['photo_3']) && file_exists($photo_info['photo_3'])) {$img[2]=$photo_info['photo_3'];}
  8.                                                     if(!empty($photo_info['photo_4']) && file_exists($photo_info['photo_4'])) {$img[3]=$photo_info['photo_4'];}
  9.                                                     if(!empty($photo_info['photo_5']) && file_exists($photo_info['photo_5'])) {$img[4]=$photo_info['photo_5'];}
  10.                                                     if(!empty($photo_info['photo_6']) && file_exists($photo_info['photo_6'])) {$img[5]=$photo_info['photo_6'];}
  11.                                                     if(!empty($photo_info['photo_7']) && file_exists($photo_info['photo_7'])) {$img[6]=$photo_info['photo_7'];}
  12.                                                     if(!empty($photo_info['photo_8']) && file_exists($photo_info['photo_8'])) {$img[7]=$photo_info['photo_8'];}
  13.                                                     if($photo_info['photo_1']!=""){echo "<a href=\"$img[0]\" class=\"thickbox\" title=\"$year_name&nbsp;$make_name&nbsp;$model_name\"><img src='thumb.php?file=".$photo_info['photo_1']."&sizex=390&sizey=294' border='0' alt='' /></a>";}
  14.                                                     ?>
  15.                                                 </td>
  16.                                                 <td align="right" valign="top" width="327">
  17.                                                     <table cellspacing="0" cellpadding="0" border="0" align="right">
  18.                                                         <tr>
  19.                                                             <?
  20.                                                             $countImg=0;
  21.                                                             for($i=0; $i<sizeof($img); $i++){
  22.                                                                 $countImg++;
  23.                                                                 echo "<td><a href=\"$img[$i]\" title=\"$year_name&nbsp;$make_name&nbsp;$model_name\" class=\"thickbox\" rel=\"gallerycars[]\"><img src=\"thumb.php?file=$img[$i]&sizex=105&sizey=88\" border=\"0\" alt=\"$year_name&nbsp;$make_name&nbsp;$model_name\" /></a></td>";    
  24.                                                                 if($countImg%3!=0){
  25.                                                                     echo "<td width='10'></td>";
  26.                                                                 }
  27.                                                                 if($countImg%3==0){
  28.                                                                     echo "</tr><tr><td class='tdheight_10'></td></tr><tr>";    
  29.                                                                 }
  30.                                                             }
  31.                                                             ?>
  32.                                                         </tr>
  33.                                                     </table>
  34.                                                 </td>
  35.                                             </tr>
  36.                                         </table>
  37.  
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Jun 16 '09

re: thickbox gallery image is not working


I don't know if this would make a difference, but try setting rel to the same as you've used in the working one, i.e. "gallery-cars" instead of "gallerycars[]".
Familiar Sight
 
Join Date: Aug 2008
Posts: 175
#7: Jun 16 '09

re: thickbox gallery image is not working


Even then it's not working sir. I amazed why it is not working:(...!
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#8: Jun 16 '09

re: thickbox gallery image is not working


Although you say it points to the same image source, one is the actual image while the other is a PHP file which generates a thumb of the image. Why not use the same image, but set the width/height of img element?
Familiar Sight
 
Join Date: Aug 2008
Posts: 175
#9: Jun 16 '09

re: thickbox gallery image is not working


Sir even then it's not work. If this is the problem then it never works with my other website as i already gave you the link but you can see that other website too
http://www.oneownercar.com.au/site/search.php

There it is working fine.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#10: Jun 16 '09

re: thickbox gallery image is not working


Take the working code and use that in the test page.

It may be that it is working, but it's taking a long time for the image to load.
Newbie
 
Join Date: Oct 2009
Posts: 2
#11: 4 Weeks Ago

re: thickbox gallery image is not working


I've had exactly the same problem. I have thick box working perfectly but if I put the same relative attribute for a group, as per the example, then it stops working.

I've seen this a couple of times before. I think there may be some ambiguity in how you implement it. If I find out what's happening then I'll post back here.
Newbie
 
Join Date: Oct 2009
Posts: 1
#12: 3 Weeks Ago

re: thickbox gallery image is not working


It seems the problem could be a compatability one in the new version of Thickbox. I spent quite a while hunting this solution down...

http://www.essentialtech.co.nz/drupa...ry_problem_rel

Its a simple removal of a @ and everything works again the way it should

Woohoo! :)
Newbie
 
Join Date: Oct 2009
Posts: 2
#13: 3 Weeks Ago

re: thickbox gallery image is not working


Thanks Steve,

I ended up going back to the Thickbox website where they suggest alternatives to thickbox. I used colorbox in the end and this worked very well.

http://colorpowered.com/colorbox/

Regards,

Kevin.
Reply