08-15-2007, 11:16 AM
First of all, thank you for the excellent plugin. Thumbailing with good cache system - simply the best for me.
I'm running a photo/image blog at art.tech.fi powered by YAPB.
I had only one problem with the plugin. I want to share larger versions of the images easily just by clicking the thumbnail. I couldn't find any easy method for doing this and I didn't want to change my theme templates.
Here is my simple solution, but is there any easy way to do the same? I'd prefer using YAPB options pages without changing any scripts.
I modified Yapb.class.php, function the_content(...). Following the last "else"-statement, simply wrapping the output with a href.
Thank you!
I'm running a photo/image blog at art.tech.fi powered by YAPB.
I had only one problem with the plugin. I want to share larger versions of the images easily just by clicking the thumbnail. I couldn't find any easy method for doing this and I didn't want to change my theme templates.
Here is my simple solution, but is there any easy way to do the same? I'd prefer using YAPB options pages without changing any scripts.
I modified Yapb.class.php, function the_content(...). Following the last "else"-statement, simply wrapping the output with a href.
Code:
// If automatic image insertion is activated in general
if (get_option('yapb_display_images_activate')) {
$embed = $this->_getImageTag($post->image);
$embed = '<a href="' . $post->image->getFullHref() . '">' . $embed . '</a>';
print $embed;
// used to be: print $this->_getImageTag($post->image);Thank you!