![]() |
|
|
Mod Options |
vB AJAX Cron Details »»
|
|||||||||||||
This is such a small but useful mod that I decided to give it away free. This mod will replace your sheduled task image code at the bottom of your pages and run your sheduled tasks via an AJAX call. AJAX is asyncronous and offers true background running of sheduled tasks. This does not change anything with the actual tasks or the scripts that run them. It merely replaces the method that initiates the running of those scripts. There are no template edits of any kind. Simply upload the files to your forumhome directory and import the product xml file. This should work in any vb or custom script in any directory. Full support will only be given at vbmodder.com I will support it here as time permits. Enjoy Don't forget to click install if you use it. ****************************************** Do not use this with vb 3.5x! There is a difference in the cron table. The 3.5x version can be found here
Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| True Asynchronous Cron Jobs using Javascript [!AJAX]. No more hanging page loads. | Analogpoint | vBulletin 3.6 Add-ons | 69 | 04 Feb 2012 20:58 |
| [Not tested] vB-Cron invoked by server cron | Brad | vBulletin 3.0 Beta Releases | 6 | 25 Jul 2007 03:20 |
| vB AJAX Cron | Code Monkey | vBulletin 3.5 Add-ons | 12 | 19 Aug 2006 16:12 |
| Comments |
|
#2
|
||||
|
||||
|
Oops
first replay i will try it soon No members have liked this post.
|
|
#3
|
||||
|
||||
|
didn't really get what does the hack do ......
but thnx anyway .... :/ No members have liked this post.
|
|
#4
|
||||
|
||||
|
Originally Posted by ArabSQuad
Currently, when vb needs to run a sheduled task, it loads image code at the bottom of your forum page. Except it has a php file as the src of the img tag. This causes the php file to run which in turn runs the next scheduled task. This can, depending on the cron to run and the size of the site, cause a browser to seemingly hang until the script is finished running. This happens because this is a syncronous event. Meaning, it's waiting for the page to finish loading the image.
This mod replaces that with an asyncronous AJAX call to the cron script. The image code has served vb well but with the advent of AJAX type methods there is a cleaner way to do it. That's what this does.
__________________
Gaming Forums No members have liked this post.
Last edited by Code Monkey : 12 Aug 2006 at 05:32. |
|
#5
|
|||
|
|||
|
vBCron is run by a simple link to cron.php in an img tag. This link will activate cron and do updates, then output back to the img tags blank.gif. This mod eliminates that, and instead, uses AJAX processing to activate cron.
No members have liked this post.
|
|
#6
|
|||
|
|||
|
Great work, thanks!
![]() No members have liked this post.
|
|
#7
|
||||
|
||||
|
where upload ajax_cron.php ?
No members have liked this post.
|
|
#8
|
||||
|
||||
|
Originally Posted by bollie
Notice that it's in a directory called "upload_the_contents_of_this_directory_to_forumhome".
So just upload the contents of that, subdirectories intact, to your forumhome directory.
__________________
Gaming Forums No members have liked this post.
|
|
#9
|
||||
|
||||
|
Thx
![]() No members have liked this post.
|
|
#10
|
||||
|
||||
|
26 downloads and only 8 installs?
The button must be stuck! ![]()
__________________
Gaming Forums No members have liked this post.
|
|
#11
|
|||
|
|||
|
Installed but i didnt get what that mean " This works at vbModder.com with vba in a directory above forum home. Make sure you have your home and forumhome path info acp options filled in or it may not work on vba.
" thank you Regards, Mohamed Ashraf No members have liked this post.
|
|
#12
|
||||
|
||||
|
I dont understand?
Where is there any image used when using a cron? Crons are made to run automatic, aren't they?
__________________
http://www.nucia.nl/forum/ The best way to kill malware; is to kill it together. I love vBulletin http://www.vbulletin.org/forum/images/newsm/bunny.gif No members have liked this post.
|
|
#13
|
||||
|
||||
|
Thx - works great !
![]()
__________________
politikstube - die andere Politikcommunity Theologiestube.de - die andere Theologiecommunity No members have liked this post.
|
|
#14
|
||||
|
||||
|
Originally Posted by Mohamed Ashraf
On my site my vbadvanced is in the root directory and vBulletin is in the /forums directory below that.
in vBulettin Options->Site Name / URL / Contact Details there are two settings. Forum Url and Homepage Url. These must both be set or it will not function on your vba home page if you have it in a different directory. The reason being is that AJAX (and for good security reasons) does not work on remote sites. It can only access files on the site your visiting. So the path has to be set to the file using /dir/dir/file type structure instead of http://site.ext/dir/dir/file. To accomplish this I had to compare the two settings above in order to change the path to cron.php when on a vba page that is in another directory. I hope that helps
__________________
Gaming Forums No members have liked this post.
Last edited by Code Monkey : 12 Aug 2006 at 15:32. |
|
#15
|
||||
|
||||
|
Originally Posted by Eagle Creek
It's only there if a cron is scheduled to run at time of page load.
In the footer of your page you should see this.
When vb needs to run a task it inserts the image code there. When it does not need to run a task it leaves it blank. This mod elimates that mess and runs the task in the background with an XHR (AJAX) call to the file. Much cleaner. I should add that just as vb does not insert the image code when there is no task to run. Likewise, this script does nothing, and inserts nothing, not even the link to the javascript file, when there is no task to run.
__________________
Gaming Forums No members have liked this post.
Last edited by Code Monkey : 12 Aug 2006 at 15:34. |
||||
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 15:26.







