Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP template not opening images in Lightbox

    First i want to say I'm sorry. I'm not a coder so my code is sloppy and i may not understand concepts you talk about. Here is my problem.

    Making a wordpress website and trying to customize a portfolio template to do some extra things. Iv got everything to work properly besides one little bug. The "showcase portfolio" on my site has projects thumbnails on the left side and then when you click on a projects it loads a larger preview to the left of the thumbnails. You can then click on the image or video and it opens in lightbox and shows you the video or full size image. However, if i click on the thumnails to the right more than 1 time, then the lightbox preview for that page stops working.

    Here is the page in question
    http://www.brettwilliamsfilm.com/?page_id=55

    here is the php i altered to get it to work the way i want. (portfolio-previewr.php is the file i altered, the other one is just the template file that calls it or "includes" it)
    www.brettwilliamsfilm.com/myphptest.rar


    Any help would be greatly appreciated. I have no idea if its a PHP problem or a problem with pretty photo.js. Like i said i'm not a coder, so fixing it, or even just pointing me in the right direction would be greatly appreciated. Thank you so much in advance .

    (to see the bug, click on any thumbnail to the right side of the screen more than once and see how it opens the direct link instead of opening in lightbox)

  • #2
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,411
    Thanks
    68
    Thanked 102 Times in 101 Posts
    Lightbox is very easy to use, if you didn't get it from this website, then I wouldn't recommend it, this website is excellent for step by step instructions on putting up single and multiple images.

    http://lokeshdhakar.com/projects/lightbox2/
    Been a sign maker for 7 years. My business:
    American Made Signs

  • #3
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ty for the response . Unfortunately this doesn't fix the problem. Iv read that site carefully and as far as i can tell, the lightbox is setup fine. And it works fine when you first visit the site (as you can tell by going to the link i posted above). It isn't until after i click on the thumbnail on the side twice that it starts not working.

  • #4
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,411
    Thanks
    68
    Thanked 102 Times in 101 Posts
    Make sure the group is the same name.
    Been a sign maker for 7 years. My business:
    American Made Signs


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •