Ali Majrashi Posted February 26, 2014 Share Posted February 26, 2014 hi, Tasks in ip.board is limited to application based use it will be more helpful if we can create Tasks and insert the code in the admin CP and when the Tasks run it will run the code and log it this will make it easy if i just got clean up task or calculation that done on daily base but there is no need to create full application for it :smile: Link to comment Share on other sites More sharing options...
rct2·com Posted February 26, 2014 Share Posted February 26, 2014 I don't understand your issue. As long as you put your PHP file in the correct place, it will run when you schedule it to run. I *think* the point of linking it to an application, is that the task only gets checked to see if it should run when that 'application' is loaded by a visitor. So if it is a general housekeeping task, link it to the 'System' application and place the PHP file in the correct folder. If you want it to be forced to run, you can add it to CRON so it's scheduled by the operating system, rather than being triggered by visitor activity. Link to comment Share on other sites More sharing options...
Aiwa Posted February 26, 2014 Share Posted February 26, 2014 What rct2.com said. You can create your own task and 'piggy-back' off core / system. Both of the mods in my signature piggy-back off of the 'Members' application for their tasks that update the cache. It doesn't require any file edits, just ensure your custom task file is located in the correct /{application}/tasks folder. Link to comment Share on other sites More sharing options...
Ali Majrashi Posted February 26, 2014 Author Share Posted February 26, 2014 nice i did not know that. i was asuming it's only option if you creat your app. i think the dev doc need more attention Link to comment Share on other sites More sharing options...
Mark Posted February 28, 2014 Share Posted February 28, 2014 In 4.0, plugins (hooks) can have tasks - you could even make a plugin which is only a task. Link to comment Share on other sites More sharing options...
Ali Majrashi Posted March 1, 2014 Author Share Posted March 1, 2014 In 4.0, plugins (hooks) can have tasks - you could even make a plugin which is only a task. Wow nice Love the idea Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.