sending message when comment is posted.

Patrik,

Is is possible to add an option to send a message when someone has placed a comment on a picture?

Joep

sending notification when comment is posted

Is is possible to add an option to send a message when someone has placed a comment on a picture?
Jim
photoman

email notification of comments

I wanted this same feature so added a bit of code to the main.php file to do this. Its crude but at least I get to know when a comment is posted.

This is the code; Just replace your email address.

/* email the admin when a comment is posted */
$to = "you@yourdomain.com";
$subject = "New comment posted.";
$message = "A new comment has been posted and is waiting for your approval";
$from = "you@yourdomain.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
/* ------------------------------------------ */

I added this code right here which is inside the function generate_image_view

if($var3=="save_comment"){
$security_checked=true;
if($pa_setup["antispam_code_enabled"]=="true"){
$rec=db_select_all("anti_spam_codes","pic_seq==".$_POST["p_code_seq"]);
if($rec[0]["code"]==$_POST["p_code_enter"]){
$security_checked=true;
}else{
$security_checked=false;
}
db_delete("anti_spam_codes","pic_seq==".$_POST["p_code_seq"]);
}
if($security_checked){
update_stats("imageview",$var1,"comment","add");
if(isset($_POST['p_text'])){
if(strlen($_POST['p_name'])==0){
$p_name="Anonymous";
}else{
$p_name=$_POST['p_name'];
}
if( isset($_POST['p_name']))setcookie("comment_name",$_POST['p_name'],time()+60*60*24*365);
if( isset($_POST['p_email']))setcookie("comment_email",$_POST['p_email'],time()+60*60*24*365);
save_comment($var1,$_POST['p_text'],$p_name,$_POST['p_email'],time());

/* email the admin when a comment is posted */
$to = "you@yourdomain.com";
$subject = "New comment posted.";
$message = "A new comment has been posted and is waiting for your approval";
$from = "you@yourdomain.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
/* ------------------------------------------ */

}
}
}

I hope this helps.

Gerald

Using PHPAlbum on www.gjwimages.com

Does this code work on

Does this code work on Facebook Fan Page? I want to get email notifications when someone posts a comment on my wall. Where do I need to put this code?

/* email the admin when a comment is posted */
$to = "you@yourdomain.com";
$subject = "New comment posted.";
$message = "A new comment has been posted and is waiting for your approval";
$from = "you@yourdomain.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
/* ------------------------------------------ */

email notification upon photo comments

Hi I had previously requested the email notification upon people making comments on our photos???

It has been 25 plus weeks and have not heard a thing...so I hope you have a chance to look into this, meanwhile our website is using other software...
Thanks anyhow...guess you are so busy with more important requests and fixes.

unfortunately php mail

unfortunately php mail function not working on many hostings...

cheap tiffany rings

cheap tiffany rings considering shopping for a brand new residence, keep in mind the most productive houseson the market in Cape Coral. as a result of the Floridan actual estate bubble burst and the declining market resulting in foreclosures, several houses are currently obtainable and most efficientof all, reasonable.Sun-soaked Cape Coral, Florida gifts an approach to life for everyone, from the very youthful to headlden-agers. Located on SW Florida's Gulf Coast, it has gloriousclimatic conditions year round, with warm and calm waters. the just about constant sunshine is perfect for northerners wanting escape from harsh cold climatic conditions. tiffany rings for women Close-by surrounding beaches are one of the maximumfinest on the earth. this is a paradise tiffany rings on sale miles of canals, plus lakes and the meandering Caloosahatchie River, featuring marinas, boat ramps and water parks. if it is fishing, sailing or boating, residing in Cape Coral is like experiencing a soothing, tropical holidaythat goes on and on.Lake Kennedy in Cape Coral is the site of the Senior Center, offering activities for parents over 50 with a team committed to life enhancing programs, this type ofs day outs, special events and a wide number of sophisticationes. this is also the location of Sun Splash Family Waterpark, that is geared for the more youthful crowd and so delightfulwhen relatives and friends preventby.cheap tiffany rings sale Yacht and Racquetball Club has been a primestick within the Cape. It includes a tiffany rings for men be able to fish and take a look on probably the maximumimpressive sunsets imaginable. The riverfront beach is analogous to the sea beach with sand and an interesting view that extendes for miles. it's glorioussince you don't need to travel very far to have the benefit of basking within the sun tiffany necklace.

Brand Coach Purses Outlet

Brand Coach Purses Outlet are one of the best handbags series in the market for females nowadays. The Coach Factory Outlet series do make ladies become more charming and outstanding if they choose the most suitable one, which could be used in a variety of occasions. Coach Factory Online female will be the actuality the fact Coach Outlet Online that long-term history of Coach Outlet Online. No just one could deny the big accomplishment that Coach Factory made all through our existence Coach outlet onlineand will operate Coach Outlet Online accomplishment toward future. We all know Coach Outlet has the great excellent as nicely as one of Coach Factory Outlet the most great factors they choose. Of Coach Outlet instruction program this just one is worth to individual Coach handbags outlet with very good good quality and awesome craftsmanship cheap coach purses. Coach Factory New Arrivals are cozy products Coach Factory Online that occur to be fashionable Coach Factory Outlet, fashionable and definitely Coach Factory Outlet Online practical. You can begin Coach Outlet Canada searching during the craze of Coach Outlet New Arrivals and Coach Factory carrying them is your individual character Coach Factory Online and style. They Coach Factory Outlet may be utilized to fixture Coach Factory Online with diverse outfits Cheap Coach Purses definitely. It might be Discount Coach Handbags the softness inside of the leather discount coach purses, the security inside of Coach Outlet Online the lock closure Coach Factory Online, as correctly Coach Factory Outlet Online since the distinctive Coach Factory sort that provides Coach Outlet Online about a woman to adore Coach Outlet Store Online New Arrivals. However, for Cheap Coach handbags just about any one, you can go to Coach Factory Outlet Online
over the internet shop to acquire for the variety, Coach Factory diversity and minimal price Coach Factory Canada. Coach Shoulder Bags developed of totally different elements are well-known as correctly since the leaders. Because Coach Factory Outlet
over the Coach Factory Outlet Online is so attainable due to Coach Purses Outlet the fact of its decrease prices Coach Outlet Store Online, it has turn into among the most well-known Coach Factory Online to date Coach Outlet Online Store.

hi

yhjuvuibioniop

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">