Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

timthumb

Options
  • 04-10-2010 10:02pm
    #1
    Registered Users Posts: 1,234 ✭✭✭


    hey all was wondering if anyone can help me.

    i've constructed this gallery and as you can see from teh link will not work.

    i cant seem to see where i went wrong - can anyone see anything or have any suggestions.

    any and all help is much appreciated.

    http://www.noreswim.com/photos.html


Comments

  • Registered Users Posts: 1,801 ✭✭✭cormee


    ayatollah wrote: »
    hey all was wondering if anyone can help me.

    i've constructed this gallery and as you can see from teh link will not work.

    i cant seem to see where i went wrong - can anyone see anything or have any suggestions.

    any and all help is much appreciated.

    http://www.noreswim.com/photos.html

    It could be any one of an awful lot of different possible issues.

    You have no doctype or xmlns attribute declared in your </head>, you need to fix that first and sort out some of your validation issues http://validator.w3.org/check?uri=http%3A%2F%2Fwww.noreswim.com%2Fphotos.html&charset=%28detect+automatically%29&doctype=Inline&group=0

    If that doesn't sort it my money's on a conflict between your lightbox script and your TimThumb.php, when I turned off javascript and refreshed my browser the links started working (the thumbnails weren't though, that might be down to caching).

    What do http://www.noreswim.com/js/builder.js and http://www.noreswim.com/js/effects.js do? I use this lightbox myself and I recognise the other js files in the <head> but not them.

    Also a direct link to the script calling on it to generate a thumbnail doesn't work - http://www.noreswim.com/timthumb.php?src=images/2010/1.jpg is your webserver configured to parse php? Do you have the GD library installed? And are the permissions for timthumb.php and the image folder set to 777?

    You could spend hours trying to sort out all these problems. I'd say your best bet would be to try find a script that does both thumbnails and lightbox and use that instead.


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    You have over 350 thumbnails images on one page and a Flash animation (which would be much better done using jQuery). That's quite a large page load. While that might not be the problem, though I suspect it has something to do with it, if it's combined with bad javascript and/or if javascript/php is used to make so many thumbnails, it can create all sorts of weird problems. Edit: Your timthumb.php which looks like it is generating the thumbnails sets max cache size to 250 images, and memory limit to 50MB so that could well be one/two issue/s.

    Highslide gallery doesn't make thumbnails on the fly which might suit your page better, though you have to make the thumbnails yourself (loads of tools for that). Besides users get bored after 2/3 dozen photos so you'd be better off having your best ~30 on the first page and then the rest spread out with about 30/page.


  • Registered Users Posts: 1,234 ✭✭✭ayatollah


    yeah i've never really done anything like this before (ie using light box or timthumb) but a friend of mine helped me out and i had the code like done before i had all the images and hadn't realised there would be so many.

    but the thumbnail issue is my main concern at teh moment as if i could get that fixed firsr then i could get the rest sorted then from that - rather than say like extend my problem over multiple pages - although i take your point that i have too many images on teh one page.

    i think i've just reached a level of confusion where every time i look at it now i just confuse myself further - i dont know lightbox or timthumb well enough to see where theymight be conflicting.

    i've set the cache and temp folders to full write permissions so the thumbnails should be being created at teh very least i think unless i've structured thet call to incorrectly.


  • Registered Users Posts: 1,801 ✭✭✭cormee


    ayatollah wrote: »
    yeah i've never really done anything like this before (ie using light box or timthumb) but a friend of mine helped me out and i had the code like done before i had all the images and hadn't realised there would be so many.

    but the thumbnail issue is my main concern at teh moment as if i could get that fixed firsr then i could get the rest sorted then from that - rather than say like extend my problem over multiple pages - although i take your point that i have too many images on teh one page.

    i think i've just reached a level of confusion where every time i look at it now i just confuse myself further - i dont know lightbox or timthumb well enough to see where theymight be conflicting.

    i've set the cache and temp folders to full write permissions so the thumbnails should be being created at teh very least i think unless i've structured thet call to incorrectly.

    Do you have the GD library installed? To find out create a page called phpinfo.php (or whatever) with the following code:

    <?php
    phpinfo();
    ?>

    Open the page and look for 'gd'. That will tell you if it's enabled or not.

    If it is you could try reinstalling the script using the same settings the developer used (directory names etc), so basically don't change any of the settings.


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    ayatollah wrote: »
    but the thumbnail issue is my main concern at teh moment as if i could get that fixed firsr then i could get the rest sorted then from that - rather than say like extend my problem over multiple pages - although i take your point that i have too many images on teh one page.

    I think you've missed the point. You have 350 thumbnails for display yet the script says it will only cache a max of 250. So the script doesn't want to work. To solve you either increase the cache size to 360 (crazily high value) or the best solution is to limit the number of images per page to something more managable like 50 or less. 350 is a crazy amount of times a script has to run on a single page.


  • Advertisement
Advertisement