johannes.jarolim.com/yapb-forum

Full Version: Slightly modded YAPB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

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!
Hi Finnram -

Sorry to say: But the automatic image insertion feature is for YAPB beginners only so they may evaluate the plugin and see what it does.

If you need more advanced control over the appearance, you'll have to insert some YAPB templatefunction-calls to your theme - And there are multiple examples on my site and in the forum on how to achieve what. This is just a much more elegant and flexible way of using yapb.

Greets from Salzburg,

Johannes
Hi Finnram-

Are you looking at something like http://www.pixpuddy.com? If yes then you have to modify your template to get this done.

Cheers
Reference URL's