Tato123 Posted June 6, 2010 Report Share Posted June 6, 2010 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 Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted June 6, 2010 Moderators Report Share Posted June 6, 2010 <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. Quote Link to comment Share on other sites More sharing options...
Tato123 Posted June 6, 2010 Author Report Share Posted June 6, 2010 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? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted June 6, 2010 Moderators Report Share Posted June 6, 2010 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. Quote Link to comment Share on other sites More sharing options...
Tato123 Posted June 6, 2010 Author Report Share Posted June 6, 2010 I'm the first pilot but don't have a call sign VAP0001, i'm VAP0901. I need to change my ID in VAP0001??? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted June 6, 2010 Moderators Report Share Posted June 6, 2010 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. Quote Link to comment Share on other sites More sharing options...
Tato123 Posted June 6, 2010 Author Report Share Posted June 6, 2010 Now i changed my account and now go at the perfections. thanks sir Quote Link to comment Share on other sites More sharing options...
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.