Recent Topics

1 Mar 14, 2015 11:44    

is there a way when calling:

"?disp=users"

to only display/list users from specific group ID:

$User->Group->ID = 6

2 Mar 14, 2015 23:00

One of those days where I answer my own questions....

copied:

 
_user_list_short.view.php 
_users.disp.php

to skin directory and in _users.disp.php changed:

 
/*

some lines of code....

*/
require $inc_path.'users/views/_user_list_short.view.php'; 


To



/*

some lines of code....

*/

require '_user_list_short.view.php';

and in _user_list_short.view.php changed:

 

$UserList = new UserList( '', $UserSettings->get('results_per_page'), 'u_', array(
		'join_group'          => is_logged_in() ? false : true, /* Anonymous users have a limit by user group level */
		'join_country'        => false,
		'keywords_fields'     => 'user_login, user_firstname, user_lastname, user_nickname, user_grp_ID, user_grp_name',
		'where_status_closed' => false,
	) );

/*

some lines of code....

*/



To



$UserList = new UserList( '', $UserSettings->get('results_per_page'), 'u_', array(
		'join_group'          => true, 
		'join_country'        => false,
		'keywords_fields'     => 'user_login, user_firstname, user_lastname, user_nickname, user_grp_ID, user_grp_name',
		'where_status_closed' => false,
	) );

/*
	 
	some lines of code....
	 
	*/
$default_filters['group'] = 1; // Set Group_ID (1 is administrators)

/*

some lines of code....

*/



Form is loading...