1. Hack send notification when a new complaint

Hack send notification when a new complaint

  |   5
Hack send notification when a new complaint


This hack is for sending notification to site admin whenever there is complaint was added and filed to report anything within your website, the notification will be sent by email to site admin (primary admin), easy to install and work effectively, use only if you want the notification to be sent to you to remind you in case you forgot to login to admin cp and check them (please note, this hack only works with DLE versions that have "Complaint Module" build-in)

Installation:

Open file /engine/ajax/complaint.php

Search for:
echo  "ok" ;

Add after
include_once ENGINE_DIR.'/classes/mail.class.php';
$mail = new dle_mail ($config);
$amail="your@mail.com"; # <= Put your mail here
$mail->send ($amail, "Report!", "{$member_id['name']} Report content...\n\n{$text}");


Source of article
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+11

Comments 5

MisterCaca
MisterCaca
Members
Commented By MisterCaca on August 6, 2013 (1:03 pm)
Hi

Any module to alert the use that the complaint was closed?

Thanks
N/A 18Forum topics : 25Forum replies : 86Forum likes : 1
spamhater
spamhater
DLE TEAM
Commented By spamhater on August 6, 2013 (8:37 pm)
no, because complaint doesn't use automated system if anyone view or fix the articles, they are completely different layer, why don't you just click send PM within complaint module to let user know that it was fixed. because there is not automated module
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
MisterCaca
MisterCaca
Members
Commented By MisterCaca on August 7, 2013 (5:52 am)
Quote: spamhater
no, because complaint doesn't use automated system if anyone view or fix the articles, they are completely different layer, why don't you just click send PM within complaint module to let user know that it was fixed. because there is not automated module


Ok spamhater, thanks!
N/A 18Forum topics : 25Forum replies : 86Forum likes : 1
onchannel
onchannel
V.I.P.
Commented By onchannel on October 19, 2014 (10:33 am)
Spamhater,

Can u please help me on a issue i have with DLE 10.2 . When i use the feedback option it shows me that the message was sent but there is nothing in the amdin panel. can u please help me?
N/A 84Forum topics : 8Forum replies : 14Forum likes : 0

full movies
yorismith
yorismith
Moderators
Commented By yorismith on October 19, 2014 (5:05 pm)
you don't need this hack if you are using any dle 10.x versions, the notification system and notification is already included, remove this hack and enable it in admin cp system setting.
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.