vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - vB AJAX Cron (https://vborg.vbsupport.ru/showthread.php?t=123719)

Code Monkey 08-17-2006 11:22 PM

Well, it only breaks the cron_start hook because I am using a different script than cron.php. I could always add my own hook.

I wonder if there is a way to divert vb to look there for cron_start. hmmm...

Code Monkey 08-17-2006 11:39 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.

briansol 08-18-2006 03:07 AM

Thanks for the update :)

Revan 08-18-2006 10:03 AM

Quote:

Originally Posted by Code Monkey
Well, it only breaks the cron_start hook because I am using a different script than cron.php. I could always add my own hook.

I wonder if there is a way to divert vb to look there for cron_start. hmmm...

If that's the problem, why not just add cron_start instead of ajax_cron_start in your ajax_cron.php? :confused:
Since you are rendering the vB default cron.php useless, whatever code would be executed in cron_start would be executed in your file instead.
Or am I missing something?

Code Monkey 08-18-2006 01:18 PM

Is it that easy? I have never looked at how vb knows where the hooks are so I have no idea. I was planning on researching that this weekend.

libertylounge 08-18-2006 11:03 PM

Awesome. Installed.

Code Monkey 08-19-2006 01:24 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

Thanks go to Revan for the heads up.

Code Monkey 08-19-2006 03:11 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

derekivey 08-19-2006 05:06 PM

Nice hack Code Monkey :).

[high]* derekivey clicks install.[/high]

Code Monkey 08-19-2006 08:53 PM

Thank you very much.


All times are GMT. The time now is 04:24 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.05846 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete