Log in

View Full Version : Datastore?


waza
10-03-2005, 07:21 PM
Hello,

Can someone explains me a bit how the datastore thing works and how to use them in a page???
I 'm working in 3.0.7
Like: I want to show an article thumbnail (from cinq's vb articles).
On my php file i have:

...
include('./global.php');
...
$vbart_options = unserialize($datastore['vbart_options']);
unset($datastore['vbart_options']);
....
$articon = ereg_replace($vbart_options['vbartartimgpathab'].$articleid.'/',"",$articon);
$articonimg = "<a href=\"$vboptions[bburl]/articles.php?action=viewarticle&artid=".$articleid."\"><img title=\"".$title."\" src=\"$vboptions[bburl]/articles.php?action=thumb&artid=".$articleid."&id=".$articon."\" border=\"0\" width=".$vbart_options['vbartssthumbwidth']."></a>";


But it doesn't work...and I don't know what's wrong.

grz,
seba

Nobody? It's quite urgent...

waza
10-05-2005, 04:40 PM
I have found the solution: you have to fill in the datastore items you need in the special templates array.