Jump to content

Nabeel

Administrators
  • Posts

    8140
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Nabeel

  1. just do include 'core/codon.config.php';
  2. Yup np. I'm revamping a ton of backend code. I've eliminated about 10 function calls so far on the backend. I'm revisiting alot of code and changing things up.
  3. Change it to .php, not .html, and include core/codon.config.php at the top of the file.
  4. Ignore it, the versioning code needs to be changed, but don't worry about it
  5. I am looking into it, may be difficult though, since there are alot of factors, including OS (wget, unzip, unavailable or differe from one system to another), host settings for external url fopen() etc, but I'm going to look into it
  6. You will need phpMyAdmin. Open it up, goto the phpvms_aircraft table. Click on structure, and scroll down until you see the "Indexes" section. There is an index on the "name" column, called "UNIQUE". Click the red X to remove it. This usually happens if you missed an update, or just did a fresh install without refreshing the database.
  7. You don't have to add distance or routes; and leave the times as is, as long as the time format you use is consistent it doesn't matter. Office ******* about CSV, but just ignore it.
  8. You call the function from the StatsData module as such: Total Hours: <?php echo StatsData::TotalHours(); ?><br /> Total Flights: <?php echo StatsData::TotalFlights(); ?>
  9. Also you need commas between the fields (CSV = comma separated values), though excel will insert those if you export. Match up the columns as well. Distance, etc are optional, though they will come in handy in the future for financials and reports. Also make sure you're using the registration number for the aircraft. I know times in decimal format are a little unnatural, but its easier to handle it in mysql.
  10. Well, can't argue if it works May have been an older version, since there were not database updates in this latest one. From here on out, I'm minimizing any database changes.
  11. I will add that into the docs! Thanks. What was the problem?
  12. Reupload that file, usually means it broke in the middle of uploading, and did not resume correctly Hmm my posts are in reverse order.
  13. Nabeel

    issues

    Excellent! Glad to hear And no prob... I forgot to make that clear
  14. Here's a quick bash script to update phpVMS to the latest version. It'll download the update version from the server, unzip it, delete the local.config.php, and then copy the files to where phpVMS is located. You need SSH access to your server (ask your host). You can either download the zip file, and extract the file to your server, or use vi, whatever to create this script: NOTE: The download URL has changed #!/bin/bash PHPVMS_PATH="/path/to/phpvms" echo "Retrieving update" rm phpvms.update.zip wget --no-cache --no-clobber http://downloads.phpvms.net/phpvms.update.zip rm -drf phpvms echo "Unzipping file" unzip -q phpvms.update.zip rm -f phpvms/core/local.config.php echo "Copying files" cp -rf phpvms/* $PHPVMS_PATH echo "Done!" The only thing you need to do is change the PHPVMS_PATH (no trailing slash!). If you download the zip file, open the file in Wordpad (notepad will screw up the line endings), and change that path to where phpVMS is located. I recommend placing it in it's own directory. So upload the file (updatephpvms, no file extension) Then give execute permissions, and execute: chmod +x updatephpvms ./updatephpvms After this, you still need to run the /install/update.php, but at least the bottleneck of downloading and then uploading via FTP is gone. Nabeel updatephpvms.zip
  15. Nabeel

    issues

    The import aircraft are supposed to be the registration numbers, not the aircraft names, I updated the instructions on the page/docs. Since it's in the database, you can just edit the schedule to the right aircraft. Next update, I'll change it to overwrite existing schedules. Gah, I left debug text in there. Just patched that, it's upto version 458. Just update admin/modules/Import. But it doesn't make a difference.
  16. Hey everyone, 1.1.458 is available on the downloads page. It's been going under heavy testing, and all the issues from past have been fixed. * Added page encoding option * Added option for changing pilot ID length * Added option to change signature text color * Admin can edit PIREPS * Some admin reports added (more to come) * FSACARS bug fixes - follow the instructions in the docs * Admin panel styles cleaned up * Bug fixes (alot of em!) Some notes : If a PIREP is not showing up, or the aircraft is blank, edit the pirep to include the aircraft. Because of the switch to registration numbers, some PIREPs did not "cross over" to include them. For FSACARS, follow the instructions in the docs. Mainly about the flight IATA fields, pilot number, and the registration. And you should be good to go. There are no database changes in this version, just bug fixes. As usual, post any problems or comments. Edit: Released was 1.1.457. 458 just removes some debug text from the importer. Thanks everyone for your patience! Nabeel
  17. Nabeel

    issues

    No, but it's been fixed in the build coming out this weekend. You'll be able to have the same types, and diff registrations. A bunch of bugs cropped up, but hang in there, another day or two. The ability to edit PIREPs is also there. FSACARS, bunch of bugs also fixed, I redid a bunch of the code. Make sure your airports are added as well.
  18. If you have phpMyAdmin you can adjust the size of that field, I'll do that as well in my update build.
  19. Nabeel

    issues

    Thanks. I think I've fixed the problem. View the FAQ for the instructions, patch will be hopefully this weekend.
  20. Nabeel

    Signatures

    Signatures are generated automatically, for each pilot. They are regenerated and stored, to alleviate server load. They're regenerated when a PIREP is filed, or an admin selects the option in the admin panel. The general format of a signature link is: http://yourvasite.com/lib/signatures/YOUR_PILOT_CODE.png So if you are VMA0045 - http://yourvasite.com/lib/signatures/VMA0045.png And this can be used as the link to a forum, etc. The basic signature is create from the background.png file, in /lib/signatures. The signature image will take the size of the background image (so if it's 500x150, then the signature will be that same size). They are all generated as PNGs. There are several options for signatures in your local.config.php: Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF'); Config::Set('SIGNATURE_SHOW_EARNINGS', true); Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true); Config::Set('SIGNATURE_SHOW_COPYRIGHT', true); SIGNATURE_TEXT_COLOR - The text color on the signature SIGNATURE_SHOW_EARNINGS - Show how much money a pilot has made (true/false) SIGNATURE_SHOW_RANK_IMAGE - Show the image for the rank of the pilot (true/false) SIGNATURE_SHOW_COPYRIGHT - Show the "powered by phpVMS, VA Name" (true/false) If you change an option, or the background image, in the admin panel dashboard, click "Generate Signatures". This will refresh all of them.
  21. I installed an addin which may help: http://www.phpvms.net/forum/index.php?action=recent
  22. You cannot change pilot IDs. You cannot change an individual pilot's ID. Do not change pilot IDs. Or else you will loose data, and chaos will ensue. You can change what the start number is though: http://www.phpvms.net/docs/users#changing_the_pilots_id_starting_number Note, this is only a superficial change of the pilot number, otherwise they start from 1, due to database constrictions
  23. Nabeel

    Importing Schedules

    You can import all your schedules from CSV. Goto "Operations" and then "Import Schedules". There is a link to download the CSV template, or you can download it from the post attachment. Notes: The airline MUST be added before you import For best results - add all your airports before you import. Otherwise, it will go and grab the airport, but this can potentially cause a problem by either PHP running past it's maximum execution time, or completely failing because your host blocks URL fopen commands. The route, leg, distance, and flight time columns can be blank. The aircraft REGISTRATION NUMBER must be used. Otherwise it will fail. I need the registration number. If you do not use registration numbers, view this post on how to get around it.. template.zip
  24. With this latest version comes the ability to add a registration number to your aircraft fleet. This is used in multiple places now, to reference that aircraft. The ability will come soon to be able to "retire" an aircraft, as well as statistics on an individual aircraft. If your VA doesn't use registration numbers assign a dummy number to your aircraft. For example, if you have only one B777 you want to use on ALL flights, give it a registration number. I do not cross check registrations and schedules and availability for this reason. FSACARS also uses the registration number of an aircraft to properly log the flight and the aircraft used.
×
×
  • Create New...