elgreco

Topic: Does the Report A Fake Post works?

How dows the mail spam function works?
does it works at all?

I dont receive any mail on my notify mailbox for the function in the postman:

Is there any explanation how it should work?

// Send mail to admin when someone posts a new spam word
    public function MailReportSpam($data)
    {
        $job_title = BASE_URL . 'job/' . $data['id'] . '/' . $data['url_title'] . '/';
        $subject = '[SPAM on ' . SITE_NAME . '] ' . $job_title;
        $msg .= "Following ad was reported as false/spam:\n--\n\n";
        $msg .= $job_title;
        $msg .= "\n\n" . $data['title'] . " at " . $data['company'];
        $msg .= "\n\n" . $data['description'];
        $msg .= "\n\n--- \n Published by: " . $data['poster_email'];
        $msg .= "\n---\nEdit: " . BASE_URL . "post/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\nDeactivate: " . BASE_URL . "deactivate/" . $data['id'] . "/" . $data['auth'] . "/";
        $msg .= "\n---\nIP: " . $_SERVER['REMOTE_ADDR'];
        $msg .= "\nDate: " . $data['created_on'];
       
        mail(NOTIFY_EMAIL, $subject, $msg, "From: " . SITE_NAME . " <" . NOTIFY_EMAIL . ">");
    }

evertsemeijn

Re: Does the Report A Fake Post works?

There is a treshold. I have tested it when developing the site and I think there must be 2 or more reports. But if you search the forum you can find more about it. No need to write a new post :S

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes

Chronos

Re: Does the Report A Fake Post works?

As evertsemeijn says, when a user clicks on the report-spam link at a specific job, this job either gets a 'bad-point', or if that jobs has a certain amount of these already the mail is send. I think this was about 3 or so.

Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

Tokyoj

Re: Does the Report A Fake Post works?

If you want to change the # of reports required before Admin gets a SPAM Report email, go to...

_includes/class.SpamReport.php

and on Line 15 find...

define('REPORT_POST_NOTIFY_ON', 2);

...change the #2 to whatever you want.

---------------
Tokyoj
"You can't build a reputation on what you're going to do." (Henry Ford)
"Insanity is doing the same thing over and over, expecting different results." (Albert Einstein)

elgreco

Re: Does the Report A Fake Post works?

great tips!

thanks to all who replyed!