Is there any way to show user role on admin dashboard

Issues related to the Login tools of WYSIWYG Web Builder.
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.
Post Reply
hussainbsi
 
 
Posts: 3
Joined: Fri Oct 14, 2022 3:58 am

Is there any way to show user role on admin dashboard

Post 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";
User avatar
Pablo
 
Posts: 23434
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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.
Post Reply