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-13-2006 03:46 AM

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.

nicedreams 08-13-2006 03:55 AM

Quote:

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

Code Monkey 08-13-2006 04:13 AM

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.

Code Monkey 08-13-2006 04:39 AM

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.

bollie 08-13-2006 05:52 AM

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

Code Monkey 08-13-2006 06:10 AM

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.

Code Monkey 08-13-2006 06:15 AM

Updated. This should now work on any pages. The problem above should be fixed. The fix actually eliminated many lines of php code.

Code Monkey 08-13-2006 06:26 AM

If you just downloaded the update you need to re-download. I put the wrong js file in. Time for bed.

redlabour 08-13-2006 06:54 AM

Thx again for Update !

nicedreams 08-13-2006 01:18 PM

Quote:

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


All times are GMT. The time now is 08:21 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.01795 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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