View Full Version : How do you call multiple new_datastore_fetch?
Boofo
05-14-2011, 02:41 AM
Is there a cleaner way to do this, maybe as an array?
if ($vbulletin->options['boofo_fhstats_onoff'] AND THIS_SCRIPT == 'index')
{
$new_datastore_fetch[] = 'forumhomestats';
$new_datastore_fetch[] = 'member_day';
}
Boofo
05-15-2011, 01:52 PM
No one has any ideas on this? I am shocked! ;)
Lynne
05-15-2011, 04:13 PM
It is an array, so I'm not sure what you are asking.
Boofo
05-15-2011, 04:47 PM
Is there a way to combine the two fetches without having to call them separately?
Lynne
05-15-2011, 05:15 PM
Um... I don't know?
Boofo
05-15-2011, 06:03 PM
Lynne, I think I figured this out. It seems to work with the following line:
$new_datastore_fetch = array_merge($new_datastore_fetch, array('forumhomestats','member_day'));
Lynne
05-16-2011, 03:06 PM
Cool. :)
Boofo
05-16-2011, 06:39 PM
I edited my post above as the first example would actually overwrite the new_datastore_fetch with the new info, instead of adding to it. The correct one is posted now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.