SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Why won't Lightbox load two images (loads rest ok)?!

    I am using the Lightbox plugin for a gallery page. On the live site two of the images I added after I built the original gallery WILL NOT LOAD/SHOW on the lightbox! I cannot find any errors/discrepancies in my coding, and the previews (using Dreamweaver) in several browsers work FINE.

    I have deleted and re-put the entire site from scratch, but still no success.

    What am I missing?!?

    Here is the page -- the uncooperative images are towards the end of the gallery (images 35 and 38): Cadogan Gardens - Creative Landscapes garden design landscaping in Melbourne Victoria

    Thanks!

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    In your links you have P0 for example but all your others are named differently, when i change the P to a zero the image loaded fine.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    So the images aren't appearing at all? This is a bit confusing. Do you see them in the HTML but they are not showing in the browser, or are they not even in the HTML? If they aren't in the HTML at all, then how is the HTML being created? Is a CMS managing this,or are you writing the code by hand?

    EDIT: Ah, well spotted SgtLegend!

  4. #4
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks SgtLegend -- I tried removing the P (leaving just 097 and 098) but still won't work for me?? I have updated the site, so would you mind having another look?

    Thank you.

  5. #5
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, too, ralph. No, images are not appearing at all for me. They are in the HTML, but not showing in the browser (on the live site, anyway -- as I said when I preview via Dreamweaver, the page works perfectly and the pics come up no probs).

    I am writing the code by hand.

    I am presuming something is amiss at the remote end. But what.......

  6. #6
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Sorry what i meant was rather then just remove the P replace it with a zero "0" instead as your naming convention is designed to have 00xx.jpg.

  7. #7
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    An example would be here (see the red 0):

    Code:
    <a title="Hover mouse top right for next, and top left for previous." rel="lightbox[gallery]" href="http://www.sitepoint.com/forums/images/gallery pics/WEB SIZE/0098.jpg"><img height="120" width="170" alt="98 thumb" src="http://www.sitepoint.com/forums/images/gallery pics/WEB SIZE/098thumb.jpg">
    </a>
    By the way, avoid ever having gaps in your URLs, such as

    Code:
    /gallery pics/WEB SIZE/
    Instead, it should be something like

    Code:
    /gallery-pics/WEB-SIZE/
    and preferably all lower case.

  8. #8
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you both very much! I will try it with the changes you suggested.

  9. #9
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I worked the damn thing out -- the pix not working had the "jpg" extension in upper case in the images folder! Not sure why dreamweaver's preview allowed them to work.

    Anyway, thanks again for taking the time to help -- much appreciated, and I did learn some valuable things.


Tags for this Thread

Bookmarks

Posting Permissions

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