hi i’m very happy with the plugin!
and i always edited “userpanel.php” to show the user role if is editor, admin, etc
and i wondered? can you make some option to display the user role, with a checkbox? and something to change the names to another lenguage. example Editor for Administrador…
here is the code i use to make that
<?php
$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);
if ($user_role == 'administrator') {
echo ' ?Administrador';
} elseif ($user_role == 'editor') {
echo ' ?Moderador';
} elseif ($user_role == 'author') {
echo ' ?Autor';
} elseif ($user_role == 'contributor') {
echo ' ?Colaborador';
} elseif ($user_role == 'subscriber') {
echo ' ?Suscriptor';
} else {
echo '<strong>' . $user_role . '</strong>';
}
?>