×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [fix] disable user notification when comment delet

[fix] disable user notification when comment delet 16 years 1 month ago #659

  • carsten888
  • carsten888's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Thank you received: 32
here is how to disable user notification when a comment gets deleted.

joomlacomment 3.26
file:
administrator/components/com_comment/admin.comment.php
line:
1067
if (mosGetParam( $_REQUEST, 'confirm_notify', 0 )) {
	    $notification = new JOSC_notification($config);
	    $sentemail = $notification->notifyComments($cids, 'delete');
    	mosRedirect("index2.php?option=$option", $sentemail ? (_JOOMLACOMMENT_ADMIN_NOTIFY_SENT_TO.$sentemail):_JOOMLACOMMENT_ADMIN_NOTIFY_NOT_SENT);
	}
replace with (simply comment out):
/*
	if (mosGetParam( $_REQUEST, 'confirm_notify', 0 )) {
	    $notification = new JOSC_notification($config);
	    $sentemail = $notification->notifyComments($cids, 'delete');
    	mosRedirect("index2.php?option=$option", $sentemail ? (_JOOMLACOMMENT_ADMIN_NOTIFY_SENT_TO.$sentemail):_JOOMLACOMMENT_ADMIN_NOTIFY_NOT_SENT);
	}
	*/

I hope that helps someone.

:laugh:
  • Page:
  • 1
Time to create page: 0.126 seconds