Plogger Support Forum - Send Email Notification to many users for Comments Thu, 28 Mar 2024 19:35:39 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12430#Comment_12430 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12430#Comment_12430 Mon, 15 Mar 2010 13:07:30 +0000 Dani Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12437#Comment_12437 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12437#Comment_12437 Mon, 15 Mar 2010 19:01:37 +0000 Dani Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12474#Comment_12474 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12474#Comment_12474 Fri, 19 Mar 2010 05:37:29 +0000 Dani
Just one minor thing:
$config['gallery_name'] and $config['album_name'] returns an empty string. The default plogger mail also returns an empty string, the subject for the notification mails are: "[] New Comment From Dani"
How do I fix that so i can use album_name and gallery_name in the emails?]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12483#Comment_12483 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12483#Comment_12483 Fri, 19 Mar 2010 12:06:24 +0000 sidtheduck
Are you starting a new function? If so, you need to call:
global $config;
At the top of your function in order for it to register the global variable for the configuration array.]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12486#Comment_12486 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12486#Comment_12486 Fri, 19 Mar 2010 12:15:07 +0000 Dani Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12491#Comment_12491 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12491#Comment_12491 Fri, 19 Mar 2010 14:38:58 +0000 sidtheduck
While looking into the large thumbnail issue, I checked your emailer script and edited a few things.

First, $config['gallery_name'] doesn't print anything because the Gallery Name is not filled out in your Admin -> Options tab. Fill that out and it will be inserted in your email.

Second, there is no $config['album_name'] variable. I added the necessary code to get the album data based on the picture id that the comment is posted on. Again, do a search for "//c(.)" if you want to see what I changed in your code.

The emails should work just fine now if you check out those 2 options above.]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12517#Comment_12517 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12517#Comment_12517 Tue, 23 Mar 2010 16:52:08 +0000 Dani
It seems I'm just starting to get a little issue with spam-comments. So if I turn on "Place New Comments Into Moderation", will the comment be placed into moderation before or after it's sending the emails? If it sends before, then it has no point to place it into moderation. Is there a ban function on plogger for spam-ip's ? On other places on my website with commentfields, I've installed a captcha script, even though I don't really like it, as it reduces people's will to comment.]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12524#Comment_12524 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12524#Comment_12524 Wed, 24 Mar 2010 16:59:09 +0000 sidtheduck
Currently the way you have it set up, it will send an email for all comments (regardless of moderation). You'd have to move the emailing code from where it is located (in the add_comment function) to the plog-admin/plog-feedback.php file where the comment is actually approved before sending out the email. Let me know if you need some help with that.]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12532#Comment_12532 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12532#Comment_12532 Thu, 25 Mar 2010 07:16:10 +0000 Dani Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12534#Comment_12534 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12534#Comment_12534 Thu, 25 Mar 2010 08:57:29 +0000 Dani $picdata = get_picture_by_id($parent_id);
$picurl = generate_url("picture", $parent_id, NULL, true);
$albumdata = get_album_by_id($picdata['parent_album']); //c(.)

But it seems picurl returns just "plog.php?level=picture&id=" and $albumdata['name'] is nothing.]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12878#Comment_12878 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12878#Comment_12878 Wed, 02 Jun 2010 21:07:18 +0000 Dani
$sql_mail="SELECT SHA1(id) AS idsha1, name, email
FROM member
WHERE notify=2";
$result_mail=mysql_query($sql_mail);
$picdata = get_picture_by_id($parent_id);
$picurl = generate_url("picture", $parent_id, NULL, true);
$albumdata = get_album_by_id($picdata['parent_album']); //c(.)
while($row_mail=mysql_fetch_assoc($result_mail))
{
$idsha1=$row_mail["idsha1"];
$msg="$author has commented on a photo.

You can see all the comments for this picture here: http://www.truemetal.org/cirithungol/$picurl


Click the following link to unsubscribe: http://www.truemetal.org/cirithungol/maillist.php?action=unmail&id=$idsha1


Cheers,
the cirith ungol webpit admin
http:/www.truemetal.org/cirithungol";

mail(
$row_mail["email"],
"new comment - ".SmartStripSlashes($albumdata['name']),
SmartStripSlashes($msg),
"From: The Cirith Ungol Webpit <savx23@yahoo.no>"); //c(.)

}


"new comment - ".SmartStripSlashes($albumdata['name']), returns just "new comment - ", not the albumname.
$picurl returns just "http://www.truemetal.org/cirithungol/plog.php?level=picture&id=", not the level and id.

Can anyone help?]]>
Send Email Notification to many users for Comments http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12887#Comment_12887 http://www.plogger.org/forum/comments.php?DiscussionID=3119&Focus=12887#Comment_12887 Fri, 04 Jun 2010 18:55:59 +0000 Dani