Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How use bp widgets in a non-widget theme or other cases


Burt Adsit
Participant

@burtadsit

I just glanced at the code for the members, who’s online, groups widgets and see that, yes, they want an arg. No default is specified. What they are looking for is an array argument. As far as I can see none of the widgets are using that args array yet. Try a dummy arg.

$my_dummy_arg = array(‘this is useless’);

bp_core_widget_members($my_dummy_arg);

or

bp_core_widget_members(array(‘nothing to see here move along’));

It’s complaining about a PHP function extract() that the widget uses at the top of the widget function. extract() wants an array. Give it one. ;)

Skip to toolbar