![]() |
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 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 |
In 3.5, datastore goes to: $vbulletin->fieldName... so in your case $vbulletin->radiocache.
|
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? |
$vbulletin->anything won't work in templates unless you enclose it in braces ( {}s ). What do you have stored there?
|
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 ?
|
{$vbulletin->test} in the template
|
Ahh! Thank you so much. Works fine now.
|
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? |
Quote:
And they both do still work, by the way. I am using it both ways in my config.php. ;) |
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') |
All times are GMT. The time now is 05:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|