Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 26, 201410 yr 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:
February 26, 201410 yr 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.
February 26, 201410 yr 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.
February 26, 201410 yr Author 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
February 28, 201410 yr In 4.0, plugins (hooks) can have tasks - you could even make a plugin which is only a task.
March 1, 201410 yr Author In 4.0, plugins (hooks) can have tasks - you could even make a plugin which is only a task. Wow nice Love the idea
Archived
This topic is now archived and is closed to further replies.