Jump to content

nexiss

Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Everything posted by nexiss

  1. Hi all I have added the code below in the bottom of the Schedules module with the hope that I can call it with my frontpage_recentbids.tpl! Is this right or should I be doing something else? what code do I need in my tpl file to show me the most recent 5 bid on the front page? I thought I would start with this little project as I thought it would be simple, clearly it would seem that when you truly don't understand something its far from simple, I have tried treading php tutorials but until you start doing it it makes no sense! and it dosent expalin codon very well either! function ShowLatestBids() { Template::Set('recentbids', SchedulesData::GetLatestBids($limit=5)); Template::Show('frontpage_recentbids.tpl'); } Appologies if this seems a bit vauge but I really have no idea what I'm doing with php and feel its a little unfair to keep using other peoples work without giving something back myself if I can get it to work
  2. oh cool, I'm getting in a right mess with this lol, I need simple step by step instructions you know like for a 5 year old lmao
  3. Hi All Ok what I am after is have a box on the front page that shows the last 5 or 10 latest bids similar to the latest reports. I have been trying to work out how to do it, my php coding skills are virtually zero! lol I understand the module and .tpl concept of and how the tpl draws the functions from the module etc but it the actual code needed on both the module and tpl files. Would someone be interest in pointing me in the right direction please. Many thanks Karl
  4. I think I know what you mean take a look here www.nexissair.co.uk if you want more details just shout and I will send you a copy of my core nave tpl to give you an idea of how to do it
  5. Nexiss Air: www.nexissair.co.uk
  6. ok fare point lol
  7. Hi Nabeel I have emailed the log file to you, hope it helps Regards Karl
  8. Hi Nabeel its over 512 kb is there another way I can get it to you?
  9. I use Wep Developer Controller, just install and away you go! Your own local web server. Details here: http://www.devside.net/
  10. Sorry Nabeel I'm getting the same thing since I updated, its loggong the correct flying time but not sending the full report, see below: [2009/04/04 13:05:00] Flight IATA:NXS0138 Pilot Number:NXS0002 Company ICAO:NXS Aircraft Type:737-800 PAX:107 Aircraft Registration:UK-NEXDA Departing Airport: EGSS Destination Airport: LIRN Online: No Route:EGSS LIRN Flight Level:35000 13:05 Zero fuel Weight: 134740 Lbs, Fuel Weight: 19345 Lbs 13:23 Parking Brakes off 13:23 Com1 Freq=121.72 13:28 Com1 Freq=125.55 13:28 Com1 Freq=121.72 13:28 Com1 Freq=125.55 13:28 Com1 Freq=127.17 13:28 Com1 Freq=121.72 13:28 Com1 Freq=125.55 13:30 VR= 150 Knots 13:30 V2= 155 Knots 13:30 Take-off 13:30 Take off Weight: 153363 Lbs 13:30 Wind: 247� @ 010 Knots Heading: 223� 13:30 POS N51� 53� 01�� E000� 13� 59�� 13:30 N11 97 N12 97 13:30 Flaps:3 at 155 Knots 13:30 Gear Up: 158 Knots 13:31 Com1 Freq=120.62 13:31 Flaps:2 at 154 Knots 13:31 Flaps:1 at 155 Knots 13:32 Flaps:0 at 208 Knots 13:34 Com1 Freq=118.82 13:45 Wind:2 Thats all we got should be loads more as it was a 2.5 hour flight. Sorry to be a pain Regards Karl
  11. Did you set all your file permissions properly when you uploaded via ftp?
  12. What are you trying to do? I have after many painful hours got java script to run in a skin, but you have to wrap it in script tags i.e <script type="text/javascript" src="<?php echo SITE_URL ?>/lib/skins/nexiss/Buttons_files/cbjscbButtons.js"></script> And check the paths very carefully that was my biggest problem, especially any paths within the Javascript itself i.e. to any images etc. hope this helps Karl
  13. mmmm I have a logout button issue, even when I'm logged out it still shows up, sure I have missed some thing but can't spot it it, could someone take a look for me please? Many thanks. <?php echo $MODULE_NAV_INC;?> <?php if(Auth::LoggedIn()) { if(Auth::UserInGroup('Administrators')) { echo '<td style="padding-right:1px" title=""><a href="'.SITE_URL.'/admin/"><img id="cbi_cbButtons_10" src="<?php echo SITE_URL ?>/lib/skins/nexiss/Buttons_files/ebbtcbButtons10_0.gif" name="ebbcbButtons_10" width="76" height="26" border="0" alt="Administrator" title="" /></a></td>'; } ?> <td style="padding-right:1px" title="Logout"><a href="<?php echo SITE_URL ?>/index.php/login/logout"><img id="cbi_cbButtons_8" src="<?php echo SITE_URL ?>/lib/skins/nexiss/Buttons_files/ebbtcbButtons8_0.gif" name="ebbcbButtons_8" width="45" height="26" border="0" alt="Logout" title="" /></td> <?php } ?> </tr> </table> <script type="text/javascript" src="<?php echo SITE_URL ?>/lib/skins/nexiss/Buttons_files/cbjscbButtons.js"></script>
  14. Has anyone created a module that creates an account in phpbb3 when signing up with the VA that they would be willing to share or would be willing to give some pointers on how to create a module that I could create and share with everyone. Many thanks Karl
  15. ok no panic I'm slowly working it out, it had something to do with the java script, for some reason it wouldn't work with href="<?php echo SITE_URL?>/Buttons_files/cbcscbButtons.gif I had to use absolute paths for the alternate images, and I didn't have the full table code either, so that was what was messing up the page (open ended table I guess). I just need to work out the login logout and register button side of things depending on if I am logged in or not. Thanks for your help so far on this.
  16. Ok I watched the tutoral as advised, while very helpful and gave me more idea of what I should be doing, I clearly did something wrong, I completley destroyed my site layout, fortunatly I was playing with my test site and not my live site. The code for my working menu is: <link rel="stylesheet" href="Buttons_files/cbcscbButtons.css" type="text/css" /> <ul id="ebul_cbButtons_3" class="ebul_cbButtons" style="display: none;"> <li><a title="">Forum</a></li> <li><a title="">Links</a></li> <li><a title="">Rules</a></li> <li><a title="">Sign Up</a></li> </ul> <ul id="ebul_cbButtons_4" class="ebul_cbButtons" style="display: none;"> <li><a title="">Profile</a></li> <li><a title="">Flight Bids</a></li> <li><a title="">My Pireps</a></li> <li><a title="">My Flights</a></li> <li><a title="">Login</a></li> </ul> <ul id="ebul_cbButtons_5" class="ebul_cbButtons" style="display: none;"> <li><a title="">Roster</a></li> <li><a title="">Fleet Info</a></li> <li><a title="">Hubs Info</a></li> </ul> <ul id="ebul_cbButtons_6" class="ebul_cbButtons" style="display: none;"> <li><a title="">Schedule</a></li> <li><a title="">Live Map</a></li> </ul> <ul id="ebul_cbButtons_7" class="ebul_cbButtons" style="display: none;"> <li><a title="">Flight Plans</a></li> <li><a title="">Fleet</a></li> <li><a title="">Hubs</a></li> <li><a title="">Scenery</a></li> </ul> <table id="cbButtonsebul_table" width="0" cellpadding="0" cellspacing="0" border="0"> <tr> <td style="padding-right:1px" title="Home"><a href="<?php echo SITE_URL ?>/index.php/Frontpage"><img id="cbi_cbButtons_1" src="Buttons_files/ebbtcbButtons1_0.gif" name="ebbcbButtons_1" width="39" height="26" border="0" alt="Home" title="Home" /></a></td> <td style="padding-right:1px" title="Contact Us"><a href="<?php echo SITE_URL ?>/index.php/contact"><img id="cbi_cbButtons_2" src="Buttons_files/ebbtcbButtons2_0.gif" name="ebbcbButtons_2" width="65" height="26" border="0" alt="Contact Us" title="Contact Us" /></a></td> <td style="padding-right:1px" title=""><a><img id="cbi_cbButtons_3" src="Buttons_files/ebbtcbButtons3_0.gif" name="ebbcbButtons_3" width="63" height="26" border="0" alt="General" title="" /></a></td> <td style="padding-right:1px" title=""><a><img id="cbi_cbButtons_4" src="Buttons_files/ebbtcbButtons4_0.gif" name="ebbcbButtons_4" width="71" height="26" border="0" alt="Pilot Area" title="" /></a></td> <td style="padding-right:1px" title=""><a><img id="cbi_cbButtons_5" src="Buttons_files/ebbtcbButtons5_0.gif" name="ebbcbButtons_5" width="78" height="26" border="0" alt="Operations" title="" /></a></td> <td style="padding-right:1px" title=""><a><img id="cbi_cbButtons_6" src="Buttons_files/ebbtcbButtons6_0.gif" name="ebbcbButtons_6" width="56" height="26" border="0" alt="Flights" title="" /></a></td> <td style="padding-right:1px" title=""><a><img id="cbi_cbButtons_7" src="Buttons_files/ebbtcbButtons7_0.gif" name="ebbcbButtons_7" width="80" height="26" border="0" alt="Downloads" title="" /></a></td> </tr> </table> <script type="text/javascript" src="Buttons_files/cbjscbButtons.js"></script> I still have no idea of how to get this into the core.nav.tpl without messing up the site layout any advise or code snippets would be great
  17. Hi all I have been playing with a customized button thing for a while now and am stuck, I have the menu working see here: http://www.nexissair.co.uk/Buttons.htm'>http://www.nexissair.co.uk/Buttons.htm How do I get that into my site here: http://www.nexissair.co.uk keeping the functions of the core_nav? i.e. when not logged in the downloads and pilot area will not show up. I'm struggeling abit now and any help would be great, I can get it to work as an htm file but as soon as I try and build it into the core_nav.tpl it all goes belly up.
  18. Ok don't worry I have worked it out! I changed the <li><a href="http://nexissair.co.uk/rules.php">Rules</a></li> to <li><a href="<?php echo SITE_URL ?>/rules.php">Rules</a></li> and now it works, thats crazy I took a fresh look at it after a days work and a nights sleep and it slapped me in the face lol. Thanks for your help on this one
  19. If it helps here is the code from my core_navigation Page: <li><a href="<?php echo SITE_URL ?>/index.php/Frontpage">Home</a></li> <li><a href="<?php echo SITE_URL ?>/index.php/contact">Contact Us</a></li> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <li><a href="<?php echo SITE_URL ?>/index.php/login/">Login</a></li> <li><a href="<?php echo SITE_URL ?>/index.php/registration">Register</a></li> <?php } else { // Show these items only if they are logged in ?> <li><a href="<?php echo SITE_URL ?>/index.php/profile">Pilot Center</a></li> <?php } ?> <li><a href="<?php echo SITE_URL ?>/index.php/pilots">Pilots</a></li> <li><a href="<?php echo SITE_URL ?>/index.php/acars">Live Map</a></li> <li><a href="http://nexissair.co.uk/rules.php">Rules</a></li> <?php echo $MODULE_NAV_INC;?> <?php if(Auth::LoggedIn()) { if(Auth::UserInGroup('Administrators')) { echo '<li><a href="'.SITE_URL.'/admin/">Admin Center</a></li>'; } ?> <li><a href="<?php echo SITE_URL ?>/index.php/login/logout">Log Out</a></li> <?php } ?> Many Thanks
  20. Odd one indeed I have checked the page and: <?php is on line 1, so no white space at the top of the page
  21. one.com web hosting, don't touch em if you wan't all the goodies to work properly
  22. Thanks Nabeel I have ajusted the page as you suggested above, told you I was no coder, its a wonder I got this far lol, any way I still have the logged out menu on this page regardless of weather I'm logged in or not problem, but when I go back to a phpvms page the right menu appears depending on if logged in or out correctly Thanks Karl
  23. ok I must have the laziest host our there! they won't shut safe mode of as they say it poses a security risk! So I guess I'll have to live with it Thanks anyway
  24. Only to skin it the code is below: <?php /** * * STOP!!!!!!!! * * * * * Are you editing the crystal skin directly? * DON'T * * Copy and rename the crystal folder. Otherwise it'll get * overwritten in an update. * * Also, READ THE DOCS * * http://www.phpvms.net/docs/skinning * */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?></title> <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/nexiss/styles.css" /> <?php Template::Show('core_htmlhead.tpl'); ?> <style type="text/css"> <!-- body { background-color: #CEFFCF; margin-top: 20px; } --> </style></head> <body> <p> <?php Template::Show('core_htmlreq.tpl'); ?> </p> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="229"><img src="/lib/images/Head Top Left.jpg" width="241" height="111" /></td> <td width="303"><img src="/lib/images/Head Top Center.jpg" width="334" height="111" /></td> <td width="268"><img src="/lib/images/Head Top Right.jpg" width="539" height="111" /></td> </tr> <tr> <td><img src="/lib/images/Head Middle Left.jpg" width="241" height="73" /></td> <td><img src="/lib/images/Head Middle Center.jpg" width="334" height="73" /></td> <td><img src="/lib/images/Head Right Middle.jpg" width="539" height="73" /></td> </tr> <tr> <td valign="top"><img src="/lib/images/Head Lower Middle Left.jpg" width="241" height="29" /></td> <td><img src="/lib/images/Head Lower Middle Center.jpg" width="334" height="29" /></td> <td><img src="/lib/images/Head Right Lower Middle.jpg" width="539" height="29" /></td> </tr> <tr> <td colspan="3" bgcolor="#060000"><div id="topNav"> <ul class="nav"> <p> <?php Template::Show('core_navigation.tpl'); ?> </p> </ul> </div></td> </tr> <tr> <td valign="top"><img src="/lib/images/Head Bottom Left.jpg" width="241" height="12" /></td> <td><img src="/lib/images/Head Bottom Center.jpg" width="334" height="12" /></td> <td><img src="/lib/images/Head Right Bottom.jpg" width="539" height="12" /></td> </tr> </table> <p> </p> and then my page code: <?php include 'core/codon.config.php'; $BaseTemplate = new TemplateSet; # Load the main skin $settings_file = SKINS_PATH.DIRECTORY_SEPARATOR.CURRENT_SKIN . '.php'; if(file_exists($settings_file)) include $settings_file; $BaseTemplate->template_path = SKINS_PATH; $BaseTemplate->Set('title', SITE_NAME); Template::Set('MODULE_NAV_INC', $NAVBAR); Template::Set('MODULE_HEAD_INC', $HTMLHead); $BaseTemplate->ShowTemplate('header.tpl'); flush(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Nexiss Air Rules</title> <style type="text/css"> <!-- .style7 { font-family: Arial; font-size: 12px; } --> </style> <style type="text/css"> <!-- body { background-color: #CEFFCF; } .style11 {font-size: 12px; font-weight: bold; font-family: Arial;} --> </style> </head> <body> <table width="1114" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#6CC171"> <tr> <td bgcolor="#6CC171" class="style11">General</td> </tr> <tr> <td bgcolor="#E4F3E6"><span class="style7">Every pilot of Nexiss Air must respect all the rules which are noted here. The Nexiss Air VA has the right to make minor changes to these rules without notice, major changes must be notified to the current pilots.The Nexiss Air VA has the right to implement these minor changes at any time they choose. (f.e. when a staff member notices something due to an abnormal PIREP)</span></td> </tr> <tr> <td bgcolor="#6CC171" class="style11">1. Pilot Requirments</td> </tr> <tr> <td valign="top" bgcolor="#E4F3E6"><p class="style7">1. The pilot must have any Flight Simulator.</p> <p class="style7">2. The pilot must use his/her real identity to join the Virtual Airline.</p> <p class="style7">3. The pilot must be able to show professionalism and realism..</p> <p class="style7">4. The pilot must respect all other members and the staff.</p> <p class="style7">5. The pilot is required to read the rules again every month, this is to ensure he/she is aware of all minor changes that appear in the rules.</p></td> </tr> <tr> <td bgcolor="#6CC171" class="style11">2. Transfer of Hours</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. When a pilot joins, he/she is allowed to take the hours from a previous Virtual Airline with him. This is ONLY valid upon registration.</p> <p class="style7">2. We don't allow transfer of hours from IVAO or VATSIM.</p></td> </tr> <tr> <td bgcolor="#6CC171" class="style11">3. Inactivity</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. A pilot must fly at least once every 3 months, otherwise the pilot will be <strong>removed without notice</strong>.</p> <p class="style7">2. When a pilot is removed, he/she will get a ban of 3 months, after that ban he/she will be able to join again.</p> <p class="style7">3. Exceptions to the "ban rule" (§3.2) can be made, when the pilot meets the following conditions: he/she must have a good motivation and be an active pilot before he/she went inactive.</p> <p class="style7">4. When an exception is made, the pilot will be required to contact us personally and will have to complete his/hers first flight in the first month after he/she rejoined.</p></td> </tr> <tr> <td bgcolor="#6CC171" class="style11">4. Flights</td> </tr> <tr> <td bgcolor="#B3DDB8" class="style11">4.1 General</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. For each flight, the pilot is required to send in <strong>ONE</strong> PIREP - no more than one PIREP for a flight is allowed - either with FSAcars or the website (see also §6).</p> <p class="style7">2. If <span lang="EN-GB" xml:lang="EN-GB">a pirep has been locke</span>d<span lang="EN-GB" xml:lang="EN-GB">, the pirep must be send to flightops within 5 days. In</span> <span lang="EN-GB" xml:lang="EN-GB">case the pirep</span> has <span lang="EN-GB" xml:lang="EN-GB">not been send the pirep will be cancelled.</span></p> <p class="style7">3. TheNexiss Air VA has the right to ask more information about a PIREP if it thinks something is wrong or just as a routine check.</p> <p class="style7">4. A Pilot is not allowed to send a PIREP for a flight that he/she did not fly.</p> <p class="style7">5. A flight may only be PIREPed once correctly.</p> <p class="style7">6. Events can only be logged if the pilot participated to the event itself.</p> <p class="style7">7. The pilot is not required to fly the flights at the time indicated in our timetable, but is encouraged to set his FS Clock to this time.</p></td> </tr> <tr> <td bgcolor="#B3DDB8" class="style11">4.2 Online / Offline</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. All flights, can be flown online or offline.</p> <p class="style7">2. Events should be flown online, except when specified otherwise.</p></td> </tr> <tr> <td bgcolor="#B3DDB8" class="style11">4.3 Aircraft</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. The pilot is required to use an aircraft - preferable the timetable one - according to his rank.</p> <p class="style7">2. When no aircraft of the timetable type is available, the pilot should choose an aircraft according to his rank. The type and livery of that aircraft can freely be choosen, as long as the performance is more or less the same. Though the type can never be an aircraft with abnormal jetliner performance (f.e. an aircraft that doesn't exist at this time i.e. 787).</p> <p class="style7">3. The pilot is free too choose the aircraft <strong>for Special Flights, World Tour and Events</strong> except when specified otherwise.</p></td> </tr> <tr> <td bgcolor="#B3DDB8" class="style11">4.4 Simulation Rate</td> </tr> <tr> <td bgcolor="#E4F3E6"><p class="style7">1. The maximum simulation rate is 1x.</p> <p class="style7">2. Flights flown with a simulation rate higher than allowed will be cancelled.</p></td> </tr> </table> <p> </p> <?php $BaseTemplate->ShowTemplate('footer.tpl'); # Force connection close DB::close(); ?> </body> </html> You can see my site at www.nexissair.co.uk, still in the process of building it at the moment Thanks Karl
  25. Hi Brilliant it works a treat except, when I am logged in and then go to one of my php pages using the script you supplied it shows the not logged in menu but then if I go to a phpvms page it shows the correct menu, how do I tell the system which pages are public and which are members only. other than that it works great, thanks
×
×
  • Create New...