Jump to content

Angel Air

Members
  • Posts

    252
  • Joined

  • Last visited

Everything posted by Angel Air

  1. so something like this? <?php include ('http://angelairva.co.uk/Forum/SSI.php'); $topics = ssi_recentTopics(5,null,'array'); ?>
  2. Thankyou I appreciate it
  3. Thankyou for your help but that does not work it just breaks my frontpage almost like it is wiping out the CSS Scott
  4. Hi all I am trying to display latest Forum posts on my frontpage I am using SMF as my forum I have been on to the SMF forums to see how to display what I want and this is the code I have found <?php include('http://www.angelairva.co.uk/Forum/SSI.php?ssi_function=recentTopics'); ?> and this is the error I am getting on my frontapge Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/angelair/public_html/lib/skins/pureHTML5_blue/frontpage_main.tpl on line 427 Warning: include(http://www.angelairva.co.uk/Forum/SSI.php?ssi_function=recentTopics) [function.include]: failed to open stream: no suitable wrapper could be found in /home/angelair/public_html/lib/skins/pureHTML5_blue/frontpage_main.tpl on line 427 Warning: include() [function.include]: Failed opening 'http://www.angelairva.co.uk/Forum/SSI.php?ssi_function=recentTopics' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/angelair/public_html/lib/skins/pureHTML5_blue/frontpage_main.tpl on line 427 I would really appreciate any help Thank you in advance Scott
  5. does that automatically send a reminder email?
  6. Hi all, Is there a module about or a piece of code that would send an email automatically to a pilot if he/she has not completed a flight within the first 10 days of registering. Or within 30 days of a completed flight Thanks in advance Scott
  7. Hi, Is there a way to add existing users to the Forum DB I know simpilot said he thought he had a script? If not I will have to add them manually Regards Scott
  8. Thankyou Vangelis Now testing
  9. <!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"> <script src="source/jquery.min.js"></script> <script src="source/jquery-ui.min.js"></script> <script src="source/slideshow.min.js"></script> <head> <link rel="stylesheet" href="source/slideshow.css" type="text/css" /> <div id="slideshow" class="slider"> <img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_2.png" alt="" width="630" height="260"><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/banner1.jpg" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_3.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_5.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_6.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_7.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_10.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_12.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_14.png" alt="" width="630" height="260" /><img src="http://angelairva.co.uk/lib/skins/pureHTML5_blue/images/Screenshot_15.png" alt="" width="630" height="260" /> </div> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> $(".slider").slider({ interval: 5000, effect: 'slide' }); <body> </body> </html>
  10. Hi Ian, I have followed the doc's and can get the images to display on the frontpage but they are all under each other as one block of images how do I seperate them ? Thanks Scott
  11. Where do the files need to be placed for this to work? And how do you use it say on the frontpage? Scott
  12. Is there a way of linking this to the registration Page so that they cant register until they agree to the rules?
  13. Any update on this Ian? My Schedules Manager would love this add-on. Scott
  14. Vangelis Could you take a look at the code to see why when I select the aircraft to be used it does not get sent in the email even though it has been selected in the form. Thanks in advance Scott
  15. I am having a problem with the select aircraft section it is not showing up on the email so my schedules manager has no idea which aircraft the pilot wanted to use on the flight any ideas?
  16. Change the last line of code to look like this in the core/modules/Routsubmit/Routesubmit.php echo "Thank You!" . " -" . "<a href='http://YOUR SITE' style='text-decoration:none;color:#ff0099;'> Return Home</a>";
  17. nevermind a folder did not upload correctly Thankyou again for all your help
  18. Thanks for the help Vangelis. I have inserted the files into the respective folders but I am now getting this error, Notice: The template file "/home/angelai2/public_html//core/templates/RouteSubmit/RouteSubmit.tpl" doesn't exist in/home/angelai2/public_html/core/classes/TemplateSet.class.php on line 248
  19. Thankyou very much. That is very kind of you to do that for me. I have read the pinned post about modules and MVC but I have not done enough coding for it to make sense to me I will look at it and try to understand it a bit better than I do at the moment. Thanks once again
  20. Here is what I have got so far route_submit.tpl to go in core/templates <form action="route_submit.php" method="POST"> <table width='100%' border='0'> <tr> <td><strong>Name:</strong></td> <td> <?php if(Auth::LoggedIn()) { echo Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname.'" />'; } else { ?> <input type="text" name="name" value="" /> <?php } ?> </td> </tr> <tr> <td width="1%" nowrap><strong>E-Mail Address:</strong></td> <td> <?php if(Auth::LoggedIn()) { echo Auth::$userinfo->email; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->email.'" />'; } else { ?> <input type="text" name="email" value="" /> <?php } ?> </td> </tr> <tr> <td><strong>Departure ICAO: </strong></td> <td><input type="text" name="depp"></td> </tr> <tr> <td><strong>Arrival ICAO: </strong></td> <td><input type="text" name="arr"></td> </tr> <tr> <td><strong>Route:</strong></td> <td> <textarea name="route" cols='45' rows='5'><?php echo $_POST['message'];?></textarea> </td> </tr> <tr> <td><strong>Aircraft:</strong></td> <td> PREFERRED AIRCRAFT:<br /> <select name="Aircraft"> <option value=" ">Please choose one</option> <option value=" ">Airbus</option> <option>Airbus A318-111</option> <option>Airbus A319-111</option> <option>Airbus A320-211</option> <option>Airbus A321-211</option> <option value=" ">Boeing</option> <option>Boeing 737-800/W</option> <option>Boeing 737-900/W</option> <option>Boeing 747-400</option> <option>Boeing 747-400F</option> <option>Boeing 747-800I</option> <option>Boeing 757-200</option> <option>Boeing 767-300</option> <option>Boeing 777-200LR</option> <option>Boeing 777-300ER</option> <option>Boeing 777-200F</option> <option value=" ">De Havilland</option> <option>DHC-8-400</option> <option value=" ">McDonnell Douglas</option> <option>MD-11</option> <option>MD-11F</option> </select><br /><br /> </td> </tr> <tr> <td><strong>Flight Level: </strong></td> <td><input type="text" name="fl"></td> </tr> <tr> <td><strong>Departure Time: </strong></td> <td><input type="text" name="dtime"></td> </tr> <tr> <td><strong>Arrival Time: </strong></td> <td><input type="text" name="atime"></td> </tr> <tr> <td><strong>Flight Time: </strong></td> <td><input type="text" name="ftime"></td> </tr> <tr> <td><strong>Notes: </strong></td> <td> <textarea name="notes" cols='45' rows='5'><?php echo $_POST['notes'];?></textarea> </td> </tr> <tr> <td><strong>Price Per Ticket: £ </strong></td> <td><input type="text" name="ppt"></td> </tr> <tr> <td><strong>Flight Type "P"= Passenger "C"= Cargo: </strong></td> <td><input type="text" name="flight type"></td> </tr> <tr> <td><strong>Days of the week this schedule is active 7 = everyday</strong></td> <td><input type="text" name="dow"></td> </tr> <tr> <td width="1%" nowrap><strong>Captcha</strong></td> <td> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </td> </tr> <tr> <td> <input type="hidden" name="loggedin" value="<?php echo (Auth::LoggedIn())?'true':'false'?>" /> </td> <td> <input type="submit" name="submit" value='Submit Route'> </td> </tr> </table> </form> and route_submit.php to go in core/modules <?php $name = $_POST['name']; $email = $_POST['email']; $depp = $_POST['depp']; $arr = $_POST['arr']; $route = $_POST['route']; $aircraft = $_POST['aircraft']; $fl = $_POST['fl']; $dtime = $_POST['dtime']; $atime = $_POST['atime']; $ftime = $_POST['ftime']; $notes = $_POST['notes']; $formcontent="From: $name \n Depp: $depp \n Arr: $arr \n Route: $route \n Aircraft: $aircraft \n Fl: $fl \n Dtime: $dtime \n Atime: $atime \n Ftime: $ftime \n Notes: $notes \n"; $recipient = "schedulesmanager@angelairva.co.uk"; $subject = "Pilot Submitted Route"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); echo "Thank You!" . " -" . "<a href='form.html' style='text-decoration:none;color:#ff0099;'> Return Home</a>"; ?> I have just tried it and i get An Error Was Encountered The module "ROUTE_SUBMIT" doesn't exist!
  21. I did not think you could just add it straight to the schedules
  22. Hi all I have created this form to place in the pilot centre so that if a pilot would like a route added to the VA he/she can fill this in and send it to the schedules manager. I have built the front end but I am struggling with the back end (PHP) could someone help me out? <!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" /> <form name="contactform" method="post" action="send_form_email.php"> <table width='100%' border='0'> <tr> <td><strong>Name:</strong></td> <td> <?php if(Auth::LoggedIn()) { echo Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname.'" />'; } else { ?> <input type="text" name="name" value="" /> <?php } ?> </td> </tr> <tr> <td width="1%" nowrap><strong>E-Mail Address:</strong></td> <td> <?php if(Auth::LoggedIn()) { echo Auth::$userinfo->email; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->email.'" />'; } else { ?> <input type="text" name="email" value="" /> <?php } ?> </td> </tr> <tr> <td><strong>Departure ICAO: </strong></td> <td><input type="text" name="subject" value="<?php echo $_POST['departure icao'];?>" /></td> </tr> <tr> <td><strong>Arrival ICAO: </strong></td> <td><input type="text" name="subject" value="<?php echo $_POST['arrival icao'];?>" /></td> </tr> <tr> <td><strong>Route:</strong></td> <td> <textarea name="message" cols='45' rows='5'><?php echo $_POST['message'];?></textarea> </td> </tr> <tr> <td><strong>Aircraft:</strong></td> <td> PREFERRED AIRCRAFT:<br /> <select name="Aircraft"> <option value=" ">Please choose one</option> <option value=" ">Airbus</option> <option>Airbus A318-111</option> <option>Airbus A319-111</option> <option>Airbus A320-211</option> <option>Airbus A321-211</option> <option value=" ">Boeing</option> <option>Boeing 737-800/W</option> <option>Boeing 737-900/W</option> <option>Boeing 747-400</option> <option>Boeing 747-400F</option> <option>Boeing 747-800I</option> <option>Boeing 757-200</option> <option>Boeing 767-300</option> <option>Boeing 777-200LR</option> <option>Boeing 777-300ER</option> <option>Boeing 777-200F</option> <option value=" ">De Havilland</option> <option>DHC-8-400</option> <option value=" ">McDonnell Douglas</option> <option>MD-11</option> <option>MD-11F</option> </select><br /><br /> </td> </tr> <tr> <td><strong>Flight Level: </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Departure Time: </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Arrival Time: </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Flight Time: </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Notes: </strong></td> <td> <textarea name="message" cols='45' rows='5'><?php echo $_POST['message'];?></textarea> </td> </tr> <tr> <td width="1%" nowrap><strong>Captcha</strong></td> <td> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </td> </tr> <tr> <td><strong>Price Per Ticket: £ </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Flight Type "P"= Passenger "C"= Cargo: </strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td><strong>Days of the week this schedule is active 7 = everyday</strong></td> <td><input type="text" name="subject" value="" /></td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form>
  23. Worked beautifully Thankyou!!
  24. From this <img src="'.RanksData::getRankInfo($pilot->rank).'" /> to this <img src="<'.RanksData::getRankInfo($pilot->rank).'" />
×
×
  • Create New...