Shuttle VA Posted January 6, 2010 Report Share Posted January 6, 2010 I am having some trouble with the navigation while skinning phpVMS, i have the core of the system in place but don't know what code and where to put it for the navigation. If someone can also help with what code and where to put the code for the powered by phpVMS. current code is as follows header.tpl <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Shuttle Virtual Airlines</title> <meta name="generator" content="Shuttle Virtual Airlines"> <style type="text/css"> div#container { width: 750px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } </style> <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/jscookmenu.js"></script> <link rel="stylesheet" href="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.css" type="text/css"> <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.js"></script> </head> <body bgcolor="#FFFFFF" text="#000000"> <div id="container"> <div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:749px;height:200px;z-index:0;" align="left"> <img src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/images/topbanner.jpg" id="Image1" alt="" align="top" border="0" style="width:749px;height:200px;"></div> <div id="wb_MenuBar1" style="position:absolute;left:0px;top:223px;width:230px;height:25px;z-index:2001;" align="left"> <script type="text/javascript"> <!-- var wbMenuMenuBar1 = [ [null, 'Home', './index.php', '_self', 'Home'] ]; --> </script> <div id="MenuIDMenuBar1"></div> <script type="text/javascript"> <!-- cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue'); --> </script> </div> <div id="wb_Marquee1" style="position:absolute;left:0px;top:200px;width:750px;height:20px;background-color:#0000A0;z-index:2;" align="left"> <marquee direction="up" height="20" scrolldelay="100" scrollamount="1" behavior="scroll" loop="0" style="background-color:#0000A0;" id="Marquee1"><font style="font-size:13px" color="#FFFFFF" face="Arial">Shuttle Virtual Airlines, website revision 3.0.</font></marquee></div> <hr noshade="noshade" size="2" width="750" color="#000000" id="Line1" style="margin:0;padding:0;position:absolute;left:0px;top:220px;width:750px;height:2px;z-index:3"> </div> <div id="mycontent" style="position:relative;top:250px;margin-left:auto;margin-right:auto;width:750px;height:auto;z-index:4"> footer.tpl </div> </body> </html> my phpVMS directory is located at http://www.shuttleva.com/phpVMS Thanks for the help Tom tbergman@shuttleva.com Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 6, 2010 Report Share Posted January 6, 2010 "Powered by phpVMS": <p>Powered by <a href="http://phpvms.net">phpVMS></a></p> The navigation....seems a bit confusing but try this where the 'null' is: [null, 'Home', './index.php', '_self', 'Home'] <?php if(Auth::LoggedIn() == true) { ?> [null, 'Pilot Center', '.<?php echo url('profile');?>, '_self', 'Pilot Center'] } ?> <?php if(Auth::LoggedIn() == false) { ?> [null, 'Log In', '.<?php echo url('login');?>', '_self', 'Log In'] [null, 'Register', '.<?php echo url('registration');?>', '_self', 'Register'] <?php } ?> [null, 'Pilots', '.<?php echo url('pilots');?>', '_self', 'Pilots'] [null, 'Live Map', '.<?php echo url('acars');?>', '_self', 'Live Map'] <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> [null, 'Admin Panel', '.<?php echo fileurl('/admin');?>', '_self', 'Admin Panel'] <?php } } ?> Good luck! Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 6, 2010 Report Share Posted January 6, 2010 Made an error, recheck the code above Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 6, 2010 Author Report Share Posted January 6, 2010 seem to be getting an error on line 74, but that line was not changed, could i need the core_navigation.tpl in a different location than the default. Tom Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 6, 2010 Report Share Posted January 6, 2010 Repost code for header.tpl plz. Also I forgot logout.... could i need the core_navigation.tpl in a different location than the default. Uhh, what do you mean? Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 6, 2010 Author Report Share Posted January 6, 2010 got it reposted, i am currently trying the url's for profile/registration ect. Tom Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 6, 2010 Report Share Posted January 6, 2010 Ok, im totally confused.... make it back to normal...i give up. Sorry, Can anyone else work this out? Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 6, 2010 Author Report Share Posted January 6, 2010 Repost code for header.tpl plz. Also I forgot logout.... Uhh, what do you mean? i was following neebles skinning tutor. with no luck, since that file was part of the tutor. i thought it may have something to do with the error. Tom Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 6, 2010 Author Report Share Posted January 6, 2010 Ok, im totally confused.... make it back to normal...i give up. Sorry, Can anyone else work this out? thanks for the effort, hopefully someone will know since i am also confused. Tom Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 6, 2010 Administrators Report Share Posted January 6, 2010 Just a quick glance, don't you need commas after every [null, 'Home', './index.php', '_self', 'Home'] line? Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 7, 2010 Author Report Share Posted January 7, 2010 took the commas out, here is the code now, im still confused but thats normal, i think my error is when i follow the skinning tutorial i cannot find the In your navigation <ul>, place: <?php Template::Show('core_navigation.tpl'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Shuttle Virtual Airlines</title> <meta name="generator" content="Shuttle Virtual Airlines"> <style type="text/css"> div#container { width: 750px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } </style> <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/jscookmenu.js"></script> <link rel="stylesheet" href="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.css" type="text/css"> <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.js"></script> </head> <body bgcolor="#FFFFFF" text="#000000"> <div id="container"> <div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:749px;height:200px;z-index:0;" align="left"> <img src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/images/topbanner.jpg" id="Image1" alt="" align="top" border="0" style="width:749px;height:200px;"></div> <div id="wb_Text1" style="position:relative;margin-left:auto;margin-right:auto;width:750px;top:223;height:10px;z-index:4;" align="center"> <font style="font-size:11px" color="#000000" face="Arial">PIREP/CARS software powered by <a href="http://www.phpvms.net" target="_blank">phpVMS</a></font></div> <div id="wb_MenuBar1" style="position:absolute;left:0px;top:233px;width:230px;height:25px;z-index:2001;" align="left"> <script type="text/javascript"> <!-- var wbMenuMenuBar1 = [ [null 'Home' './index.php' '_self' 'Home'] <?php if(Auth::LoggedIn() == true) { ?> [null 'Pilot Center' '.<?php echo url('profile');?> '_self' 'Pilot Center'] } ?> <?php if(Auth::LoggedIn() == false) { ?> [null 'Log In' '.<?php echo url('login');?>' '_self' 'Log In'] [null 'Register' '.<?php echo url('registration');?>' '_self' 'Register'] <?php } ?> [null 'Pilots' '.<?php echo url('pilots');?>' '_self' 'Pilots'] [null 'Live Map' '.<?php echo url('acars');?>' '_self' 'Live Map'] <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> [null 'Admin Panel' '.<?php echo fileurl('/admin');?>' '_self' 'Admin Panel'] <?php } } ?> ]; --> </script> <div id="MenuIDMenuBar1"></div> <script type="text/javascript"> <!-- cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue'); --> </script> </div> <div id="wb_Marquee1" style="position:absolute;left:0px;top:200px;width:750px;height:20px;background-color:#0000A0;z-index:2;" align="left"> <marquee direction="up" height="20" scrolldelay="100" scrollamount="1" behavior="scroll" loop="0" style="background-color:#0000A0;" id="Marquee1"><font style="font-size:13px" color="#FFFFFF" face="Arial">Shuttle Virtual Airlines, website revision 3.0.</font></marquee></div> <hr noshade="noshade" size="2" width="750" color="#000000" id="Line1" style="margin:0;padding:0;position:absolute;left:0px;top:220px;width:750px;height:2px;z-index:3"> </div> <div id="mycontent" style="position:relative;top:260px;margin-left:auto;margin-right:auto;width:750px;height:auto;z-index:4"> Tom Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 7, 2010 Administrators Report Share Posted January 7, 2010 No, I meant you need commas after everyone one of those brackets Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 8, 2010 Author Report Share Posted January 8, 2010 ok got the basic navigation working ;D yet i have yet to figure out how to edit it to the style of the rest of my menus, i will leave the basic nav alone and up on the web so you can see. i have the core_navigation.tpl in my custom skin folder looking like this <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 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 } ?> my menus are in this format <div id="wb_MenuBar1" style="position:absolute;left:0px;top:223px;width:750px;height:25px;z-index:2001;" align="left"> <script type="text/javascript"> <!-- var wbMenuMenuBar1 = [ [null, 'Home', 'http://www.shuttleva.com/phpVMS/index.php/', '_self', 'Home'], [null, 'Pilot Center', 'http://www.shuttleva.com/phpVMS/index.php/profile', '_self', 'Pilot Center'], [null, 'Pilots', 'http://www.shuttleva.com/phpVMS/index.php/pilots', '_self', 'Pilots'], [null, 'Live Map', 'http://www.shuttleva.com/phpVMS/index.php/acars', '_self', 'Live Map'], [null, 'Login', 'http://www.shuttleva.com/phpVMS/index.php/login', '_self', 'Login'], [null, 'Log Out', 'http://www.shuttleva.com/phpVMS/index.php/logout', '_self', 'Log Out'], [null, ' ', null, '_self', ' '], [null, ' ', null, '_self', ' '], [null, ' ', null, '_self', ' '], [null, ' ', null, '_self', ' '], [null, ' ', null, '_self', ' '] ]; --> </script> <div id="MenuIDMenuBar1"></div> <script type="text/javascript"> <!-- cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue'); --> </script> </div> does anyone have a clue what needs to be done to integrate. All help is appreciated. phpVMS is at http://www.shuttleva.com/phpVMS home page is at http://www.shuttleva.com/index.php Thanks again Tom tbergman@shuttleva.com 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.