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

Delete old comments
#1

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
Reply
#2

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.


Attached Files
.php tasks.php Size: 2.19 KB  Downloads: 11
.php delete_comments.php Size: 2.44 KB  Downloads: 12

Have you completed the interview?
Reply
#3

(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
Reply
#4

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?
Reply
#5

(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 ?
Reply
#6

(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 !
Reply
#7

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?
Reply
#8

(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
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
06-Aug-2021, 06:50 PM
Last Post by Steven
27-Jul-2021, 07:12 PM
Last Post by clixcity
29-Jul-2020, 07:56 PM
Last Post by Steven
09-Jul-2018, 08:40 PM
Last Post by vkp
22-May-2017, 04:28 AM
Last Post by Steven
01-Jan-2016, 12:26 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)