Log in

View Full Version : datastore retrieval


VodkaFish
08-16-2008, 06:56 PM
I just upgraded from 3.6.7 to 3.7.2

I was accessing something from my datastore like this:
$parse = $vbulletin->datastore->registry->mystuff;

Then I'd use $parse to parse the post message.

After the upgrade $parse is null.

However, if I do this, all is well:
$setup = $vbulletin->datastore->do_db_fetch("'mystuff'");
$parse = $vbulletin->mystuff;

I can then use $parse properly.

I once had a problem with getting data from the datastore before, but this is different (just in case anyone recognizes this somewhat).

Was anything changed in 3.7 that would disallow my original method?

Does the way I have to do it now create any extra load on my db (this is for a decent size forum)?

Opserty
08-16-2008, 07:11 PM
$vbulletin->datastore->do_db_fetch("'mystuff'");
$parse =& $vbulletin->mystuff;

Would probably work just as well. The datastore fetch, most likely it returns a boolean on success/failure or something. Check the actual PHP code behind the function to see what is going if you really want to know.

VodkaFish
08-16-2008, 08:05 PM
That seems like a lot of digging. If this isn't brutal to my server, I'll stick with what works, thanks :)

Opserty
08-16-2008, 08:17 PM
<a href="http://members.vbulletin.com/api/vBulletin/vB_Datastore.html" target="_blank">vB_Datastore</a>