The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
How would I generate/access the $stylevar array during a cron job?
Thanks |
|
#2
|
|||
|
|||
|
You don't, since a cronjob is not associated with a user or a session and is ment for batch purposes only, i guess there will be no style information loaded.
You would need to load the style information yourself. |
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
||||
|
||||
|
If everyone cares, I just had to use similar code to what global.php has (fetches info from database, then I beleive it was fetch_styleinfo and feed it the data from the database.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|