WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [nextgen-gallery] Add do_action(ngg_upload_complete) (4 posts)

  1. comstar
    Member
    Posted 3 years ago #

    Alex.

    The several do_actions that you have created occur before the thumbnails are created in the image galleries. I needed a do_action hook after all of the thumbnails were made. Could you please add the following to your next release in the functions.php file:

    Line 208 after

    // now create thumbnails
    nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') );

    Add

    //add do_action hook
    do_action('ngg_upload_complete', $gallery_id, $new_images );

    Line 1010 after

    //add the preview image if needed
    nggAdmin::set_gallery_preview ( $galleryID );

    Add

    //add do_action hook
    do_action('ngg_upload_complete', $galleryID, $imagelist );
  2. Alex Rabe
    Member
    Posted 3 years ago #

    Please be so kind and open a issue with the needed changes here : http://code.google.com/p/nextgen-gallery/issues/list

  3. comstar
    Member
    Posted 3 years ago #

    I'll do that as soon as I get it working the way I wanted to but after testing those positions will not accomplish what I need. Can you tell me where the do_action would need to go so that I can capture both the picture and the thumbnail that is created? Thanks in advance.

  4. Alex Rabe
    Member
    Posted 3 years ago #

    what is with create_thumbnail() , can you not hook here into the plugin ?

Topic Closed

This topic has been closed to new replies.

About this Topic