Jump to content

Help Please


poole3003

Recommended Posts

I would need to see your exact code and get a better idea of what you want, but what you could do is make a variable and conditional to display new content in the footer when your in the pilot center. I have not tested this on the phpVMS framework, but give it a go.

In your profile_main.tpl file above anything else put the following

<?php $pcfooter = 'profile'; ?>

Make a file in your active skin folder named footer.php, anything you want displayed put in this file.

Now go to your layout.tpl and where you want the content from the footer.php displayed, put

<?php if($pcfooter == 'profile') {echo "<?php include ('lib/skins/SKIN NAME/footer.php') ; } ?>

I am really tired and my mind went off as I am on vacation so if my syntax is off excuse me, my mind has gone to mush.

Link to comment
Share on other sites

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

<li><a href="index.php/http://etihadcodeshare">Etihad code </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 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

}

?>

Thats my file and it isnt still showing up mate

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