About Thickbox intergration

Joined: 07/24/2008
Juice: 23

I'm using the code:

<?php
    
// Grabs the firsts image path and sets $imagePath.
    
$imagePath = $node->field_image_cache['0']['filepath'];
?>
<?php
print l(
   
theme('imagecache', 'product', $field_image_cache[0]['filepath'], $field_image_cache[0]['alt'], $field_image_cache[0]['title']),
   
$field_image_cache[0]['filepath'],
    array(
'class' => 'thickbox', 'rel' => 'field_image_cache_1'), NULL, NULL, FALSE, TRUE);
?>

To try and get thickbox working with this... however its never actually linking to the image - I just get the "loading" bar. Everything worked fine before. The only thing I notice different to when I use the default node template is that I'm on a multilanguage site, so the URL includes a /en/ in it.

Could this be the problem as to why thickbox is not finding the images?! If so is there anything I can do?

Thanks.

Nifty Products Tutorial Part 1 By: mykz- (132 replies) Wed, 03/19/2008 - 19:04