Main menu
Home
News
News from Alphaplug
Download
Forum
Support us
Search
Links
Demo site
Contact
Invite a friend
Joomlastreets News
Sign-up





Lost Password?
No account yet? Register

If you find my free stuff useful, why not leave me a little something with PayPal.

Donations are greatly appreciated, and help with the costs of providing FREE Joomla! addons.




Welcome, Guest
Please Login or Register.    Lost Password?

blog owner email notification
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: blog owner email notification
#3838
blog owner email notification 3 Years, 10 Months ago Karma: 0
Hi,

it would be very great, if the author of a content is going to be informed of new comments by email automatically. This could be an essential function especially for community sites using mxcoment. So owner of contents would return to the site and communication between owner and guests or other registered users will increase.

Thank You!
artmovement
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3962
Re:blog owner email notification 3 Years, 10 Months ago Karma: 0
Hi Artmovement,

I really agree with you here. I've only realised recently as the commenting activity on my site has increased that the original author doesn't get notified.

It's a little disappointing in an otherwise great component.

Does anybody know if there are any hacks to solve this??

Dan
DanDigital
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3983
Re:blog owner email notification 3 Years, 10 Months ago Karma: 0
Agreed, this would be a much improved feature
numb_scot
Senior Boarder
Posts: 44
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4772
Re:blog owner email notification 2 Years, 12 Months ago Karma: 0
Has anyone figured out a way to do this?
jmelton98
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4775
Re:blog owner email notification 2 Years, 11 Months ago Karma: 0
Here is a hack to send and email to the article author when an new comment is posted.

1) Go to components/com_maxcomment and open 'maxcomment.php'
2) Find the second orrurance of '// Send notify to admin mail' - should be down around line 649
3) Once you find it, go down another 14 or 15 rows until you find
Code:


'$success = mosMail( $mosConfig_mailfrom, $mosConfig_sitename, $mxc_notify_email, $subject, $mailtext, 1 );'



4) Paste after the line above, but before the '}':

Code:


// Send notify to author mail
$query = "SELECT DISTINCT u.email, c.title"
."\nFROM #__mxc_comments"
."\nLEFT JOIN #__content as c"
."\nON contentid = c.id"
."\nLEFT JOIN #__users as u"
."\nON created_by = u.id"
."\nWHERE contentid = '$contentid'"
;

$database->setQuery( $query );
$rows = $database->loadObjectList();
if ( $rows ){
foreach ( $rows as $row ) {

$subject = sprintf( _MXC_AUTHORMAILSUBJECT );
$subject = stripslashes( $subject );
$mailtext = stripslashes( _MXC_AUTHORMAIL ) . "<b>" . $row->title . "</b>:"; 
$mailtext .= "<br /><br /><b>" . _MXC_COMMENTAUTHOR . "</b>: " . htmlspecialchars( $name, ENT_QUOTES ) . "<br />";
$mailtext .= "<b>" . _MXC_TITLE . "</b>: " . htmlspecialchars( $title, ENT_QUOTES ) . "<br />";
$mailtext .= "<b>" ._MXC_COMMENT . "</b>: " . htmlspecialchars( $comment, ENT_QUOTES );
$mailtext .= "<br /><br />" ._MXC_COMMENTTHREAD . "<br />" . "<a href=\"" . $articlelink . "\">" . $articlelink . "</a><br /><br />";
$mailtext .= _MXC_THANKS . "<br />" . _MXC_SIGNTURE . "<br /><br /><br />";
$mailtext .= stripslashes(_MXC_AUTHORMAILFOOTER);
$success = mosMail( $mosConfig_mailfrom, $mosConfig_sitename, $row->email, $subject, $mailtext, 1 );
}
}




5) Save file

6) Go to administrator/components/com_maxcomment/languages and open 'english.php'
7) Go to the bottom and before the '?>' add:

Code:


// Author Email
DEFINE("_MXC_AUTHORMAILSUBJECT","You have received a new comment on your document");
DEFINE("_MXC_AUTHORMAIL","You have received a new comment on -- ");
DEFINE("_MXC_COMMENTAUTHOR","User");
DEFINE("_MXC_COMMENTTHREAD","To see the comment thread, follow the link below:");
DEFINE("_MXC_THANKS","Thanks,");
DEFINE("_MXC_SIGNTURE","Website Team");
DEFINE("_MXC_AUTHORMAILFOOTER","Do not reply. This message was automatically generated");



8) Save File

This hack is tied in with the admin email notification and is turn on and off by the admin email setting. Hopefully, this functionality can be optimized and improved in the next release.

Thanks for the great comment component!
jmelton98
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/15 19:58 By jmelton98.
The administrator has disabled public write access.
 
Go to topPage: 1