Home > Support > Forum

Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Add more information/links to notification email?

UserPost

8:02 pm
December 28, 2009


bookchiq

New Member

Meridian, Idaho, USA

posts 2

1

This plugin is working great for me, and I'm delighted you've created and shared it.

One suggestion (which I'm willing to help implement): it would be nice if the notification email provided a little more information (e.g. which gallery received a new upload) and offered a link to the admin interface where the photo can be approved.

I'm not confused by the current process, but I'm setting this blog up for a client, and I don't think they'll catch on right away. Adding those pieces should help.

If this isn't something you have time and/or interest to add right away, I'll be happy to code it in myself and share the changes with you if you tell me how you'd like them. :)

Thanks again for the very useful plugin!

1:26 pm
December 29, 2009


gouryella12

Member

posts 3

2

I agree with you, the plugin is very good Laugh

It need some updates as you already said, some more info in the notification mail, where the picture is uploaded to etc….and I would love to see some more description fields in the widget.

I respect your work very well done Scott.

Thanks and i hope for an update in the future.

Keep it up!

Greets,

Maarten


4:09 pm
December 31, 2009


bookchiq

New Member

Meridian, Idaho, USA

posts 2

3

I've gone ahead and done some quick updates for my client.

For anyone who's interested, I updated the sendEmail() function in inc/npu-upload.php as follows:

// Function: Send Email Notice
		public function sendEmail() {
			global $wpdb;

			$gallery_title = $wpdb->get_var("SELECT title FROM {$wpdb->prefix}ngg_gallery WHERE gid = {$_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 to the \"{$gallery_title}\" gallery and is waiting to be reviewed.\r\n\r\nYou can view and approve or reject the image here: ".get_bloginfo('url')."/wp-admin/admin.php?page=nggallery-manage-gallery&mode=edit&gid={$_POST['galleryselect']}";
				wp_mail( $to, $subject, $message);
			}
		}

7:44 am
January 2, 2010


gouryella12

Member

posts 3

4

Updated my npu-upload.php with your code and it works fine Cool

now i get a notification message in my inbox with the path where the image is uloaded to very good work thanks a lot.


Do you also know how to get the widget (from the uploader) smaller….because my sidebar is too small for it now.

Thanks for the update and work I Appreciate it!

Search 


If you can dream it, we can build it! Please contact us today to discuss your ideas and how WebDevStudios can help you today!