This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Task: Delete Comments
#1

Hi! Can I set exact time for deleting comments in tasks section? Need to delete all comments every day at 2 a.m.
Reply
#2

In /system/library/task.php, find this:
PHP Code:
<?php 
$last_task
= $this->setting->get('last_task');

Before it, add this:
PHP Code:
<?php 
/* If the current hour isn't 2am */
if (date('G') != 2) {
    return; // go back
}

I'd suggest then adding a cron job for 2am to call the URL of one of the pages that you've integrated Commentics on.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
10-Jan-2017, 12:56 PM
Last Post by Steven
17-Nov-2016, 09:32 PM
Last Post by Steven
14-Aug-2013, 04:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)