Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vB AJAX Cron Details »»
vB AJAX Cron
Version: 1.1.4, by Code Monkey Code Monkey is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.0 Rating:
Released: 08-11-2006 Last Update: 08-18-2006 Installs: 224
Template Edits
Additional Files  
No support by the author.


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






Code:
ekd12x0002w#rt2200cmvbm

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 02-16-2007, 12:28 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/clicks install

Elegant, seamless and smart. The best kind of mod.
Reply With Quote
  #113  
Old 02-16-2007, 12:32 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
What are we talking about?

0,00001 seconds ?
It depends on the size of your site, and the specific cron that's running at the time...

I have quite a few cron jobs scheduled, one being a nightly backup, and when those kick in, I can tell the site feels sluggish when loading pages. This mod fixes that.
Reply With Quote
  #114  
Old 02-27-2007, 04:06 AM
cash7c3 cash7c3 is offline
 
Join Date: Sep 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would this be possible to utilize a cron task to repair databases and restart the mysql service?
Reply With Quote
  #115  
Old 02-27-2007, 04:08 AM
cash7c3 cash7c3 is offline
 
Join Date: Sep 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala View Post
It depends on the size of your site, and the specific cron that's running at the time...

I have quite a few cron jobs scheduled, one being a nightly backup, and when those kick in, I can tell the site feels sluggish when loading pages. This mod fixes that.
nightly backup for a accounts on my server? is this really possible with ajax? would you mind telling me more on how you have that working?
Reply With Quote
  #116  
Old 02-27-2007, 06:07 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cash7c3 View Post
nightly backup for a accounts on my server? is this really possible with ajax? would you mind telling me more on how you have that working?
To clarify, it's possible with cron... this mod though initiates those (cron) sheduled tasks via an asyncronous AJAX call, allowing them to run in the background.

As far as how to get the nightly backup cron going in the first place, there are quite a few solutions... search and read and pick the one you like best... here are a few I've seen:

https://vborg.vbsupport.ru/showthread.php?t=126925
https://vborg.vbsupport.ru/showthread.php?t=105599
http://www.debianhelp.co.uk/mysqlscript.htm
http://www.vbhackers.com/f76/automat...3/index13.html
Reply With Quote
  #117  
Old 02-27-2007, 06:10 PM
cash7c3 cash7c3 is offline
 
Join Date: Sep 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #118  
Old 02-28-2007, 02:26 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't simpler method be to have window.stop at the bottom of your footer and then have ignore_user_abort(true); in the PHP file? For MSIE you could just evoke the escape key (27)

This will (in theory) effectively stop the page from continuing to load, but the php script will ignore the request and continue processing until it has finished.

Just an idea.
Reply With Quote
  #119  
Old 04-06-2007, 05:56 PM
ultimo ultimo is offline
 
Join Date: Jun 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok this mod doesnt work on 3.6.5. Any more support for this mod? I have followed all instructions but the scheduled tasks are not running...
Reply With Quote
  #120  
Old 04-06-2007, 06:23 PM
mhc1576 mhc1576 is offline
 
Join Date: Oct 2005
Location: Sweden
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works without any problem in 3.6.5
Reply With Quote
  #121  
Old 04-06-2007, 06:36 PM
ultimo ultimo is offline
 
Join Date: Jun 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm I followed all the instructions. Funny thing is the original cron seems to be still working. Schedueld tasks runs when i load the forum page, but does not run when its not loaded. Any thoughts about something i am missing?

I uploaded the files to my forum directory, that is correct no?
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 03:52 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.04842 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete