Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. 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
  2. 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.
  3. Thanks Nabeel! Still have to clean-up the table and get some style applied but I got the feed working. ;D If anyone else wants to get the feed from the faa it is located here -> http://www.fly.faa.gov/flyfaa/xmlAirportStatus.jsp
  4. Working on it for my new site release - I will post it in addons when I am done, hopefully this weekend. Also managed to get a live FAA delay report onto the site using the FAA xml feed and live vatsim data to work on the site using the vatsim data reporting system. If anyone is interested in those I can post them as well. I am hoping to have the new site up this weekend as well if you want to check it out.
  5. Thanks for the heads up, I will build this into the final version, I should have it up in the next week or so, been working on a few new features as well.
  6. Download the last Mail.php in the thread (located near the bottom of page 3) and it will also include the unread mail function for your use. The issue is caused by a blank space after the closing php tag from the original file. Let me know if this does not fix it but it seems to have solved the issue for most.
  7. You can do whatever you like with it - Please share any improvements with everyone.
  8. The information comes back when an fsacars report is filed and is input into the database as one long piece of text with each section seperated by "*". Using php you can create a listener that runs in the background when a report is filed or even build another function into the existing flight report function, then explode the data into an array, use an if function looking for an array item that equals Touchdown Rate. Once you have that line out of the string you will have to strip the text out of it to reduce it to a numerical piece of data which you could then insert into a sql table you have created within your db. Thinking about it some more you should also be grabbing the pilot id out of the string to insert in another coloum of your db table created to hold your landing stats so you have a pilot to tie the stats to when you go to search and display the data out of the table or create a new coloum within the pirep table just for touchdown rate... I think I might try this on my site, I have seen it at other VA's but never really thought about applying it to mine, probably a good motivation for pilots.
  9. Do you have access to the cpanel(or something similar) for your site? You should have phpmyadmin as an option from there in the database section. If you do not have access to the backend of the site you will have to write a quick script to insert it through a php file or the like. How did you originally set up your database, you, or someone had to have access to some sort of a database manager.
  10. Get into the phpmyadmin for your db and select the database that your trying to modify. Select the sql tab and paste the sql query into the window. Hit go. You should then get a message that the query executed sucsessfully. Done. The commands that are at the beginning of this thread can just be pasted into your site where you want them to appear and then echo the data to get the number.
  11. These three stats were built by Nabeel and are already in the app, you would not have to run the sql file to use those. If you want to use the other commands you would have to use the sql file and update your db using phpmyadmin. The vastats options will be included in future release I believe.
  12. Overwrite Mail.php in core/modules/Mail with the attached Mail.php file. It now includes a function that if the subject line is left blank it will put "(No Subject)" in the subject line of the AIRmail which will give you the link to open the mail in your inbox. Mail_1.2.zip
  13. Unread AIRmail items function Attached are updated Mail.php and MailData.class.php files. Overwrite the existing files in your phpVMS install and it will give you a function to show a pilot how many unread AIRmail's they have. When you want to show the number of unread AIRmail's you need to use -> <?php MainController::Run('Mail', 'checkmail', '') ?> To make it only show when the pilot is logged in you can do something like this example -> <?php if(!Auth::LoggedIn()) { //Show this if the pilot is not logged in } else { ?> You Have <?php MainController::Run('Mail', 'checkmail', '') ?> Unread AIRmail Items <?php } ?> You can use the function however you would like - I have embeded it into the pilot bar that shows at the top of my test site that only shows when the pilot is logged in -> I will be putting images to it as I move along. Have fun and GO FLY! AIRmail1.1.zip
  14. Did you try clearing your browser cache? It is working here fine. Is it the exact same error?
  15. Replace your Mail.php file in the core/modules/Mail folder with the attached. There was an extra blank space after the closing php tag that was creating the issue I believe, it works correctly on my test site now. Mail.zip
  16. I have not had an error on my test site like that - I will go through it again...
  17. That is returning an array of data which you then need to convert and display however you would like on your site. I use a module where for the case 'stats' I declare, case 'stats': Template::Set('toproutes', StatsData::TopRoutes(1)); Template::Set('topaircraft', StatsData::AircraftUsage(5)); Template::Show('stats_operations.tpl'); Then in my stats_operations.tpl to display the data I want to see for top aircraft -> <?php if(!$topaircraft) { echo 'No Top Aircraft'; return; } foreach($topaircraft as $topa) { ?> <tr> <td align="center"><?php echo $topa->aircraft; ?></ td> <td align="center"><?php echo $topa->registration; ?></ td> </tr> <?php } ?> and for top routes -> <?php if(!$toproutes) { echo 'No Top Routes Exist'; return; } foreach($toproutes as $report) { ?> <tr> <td align="center"><?php echo $report->code; ?><?php echo $report->flightnum; ?></td> <td align="center"><?php echo $report->depicao; ?></td> <td align="center"><?php echo $report->arricao; ?></td> <td align="center"><?php echo $report->distance; ?></td> </tr> <?php } ?> These pieces you need to build into your app and display in your template the way you would like to see it.
  18. Sure I am also working on a couple of more I will send along when they are done.
  19. These two functions are built into the existing StatsData.class in phpvms. You can use -> StatsData::TopRoutes(1) StatsData::AircraftUsage(5) The number behind each one determines how many records you want returned.
  20. Thought some of you may want to use the news module I made so just the titles are displayed and are clickable to go to the full news item. It creates a list wherever you place it - and shows the full news item when you click on the title - PopUpNews Module to create a quick view news list on your front page of a phpVMS site. Released under the following license: Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License ---------------------------------------------- A visible link to http://www.simpilotgroup.com must be provided on any site utilizing this script for the license to be valid. ---------------------------------------------- Developed by: simpilot - David Clark www.simpilotgroup.com www.david-clark.net Developed on: phpVMS v2.1.934-158 php 5.3.4 mysql 5.0.7 apache 2.2.17 Install Using Simpilotgroup Plugin Manager -Download the package -Upload the package to your site using the plugin manager -Use the auto-install from the plugin manager Install Manually: -Download the package. -Unzip the package and place the files as structured in your root phpVMS install. Where you want to call the PopUpNews List in your site use -> <?php PopUpNews::PopUpNewsList(5); ?> The number "5" can be changed to however many news posts you want to show in your list.. Code hosted on Github - Link In Signature.
  21. Have you refreshed your PIREP distances lately using admin->site & settings -> Maintenance options -> Recalculate Distances ?
  22. You could group together a couple of IF commands at the start of the page, first see if they are logged in, if not display a message stating they need to be logged in to see the page, and if that requirement is met then continue to a second if command and use the totalflights variable out of $userinfo to check the number of flights filed. Maybe something like this..... <?php if(!Auth::LoggedIn()) { echo 'You must be logged in to view this page!'; return; } if (Auth::$userinfo->totalflights <= 5) { echo 'You must file over 5 flights before you can access this page!'; return; } ?> //Page content goes here May have to clean it up a little, just an idea...
×
×
  • Create New...