Page 1 of 1

Is there any way to show user role on admin dashboard

Posted: Tue Oct 18, 2022 5:32 am
by hussainbsi
I wanted to show user role on front dashboard of the admin panel like Username, Fullname, Email, Status, Role (I WANT TO ADD ROLE HERE ), Action

Ref: script loginadmin.php

What should I write on ???????????????????

Please help

echo "<thead><tr><th>Username</th><th>Fullname</th><th>Email</th><th>Status</th><th>Role</th><th>Action</th></tr></thead>

echo "<tbody>\n";
foreach($items as $line)
{
list($username, $password, $email, $fullname, $active, $role?????????) = explode('|', trim($line));
echo "<tr>\n";
echo "<td>" . $username . "</td>\n";
echo "<td>" . $fullname . "</td>\n";
echo "<td>" . $email . "</td>\n";
echo "<td>" . ($active == "0" ? "inactive" : "active") . "</td>\n";
echo "<td>" . $role = ??????????????????????????????"Administrator : Member : Guest" . "</td>\n";
echo "<td>\n";

Re: Is there any way to show user role on admin dashboard

Posted: Tue Oct 18, 2022 6:00 am
by Pablo
There is no standard option for this.
But , you can post a suggestion in the 'Suggestions' section of the forum. If more users find this useful then I will consider it for future development.