MyBB Community Forums
Scheduled Tasks - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: Scheduled Tasks (/thread-57553.html)

Pages: 1 2


Scheduled Tasks - spinning - 2009-10-05

Because of an old an never ending problem with my forum I need hardly a Scheduled Tasks for recount and rebuild.
The problems based why I need this recount and rebuild task is that when post are deleted they only are visual deleted the counts are still there.
This gives lots of problems with visiting post from last posts, next page posts etc.
I regulary post about this but nobody will or can help.


RE: Scheduled Tasks - LeX- - 2009-10-05

Made this a few months ago;
Upload recount.php into ./inc/tasks/ and add a new task in your Task Manager.

/*
> Recount User Posts
> Recount Thread Counters
> Recount Forum Counters 
> Recount Statistics
*/



RE: Scheduled Tasks - labrocca - 2009-10-05

Lex! What's up bud.

Nice file post too.


RE: Scheduled Tasks - spinning - 2009-10-05

Thanks a lot, I hope that this works.
I allready post about this for 2 years.


RE: Scheduled Tasks - RateU - 2009-10-05

Thank you very much, LeX-. This is a very useful plugin.


RE: Scheduled Tasks - spinning - 2009-10-05

Sorry it did not work.

What I did.
1. upload the file to ./inc/tasks/
2. add a new task
3. choose the recount.php as task
4. by minutes I choose 29,59 (twice a hour)

And this gives no results.
In the task log is also no logfile.
So I run Run This Task Now and also no results (and logfile).


RE: Scheduled Tasks - LeX- - 2009-10-05

Once its ran; the task is locked for 15min;
Did you see this message when pressing the 'run task now'-image ?
"The selected task has been run successfully"

+ Did you enable logging when creating your task ?

[attachment=15599]


RE: Scheduled Tasks - spinning - 2009-10-05

Enable logging YES
Task Enabled YES

Time: Minutes 29,59
Time: Hours *
Time: Days of Month *

Quote:Did you see this message when pressing the 'run task now'-image ?
"The selected task has been run successfully"
Yes I get that message but there was nu results also not in the log file.

For the last 3 hours there was no recounts task.

When it works correctly the 32 post as showed in the attachment must be gone.
Maybe it do not work because mybb has some updates between the day that you made it and the last update.
But I hope you can help me with letting it works.


RE: Scheduled Tasks - spinning - 2010-01-03

10 USD (paypal)for the person who can repair this task so it works for me.
The task runs but nothing happens.


RE: Scheduled Tasks - KuJoe - 2010-01-03

Try changing the persmissions for the PHP file to make it executable by PHP (755 or 775 should work).
I just updated the PHP file to reflect the current recount_rebuild tool and tested it on my test forum and it runs without any errors.