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)

Master Nemesis 09-07-2006 07:42 PM

cheers will intall later

Code Monkey 09-08-2006 01:50 AM

Quote:

Originally Posted by Exitilus
Nope :) I trust your judgement :)

I think I was half asleep when I made the previous reply *lol* :)

Did their proposed fix not work on that other script?

Axel Foley 09-11-2006 10:14 PM

Thank you very much...

I'm going to try it now...I use vBadvanced and I hated seeing cron.php generating errors on my homepage...:)

Code Monkey 09-12-2006 01:20 AM

Let me know how it works for you. :D

Axel Foley 09-13-2006 08:14 PM

No more cron.php errors with vBadvanced...;)

It's working fine...thank you very much for your work...

yessir 09-14-2006 03:05 AM

This mod works flawlessly with no stuttered page loads. It's works so well, most folks probably don't even know it is working.

Code Monkey 09-15-2006 02:59 AM

Quote:

Originally Posted by Axel Foley
No more cron.php errors with vBadvanced...;)

It's working fine...thank you very much for your work...

Thank you very much for the testimonial. I am glad it fixes problems for people.

Quote:

Originally Posted by yessir
This mod works flawlessly with no stuttered page loads. It's works so well, most folks probably don't even know it is working.

That's probably why it doesn't get many installs either. They don't know they need itr. :D

soulface 09-16-2006 06:49 AM

Getting this kind of db error...

Quote:

Database error in vBulletin 3.6.0:

Invalid SQL:

REPLACE INTO useractivation
VALUES
(NULL , 2077, 1157440817, 10613041, 0, 2);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Tuesday, September 5th 2006 @ 03:20:18 AM
Script : http://*******/ajax_cron.php?rand=409550
Referrer : http://*******/misc/bbcode/
IP Address : 212.138.47.22
Username : Unregistered
Classname : vb_database

Code Monkey 09-16-2006 01:24 PM

That is not caused by this mod. See this thread. http://www.vbulletin.com/forum/bugs3...view&bugid=639

iran.gs 09-20-2006 02:28 PM

so if its better why not vb do it ?

Code Monkey 09-20-2006 03:48 PM

Because they didn't think of it?

That is what this entire site and a zillion other mod sites exist for. To supply options and improvements that vBulletin doesn't have.

Code Monkey 10-15-2006 08:47 PM

Just checking in. I'm going to assume from the continued installs and silence that this is continuing to work in vBulletin 3.62? If not please let me know.

NeutralizeR 10-16-2006 04:17 AM

Quote:

Originally Posted by Code Monkey
Just checking in. I'm going to assume from the continued installs and silence that this is continuing to work in vBulletin 3.62? If not please let me know.

It's ok with vb 3.6.2

Code Monkey 10-17-2006 01:41 AM

Thanks, that's good to know. I haven't updated yet.

da420 10-17-2006 08:10 PM

Works for me too. :)

vbreal 11-13-2006 09:17 PM

i have a php file that i need to run. i have to run it manually at the moment. the cron scheduler in my cpanel did not work. will this be able to execute a php file as if it was entered into the url bar or clicked.

Code Monkey 11-14-2006 05:51 AM

This runs the cron scheduler, so no. If you want to runs something in the sheduler it needs to be file that is setup for vBulletin.

Tacama 11-15-2006 02:06 AM

Working smoothly on VB 3.6.3.

Great hack Code Monkey. Thanks a lot :) .

Clicked Install of course ;).

transitbus 11-15-2006 02:51 AM

Thanks! I was wondering about the whole cron thingy and this seems like a more efficient method.

kall 11-15-2006 03:27 AM

3.6.3 .. I installed this to combat the fact that zoints tags look in /tags/*tagname*/ for cron.php .. but it doesn't appear to have done anything.

:(

Don't get me wrong, I love the idea, and have had no issues with other things calling cron.php, but the Zoint Tags thing is driving me mad! :)

Code Monkey 11-15-2006 03:41 AM

I don't understand the problem Kall. Are you saying the Zoints tag system breaks the scheduled task system somehow? I am not familiar with that mod so I am not sure what it does other than create a tag system.

Code Monkey 11-15-2006 03:47 AM

I see you are using a page compressor. It may be removing empty comment tags. In which case it will remove the vBulletin default code marker and this, and possibly default cron, won't be able to work.

kall 11-15-2006 04:43 AM

Yeah.. the vBSEO Content Cleaner is what I am using.

Hmm.. well, what appears to be happening is: Zoints tags looks in its own (mod_rewrited) directory for cron.php. It's not there, and I get error messages.

Cron works everywhere else (and still does, since installing this Modification), but I am still seeing the error from the Zoints Tags looking for cron in the wrong place.

Code Monkey 11-15-2006 02:40 PM

So you are saying zoints has it's own cron setup.

kall 11-17-2006 03:29 AM

Not at all, it just tries to call $cronimage from /forum/tags/cron.php instead of /forum/cron.php...because that's the "directory" the viewer is in at the time.

*edit* /forum/tags/*tag name/cron.php is also called.

Code Monkey 11-18-2006 04:36 AM

Sounds like something maybe they need to know about. They most likely have no idea it can interfere with the running of crons.

Viper007Bond 12-02-2006 08:52 AM

Seems to be working fine in 3.6.4. :)

redlabour 12-04-2006 03:34 AM

Uninstalled after using it for Month get nothing that i did not realize without using this. Still do not know what this does.

Viper007Bond 12-04-2006 05:20 AM

Quote:

Originally Posted by redlabour (Post 1131381)
Uninstalled after using it for Month get nothing that i did not realize without using this. Still do not know what this does.

As stated, default makes it not run as a background task. The user's page sits there and loads the "image" while the cron task is completed (the default cron script is called from within an <img> tag). This can take a little while, so the user keep seeing a "busy loading the page" icon or whatever until the cron is done and the "image" loads.

AJAX is Javascript, so the call to run the cron file is done truly in the background. ;)

redlabour 12-04-2006 11:43 AM

What are we talking about?

0,00001 seconds ?

Tralala 02-16-2007 12:28 PM

/clicks install

Elegant, seamless and smart. The best kind of mod. :)

Tralala 02-16-2007 12:32 PM

Quote:

Originally Posted by redlabour (Post 1131544)
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.

cash7c3 02-27-2007 04:06 AM

would this be possible to utilize a cron task to repair databases and restart the mysql service?

cash7c3 02-27-2007 04:08 AM

Quote:

Originally Posted by Tralala (Post 1183842)
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?

Tralala 02-27-2007 06:07 PM

Quote:

Originally Posted by cash7c3 (Post 1191664)
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

cash7c3 02-27-2007 06:10 PM

thanks

Xoligy 02-28-2007 02:26 PM

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.

ultimo 04-06-2007 05:56 PM

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...:)

mhc1576 04-06-2007 06:23 PM

It works without any problem in 3.6.5

ultimo 04-06-2007 06:36 PM

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?


All times are GMT. The time now is 12:54 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.01337 seconds
  • Memory Usage 1,813KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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