Jump to content

Frequently Asked Questions v1


servetas

Recommended Posts

  • 2 months later...
  • Moderators

Wondering if you can help. I have succesfully installed this and have added it to my top bar under the part to show when users are not logged in. However, when you click it, it takes you to the right page but says "

You must be logged in to access this feature!"

Any ideas?

<?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>
<li><a href="<?php echo url('/faq'); ?>">FAQ</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/'); ?>">Operations</a>
			 <ul>
				 <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
				 <li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
	 <li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
			 </ul>
</li>
<?php

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