MN Forum
How to create a cron time of one week and 15 days? - Printable Version

+- MN Forum (http://forum.mn-shop.com)
+-- Forum: Products (http://forum.mn-shop.com/forum-products.html)
+--- Forum: Ask a Question (http://forum.mn-shop.com/forum-ask-a-question.html)
+--- Thread: How to create a cron time of one week and 15 days? (/thread-how-to-create-a-cron-time-of-one-week-and-15-days.html)



How to create a cron time of one week and 15 days? - graphic - 06-23-2016

Hello
I wanted to create a cron time of "one week" and "15 days" in cron.php
Thanks for your help


RE: How to create a cron time of one week and 15 days? - Breaker - 06-23-2016

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.


RE: How to create a cron time of one week and 15 days? - graphic - 06-23-2016

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



RE: How to create a cron time of one week and 15 days? - Breaker - 06-26-2016

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.


RE: How to create a cron time of one week and 15 days? - graphic - 06-26-2016

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