poole3003 Posted August 3, 2014 Report Share Posted August 3, 2014 http://etihadvirtual.co.uk/index.php/pages/etihadcodeshares how would i code that to go under neathe my pilot center Quote Link to comment Share on other sites More sharing options...
StartVM Posted August 5, 2014 Report Share Posted August 5, 2014 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. Quote Link to comment Share on other sites More sharing options...
Tom Posted August 5, 2014 Report Share Posted August 5, 2014 If you want it in the footer it'd be easiest to use <?php if(MainController::$activeModule == 'PROFILE'){ // Do things } ?> Or you could just put it in the bottom of profile_main template. Quote Link to comment Share on other sites More sharing options...
poole3003 Posted August 5, 2014 Author Report Share Posted August 5, 2014 just want it to show on a link thats all under one of the tabs all ready Quote Link to comment Share on other sites More sharing options...
Tom Posted August 5, 2014 Report Share Posted August 5, 2014 just want it to show on a link thats all under one of the tabs all ready If it's just in the main body of the pilot center then edit profile_main.[php/tpl] in your skins folder Quote Link to comment Share on other sites More sharing options...
poole3003 Posted August 5, 2014 Author Report Share Posted August 5, 2014 No i mean in the tab ont the home page so its a clickable link so all pilots can see Quote Link to comment Share on other sites More sharing options...
freshJet Posted August 5, 2014 Report Share Posted August 5, 2014 I'm utterly confused. What are you asking here? By the way, your navbar is practically unreadable. Quote Link to comment Share on other sites More sharing options...
Tom Posted August 5, 2014 Report Share Posted August 5, 2014 Oh you want it in your nav? Edit navigation_main.[php/tpl] Quote Link to comment Share on other sites More sharing options...
StartVM Posted August 5, 2014 Report Share Posted August 5, 2014 Oh you want it in your nav? Edit navigation_main.[php/tpl] core_navigation.[php/tpl] Quote Link to comment Share on other sites More sharing options...
poole3003 Posted August 5, 2014 Author Report Share Posted August 5, 2014 and how would the code me my friend would it be <lil>a href then the following code Quote Link to comment Share on other sites More sharing options...
Tom Posted August 5, 2014 Report Share Posted August 5, 2014 core_navigation.[php/tpl] Oops and how would the code me my friend would it be <lil>a href then the following code Yes, <li><a href="index.php/your_page">Page name</a></li> Quote Link to comment Share on other sites More sharing options...
poole3003 Posted August 5, 2014 Author Report Share Posted August 5, 2014 when you mean your_page is that the bit in the pages part Quote Link to comment Share on other sites More sharing options...
poole3003 Posted August 5, 2014 Author Report Share Posted August 5, 2014 <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 Quote Link to comment Share on other sites More sharing options...
Tom Posted August 5, 2014 Report Share Posted August 5, 2014 <li><a href="index.php/http://etihadcodeshare">Etihad code </a></li> should be <li><a href="index.php/pages/etihadcodeshare">Etihad code </a></li> Providing the page is set up as "ethiadcodeshare" 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.