papaver
10-01-2012, 04:31 PM
1) Script Title: Image Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem:
Hello,
I have integrated the thumbnailviewer2 into the wordpress loop, but it didn’t work.
<?php $image = get_post_meta($post->ID, 'image_medium', true);
if ( $image != '' ) {?>
<a href="<?php the_post_thumbnail($image, 'category-large-thumb' ); ?>" rel="enlargeimage" rev="targetdiv:loadarea,trigger:mouseover"><?php echo wp_get_attachment_image($image, 'category-small-thumb'); ?></a>
<?php } ?>
<div id="loadarea" style="width: 600px"></div>
The small thumbnail (<?php echo wp_get_attachment_image($image, 'category-small-thumb'); ?>) are shown, but when I hover I see only
“Loading Large Image” and a small white borderd box
(I have integrated the thumbnailviewer2.js version from
http://www.dynamicdrive.com/forums/showthread.php?62492-Thumbnail-Viewer-II-locks-up-if-file-not-found&highlight=thumbnail+viewer+II )
but no large Image.
Images are shown, when I set the “direct” pathway - it works perfectly
<a class="fancybox" href="<?php bloginfo('template_directory');?>/2_b.jpg" rel="enlargeimage" rev="targetdiv:loadarea,trigger:mouseover"><img src="<?php bloginfo('template_directory');?>/2_s.jpg" /></a>
<div id="loadarea" style="width: 600px"></div>
What can I do to show the large images in the loadarea.
Probably the .js has change, but I don't know how ...
I hope somebody have an idea - the Thumbviewer2 is already what I’m searching for.
Thanks
Petra
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem:
Hello,
I have integrated the thumbnailviewer2 into the wordpress loop, but it didn’t work.
<?php $image = get_post_meta($post->ID, 'image_medium', true);
if ( $image != '' ) {?>
<a href="<?php the_post_thumbnail($image, 'category-large-thumb' ); ?>" rel="enlargeimage" rev="targetdiv:loadarea,trigger:mouseover"><?php echo wp_get_attachment_image($image, 'category-small-thumb'); ?></a>
<?php } ?>
<div id="loadarea" style="width: 600px"></div>
The small thumbnail (<?php echo wp_get_attachment_image($image, 'category-small-thumb'); ?>) are shown, but when I hover I see only
“Loading Large Image” and a small white borderd box
(I have integrated the thumbnailviewer2.js version from
http://www.dynamicdrive.com/forums/showthread.php?62492-Thumbnail-Viewer-II-locks-up-if-file-not-found&highlight=thumbnail+viewer+II )
but no large Image.
Images are shown, when I set the “direct” pathway - it works perfectly
<a class="fancybox" href="<?php bloginfo('template_directory');?>/2_b.jpg" rel="enlargeimage" rev="targetdiv:loadarea,trigger:mouseover"><img src="<?php bloginfo('template_directory');?>/2_s.jpg" /></a>
<div id="loadarea" style="width: 600px"></div>
What can I do to show the large images in the loadarea.
Probably the .js has change, but I don't know how ...
I hope somebody have an idea - the Thumbviewer2 is already what I’m searching for.
Thanks
Petra