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)

Mohamed Ashraf 08-12-2006 02:14 PM

Installed but i didnt get what that mean " This works at vbModder.com with vba in a directory above forum home. Make sure you have your home and forumhome path info acp options filled in or it may not work on vba.
"

thank you
Regards,
Mohamed Ashraf

Eagle Creek 08-12-2006 02:18 PM

I dont understand?

Where is there any image used when using a cron? Crons are made to run automatic, aren't they?

redlabour 08-12-2006 02:21 PM

Thx - works great ! :D

Code Monkey 08-12-2006 02:26 PM

Quote:

Originally Posted by Mohamed Ashraf
Installed but i didnt get what that mean " This works at vbModder.com with vba in a directory above forum home. Make sure you have your home and forumhome path info acp options filled in or it may not work on vba.
"

thank you
Regards,
Mohamed Ashraf

On my site my vbadvanced is in the root directory and vBulletin is in the /forums directory below that.

in vBulettin Options->Site Name / URL / Contact Details there are two settings. Forum Url and Homepage Url. These must both be set or it will not function on your vba home page if you have it in a different directory.

The reason being is that AJAX (and for good security reasons) does not work on remote sites. It can only access files on the site your visiting. So the path has to be set to the file using /dir/dir/file type structure instead of http://site.ext/dir/dir/file. To accomplish this I had to compare the two settings above in order to change the path to cron.php when on a vba page that is in another directory.

I hope that helps

Code Monkey 08-12-2006 02:31 PM

Quote:

Originally Posted by Eagle Creek
I dont understand?

Where is there any image used when using a cron? Crons are made to run automatic, aren't they?

It's only there if a cron is scheduled to run at time of page load.

In the footer of your page you should see this.

Code:

    <!-- Do not remove  or your scheduled tasks will cease to function -->

    <!-- Do not remove  or your scheduled tasks will cease to function -->

When vb needs to run a task it inserts the image code there. When it does not need to run a task it leaves it blank. This mod elimates that mess and runs the task in the background with an XHR (AJAX) call to the file. Much cleaner.

I should add that just as vb does not insert the image code when there is no task to run. Likewise, this script does nothing, and inserts nothing, not even the link to the javascript file, when there is no task to run.

unitedpunjab 08-12-2006 03:14 PM

Installed
how do i make sure its working properly

Code Monkey 08-12-2006 03:30 PM

Quote:

Originally Posted by unitedpunjab
Installed
how do i make sure its working properly

If your site is busy it is unlikely that you will often win the "load the cron" lottery. :D

There are several ways to view what is happening and if it is happening.

Use Firefox, if you don't already, and get the wonderful Firebug extension. This extension allows you to see many things including all AJAX calls and their responces on any site you visit. Then if you are the lucky one that vb decides will cause the next cron to run, you will see it happen in Firebug.

Another way is to go into your scheduled task log setting in your ACP and empty the log by deleting any logs over 0 days old. Then you can come back later and see if those crons that are set to record a log have run.

Ultimately this is one of those mods that does a wonderful thing but it does it behind the scenes. It's not glamorous, it's functional.

unitedpunjab 08-12-2006 03:39 PM

Thx for the Firebug ;)

Code Monkey 08-12-2006 03:51 PM

Quote:

Originally Posted by unitedpunjab
Thx for the Firebug ;)

Use that baby on a site that missuses AJAX to auto refresh data, such as AJAX chat, and you will see why they are a resource hog. That is if you can keep up with the scrolling.

Floris 08-12-2006 05:09 PM

Quote:

Originally Posted by Code Monkey
26 downloads and only 8 installs?

The button must be stuck! :D

This is common - no need to plug users to go and click it.


All times are GMT. The time now is 01:45 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.01096 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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