PDA

View Full Version : datastore questions


KevinM
05-29-2004, 06:47 AM
I am partway through writing an attachment hack, but I have got stuck on something probably (hopefully) quite simple.

I need to access details in the datastore, but I can't seem to find the correct terms.

The info I wish to use in my page is

$attachtypes = unserialize($datastore['attachmentcache']);

but I am unsure as to what statements preceed this to allow this to work. E.g. I have tried

$specialtemplates = array(
'attachmentcache'
);


without success. I've tried including global.php as well.

All help appreciated.

Xenon
05-29-2004, 12:06 PM
hmm, it seems correct.

are you sure the $specialtemplates array is defined BEFORE you require globa.php?

also, are you sure the data is already stored in a serialized way with that name within the DB?

KevinM
05-29-2004, 03:13 PM
are you sure the $specialtemplates array is defined BEFORE you require global.php?

Thanks, that was it. i can't believe I spent so long on something so simple. :o

Xenon
05-29-2004, 10:46 PM
*gg*
i know how you feel, i have had such bugs so often ;)

you're welcome