Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Email notifications of Gallery Updates....
GSP4US6
#1 Posted : Wednesday, 17 March 2010 7:48:19 AM(UTC)
Rank: Member

Joined: 14/03/2010(UTC)
Posts: 9
Man
Location: San Jose, CA

A way to choose to be notified if someone updates a Gallery. Possibly the email could tell you whet just happen to the Gallery... Who, user name, did what and when to the gallery.

Not sure how far to take this, but allot of forums operate this way were you can choose to be notified when a topic updates. Maybe a per Gallery or Album / Object option with a global setting that would allow you to say that by default I want to be notified of any and all changes, of only all uploads, of only deletions?? Or by default, do not notify me of anything, I'll pick what I want on a case-by-case bases....

With my new Gallery, I find myself constantly logging in to see if someone has use the system.
Roger Martin
#2 Posted : Wednesday, 17 March 2010 8:25:23 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Yes, this is on my to-do list. I agree it would be a useful feature.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
holty
#3 Posted : Friday, 19 March 2010 5:38:59 AM(UTC)
Rank: Member

Joined: 10/02/2010(UTC)
Posts: 18
Location: PGH

Roger Martin wrote:
Yes, this is on my to-do list. I agree it would be a useful feature.


Awesome, I would love to see this happen!
elshout
#4 Posted : Monday, 31 January 2011 4:56:34 AM(UTC)
Rank: Member

Joined: 25/01/2011(UTC)
Posts: 7
Location: Wassenaar

Roger,

any form of reporting scheduled .. or even just a log file for me as ADMIN ?
(or have i missed something in the manual about reporting).

kind regards
Roger Martin
#5 Posted : Monday, 31 January 2011 6:33:14 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

I am planning to convert the error log to an *event* log where it would contain a record of important events (in addition to errors), but I am not sure when that will be implemented.

There are a few audit fields in the album and media object tables that tell you when each record was last updated and by whom, but it is pretty basic.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
ivadenis
#6 Posted : Sunday, 6 March 2011 5:39:10 PM(UTC)
ivadenis

Rank: Member

Joined: 22/11/2010(UTC)
Posts: 12
Man
Location: San Jose

I would love to have this feature for the GSP, because I manually have to notify clients whenever I update their gallery. Otherwise they would just receive nice template email from GSP with notification of updated gallery.


Regards,
Denis
Taren
#7 Posted : Monday, 23 May 2011 2:15:08 AM(UTC)
Rank: Newbie

Joined: 23/05/2011(UTC)
Posts: 1
Location: Brazil

GSP4US6;4574 wrote:
A way to choose to be notified if someone updates a Gallery. Possibly the email could tell you whet just happen to the Gallery... Who, user name, did what and when to the gallery.

Not sure how far to take this, but allot of forums operate this way were you can choose to be notified when a topic updates. Maybe a per Gallery or Album / Object option with a global setting that would allow you to say that by default I want to be notified of any and all changes, of only all uploads, of only deletions?? Or by default, do not notify me of anything, I'll pick what I want on a case-by-case bases....

With my new Gallery, I find myself constantly logging in to see if someone has use the system.



his is on my to-do list. I agree it would be a useful feature.
chrisrogeski
#8 Posted : Tuesday, 19 July 2011 8:29:12 PM(UTC)
Rank: Member

Joined: 15/12/2010(UTC)
Posts: 28
Location: USA

GSP4US6;4574 wrote:
A way to choose to be notified if someone updates a Gallery. Possibly the email could tell you whet just happen to the Gallery... Who, user name, did what and when to the gallery.

Not sure how far to take this, but allot of forums operate this way were you can choose to be notified when a topic updates. Maybe a per Gallery or Album / Object option with a global setting that would allow you to say that by default I want to be notified of any and all changes, of only all uploads, of only deletions?? Or by default, do not notify me of anything, I'll pick what I want on a case-by-case bases....

With my new Gallery, I find myself constantly logging in to see if someone has use the system.


I'm sure Roger will come up with a better 'official' method, but I've been playing around with adding this feature to my install last week to send me an email when an item is added. Again, it's a bit forced, and i'm sure it's in the wrong place, and has limitations, but it seems to work so far. Also, note that this is for version 2.4, so there's a chance it's not compatible with newer versions.

How: I added this code to the bottom of the save method of the MediaObject.CS in the TIS.GSP.DATA.SQLSERVER folder, right before "mediaObjectId;"

If you want to give it a try, you'll just have to fill in the variables with your SMTP settings and remember to change your URL paths (localhost) to reflect your website, if you want the links in the email to work. The email uses HTML and will give you a preview of the item uploaded in your email.

string Glob_SMTPServer = "your info here ";
string Glob_SMTPusername = "your info here ";
string Glob_SMTPPassword = "your info here ";
string Glob_SMTPAdminFromEmail = "your info here "; //'"

System.Net.NetworkCredential MyAuthenticationInfo = new System.Net.NetworkCredential(Glob_SMTPusername, Glob_SMTPPassword);

MailAddress emailSender = new MailAddress(Glob_SMTPAdminFromEmail, "Great Maine Pictures");

//if (!IsValidEmail(user.Email))
//{
// return false;
//}

MailAddress emailRecipient = new MailAddress("your info here ", "your info here ");

using (MailMessage mail = new MailMessage(emailSender, emailRecipient))
{
mail.Subject = " New Media Object Added - ";
//mail.Body = Environment.NewLine + Environment.NewLine + "New Media Object Added: " + Environment.NewLine + "http://localhost/gsps/website/Default.aspx?moid=" + mediaObjectId.ToString();
mail.IsBodyHtml = true;
string sBody = "<br /><br />";
sBody = "New Media Object Added: " + "<br />" + Environment.NewLine + "http://localhost/gsps/website/Default.aspx?moid=" + mediaObjectId.ToString() + Environment.NewLine;
sBody = sBody + @"<br /> <a id=""A1"" title=""Image Posted"" href=""http://localhost/gsps/website/Default.aspx?moid=[ID]"" target=""_blank"" style=""display:inline-block;height:64px;width:64px;""><img title=""picture"" src=""http://localhost/gsps/website/gs/handler/getmediaobject.ashx?moid=[ID]&dt=2&g=1"" style=""border-width:0px;""></a><br />""";
sBody = sBody.Replace("[ID]", mediaObjectId.ToString());
mail.Body = sBody;

SmtpClient smtpClient = new SmtpClient();
smtpClient.EnableSsl = false; // gallerySettings.SendEmailUsingSsl;

smtpClient.Host = Glob_SMTPServer;

// Specify port number if it is specified and it's not the default value of 25. The port
// might have been assigned via web.config, so only update this if we have a config setting.

smtpClient.Credentials = MyAuthenticationInfo;
smtpClient.Send(mail);


File Attachment(s):
MediaObjectAdded.png (333kb) downloaded 10 time(s).
Roger Martin
#9 Posted : Tuesday, 19 July 2011 8:40:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Thanks for the info. You could also do it by adding the following to the end of the GalleryObjectController.SaveGalleryObject() function in the Website project:

Code:
string subject = "Gallery item updated";
string body = "A gallery item was updated";
EmailController.SendEmail(new MailAddress("username@site.com"), subject, body, galleryObject.GalleryId);

Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.