473,411 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

thickbox gallery image is not working

245 100+
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
Jun 15 '09 #1
12 6196
acoder
16,027 Expert Mod 8TB
Have you followed the instructions exactly as described here and with the latest version?
Jun 15 '09 #2
neovantage
245 100+
Yes i did. there is not even a single line change in it
Jun 16 '09 #3
acoder
16,027 Expert Mod 8TB
Well, the src of the image and the link href attribute don't match. Try making sure they match.
Jun 16 '09 #4
neovantage
245 100+
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.  
Jun 16 '09 #5
acoder
16,027 Expert Mod 8TB
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[]".
Jun 16 '09 #6
neovantage
245 100+
Even then it's not working sir. I amazed why it is not working:(...!
Jun 16 '09 #7
acoder
16,027 Expert Mod 8TB
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?
Jun 16 '09 #8
neovantage
245 100+
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.
Jun 16 '09 #9
acoder
16,027 Expert Mod 8TB
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.
Jun 16 '09 #10
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.
Oct 20 '09 #11
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! :)
Oct 26 '09 #12
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.
Oct 26 '09 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Simone Winkler | last post by:
Hello, I don't know if my question is out of topic...so I apologize if I am. I use the coppermine picture gallery for my web (actually I want to use it but the server doesn't seem to have GD...
9
by: Flynn | last post by:
My understanding of javascript is very limited. Could some one help me out. I found this code for an image gallery viewer. It works fine on my site, but I'd like to modify it so that the mainpic...
11
by: shror | last post by:
hi every body I need help please i have designed an image gallery of about 20 pictures and they are shown in thumb nail views and for viewing the largeer version of the images i have added a...
0
by: numbnutz | last post by:
Hi, I am currently working on an XML Gallery for my girlfriend's brother who is a photographer. I have created a flash front end template and am using an XML database to load the images and...
9
by: boycey | last post by:
Hi I have tried to embed a simpleviewer gallery (which works fine as a standalone web page) into a table on an existing web page inorder to show it as a gallery window. The gallery loads but there...
1
by: fidgen | last post by:
Hiya, I'm trying to get a AJAX driven update to my list of news articles, so when users click the title of the news article, it pops up the article content in a thickbox overlay. Retrieving...
3
by: neovantage | last post by:
Hey, i am using thickbox and and a call to a page through thickbox method and when once it pops it shows jerks in IE6 but it works fine in IE7, Firefox Mozilla 2.0+ while scrolling page. Is there...
12
by: neovantage | last post by:
Hi, I am working on an image to process it with different ways/options given in the page. My page name is cart and it has an uploaded image having thumbnail view. When i click on that thumbnail...
6
by: neovantage | last post by:
Hey all, i have installed Uber uploader on my server. and it is working perfectly. It shows progress bar after submitting form. I want that when i upload an image or a file it shows the progress in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.