-
Posts
1307 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Jeff
-
Okay, it is displaying, but nothing is showing up where the aircraft information is supposed to be showing. It is showing the text: Aircraft, Times Flown, Hours Flown, but under those it is just blank. What coding is needed to make that information display. i know those pilots have flown before because it is showing in their profile, but just not in that chart I am creating.
-
Now I get this error: <p> <h3><?php echo $userinfo->firstname; ?>'s Aircraft Statistics</br></h3> <table width="100%" border="1" bgcolor="#042233" id="tabledlist" class="tablesorter"> <thead> <tr> <th><font color="F78F1E">Aircraft</font></th> <th><font color="F78F1E">Times Flown</font></th> <th><font color="F78F1E">Hours Flown</font></th> </tr> </thead> <?php echo StatsData::PilotAircraftFlownCounts($pilotid) echo '<tr><td align = "center">'.$aircraft->icao.'</td> //This is line 88 <td align = "center">'.$aircraft->totalflights.'</td> <td align = "center">'.$aircraft->totalhours.'</td></tr>'; ?> </p> <p> </p> So something is still not coded correctly on there. I'm stuck.
-
I'm trying to create a table in the pilot_public_profile.tpl that will show the Aircraft Usage Statistics of every aircraft type that the pilot uses, so I can award them with an aircraft typerating award. I am not sure if I am anywhere close to getting it to work, as I keep getting this error... <p> <h3><?php echo $userinfo->firstname; ?>'s Aircraft Statistics</br></h3> <table width="100%" border="1" bgcolor="#042233" id="tabledlist" class="tablesorter"> <thead> <tr> <th><font color="F78F1E">Aircraft</font></th> <th><font color="F78F1E">Times Flown</font></th> <th><font color="F78F1E">Hours Flown</font></th> </tr> </thead> <?php echo StatsData.class.php::PilotAircraftFlownCounts($pilotid) //This is Line 120...... echo '<tr><td align = "center">'.$aircraft->icao.'</td> <td align = "center">'.$aircraft->totalflights.'</td> <td align = "center">'.$aircraft->totalhours.'</td></tr>'; ?> </p> <p> </p>
-
If the items are lined up by part (ex. Flight #, Dep Time, Arr Time, Aircraft, Airline Name, etc...) you can just hi-light the correct columns and paste them right into the .csv file that you get from the Admin Center. Then just fill in the missing fields and upload them to your site.
-
Yeah, I had shut it down mid last year due to financial problems (thanks Obama ) and finally was able to regain some control of my finances again.
-
Me too. This would be great.
-
It took me some hard searching to find its location, I think this is what you are looking for... Inside the /public_html/core/common/PilotData.class.php look around Line 954 for this.... public function generateSignature($pilotid) { $pilot = self::getPilotData($pilotid); $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED); $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid); 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->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $totalhours; $output[] = 'Current Location: ' . $last_location->arricao; if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . $pilot->totalpay; }
-
Thanx Vans, I had forgotten the site...I will definitely be ordering my copy either April or May.
-
Actually, that is a pretty clever idea Ray, make sure to give him an extra helping of dessert...
-
You can try clearing your cache in the Admin Center (Maintenance Options) then Regenerate the Signatures (same place) and see if they show up. If not, come back ad let us know.
-
Certainly, I have been scratching my head wondering how I can go to the site while others can't when I'm trying to update something. I am definitely interested.
-
Try going into your schedules and make sure that the Coordinates are correct for both Atlanta and Nashville. You can check them by either clicking the Lookup on the ICAO in the Admin Center, or by checking with Wikipedia. Also make sure that if you or he chose to file a flight plan, that the waypoints are correct in acars. You can use Simroutes, FSBuild, Flight Aware or whomever you prefer that has a flight planner. See if any of these work for you. Another thing is that FSAcars doesn't really work that good anymore with phpvms, and you should either go with XAcars, kAcars or I think Lorathon (aka, Jeffrey Kobus) has a customized one you can purchase from his site that I hear is the best out there. I forget the website, but you can PM him about it.
-
app.config.php
-
Are you still receiving any errors after you re-uploaded those 3 files?
-
/public_html/core/app.config.php Look around line 170 for this: # Options for the signature that's generated Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF'); Config::Set('SIGNATURE_USE_CUSTOM_FONT', true); Config::Set('SIGNATURE_FONT_PATH', SITE_ROOT.'/lib/fonts/tahoma.ttf'); Config::Set('SIGNATURE_FONT_SIZE', '10'); Config::Set('SIGNATURE_X_OFFSET', '10'); Config::Set('SIGNATURE_Y_OFFSET', '17'); Config::Set('SIGNATURE_FONT_PADDING', 4); Config::Set('SIGNATURE_SHOW_EARNINGS', true); Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true); Config::Set('SIGNATURE_SHOW_COPYRIGHT', false); You can change both the font type and also the font color. Make a backup, because it will be overwritten during any phpVMS updates.
-
That sounds like a very cool idea. It might take alot of coding, but I'm sure someone can get this one going... [interesting]
-
You can add it anywhere you want to by calling it with the following: <p><strong>Flights This Month: </strong><?php echo StatsData::Totalflightsmonth(); ?></p>
-
While we're on the subject to adding schedules! Wasn't there an option in the Add Fleet page to be able to add aircraft via a .csv? I remember seeing one awhile back.
-
It seems to be an issue with your Font area in the PilotData.class.php Check the coded in there around 1026 - 1071: /* Font stuff */ if(!function_exists('imagettftext')) { Config::Set('SIGNATURE_USE_CUSTOM_FONT', false); } # The line height of each item to fit nicely, dynamic if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $stepsize = imagefontheight($font); $fontwidth = imagefontwidth($font); } else { // get the font width and step size $bb = imagettfbbox ( $font_size, 0, $font, 'A'); $stepsize = $bb[3] - $bb[5] + Config::Get('SIGNATURE_FONT_PADDING'); $fontwidth = $bb[2] - $bb[0]; } $currline = $yoffset; $total = count($output); for($i=0;$i<$total;$i++) { if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor); } else { // Use TTF $tmp = imagettftext($img, $font_size, 0, $xoffset, $currline, $textcolor, $font, $output[$i]); // Flag is placed at the end of of the first line, so have that bounding box there if($i==0) { $flag_bb = $tmp; } } $currline+=$stepsize; } Also, check the information you are trying to have it show, maybe you have too much info that it is setup to show.
-
Make sure that when you added RANKS to your site in the Admin Center, (yoursite.com/admin/index.php/pilotranking/pilotranks) that you set a Pilot Rate price on every rank you have entered. That will determine what your member get's paid by the hour.
-
Okay, I'm going to try to explain this correctly... I have 3 different Award Types that I am trying to integrate into my server. I do not want all 3 award types to be awarded to the same table. I am wanting to have 3 different award table types on the Pilot Profile pages. Is this possible to do? If so, how exactly would I go about setting it up to show different award tables?
-
Look in the main folder where your template you are using. (ex. I am using the templatemo skin, so the .css is loacted in /public_html/lib/skins/templatemo_253_eye_candy/css)
-
That almost looks like a .css issue. Check the .css file to see if you can't find out what is causing the gaps.
-
I only have it on the main page because I want the flight board (the Eye Candy one) to refresh every minute, but didn't find an answer from your last post in that thread, so I just did that code. If you have the code to have just that flight board to refresh after so long, instead of the whole page, I'm willing to replace what I have.
-
I am using fivedev. I cannot find the location to the php.ini file, and I do not know how to reset the apache. I am wanting to set it to Europe/London