OzFlyer Posted April 25, 2016 Report Posted April 25, 2016 Hi All, Is there some code that will display a list of Admin's that are logged into the admin panel? Thank you David. Quote
Virtualei Posted April 26, 2016 Report Posted April 26, 2016 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 /> Quote
OzFlyer Posted April 26, 2016 Author Report Posted April 26, 2016 Thank you for the code which file do you recommend I add it to. Thank you David Quote
Virtualei Posted April 26, 2016 Report Posted April 26, 2016 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 Quote
OzFlyer Posted April 26, 2016 Author Report Posted April 26, 2016 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.