Hi you should know basic of PHP to do this task. I assume you know the basics of PHP so i am providing you guide below to achieve what you want.
First of all create a copy of users.php file and once you have that file copied. Open your new file let's say it new-users.php and find the code
authenticate_user('admin'); in this line change the admin to your desired user level if you want all users to access your new-users.php who are loged in then change 'admin' to 'all' if you want to give access to only subscriber user level or any other user level you can do authenticate_user('subscriber'); or authenticate_user('all');
Now scroll down to page.
and find this function which is on line 94
<?php echo $new_user->list_users($_SESSION['user_type']); ?>
Edit this list_users( and change it to new function name let's say new_list_users it will become like this
<?php echo $new_user->new_list_users($_SESSION['user_type']); ?>
Now save this file and now open another file, go to classes/ and open users.php file. and find function list_users( the line will look like this
function list_users($user_type) {
above this line paste the complete following function that will do what you want to do.
function new_list_users($user_type) {
global $db;
global $language;
$query = 'SELECT * from users ORDER by first_name ASC';
$result = $db->query($query) or die($db->error);
$content = '';
$count = 0;
while($row = $result->fetch_array()) {
extract($row);
$count++;
if($count%2 == 0) {
$class = 'even';
} else {
$class = 'odd';
}
$content .= '<tr class="'.$class.'">';
$content .= '<td>';
$content .= $first_name.' '.$last_name;
$content .= '</td><td>';
if($city != '') {
$content .= $city.', ';
}
if($state != '') {
$content .= $state.', ';
}
$content .= $country;
$content .= '</td><td>';
$content .= $username;
$content .= '</td><td>';
$content .= $email;
$content .= '</td><td>';
$content .= ucfirst($status);
$content .= '</td><td>';
$content .= ucfirst($user_type);
$content .= '</td><td>';
$content .= $this->get_user_meta($user_id, 'last_login_time');
$content .= '</td><td>';
$content .= $this->get_user_meta($user_id, 'last_login_ip');
$content .= '</td><td>';
$content .= '<button class="btn btn-default btn-sm pull-left" style="margin-right:5px;" data-toggle="modal" data-target="#modal_'.$user_id.'">'.$language["message"].'</button>';
$content .= '<!-- Modal -->
<script type="text/javascript">
$(function(){
$("#message_form_'.$user_id.'").on("submit", function(e){
e.preventDefault();
tinyMCE.triggerSave();
$.post("includes/messageprocess.php",
$("#message_form_'.$user_id.'").serialize(),
function(data, status, xhr){
$("#success_message_'.$user_id.'").html("<div class=\'alert alert-success\'>"+data+"</div>");
});
});
});
</script>
<div class="modal fade" id="modal_'.$user_id.'" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<form id="message_form_'.$user_id.'" method="post" name="send_message">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">'.$language["send_message"].'</h4>
</div>
<div class="modal-body">
<div id="success_message_'.$user_id.'"></div>
<div class="form-group">
<label class="control-label">'.$language["message_to"].'</label>
<input type="text" class="form-control" name="message_to" value="Email:('.$email.') Username: ('.$username.')" readonly="readonly" />
</div>
<div class="form-group">
<label class="control-label">'.$language["subject"].'</label>
<input type="text" class="form-control" name="subject" value="" />
</div>
<div class="form-group">
<label class="control-label">'.$language["message"].'</label>
<textarea class="tinyst form-control" name="message"></textarea>
</div>
</div>
<input type="hidden" name="from" value="'.$_SESSION['user_id'].'" />
<input type="hidden" name="user_id" value="'.$user_id.'" />
<input type="hidden" name="single_form" value="1" />
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">'.$language["close"].'</button>
<input type="submit" value="Send Message" class="btn btn-primary" />
</div>
</div><!-- /.modal-content -->
</form>
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->';
$content .= '</td>';
$content .= '</tr>';
unset($class);
}//loop ends here.
echo $content;
}//list_levels ends here.
Please take backups of your files before making changes if you are not sure what are you doing i recommend you to hire a php developer and show him this request to make changes for you thanks.