• Hello,

    up to NGG 1.9.13 NGG has called a filter while generating thumbnails to let other plugins hook in and do fancy things to connect to the gallery overview. From NGG 2.x on this filter is missing and it is not possible to connect to NGG anymore. ??

    Well, how do I know this? I was the first who uses this filter to connect wp-greet and Alex Rabe the former owner of NGG added this due to my request.

    I have analyzed your new sourcecode structure a bit and would like to suggest to add the filter again.

    As far as I can say it would be the easiest to change the file
    nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php

    and change the line with
    <a href="<?php echo esc_attr($storage->get_image_url($image))?>"

    to

    <a href="<?php echo apply_filters('ngg_create_gallery_link', esc_attr($storage->get_image_url($image)), $image)?>"

    This would add the filter call to ngg_create_gallery_link again and leave it possible to connect to the thumbnail-generation of the gallery overview. Of course I do not mind how the filter is named. Any other name would be allwright too.

    Thank you for considering my suggestions.

    Best regards, Hans

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Missing filter call since NGG 2.x’ is closed to new replies.