Scheduled Tasks
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.
[Image: bannermybb.jpg]
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

Attached Files
.php   recount.php (Size: 2.84 KB / Downloads: 110)
Lex! What's up bud.

Nice file post too.
Thanks a lot, I hope that this works.
I allready post about this for 2 years.
[Image: bannermybb.jpg]
Thank you very much, LeX-. This is a very useful plugin.
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
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).
[Image: bannermybb.jpg]
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 ?

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.

Attached Files Thumbnail(s)
[Image: bannermybb.jpg]
10 USD (paypal)for the person who can repair this task so it works for me.
The task runs but nothing happens.
[Image: bannermybb.jpg]
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.

Attached Files
.php   recount.php (Size: 2.82 KB / Downloads: 92)
AFreeCloud - Free Cloud-Based Web Hosting!

Forum Jump:

Users browsing this thread: 1 Guest(s)