Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. simpilot

    Briefings

    Do you mean the link you are directed to if you click on the images?
  2. simpilot

    Briefings

    is this what you are trying to do... <img border="0" src="<?php $data = OperationsData::GetAirportInfo('$schedule->depicao'); echo $data->chart; ?>"width="387px" height="594px" alt="No chart available" /> sry - looks like I was writing while Nabeel was posting :-[
  3. simpilot

    Briefings

    You will have to declare $icao somewhere ahead of this - I am not sure if this is what you are trying to do. <?php $data2 = (OperationsData::GetAirportInfo('$icao')); echo $data2->charts; ?>
  4. simpilot

    Briefings

    Try this, it should give you the raw data... <?php $data = (OperationsData::GetAllAirports()); foreach ($data as $airport) { echo $airport->charts; } ?>
  5. You need to extract your data from the array with a foreach command. How about something like this... <table> <?php $data = (ACARSData::GetACARSData($cutofftime = '720')); foreach ($data as $pilots) { ?> <tr> <td> <?php echo "$pilots->firstname $pilots->lastname"; ?> </td> <td> <?php echo $pilots->flightnum; ?> </td> <td> <?php echo $pilots->depicao; ?> </td> <td> <?php echo $pilots->arricao; ?> </td> <td> <?php echo $pilots->phasedetail; ?> </td> </tr> <?php } ?> </table>
  6. Hi guys, There is a really good set of teamspeak functions included in the CYTS class that can be found for download here -> http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,41/Itemid,69/ There is a good manual with it. I use it for a number of functions, you can administrate your server right from your sight using some of the built in functions, inclluding registering new users use admin_dbUserAdd to call up the register user function. You just have to create a short script to tell it what the information is to register a new user. The info_XXXX functions also provide a host of options of displaying information about your teamspeak server on your site. Hope this helps.
  7. Roger has a good point in that only admins should have the option to mail all pilots at one time "NOTAM". Attached is a new mail_new.tpl file that includes a function to only allow admins to have the NOTAM option in their dropdown when creating a new mail - If you have already modified the mail_new.tpl file you will want to find - <option value="all">NOTAM (All Pilots)</option> <?php Was on lines 25 and 26 of the original and replace it with - <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> <option value="all">NOTAM (All Pilots)</option> <?php } mail_new.zip
  8. Yes - overwrite everything - also replace the table in the database - there were signifigant changes to it in this version
  9. AIRMail beta2 now available here -> http://forum.phpvms.net/topic/1421-airmail-beta-21/
  10. Try this <?php if(!Auth::LoggedIn()) { //Show this if the pilot is not logged in } else { ?> <strong>Welcome back <?php echo Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname; ?>!</strong> You Have <?php MainController::Run('Mail', 'checkmail', '') ?> Unread AIRmail Items <?php } ?>
  11. AIRMail beta2 New Features 1 - Drop down of all pilots for "To" field when sending new AIRMail 2 - Option in dropdown of "NOTAM" which sends the AIRmail to all pilots of the airline 3 - Streamlined code to only use pilotid in the db so if a pilot switches airlines or the airline changes it's code the pilots AIRMail will still be available 4 - Function to delete sent items out of your sent items list 5 - Function to show pilot if there is new AIRMail waiting (With Animated Image!) 6 - Added function to insert "No Subject" in the subject line when an AIRMail is sent so it can still be opened by the receiving pilot(s) 7 - Function added to deny sending AIRmail with the "To" field empty To Use the "You Have Mail" function place the following code where you would like the notice to appear, it will only appear if the pilot is logged in. <?php MainController::Run('Mail', 'checkmail'); ?> To Install 1 - Download the attached package 2 - Unzip the folder and place the files in their appropriate places in your phpVMS install 3 - Run the sql file in your phpVMS database using phpmyadmin or similar (If you have been testing the first version you will have to drop the existing airmail table and replace it with the new file, many changes have been made since the first beta and the new edition will not work within the old db table) 4 - Create a link on your site for your pilots to access their AIRMail <a href="<?php echo SITE_URL ?>/index.php/Mail/inbox">AIRMail</a> Please let me know of any bugs you find and any other additional functions that may be beneficial to the addon. AIRMail.zip
  12. There is a function that has been built into the module to let a member know how many unopened airmail items there are waiting for him. it is about 2/3 of the way down on page 3 of this thread (Unread AIRmail items function). you can use that to return a value for unread items. If you wanted to do more with it, like images and such you could use an if statement in your template - something like if $variable >0 then show mail image notification.... I have been meaning to update this to a final version but have gotten sidetracked on some other projects, mainly a vatsim module to show live data within phpvms. With Nabeel's help I got that accomplished today so hopefully I can get Airmail done this week.
  13. include '/path/to/core/codon.config.php'; You have to change this to the path to the file on your server. Probably something like.. include '/myairlinefolder/core/codon.config.php';
  14. The basics for tablesorter (pagination) are built into phpVMS - you can find the docs at the link below to implement it on your site. http://tablesorter.com/docs/
  15. If you want to do a little more with it since if a pilot has not flown any flights the system returns a date of Dec 31 1969 you could use the code below to show "No Flights" instead of the old date.. <?php $report = PIREPData::GetLastReports($pilot->pilotid, 1); $check = date('Y', strtotime($report->submitdate)); if ($check=="1969") { echo 'no flights'; } else { $last = date('M.d.Y', strtotime($report->submitdate)); echo $last; } ?>
  16. Your code works fine on my pilots table... What version are you running?
  17. NOTAM: The Airmail module will not function as of the 763 beta, it will have to be reconfigured to conform to the new functions code. I am going to build the new code into the next version, may be a little while though...
  18. Thanks for the positive comments, the Airmail system is really still in beta, I am working on a final version now that incorporates a lot of the features that have been suggested throughout the thread. Taking a little longer than expected, real world things have gotten in the way, but hopefully by the end of the month I will have a final.
  19. Sounds like you have some issues with the css and how it is being applied to the skin. Which ie are you using? If it is ie8, try hitting the compatibility button and see if it fixes the site. With ff It sounds like you must have a html tag open ended somewhere that is causing issues, which is probably what is happening to ie as well, it is just interpeting it differently. You can try switching to the crystal skin and see if everything works to prove it is not another issue but I think it is in your skin file.
  20. Just went to your site and the nav bar seems to be working the login and register links are there and seem to work.... the code looks correct as well. When you say "activate them" do you mean that they are not showing at all? If you are logged into the site they will not show since they are inside of the php if statement that will not display them if the user is logged in. btw - Nice start on your site
  21. Use the php explode function to seperate the data using the * seperator from the acars pirep when it is submitted then you can search out the line that includes "Touchdown Rate" and insert it into the db. You will have to create a new line in the db table to insert it into.
  22. Good Luck Carlos. My family's thoughts are with you, it takes people of great strength to support our country in this way.
  23. There are two one for the initial registration letting them know they have to be approved in the main templates email_registered.tpl And the approval email in the admin/templates folder email_registrationaccepted.tpl
  24. Welcome Aboard! You can set up a local server and run phpVMS on your pc to do all your development work, I believe that is what most of us do, I know I do. It is a good way to get familar with the software and build your own modules and skins for it and have a good testing environment before going live. There are a few good server packages out there as open source software (Free ;D , my wife is a teacher so I understand the lack of resources in many school systems ) that you can download. WAMP Server - http://www.wampserver.com/en/ XAMPP Server - http://www.apachefriends.org/en/xampp-windows.html They both have good documentation and are easy to setup. Let me know if you need help setting it up.
×
×
  • Create New...