MN Forum

Full Version: How to create a cron time of one week and 15 days?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
I wanted to create a cron time of "one week" and "15 days" in cron.php
Thanks for your help
Hello graphic,

Here are the steps:
  • Go to: system/cron/times
  • Create a new file called, week_cron.php, chmod the file 0777, go to http://www.unixtimestamp.com/ create time stamp from now into a week.
  • Enter into week_cron.php:
    PHP Code:
    Hidden content for guests 
    , save it.
  • Go to: /system/cron and OPEN: cron.php
  • Before
    PHP Code:
    Hidden content for guests 
    add the following:
    PHP Code:
    Hidden content for guests 
    , Save the file.



I think you can start from here.

Have a nice day.
I don't say in which mode i have to compile for 7 days and for 15 days the fields on the website unixtimestamp... if i insert only the number 7 into the field DD give me an error on the month... Sad

(06-23-2016, 04:59 PM)Breaker Wrote: [ -> ]Hidden content for guests
As i can see you dont know very well the PHP language.

Add this code:
PHP Code:
Hidden content for guests 

This will generate your timestamp that you need.
Help me...
I want make inactive all pages of the users after 7 days of inactivity of the users. I have tried but i'm not expert of php... Sad
Can you explain me which code i have to insert and in what files?

(06-26-2016, 01:18 AM)Breaker Wrote: [ -> ]Hidden content for guests