The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Datastore - How to display data?
Hello
I am facing a problem and cant seem to grab the general idea of how datastore caching works in vBulletin 3.5.x. I created a new row in datastore: Code:
title data radiocache info that updates every few minutes via cron file. I searched around but didnt find enough information to solve my problem. I am not very good with php/mysql. Here's what I tried so far: I edited index.php and added radiocache to the $specialtemplates array. How do I go about it from there? Any help will be much appreciated. I am sure this will also help other coders who are interested in datastore. Just so you know, I am using vB 3.5.4. Thanks. Aurous |
#2
|
||||
|
||||
In 3.5, datastore goes to: $vbulletin->fieldName... so in your case $vbulletin->radiocache.
|
#3
|
|||
|
|||
I already tried that, but it doesnt display anything. No results on the page whatsoever, while the data is obviously there in the table. Also added 'radiocache' in index.php :
$specialtemplates = array( 'userstats', 'birthdaycache', 'maxloggedin', 'iconcache', 'eventcache', 'mailqueue', 'radiocache' ); Am I missing anything else here? |
#4
|
||||
|
||||
$vbulletin->anything won't work in templates unless you enclose it in braces ( {}s ). What do you have stored there?
|
#5
|
|||
|
|||
Well right now I just have "test" (without quotes) and nothing shows. I tried "{test}" and that didnt help either. Can you please test this out and see if its working for u? Anything to work in functions_databuild.php ?
|
#6
|
||||
|
||||
{$vbulletin->test} in the template
|
#7
|
|||
|
|||
Ahh! Thank you so much. Works fine now.
|
#8
|
|||
|
|||
Quick question:
Is there any work around for $specialtemplates yet? Basically any work around to NOT edit .php file that is. BTW, this method -> https://vborg.vbsupport.ru/showthrea...801#post770801 doesnt work anymore. Although, Kirby's solution work fine as mentioned in Boofo's post -> https://vborg.vbsupport.ru/showthrea...970#post771970 Any workaround yet? |
#9
|
||||
|
||||
Quote:
And they both do still work, by the way. I am using it both ways in my config.php. |
#10
|
|||
|
|||
Hmm, that is sad! Any word from vBulletin regarding this? I mean on one hand they want to promote plugins and on other they have a system where you cant really live without a file edit. Although config.php isnt a big issue here, but why edit anything to begin with?
I tried editing config.php as follows: Code:
if (THIS_SCRIPT == 'index') { $specialtemplates[] = 'item'; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|