The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Datastore prefix question
Is there a way to pull the datastore prefix for a variable in the datastore like they do with the table_prefix? I tried this but it doesn't work:
Code:
$new_datastore_fetch[] = " . DATASTORE_PREFIX . "boofocounter; I got a report from someone that the counter didn't work. It turned out they had a datastore prefix set in the config file: Code:
$config['Datastore']['prefix'] = 'something'; Once they removed the prefix, the counter started working. |
#2
|
||||
|
||||
function build_prefix_datastore ?
|
#3
|
||||
|
||||
Ok, but how would you pull the datastore info from a prefixed datastore, and yet be able to pull it from a non-prefixed datastore if there is no prefix? It states in the config file that it woks something like the table_prefix does.
|
#4
|
||||
|
||||
Hmmm, that is not what I was thinking it was - that's what happens when I do something in a hurry!
The only place I see it used is in vB_Datastore in class_core.php. I really am not gonna be much help here as I'm not that familiar with the whole datastore cache stuff. :/ |
#5
|
||||
|
||||
This is the first time I have run into the need for needing the datastore prefix myself, so we're both in new territory. Plus, I'm probably not explaining very well what I'm trying to do, so that gets tossed into the mix, also.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|