Jump to content

Exame Center Admin


Tato123

Recommended Posts

Hi guy

Sorry for my stupidity but i modify my core_navigation.tpl and now i see the exam center but i I don't see the Admin Exame center menu.

I report my text in file

<li><a href="<?php echo url('/'); ?>">home</a></li>

<?php

if(!Auth::LoggedIn())

{

// Show these if they haven't logged in yet

?>

<li><a href="<?php echo url('/login'); ?>">Login</a></li>

<li><a href="<?php echo url('/registration'); ?>">Register</a></li>

<?php

}

else

{

// Show these items only if they are logged in

?>

<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php

}

?>

<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>

<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>

<?php

$admin = ExamsData::check_admin(Auth::$userinfo->pilotid);

if ($admin->admin_level >= '1')

{echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';}

?>

<li><a href="<?php echo url('/Exams') ?>">EXAMCenter</a></li>

<?php echo $MODULE_NAV_INC;?>

<?php

if(Auth::LoggedIn())

{

if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))

{

echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';

}

?>

<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>

<?php

}

?>

Are correct? or not? Is 2 days witch i try but not with a good result. Please help Me

Thanks

Link to comment
Share on other sites

  • Moderators

<li><a href="<?php echo url('/'); ?>">home</a></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
<?php 
$admin = ExamsData::check_admin(Auth::$userinfo->pilotid); 
               if ($admin->admin_level >= '1') 
               {echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';} 
?>
<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>

<li><a href="<?php echo url('/Exams') ?>">EXAMCenter</a></li>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
	echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';
}
?>


<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>
<?php
}
?>

This should work.

It needs to show when you are logged in.

Link to comment
Share on other sites

  • Moderators

I copy your code, and i'm logged in my site but in my menu i see ExameCenter but not the Menu for the Admin Exam Center, only the admin admin center.

Where i must see the link for exam admin center?

Are you the first pilot to sgin up at your Virtual Airlines?

It is the exam center Admin, if you were the first pilot at your virtual airlines, you should see the ExamAdmin.

Link to comment
Share on other sites

  • Moderators

I'm the first pilot but don't have a call sign VAP0001, i'm VAP0901. I need to change my ID in VAP0001???

I'm not excatly sure, simpilot owns this add on.

It has to be something is jamming the access to Exam Admin.

That's all i can help you, simpilot will might help you out.

Link to comment
Share on other sites

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