-
Posts
8148 -
Joined
-
Last visited
-
Days Won
39
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Nabeel
-
I suppose you could, but why? You can skin/customize the entire site to look however you want/modify any templates as well.
-
under the include 'core/codon.config.php'; Template::Set('extrafields', RegistrationData::GetCustomFields()); Template::Set('allairlines', OperationsData::GetAllAirlines(true)); Template::Set('allhubs', OperationsData::GetAllHubs()); Template::Set('countries', Countries::getAllCountries()); Then Template::Show('registration_mainform.tpl');
-
Ahh yeah, the dropdowns won't work, because the template variables need to be set. The reason I do that is because I may change stuff on the backend, etc. But if you want to know how to set those, It's 5/6 lines of copy/paste
-
Haha, yeah, but I'm glad it's taking off now, I really appreciate all the feedback. Wait till I finish these next round of updates
-
Hey thanks guys! I'm glad people are starting to use it and find it useful. And I like it when people are helpin each other out! Maybe it's the holidays ;D
-
Yeah someone pointed this out to me last night, another bug. Le-sigh. I'm gonna take a look and see if it's a quick patch, I'll post it up. But since right now the guts are lying open it may take a few.
-
Yup, the names have to be the same, it checks the local skin folder first to see if it's there, otherwise it'll go to the default. I've seen some people make a custom .php page with stuff, but the problem is, it'll forward back to the one within the system. You can include the registration form like: Template::Show('registration_mainform.tpl') (I think that's what it's called... lol), instead of re-doing the entire form, so <head> <title><?php echo $title ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include 'core/codon.config.php'; Template::Show('core_htmlhead.tpl'); ?> </head> <?php Template::Show('core_htmlreq.tpl'); ?> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> .... <?php Template::Show('registration_mainform.tpl'); ?> ... Maybe that helps? I need my coffee
-
just do include 'core/codon.config.php';
-
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.
-
Change it to .php, not .html, and include core/codon.config.php at the top of the file.
-
Ignore it, the versioning code needs to be changed, but don't worry about it
-
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
-
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.
-
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.
-
You call the function from the StatsData module as such: Total Hours: <?php echo StatsData::TotalHours(); ?><br /> Total Flights: <?php echo StatsData::TotalFlights(); ?>
-
Done, thanks
-
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.
-
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.
-
I will add that into the docs! Thanks. What was the problem?
-
Reupload that file, usually means it broke in the middle of uploading, and did not resume correctly Hmm my posts are in reverse order.
-
Excellent! Glad to hear And no prob... I forgot to make that clear
-
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
-
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.
-
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
-
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.