The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Strtange issue with cron und charset
There are:
domen 1 - forum, vB 3.7.0, cp1251 domen 2 - site, Wordpress, utf-8 Task: 5 last new threads from forum (domen 1) at site (domen 2). This file is in a folder http://www._forumname_.ru/include/cron/ and it should generate once at hour file cron_newthreads.html which included in WordPress: PHP Code:
And all works perfectly if I press the button Run now in admincp (Scheduled Task Manager). But if the scheduled task starts itself automatically, the generated file is created with the incorrect coding (see attach). Why??? What is wrong? |
#2
|
||||
|
||||
Did you check the values in $stylevar? My guess is that $stylevar is not available when running the task normally.
|
#3
|
||||
|
||||
Dismounted
Sorry, I'm not programmer. How I can check up it, what it is necessary to make? |
#4
|
||||
|
||||
I think what he's saying is you may need to make $stylevar a global so it is available for you to use:
PHP Code:
|
#5
|
||||
|
||||
I have replaced
PHP Code:
PHP Code:
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|