Jump to content

Recommended Posts

Posted

This will show Admins that are logged onto the website but not necessarily the admin panel

<?php
$shown = array();
$staff = StatsData::UsersOnline();
foreach($staff as $pilot)
{
if(PilotGroups::group_has_perm(PilotGroups::getUserGroups($pilot->pilotid), ACCESS_ADMIN))
{
if(in_array($pilot->pilotid, $shown))
													 continue;
					 else
													 $shown[] = $pilot->pilotid;
?>
<a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a><br />

Posted

Thank you for the code which file do you recommend I add it to.

Thank you

David

Its up to you but probably the frontpage_maiin so as your members and visitors can see if staff are online

Posted

Sorry I should have add it is just for other admins to see who is login and doing PIREP's.(Well at least login any way).

So do you know where and which file displays the list of pending PIREP's

Again thank you for all our help.

David.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...