Skip to:

Displaying “Who is online” in theme (without widgets)

  • pulk99



    I would like to display the “Who is online” widget, but without using the widget ;)

    I tried:

    <?php bp_core_widget_whos_online(); ?>

    but then I get an error:

    Warning: Missing argument 1 for bp_core_widget_whos_online(), ….

    Warning: extract() [function.extract]: First argument should be an array in /var/www/ on line 166

    I’m not sure what arguments it needs, I tried:

    <?php bp_core_widget_whos_online(‘3’); ?>

    3 = max. number to show. but then I still get the error. how do I use it right?

Viewing 1 replies (of 1 total)

  • Burt Adsit


    You can get rid of the error by calling that like: bp_core_widget_whos_online(array()); but it doesn’t pay any attention to args being passed when it comes to number of user to display. You’ll have to fire up the widget for each blog, set the max users, deactivate the widget to not display it. This widget was not designed to be used in this way.

    You’d be better off creating a mini template for this purpose. with ‘type=online’.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying “Who is online” in theme (without widgets)’ is closed to new replies.
Skip to toolbar