Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB AJAX Cron Details »
vB AJAX Cron
Mod Version: 1.1.4, by Code Monkey (Member) Code Monkey is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (11 votes - 4.64 average) Installs: 222
Released: 12 Aug 2006 Last Update: 19 Aug 2006 Downloads: 647
Not Supported Template Edits Additional Files  


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







Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Board Optimization True Asynchronous Cron Jobs using Javascript [!AJAX]. No more hanging page loads. Analogpoint vBulletin 3.6 Add-ons 72 15 Dec 2015 16:23
[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

  #31  
Old 13 Aug 2006, 04:46
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Well, in your solution, when you are in the goto/all_galleries directory and the cron fires you are going to get the following error.


File does not exist: /home/thep/public_html/goto/all_galleries/forums/ajax_cron.php

You haven't gotten it yet because there was most likely no cron to run at that time.
__________________
Gaming Forums
Reply With Quote
  #32  
Old 13 Aug 2006, 04:55
nicedreams nicedreams is offline
 
Join Date: Jan 2005
Originally Posted by Code Monkey
Well, in your solution, when you are in the goto/all_galleries directory and the cron fires you are going to get the following error.


File does not exist: /home/thep/public_html/goto/all_galleries/forums/ajax_cron.php

You haven't gotten it yet because there was most likely no cron to run at that time.
No, I changed the code so the final $_link is $_link = "/forums/ajax_cron.php"; which would be /home/thep/public_html/forums/ajax_cron.php

Jimmy
Reply With Quote
  #33  
Old 13 Aug 2006, 05:13
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
No it won't be if you are in goto/galleries. The link code gets appended to the current working directory. But hey, do as you wish. I can't help you without a link so I will come up with a solution that best works for eveyone.

Have a nice day.
__________________
Gaming Forums
Reply With Quote
  #34  
Old 13 Aug 2006, 05:39
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
One option I have is to just use the full link in $vbulletin->options['bburl']. The problem with that is the security measures of http and AJAX requests. If the url in $vbulletin->options['bburl'] has http://www.site.com and someone is on your site having typed in http://site.com without the www then it will give a no permision error. And visa versa. The domain must be the same.

I think I will just try that and see if I can detect the difference.
__________________
Gaming Forums
Reply With Quote
  #35  
Old 13 Aug 2006, 06:52
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Real name: ivan
Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT usergroupid FROM icon AS icon
INNER JOIN imagecategorypermission USING (imagecategoryid)
WHERE icon.iconid = 1
AND usergroupid IN ();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
Error Number : 1064
Date : Saturday, August 12th 2006 @ 04:50:14 PM
Script : http://www.xxxxxxxxx/forum/ajax_cron.php?rand=50548
Referrer : http://www.xxxxxxxxxx/forum/arcade.php?&act=Arcade
IP Address : xxxxxxxxxxxxxxx
Username : Niet geregistreerd
Classname : vB_Database
Reply With Quote
  #36  
Old 13 Aug 2006, 07:10
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
That has nothing to do with this mod. This mod doesn't change any of the crons that run. Nor does it use any mysql functions. Something is wrong on that page.
__________________
Gaming Forums
Reply With Quote
  #37  
Old 13 Aug 2006, 07:15
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Updated. This should now work on any pages. The problem above should be fixed. The fix actually eliminated many lines of php code.
__________________
Gaming Forums
Reply With Quote
  #38  
Old 13 Aug 2006, 07:26
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
If you just downloaded the update you need to re-download. I put the wrong js file in. Time for bed.
__________________
Gaming Forums
Reply With Quote
  #39  
Old 13 Aug 2006, 07:54
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Real name: André
Thx again for Update !
Reply With Quote
  #40  
Old 13 Aug 2006, 14:18
nicedreams nicedreams is offline
 
Join Date: Jan 2005
Originally Posted by Code Monkey
No it won't be if you are in goto/galleries. The link code gets appended to the current working directory. But hey, do as you wish. I can't help you without a link so I will come up with a solution that best works for eveyone.

Have a nice day.
No, I changed the code like you just did for the update. Starting a link with a / puts it in the home html dir, it does not append it to the current dir.

Jimmy
Reply With Quote
  #41  
Old 13 Aug 2006, 15:19
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Why don't you just update and be done with it?

It's all done in the javascript now.
__________________
Gaming Forums
Reply With Quote
  #42  
Old 13 Aug 2006, 16:32
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Originally Posted by bollie
Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT usergroupid FROM icon AS icon
INNER JOIN imagecategorypermission USING (imagecategoryid)
WHERE icon.iconid = 1
AND usergroupid IN ();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
Error Number : 1064
Date : Saturday, August 12th 2006 @ 04:50:14 PM
Script : http://www.xxxxxxxxx/forum/ajax_cron.php?rand=50548
Referrer : http://www.xxxxxxxxxx/forum/arcade.php?&act=Arcade
IP Address : xxxxxxxxxxxxxxx
Username : Niet geregistreerd
Classname : vB_Database
Do you have any mods that have a plugin for the cron_start hook? I have never seen one that uses this hook but you never know.
__________________
Gaming Forums
Reply With Quote
  #43  
Old 13 Aug 2006, 18:10
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Real name: ivan
vBulletin 3.6.0
Add Banner 1.6 Add banner on each forum.
Advanced Userbar Picture Hack for vB 1.0
DownloadsII 5.0.2 A Download Database for vB
Geek Auto
Google Bottom 1.0
ibProArcade for vBulletin 2.5.6 ibProArcade
inferno News Views 1.00
Last Seen Online (Postbit) (Brad) 1.6
Members who have read a thread. 3.13 Display members who have recently read a thread - Version 3.
Members who have visited the forum 4.21 Display members who have visited the forum.
Moderation Auto-PM 2.0.1 Automaticly PMs a user when their thread is moderated
Post Thank You Hack 5.0 Post Thank You Hack
psiStats 2006 1.3.2 Sophisticated forum statistics for your vBulletin board.
Reported post creates new thread 2.01 Disables the sending of e-mails when a post is reported, and instead creates a new thread of the report in a specified forum.
vB Category Icons 1.0.1 This will allow you to setup a icon to display by the title of each forum you have. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums.
VB image hosting 1.3.1a Image hosting sloution for VB
vBadvanced CMPS 2.1.0 vBadvanced Content Management & Portal System
vBSEO :: Sitemap Generator 1.6.1 Generate a Google & Yahoo Sitemap for your Forums
vBShout 2.0 AJAX Shoutbox for vBulletin
vBulletin AJAX Cron 1.1.1 This will change your vb cron to run using AJAX instead of an image link.
Reply With Quote
  #44  
Old 14 Aug 2006, 00:51
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
What am I supposed to do with that? Just look in your plugins and see if one is using cron_start.
__________________
Gaming Forums
Reply With Quote
  #45  
Old 14 Aug 2006, 00:58
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Brollie, you first posted that error over a week ago (here) - long before this was even released. Please do not cross post and clutter up peoples modification threads with unrelated errors that clearly do not belong. Thanks.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
Reply


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

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


New To Site? Need Help?

All times are GMT. The time now is 02:14.

Layout Options | Width: Wide Color: