function widget($args, $instance)
 {
     /* this is the piece that actualy does the widget display */
     extract($args, EXTR_SKIP);
     /* this is for the before / after widget etc*/
     extract($instance, EXTR_SKIP);
     /* title list */
     //output...
     echo $before_widget;
     echo $before_title . $title . $after_title;
     echo amr_userlist(array('list' => $list, 'show_headings' => false, 'show_search' => false, 'show_perpage' => false, 'show_pagination' => $instance['show_pagination'], 'show_csv' => false, 'widget' => true));
     if (!empty($instance['moretext']) and !empty($instance['memberpage'])) {
         $url = get_page_link($instance['memberpage']);
         echo '<a title="' . __('See more', 'amr-users') . '" href="' . $url . '">' . $instance['moretext'] . '</a>';
     }
     echo $after_widget;
 }
function amr_network_userlist($atts)
{
    global $ausers_do_network;
    $ausers_do_network = true;
    return amr_userlist($atts);
}