MyBB-Plugins Forums
How to show progress for a long moderation script - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: How to show progress for a long moderation script (/Thread-How-to-show-progress-for-a-long-moderation-script)



How to show progress for a long moderation script - burraak - 07-07-2014

I'm developing a moderation plugin

The script (which has to execute many subscripts) will take some or maybe a lot of time to complete and I want to show some progress to user How can I do this ... ???

Currently after hitting GO ,page lands on moderation.php which displays a short completion message and rediercts within seconds
I would like to display progress along with a report at this page and I don't want that page automatically redirects.

What is displayed

[Image: 2rf9cm0.jpg]

What I want

[Image: nyixch.jpg]

Actually I'm just a novice into mybb development

Huh


RE: How to show progress for a long moderation script - Diogo Parrinha - 07-07-2014

A way of doing it is by doing each step through an AJAX call. Then for each call completed, you display the result as "Completed".


RE: How to show progress for a long moderation script - burraak - 07-09-2014

(07-07-2014, 07:36 PM)Pirata Nervo Wrote: A way of doing it is by doing each step through an AJAX call. Then for each call completed, you display the result as "Completed".

Thanks, yeah I'm trying to do it right now........