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";
Is there any way to show user role on admin dashboard
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
-
-
- Posts: 3
- Joined: Fri Oct 14, 2022 3:58 am
Re: Is there any way to show user role on admin dashboard
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.
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.