The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Fetching a column from the datastore in global_start messes up the forum time
I'm trying to fetch a column from the datastore in global_start using the following code:
PHP Code:
Anyone familiar with this issue? Thanks. |
#2
|
||||
|
||||
Grab it from the init_startup hook instead, like so:
Code:
$datastore_fetch[] = "'your column name here'"; Make sure it has the single and double quotes like in the example. |
#3
|
|||
|
|||
Quote:
By the way, a new var has been added, $new_datastore_fetch, which doesn't require single quotes. |
#4
|
||||
|
||||
Have you tried the new variable?
|
#5
|
|||
|
|||
I was actually too lazy to change it afterwards, but the comment says '$new_datastore_fetch does not require single quotes', so I guess it should be working of that what you mean.
|
#6
|
||||
|
||||
I tested it and it works fine without the single quotes. Thanks for pointing it out to me. I didn't know about the change. Actually, it is better to use the new way as it doesn't need to parse the extra quotes. These all work for it:
Code:
$new_datastore_fetch[] = 'your column name here'; $new_datastore_fetch[] = "your column name here"; <-- I am using this one $new_datastore_fetch[] = your column name here; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|