Posts: 39
Threads: 7
Joined: Oct 2012
Hello,
If I want delete, for exemple the comments older than 1 year, is there a task for that ?
I dont know well SQL so its not possible for me to create a SQL request.
With thanks
Eric
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hi,
Upload these two files into your /comments/includes/tasks/ folder.
- The tasks.php file will overwrite the existing file.
- The delete_comments.php is a new file.
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
(29-Nov-2012, 05:37 PM)Steven Wrote: Hi,
Upload these two files into your /comments/includes/tasks/ folder.
- The tasks.php file will overwrite the existing file.
- The delete_comments.php is a new file.
Hi Steven,
Thanks a lot for your help
I made but the task for delete comments dont appear in the tasks admin !
Regards
Eric
Posts: 2,894
Threads: 59
Joined: Jun 2010
That's normal. I didn't write it to appear in the admin panel. That would require a lot more code.
To change the days, open delete_comments.php and on line 50 change "365" to whatever you like.
To 'disable' the task, just remove the delete_comments.php file and revert the tasks.php to its original file.
I'll add this task in the next version of Commentics so it will be in the admin panel then.
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
(29-Nov-2012, 07:59 PM)Steven Wrote: That's normal. I didn't write it to appear in the admin panel. That would require a lot more code.
To change the days, open delete_comments.php and on line 50 change "365" to whatever you like.
To 'disable' the task, just remove the delete_comments.php file and revert the tasks.php to its original file.
I'll add this task in the next version of Commentics so it will be in the admin panel then.
Ah ok,
Is it an automatic task or I need start it ?
Posts: 39
Threads: 7
Joined: Oct 2012
(29-Nov-2012, 07:59 PM)Steven Wrote: That's normal. I didn't write it to appear in the admin panel. That would require a lot more code.
To change the days, open delete_comments.php and on line 50 change "365" to whatever you like.
To 'disable' the task, just remove the delete_comments.php file and revert the tasks.php to its original file.
I'll add this task in the next version of Commentics so it will be in the admin panel then.
I want only to know how I start this task ? Only when I need ? And which specific url adress I need enter to start this task ?
Sorry but I am hesitating !
Posts: 2,894
Threads: 59
Joined: Jun 2010
It's an automatic task. You don't need to start it.
The task loads each time that a visitor views any of your pages.
Some more info here:
http://www.commentics.org/support/knowle...article=31
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
(29-Nov-2012, 09:10 PM)Steven Wrote: It's an automatic task. You don't need to start it.
The task loads each time that a visitor views any of your pages.
Some more info here:
http://www.commentics.org/support/knowle...article=31
Super, thats great !
Thank you very much Steven