Email to Admin on Story Submission

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2008, 01:56 AM
wnw's Avatar
wnw wnw is offline
Casual Pligger
Pligg Version: 9.9.5
Pligg Template: Wnw
 
Join Date: Dec 2007
Posts: 55
Hi,

I was looking for a MOD which can send an email to the admin whenever there is a news or story posted on a website......

Are we having any such kind of MOD......any information or news will be highly
appreciated............

Please,...

Whatnwhen
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 12:49 AM
wnw's Avatar
wnw wnw is offline
Casual Pligger
Pligg Version: 9.9.5
Pligg Template: Wnw
 
Join Date: Dec 2007
Posts: 55
No one is ready to help...have I asked something against the forum guidelines.....please...I need some help
Reply With Quote
  #3 (permalink)  
Old 03-14-2008, 04:21 AM
catchpen's Avatar
Pligg Donor/Coder
 
Join Date: Feb 2008
Posts: 185
Not sure if this would work but try this.
RSSFWD - RSS Straight into your email inbox. A service by Blue Sky Factory.

put in http://yoursite.com/rss/queued for the feed
Reply With Quote
  #4 (permalink)  
Old 03-14-2008, 04:26 AM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 399
this may be what you want
http://forums.pligg.com/core-develop...submitted.html

google loves pligg
Reply With Quote
  #5 (permalink)  
Old 03-15-2008, 12:40 PM
wnw's Avatar
wnw wnw is offline
Casual Pligger
Pligg Version: 9.9.5
Pligg Template: Wnw
 
Join Date: Dec 2007
Posts: 55
No...that solution is different.....please help me...
Reply With Quote
  #6 (permalink)  
Old 03-15-2008, 03:24 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Quote:
Originally Posted by wnw View Post
No...that solution is different.....please help me...
Open /submit.php and look for function do_submit3().
Add the following code right before the header("Location: " . getmyurl('upcoming')); within this function

Code:
$thisauthor = $db->get_var("SELECT user_login FROM " .table_users ." WHERE user_id = $linkres->author;");
  $subject= 'You have a new story: "' . $linkres->title . '"';
 $message = "The following user '". $thisauthor  . "' submitted a new story '" . $linkres->title . "'" . "\r\n\r\nHere is the link to the story: " . my_base_url . my_pligg_base . "/story.php?title=". $linkres->title_url;
  $headers = "From: admin@yoursite.com"  . "\r\nReply-To:admin@yoursite.com " . "\r\nX-Priority: 1\r\n";
 $to="admin@yoursite.com";
 @mail($to, $subject, $message, $headers);
I tried it and it worked.

Last edited by redwine; 07-24-2008 at 10:08 AM.
Reply With Quote
  #7 (permalink)  
Old 03-16-2008, 02:25 AM
wnw's Avatar
wnw wnw is offline
Casual Pligger
Pligg Version: 9.9.5
Pligg Template: Wnw
 
Join Date: Dec 2007
Posts: 55
You the best...I will give it a shot..........

Thanks Man.......
Reply With Quote
  #8 (permalink)  
Old 04-03-2008, 04:20 PM
New Pligger
 
Join Date: Sep 2007
Posts: 29
redwine, you're my hero today...

I was just about to change the whole application process to require my approval. But this will serve VERY well to alert me to negative posts (some idiot posted an adult link, and my google gadget picked it up)..
Reply With Quote
  #9 (permalink)  
Old 07-23-2008, 04:14 AM
Pligg Donor
 
Join Date: Mar 2007
Posts: 50
Quote:
Originally Posted by redwine View Post
Open /submit.php and look for function do_submit3().
Add the following code right before the header("Location: " . getmyurl('upcoming')); within this function

Code:
$thisauthor = $db->get_var("SELECT user_login FROM " .table_users ." WHERE user_id = $linkres->author;");
  $subject= 'You have a new story ' . $link->title;
 $message = "The following user '". $thisauthor  . "' submitted a new story '" . $linkres->title . "'";
  $headers = "From: admin@yoursite.com"  . "\r\nReply-To:admin@yoursite.com " . "\r\nX-Priority: 1\r\n";
 $to="admin@yoursite.com";
 @mail($to, $subject, $message, $headers);
I tried it and it worked.
Thanks for the code.. Works well. I have been wracking my brains to figure out how to include the URL as well. After 2 cokes and the clock readin 2am. It is time to ask the higher powers.

Does anyone know how to mod this mod so that the email includes the URL?
Thanks! and goodnight......
Reply With Quote
  #10 (permalink)  
Old 07-23-2008, 12:09 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Quote:
Originally Posted by lumpen5 View Post
Thanks for the code.. Works well. I have been wracking my brains to figure out how to include the URL as well. After 2 cokes and the clock readin 2am. It is time to ask the higher powers.

Does anyone know how to mod this mod so that the email includes the URL?
Thanks! and goodnight......
This is a modified code to include the link to the story in the email:
Code:
$thisauthor = $db->get_var("SELECT user_login FROM " .table_users ." WHERE user_id = $linkres->author;");
  $subject= 'You have a new story: "' . $linkres->title . '"';
 $message = "The following user '". $thisauthor  . "' submitted a new story '" . $linkres->title . "'" . "\r\n\r\nHere is the link to the story: " . my_base_url . my_pligg_base . "/story.php?title=". $linkres->title_url;
  $headers = "From: admin@yoursite.com"  . "\r\nReply-To:admin@yoursite.com " . "\r\nX-Priority: 1\r\n";
 $to="admin@yoursite.com";
 @mail($to, $subject, $message, $headers);

Last edited by redwine; 07-24-2008 at 09:05 AM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Story Admin Email Moderation Yankidank Modules for Sale 13 02-06-2012 07:56 AM
How to admin email address from password@pligg.com??? casjam Questions and Comments 20 07-13-2010 04:20 PM
Admin Panel for 1.0 and above mismeflight Wiki Articles 0 03-04-2009 11:04 AM
Story Submission and More... selym Questions and Comments 2 09-08-2007 02:27 AM
streamline story submission workflow cryptkeeper Questions and Comments 0 01-12-2006 04:28 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development