Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Chances are then that current user data isn’t used for anything with it.

    A decision that was done before I came into helping with the plugin.

    i’m also interested.

    i have no idea who submitted the pics.

    I too wanted that information. I also wanted to know which gallery was modified. Seeing that the plugin seems to have no one maintaining it, I gamble that any changes I make to it won’t be updated and overwritten anytime soon.

    Use the following at your own risk. Find and edit the following file:
    plugins\nextgen-public-uploader\inc\npu-upload.php

    Near the bottom of the file, find the email notification function and replace it with this:

    // Function: Send Email Notice
    		public function sendEmail() {
    			global $wpdb;
    			global $current_user;
    			get_currentuserinfo();
    			$gal_id = $_POST['galleryselect'];
    			if(get_option('npu_notification_email')){
    				$to = get_option('npu_notification_email');
    				$subject = "New Image Pending Review - NextGEN Public Uploader";
    				$message = "A new image has been submitted and is waiting to be reviewed.\r\n";
    				$message .="Uploaded by $current_user->user_login, $current_user->display_name, $current_user->user_email.\r\n";
    				$message .="To gallery: $gal_id \r\n";
    				wp_mail( $to, $subject, $message);
    			}
    		}

    This code adds 2 new lines to the message. The first provides Username, Display Name, and email address of the user making the upload. The second provides the ID number of the gallery.

    Perhaps, if someone actually picks up responsibility for the plugin they can add something similar.

    Thanks for this! Is there anyway to add the Image ID# to the email as well?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Bob, it’s not abandonware, I assure you, it just is admittedly unloved more than it deserves. That said, we’re working on a new update soon, and I’m going to be taking notes for even more edits, based on user feedback. That said, I have no problem with more information for the email notification that’s sent out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Get id/username of the uploader’ is closed to new replies.