MyBB Community Forums

Full Version: Enable Task Manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

In the process of upgrading a 1.4 installation to 1.6 but can't get Task Manager to automatically process tasks as expected.

System Health always shows the next 3 tasks to be run as *really* old dates

Mass Mail 2009-09-30, 09:25
Half-hourly User Cleanup 2009-09-30, 09:30
Hourly Cleanup 2009-09-30, 10:00

I've been trying to get this to run in connection with the Promotions script - see http://community.mybb.com/thread-55904-p...#pid573205 for settings etc.

AFAIK the Task Manager has never worked properly - can anyone advise?

Thanks,
olly
I assume when you manually run a task it doesn't reset the dates??
I've just manually ran all tasks and the Next 3 is now showing sensible data i.e. Promotions due at 13:30 - should actually be 14:20 but that's another problem...

Just passed 13/14:20 though and the Next 3 haven't changed:

Promotion System 2010-09-14, 13:20
Run the Spammer Script 2010-09-14, 13:20
Mass Mail 2010-09-14, 13:25

Existing Database Backups
Name Backup Time
backup_633ec01a1aTNUcs7aXocKYmaDFpXZ7OyQ2EdsrEHrI4XjFDlCdVswHeIj3DGyCJS.sql.gz 2010-09-14, 14:19
backup_0d90e5d7b2N4HmHkQjsodzvQGQk97JhxV4f1FBc1wweGgqXE9LSvW7cTOH6Owei6.sql.gz 2010-09-06, 11:22
It'll only run if someone's visiting your forum. Also make sure you've got this in your footer template: {$task_image}
I'm working off a staging forum so there is only one visitor i.e. me - is this ok?
Had a look at the template and it's not listed - where should I add? (just added before last div)

What's with the time difference anway and how do I fix?

Thanks for the excellent responses!
If you're not actually visiting the forum itself (as opposed to the ACP) it won't trigger the tasks. Although the cause here will be that code not being in the template, without that there's nothing to trigger the tasks even when you do visit. If you put it just before {$auto_dst_detection} it'll be OK; by default, this is the footer template:

			<br />
			<div class="bottommenu">
				<div class="float_right">{$lang_select}</div>
				<div>
					<span class="smalltext"><a href="{$mybb->settings['contactlink']}">{$lang->bottomlinks_contactus}</a> | <a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a> | <a href="#top">{$lang->bottomlinks_returntop}</a> | <a href="#content">{$lang->bottomlinks_returncontent}</a> | <a href="<archive_url>">{$lang->bottomlinks_litemode}</a> | <a href="{$mybb->settings['bburl']}/misc.php?action=syndication">{$lang->bottomlinks_syndication}</a></span>
				</div>
			</div>
			</div>
		<hr class="hidden" />
			<div id="copyright">
				<div id="debug"><debugstuff></div>
				<!-- MyBB is free software developed and maintained by a volunteer community. 
					 It would be much appreciated by the MyBB Group if you left the full copyright and "powered by" notice intact, 
					 to show your support for MyBB.  If you choose to remove or modify the copyright below, 
					 you may be refused support on the MyBB Community Forums.
					 
					 This is free software, support us and we'll support you. -->
{$lang->powered_by} <a href="http://mybb.com/" target="_blank">MyBB{$mybbversion}</a>, &copy; 2002-{$copy_year} <a href="http://mybb.com/" target="_blank">MyBB Group</a>.<br />
				<!-- End powered by -->
				<br />
<br class="clear" />
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->
{$auto_dst_detection}
		</div>
		</div>

When this is sorted, we'll see what the times do.
That's worked - tasks seem to be working fine now.

Was also missing the dst code too so have added this and now seems to be working - went back and changed my User CP to GMT with auto-detect and it gets time right (which it didn't before). Time displayed for Next 3 Tasks is still showing one hour behind though...

Also, there's shading underneath my footer menu which wasn't there before - here's the full template:

<br />
			<div class="bottommenu"><span class="smalltext"><a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a> | <a href="http://news.linn.co.uk">News</a> | <a href="http://blogs.linn.co.uk">Blogs</a> | <a href="http://docs.linn.co.uk">Docs</a> | <a href="http://www.linnrecords.com">Records</a> | <a href="{$mybb->settings['bburl']}/member.php?action=register">Terms of Usage</a> | <a href="{$mybb->settings['contactlink']}">{$lang->bottomlinks_contactus}</a> | <a href="#top">{$lang->bottomlinks_returntop}</a> | <a href="<archive_url>">{$lang->bottomlinks_litemode}</a> | <a href="{$mybb->settings['bburl']}/misc.php?action=syndication">{$lang->bottomlinks_syndication}</a></span>
			</div>
			</div>
		</div>
		<hr class="hidden" />
			<div id="copyright">
                        <div id="debug"><debugstuff></div>
				<!-- You may NOT remove, modify or hinder the visibility of the MyBB copyright at any time.
				     It must contain the links to the MyBB website and be formatted appropriately.

					 Failure to comply with the above will result in prosecution to the full extent of the law.
					 This is free software, support us and we'll support you. -->
{$lang->powered_by} <a href="http://www.mybboard.net" target="_blank">MyBB</a>, {$mybbversion}
				{$lang->copyright} &copy; 2002-{$copy_year} <strong><a href="http://www.mybboard.net" target="_blank">MyBB Group</a></strong>
				<!-- End copyright -->
<br />
<br class="clear" />
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->
{$auto_dst_detection}
        </div>
        </div>

Any ideas?

Thanks for your help - I inherited this forum admin and the template was obviously never correct
Can you provide a screenshot or a link to your forum?
(2010-09-14, 04:50 PM)MarkusK Wrote: [ -> ]Can you provide a screenshot or a link to your forum?

Sure - here you go:
If you've not intentionally edited your footer template, go to edit it again but click Options > Revert to Original, see what it looks like then.
Pages: 1 2