The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Is there a cleaner way to do this, maybe as an array?
Code:
if ($vbulletin->options['boofo_fhstats_onoff'] AND THIS_SCRIPT == 'index')
{
$new_datastore_fetch[] = 'forumhomestats';
$new_datastore_fetch[] = 'member_day';
}
|
|
#2
|
||||
|
||||
|
No one has any ideas on this? I am shocked!
|
|
#3
|
||||
|
||||
|
It is an array, so I'm not sure what you are asking.
|
|
#4
|
||||
|
||||
|
Is there a way to combine the two fetches without having to call them separately?
|
|
#5
|
||||
|
||||
|
Um... I don't know?
|
|
#6
|
||||
|
||||
|
Lynne, I think I figured this out. It seems to work with the following line:
Code:
$new_datastore_fetch = array_merge($new_datastore_fetch, array('forumhomestats','member_day'));
|
|
#7
|
||||
|
||||
|
Cool.
|
|
#8
|
||||
|
||||
|
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.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|