-
Posts
408 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by CrashGordon
-
I've been looking around the code in app.config.php and spotted this. Config::Set('DAYS_COMPACT', array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su')); Config::Set('DAYS_LONG', array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ) ); I know as much about PHP as I know about quantum mechanics, so I am curious as to why Sunday/Su is in the array twice. Sorry if this is a dumb question.
-
OK, now I know the hub updates and the flight updates, but no display of rank graphic. So, I don't know if the code didn't work or if the site isn't updating that information in the sig. So here's a question. Would a non-standard thing such as what I was doing, ever update the sig?
-
The code may have been ok, but the sig wouldn't update, so there was no way to tell. Just to be sure it wasn't something I did, I put back the original code and set rank images to true in local.cfg to see if anything happens. I'll also try changing my hub to see if it ever appears.
-
I tried, without success. But, I discovered something. The badge isn't updating no matter what I do or how many times I try to regenerate it. As an experiment, I changed $output[] = $pilot->rank.', '.$pilot->hub; to $output[] = $pilot->rank; If my limited knowledge of PHP is correct, that should display the rank with nothing else on the line. I'm going to stop now and see if it updates at any point.
-
Still no joy. I wouldn't pursue this, but someone might want to do the same thing. This is the code as it stands now. public function generateSignature($pilotid) { $pilot = self::getPilotData($pilotid); $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid); $position = PilotData::getFieldValue($pilot->pilotid, 'Position'); if(Config::Get('TRANSFER_HOURS_IN_RANKS') === true) { $totalhours = $pilot->totalhours + $pilot->transferhours; } else { $totalhours = $pilot->totalhours; } # Configure what we want to show on each line $output = array(); $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname; $output[] = $pilot->Position; $output[] = $pilot->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $totalhours; if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . $pilot->totalpay; }
-
Thank you. I suspected I'd have to define it, but wasn't quite sure how. Obviously php is a foreign language to me. This will be very helpful.
-
I don't think that will get me where I want to go. What I am trying to do is get into the same block of code the rest of the badge stuff is, so I can save that block of code to drop into the next update, rather than lose it. Like some variation of this, for the field named position: # Configure what we want to show on each line $output = array(); $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname; $output[] = $pilot->position; $output[] = $pilot->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $totalhours; I suspect I need to define something as this approach doesn't work...or I'm looking at the wrong code.
-
I hit a snag. How do I determine the variable name of the custom field I placed in the pilot profile, so I can display it on the sig. This is obviously not my area of expertease. In the alternative, I didn't understand what you said, Nabeel. Sorry.
-
I added the field last night and would have gone further if I didn't have this unfortunate need to sleep. Will work on it today. Thanks.
-
An interesting approach, but I think that would mean only one award could be issued to a pilot. I suspect the only correct way to do this is to add it to the pilot's profile in a way that can only be added by admin, and then echo that variable in the badge. Now, I have to figure out how to do that.
-
The ranks are still based on hours, that way. Look at my sig. I've only actually flown a little over 200 hours in phpVMs, but I added 5000 hours previous VA time fo get to the "CEO" level and have more than adequate room to be sure no one got to be CEO, also. What I'd like to do is be able to make someone a hub manager, have it appear on their badge, yet still have the incentive of more ours increasing their pilot rank. I have an idea, but it is a real kludge. Currently, I don't assign pilots to hubs (actually everyone is assigned to a dummy airport which displays only a"." in the badge), but I could create a dummy ICAO that wouldn't be used for flight, but would display something like Hub Manager: EHAM. But that would probably screw up the pilot roster. Oh well, back to the drawing board.
-
FSX for certain. Even the default ground and water textures far surpass FS2004. As for the FPS question, with the right hardware, it is not a problem. Of course, for those who want bragging rights to higher FPS than their eyes and brains can see, I suppose FS2004 has its appeal.
-
Is there a way to have the pilot badges display a title other than their pilot rank? In other words, if one is a hub manager, COO or something similar. As it is now, I have to pad the ours to get that on the badge. I don't know what others thingk, but that might be a good feature for a future release.
-
I could have lived with the glitches in 2.1.927, but no, I had to do it all again. Now, no matter how many times I upload these files, I get this. Checking file hashes for corrupt or mismatched files [Checksum failed] /core/common/OperationsData.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pilots_list.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/classes/ezdb/ezdb_base.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/kACARS_Free/kACARS_Free.php did not match, possibly corrupt or out of date Although I haven't had time to check everything, most things seem to be working. Oh, it still displays this message. Version 2.1.928 is available for download! Please update ASAP
-
I think my server just needs to be goosed every so often.
-
I kid you not. I just logged on and took a look. Surprise...now it is working. I've always suspected my server didn't like me. Or maybe the maintenance cron job that ran last night, actually fixed something I was unaware of. Sorry for the noise.
-
While you're at it, take a look at the financial report graph. Mine is showing only revenue, but expenses and fuel costs are at zero. Of course, that may be something I did wrong.
-
Aha! If I do a lookup and proceed no further, I can get out of it, but once I attempt to enter the airport, if there is an error such as missing country, then, I can't.
-
Or there are ghosts in the machine. I've calmed down since last night. The graphic that got overwritten was backed up on an external drive that died this past weekend. So there I was at nearly 1:00 AM editing a new one, while muttering nasties. Cancel the airport problem. I just checked it this morning and it works fine, now. I'm beginning to get suspicious of the server I'm using. Last night, after I changed background.png and could see the results on this and another forum, but in the pilot center, view badge, the default one still appeared. That, I suspect is a browser cache problem
-
Finally, by adding a new aircraft to the fleet, the whole fleet now appears on the admin fleet page. One minor glitch I found is that when adding an airport, if something is missing, but you don't want to continue, there is no way to get the popup to disappear. One item I, personally find extremely annoying. When doing an update, there is no reason to replace the background image for the pilot sigs. Now, I face a choice...find the image I had and upload it again or get some sleep which I need. I am not going to allow the wrong image to appear on every forum I ever posted on.
-
Oh yes. EDIT: After whittling that down to 30 errors, I discovered it was no longer the "current" version. After about 5 minutes of bad language, I downloaded the latest and started all over. Still having connectivity problems (don't know which end it is on), so it took over an hour to insure everything was uploaded. I get this: Checking PHP version [OK] PHP version is 5.2.x Checking connectivity... [OK] Can contact outside servers Checking for SimpleXML module... [OK] SimpleXML module exists! Checking file hashes for corrupt or mismatched files [Error] /lib/js/jquery.form.js doesn't exist -- Checked 182 files, found 1 errors The thing is that I checked the server and the file is there. The only functional problem I can see now is that in the admin section, add or edit fleet, it says I have no fleet entries, even though in the manual pirep, the entire fleet appears in the dropdown menu.
-
It isn't the only problem. From tha admin page, I can view the pilots and their pireps, but when I try to view the fleet, it says there are no aircraft. The same with schedules. When I fry to view espense reports, I get: Fatal error: Call to undefined method FinanceData::GetRangeBalanceData() in /*****/*****/public_html/phpvms/admin/modules/Finance/Finance.php on line 81 I suspect something didn't get uploaded and may have to do the whole thing again,
-
I found that it wasn't. That is cured, but now.... Fatal error: Call to undefined method CodonRewrite::AddRule() in /*****/*****/public_html/phpvms/core/modules/RouteMap/RouteMap.php on line 8 I guess I'm making progress. I've gone from a warning to a fatal error.
-
There may have been a coonectivity problem when I uploaded the new files. I ran the updater and didn't not see anything surprising, until I looked at the site. Now I'm seeing this: Warning: file_get_contents(/*******/*******/public_html/phpvms/core/version) [function.file-get-contents]: failed to open stream: No such file or directory in /*******/*******/public_html/phpvms/core/app.config.php on line 297 Help.
-
I'll be taking a look at this, shortly. While we haven't had any problems with FSAcars, XAcars provides very little information and FSPax costs money and has some annoying features. This looks like it is simple and to the point. Now for a critical question. Does it require the use of the bid system?