vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB AJAX Cron (https://vborg.vbsupport.ru/showthread.php?t=123720)

Code Monkey 08-11-2006 10:00 PM

vB AJAX Cron
 
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.

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

******************************************
Do not use this with vb 3.6x! There is a difference in the cron table.
The 3.6x version can be found here

Paul M 08-12-2006 12:07 AM

I saw this mentioned somewhere earlier today, sounds good.

Just curious why you've set the vb version to 3.5.0 ?

Code Monkey 08-12-2006 12:18 AM

Isn't it supposed to be a minimum version supported?

I uploaded one for 3.6 as well since there is a slight change to the cron tables in 3.6.

FreshFroot 08-12-2006 05:46 AM

well I think he mean't why is it 3.5.0 instead of 3.5.5? Because most hacks that are out.. are usally named after the recent release.... so 3.6.0 or 3.5.5.....?

Anyways good hack mate, nice stuff :D

Code Monkey 08-12-2006 05:52 AM

Quote:

Originally Posted by FreshFroot
well I think he mean't why is it 3.5.0 instead of 3.5.5? Because most hacks that are out.. are usally named after the recent release.... so 3.6.0 or 3.5.5.....?

Anyways good hack mate, nice stuff :D

I've been posting hacks here long enough to know that when you do that you get questions like, "dude, does it work with 3.50, cuz it says 3.54?" Which is why they have been told numerous times they need a 3.5x option. ;)

Code Monkey 08-12-2006 03:37 PM

Seems to be a lot more hits on the 3.6 version. I take it a lot of people are upgrading then. More so than 3.x to 3.5x in the beggining.

Code Monkey 08-13-2006 06:19 AM

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

cynix2 08-15-2006 03:55 PM

i just installed this and i must say i notice a significant speed increase on my boards which are rather large

Code Monkey 08-16-2006 02:48 AM

That's good to here. I figured the bigger the board the more you will notice the difference when you are the lucky dog that runs the cron.

Code Monkey 08-16-2006 03:42 PM

If anyone is using a plugin that needs the cron_start hook (I have never seen one) please let me know. This mod will break it if it does since it's not using cron.php where the hook exists. If this is a problem for anyone I will have to come up with a work around. I doubt it but you never know.

Code Monkey 08-17-2006 11:41 PM

New version 1.1.2

Added ajax_cron_start hook. Now if you should ever have a plugin that uses the cron_start hook simply change it to use the ajax_cron_start hook.

Code Monkey 08-19-2006 01:26 AM

New Version 1.1.3

Now it will just use cron_start hook if you have a plugin that uses it. Aparently vb doesn't actually care where the hook is located.

Live and learn.

Code Monkey

Code Monkey 08-19-2006 03:12 PM

New Version 1.1.4

This will now degrade gracefully when browsers have javascript turned off. When a browser has javascript turned off the default vb method will be implemented to ensure the cron runs.

Code Monkey


All times are GMT. The time now is 10:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01143 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete