vBulletin Modifications

Board Optimizations - vB AJAX Cron

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB 3.5.5] Board Optimizations - vB AJAX Cron (88)
Released: 08-11-2006, 11:16 PM
Modification Information:
Code Monkey's Avatar Author: Code Monkey
Last Online: 11-28-2007
Demo: View Online Demo!
Hack Version: 1.1.4 Installer Included: 1 Additional queries added to database: 0
New Templates: 1 Template Edits: 0 File Edits: 0
New Files: 2 New Phrases: 0 Installation Time (In Minutes): 1

vB 3.6.0 Compatible!
Plugin
vB AJAX Cron From vBModder.com

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. Both 3.5x and 3.6x xml files are included. Make sure you use the right one as there are changes in crons with 3.6x.

This should work in any vb or custom script in any directory.
Support will only be given at vbmodder.com


Enjoy




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 08-12-2006, 12:39 PM   #2
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

sweet cool man ....... though im really not sure what this does .... i dont know what scheduled task image your talking about




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2006, 12:43 PM   #3
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

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.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2006, 01:46 PM   #4
vB Newbie
Join Date: May 2006
navid is on a distinguished road

Default

Quote:
Originally Posted by Code Monkey
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.
nice hack mate and
thanks for your explain.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2006, 06:32 PM   #5
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

No problem




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 05:22 AM   #6
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

Updated. This should now work on any pages. The fix actually eliminated many lines of php code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 03:21 PM   #7
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

so this is 1.1.1 now?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 10:48 PM   #8
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

yes it is.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-14-2006, 01:59 PM   #9
vB User
Join Date: Jun 2006
Location: London, UK
Dan2k3k4 is on a distinguished road

Default

* Dan2k3k4 installs

Thanks




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-14-2006, 08:33 PM   #10
vB Lover
takiye's Avatar
Join Date: Aug 2006
takiye is on a distinguished road

Default

Quote:
Originally Posted by Code Monkey
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.
A more clear explanation, can u? :confused:
I installed this hack, and is expected to know its benefit.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



LinkBacks (?)
LinkBack to this Thread: http://www.vbhackers.com/f76/board-optimizations-vb-ajax-cron-4809/
Posted By For Type Date
Statistics for vbmodder.com (2006-10) This thread Refback 10-27-2006 03:37 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating AJAX Technology Into Your Modifications Zero Tolerance vBulletin Modification Tutorials 3 08-28-2006 11:30 AM
vB 3.0+hacks & vB 3.5 Safice General vBulletin Support 2 03-08-2006 08:01 AM
Combine yahoogroups list with vB forum laureen vBulletin Modification Requests 0 08-02-2005 12:48 AM


All times are GMT -3. The time now is 02:06 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)