Modified:added email template for reply on comment
This commit is contained in:
parent
ee8fe8bace
commit
570709482f
2 changed files with 28 additions and 3 deletions
|
@ -14,6 +14,7 @@ INSERT INTO `{tbl_prefix}email_templates` (`email_template_id`, `email_template_
|
|||
(12, 'Contact Form', 'contact_form', '[{website_title} - Contact] {reason} from {name}', 'Name : {name}\r\nEmail : {email}\r\nReason : {reason}\r\n\r\nMessage:\r\n{message}\r\n\r\n===============\r\nIp : {ip_address}\r\ndate : {now}', ''),
|
||||
(13, 'Video Acitvation Email', 'video_activation_email', '[{website_title}] - Your video has been activated', 'Hello {username},\r\nYour video has been reviewed and activated by one of our staff, thanks for uploading this video. You can view this video here.\r\n{video_link}\r\n\r\nThanks\r\n{website_title} Team', ''),
|
||||
(14, 'User Comment Email', 'user_comment_email', '[{website_title}] {username} made comment on your {obj}', '{username} has commented on your {obj}\r\n"{comment}"\r\n\r\n<a href="{obj_link}">{obj_link}</a>\r\n\r\n{website_title} team', ''),
|
||||
(15, 'Photo Share Template', 'photo_share_template', '{username} wants to share photo with you', '<html>\r\n<head>\r\n<style type="text/css">\r\n<!--\r\n.title {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #FFFFFF;\r\n font-size: 16px;\r\n}\r\n.title2 {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 14px;\r\n}\r\n.messege {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 12px;\r\n}\r\n#videoThumb{\r\n float:left;\r\n padding: 2px;\r\n margin: 3px;\r\n border: 1px solid #F0F0F0;\r\n text-align: center;\r\n vertical-align: middle;\r\n}\r\n#videoThumb img{border:0px}\r\nbody,td,th {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #FFFFFF;\r\n}\r\n.text {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #000000;\r\n padding: 5px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<table width="100%" border="0" cellspacing="0" cellpadding="5">\r\n <tr>\r\n <td bgcolor="#0099cc" ><span class="title">{website_title}</span></td>\r\n </tr>\r\n\r\n <tr>\r\n <td height="20" class="messege">{username} wants to share this photo with you<br>\r\n <div id="videoThumb"><a class="text" title="{photo_title}" href="{photo_link}"><img src="{photo_thumb}"><br>\r\n View Photo</a></div></td>\r\n </tr>\r\n <tr>\r\n <td class="text" ><span class="title2">Photo Description</span><br>\r\n <span class="text">{photo_description}</span></td>\r\n </tr>\r\n <tr>\r\n <td><span class="title2">Personal Message</span><br>\r\n <span class="text">{user_message}\r\n </span><br>\r\n <br>\r\n<span class="text">Thanks,</span><br> \r\n<span class="text">{website_title}</span></td>\r\n </tr>\r\n <tr>\r\n <td bgcolor="#0099cc">copyrights {date_year} {website_title}</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>', ''),
|
||||
(16, 'Video Subscription Email', 'video_subscription_email', '{uploader} has uploaded new video on {website_title}', 'Hello {username}\r\n\r\nYou have been notified by {website_title} that {uploader} has uploaded new video \r\n\r\nVideo Title : {video_title}\r\nVideo Description : {video_description}\r\n\r\n\r\n<a href="{video_link}">\r\n<img src="{video_thumb}" border="0" height="90" width="120"><br>\r\nclick here to watch this video</a>\r\n\r\n\r\nYou are notified because you are subscribed to {uploader}, you can manage your subscriptions by going to your account and click on manage subscriptions.\r\n{website_title}', ''),
|
||||
(17, 'Collection Share Template', 'collection_share_template', '{username} wants to share collection with you', '<html>\r\n<head>\r\n<style type="text/css">\r\n<!--\r\n.title {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #FFFFFF;\r\n font-size: 16px;\r\n}\r\n.title2 {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 14px;\r\n}\r\n.messege {\r\n font-family:Tahoma, Geneva, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 11px;\r\n}\r\n#videoThumb{\r\n float:left;\r\n padding: 2px;\r\n margin: 3px;\r\n border: 1px solid #F0F0F0;\r\n text-align: center;\r\n vertical-align: middle;\r\n}\r\n#videoThumb img{border:0px}\r\nbody,td,th {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #FFFFFF;\r\n}\r\n.text, .text2 {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #000000;\r\n padding: 5px;\r\n}\r\n\r\n.text2 {\r\n font-size: 10px;\r\n padding: 0px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<table width="100%" border="0" cellspacing="0" cellpadding="5">\r\n <tr>\r\n <td bgcolor="#0099cc" ><span class="title">{website_title}</span></td>\r\n </tr>\r\n\r\n <tr>\r\n <td height="20" class="messege">{username} wants to share this collection with you.<br>\r\n <div id="videoThumb"><a class="text" title="{name}" href="{collection_link}"><img src="{collection_thumb}"><br>\r\n View Collection <small class=''text2''>({total_items} {type})</small></a></div></td>\r\n </tr>\r\n <tr>\r\n <td class="text" ><span class="title2">Collection Description</span><br>\r\n <span class="text">{description}</span></td>\r\n </tr>\r\n <tr>\r\n <td><span class="title2">Personal Message</span><br>\r\n <span class="text">{user_message}\r\n </span><br>\r\n <br>\r\n<span class="text">Thanks,</span><br> \r\n<span class="text">{website_title}</span></td>\r\n </tr>\r\n <tr>\r\n <td bgcolor="#0099cc">copyrights {date_year} {website_title}</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>', '');
|
||||
(15, 'User Reply Email', 'user_reply_email', '[{website_title}] {username} made reply on your comment', '{username} has replied on your comment\r\n"{comment}"\r\n\r\n<a href="{obj_link}">{obj_link}</a>\r\n\r\n{website_title} team', ''),
|
||||
(16, 'Photo Share Template', 'photo_share_template', '{username} wants to share photo with you', '<html>\r\n<head>\r\n<style type="text/css">\r\n<!--\r\n.title {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #FFFFFF;\r\n font-size: 16px;\r\n}\r\n.title2 {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 14px;\r\n}\r\n.messege {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 12px;\r\n}\r\n#videoThumb{\r\n float:left;\r\n padding: 2px;\r\n margin: 3px;\r\n border: 1px solid #F0F0F0;\r\n text-align: center;\r\n vertical-align: middle;\r\n}\r\n#videoThumb img{border:0px}\r\nbody,td,th {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #FFFFFF;\r\n}\r\n.text {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #000000;\r\n padding: 5px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<table width="100%" border="0" cellspacing="0" cellpadding="5">\r\n <tr>\r\n <td bgcolor="#0099cc" ><span class="title">{website_title}</span></td>\r\n </tr>\r\n\r\n <tr>\r\n <td height="20" class="messege">{username} wants to share this photo with you<br>\r\n <div id="videoThumb"><a class="text" title="{photo_title}" href="{photo_link}"><img src="{photo_thumb}"><br>\r\n View Photo</a></div></td>\r\n </tr>\r\n <tr>\r\n <td class="text" ><span class="title2">Photo Description</span><br>\r\n <span class="text">{photo_description}</span></td>\r\n </tr>\r\n <tr>\r\n <td><span class="title2">Personal Message</span><br>\r\n <span class="text">{user_message}\r\n </span><br>\r\n <br>\r\n<span class="text">Thanks,</span><br> \r\n<span class="text">{website_title}</span></td>\r\n </tr>\r\n <tr>\r\n <td bgcolor="#0099cc">copyrights {date_year} {website_title}</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>', ''),
|
||||
(17, 'Video Subscription Email', 'video_subscription_email', '{uploader} has uploaded new video on {website_title}', 'Hello {username}\r\n\r\nYou have been notified by {website_title} that {uploader} has uploaded new video \r\n\r\nVideo Title : {video_title}\r\nVideo Description : {video_description}\r\n\r\n\r\n<a href="{video_link}">\r\n<img src="{video_thumb}" border="0" height="90" width="120"><br>\r\nclick here to watch this video</a>\r\n\r\n\r\nYou are notified because you are subscribed to {uploader}, you can manage your subscriptions by going to your account and click on manage subscriptions.\r\n{website_title}', ''),
|
||||
(18, 'Collection Share Template', 'collection_share_template', '{username} wants to share collection with you', '<html>\r\n<head>\r\n<style type="text/css">\r\n<!--\r\n.title {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #FFFFFF;\r\n font-size: 16px;\r\n}\r\n.title2 {\r\n font-family: Arial, Helvetica, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 14px;\r\n}\r\n.messege {\r\n font-family:Tahoma, Geneva, sans-serif;\r\n padding: 5px;\r\n font-weight:bold;\r\n color: #000000;\r\n font-size: 11px;\r\n}\r\n#videoThumb{\r\n float:left;\r\n padding: 2px;\r\n margin: 3px;\r\n border: 1px solid #F0F0F0;\r\n text-align: center;\r\n vertical-align: middle;\r\n}\r\n#videoThumb img{border:0px}\r\nbody,td,th {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #FFFFFF;\r\n}\r\n.text, .text2 {\r\n font-family: tahoma;\r\n font-size: 11px;\r\n color: #000000;\r\n padding: 5px;\r\n}\r\n\r\n.text2 {\r\n font-size: 10px;\r\n padding: 0px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<table width="100%" border="0" cellspacing="0" cellpadding="5">\r\n <tr>\r\n <td bgcolor="#0099cc" ><span class="title">{website_title}</span></td>\r\n </tr>\r\n\r\n <tr>\r\n <td height="20" class="messege">{username} wants to share this collection with you.<br>\r\n <div id="videoThumb"><a class="text" title="{name}" href="{collection_link}"><img src="{collection_thumb}"><br>\r\n View Collection <small class=''text2''>({total_items} {type})</small></a></div></td>\r\n </tr>\r\n <tr>\r\n <td class="text" ><span class="title2">Collection Description</span><br>\r\n <span class="text">{description}</span></td>\r\n </tr>\r\n <tr>\r\n <td><span class="title2">Personal Message</span><br>\r\n <span class="text">{user_message}\r\n </span><br>\r\n <br>\r\n<span class="text">Thanks,</span><br> \r\n<span class="text">{website_title}</span></td>\r\n </tr>\r\n <tr>\r\n <td bgcolor="#0099cc">copyrights {date_year} {website_title}</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>', '');
|
||||
|
|
|
@ -540,6 +540,30 @@ class myquery {
|
|||
|
||||
//Now Finally Sending Email
|
||||
cbmail(array('to'=>$own_details,'from'=>WEBSITE_EMAIL,'subject'=>$subj,'content'=>$msg));
|
||||
|
||||
if($reply_to!=0){
|
||||
|
||||
$tpl = $cbemail->get_template('user_reply_email');
|
||||
|
||||
$more_var = array
|
||||
('{username}' => $username,
|
||||
'{fullname}' => $fullname,
|
||||
'{obj_link}' => $obj_link.'#comment_'.$cid,
|
||||
'{comment}' => $comment,
|
||||
'{obj}' => get_obj_type($type)
|
||||
);
|
||||
if(!is_array($var))
|
||||
$var = array();
|
||||
$var = array_merge($more_var,$var);
|
||||
$subj = $cbemail->replace($tpl['email_template_subject'],$var);
|
||||
$msg = nl2br($cbemail->replace($tpl['email_template'],$var));
|
||||
|
||||
|
||||
$cd = $this->get_comment($reply_to);
|
||||
$replying_to_email = $cd['email'];
|
||||
cbmail(array('to'=>$replying_to_email,'from'=>WEBSITE_EMAIL,'subject'=>$subj,'content'=>$msg));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Adding Video Feed
|
||||
|
|
Loading…
Add table
Reference in a new issue