MyBB Community Forums

Full Version: 3rd Source Task Running
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
By "3rd Source" I mean from outside the forum...

Basically, I have tasks setup to run on the forum to do a variety of things, as we probably all do. Although, I block access to the forum to 90% of the users as it's mainly used as a CMS, so the tasks don't get run nearly as much as I would like them too.

I've tried adding in the code myBB uses to run the tasks (the hidden image), and placed/updated the code to the main index of the site, but it doesn't seem to work.

Does anyone have any ideas on how to get this running?...
Can you use a cron instead?
Without upsetting the IT department, no lol...

I've found that the "hidden image" myBB uses doesn't seem to have any effect whatsoever in circumstances like this, although if you call the script (task.php) directly in the browser all the tasks run OK.

So I just made a function in global.php - I have this included in the site - that randomly calls task.php. All works OK Smile
You'd have to add a database record under the mybb_tasks table (or Via the Admin CP Interface)