-
Posts
1307 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Jeff
-
I just started using Google Chrome lately, and discovered that there is a feature that allows other people to access your files (css, images, js, etc.). Is there a way to block Chrome from accessing your website? I am sure this is how some of our latest members have been getting (stealing) all their templates.
-
Just edit your first post (using Full Editor) then next to your topic name, type [sOLVED]
-
The 'Weight' and 'Cruise' fields in the 'Add Aircraft' section.
Jeff replied to bobsta63's topic in Support Forum
Ah, you're correct. Sorry, it's been a long day at work (brain fried at the moment). After coming back to reality, I don't think there would be any correct answer to either the Weight, nor the Cruise. You could possibly just leave them both blank. If you have a Fleet page, entering the weight as MTOW, then you could display that for statistics only. -
The 'Weight' and 'Cruise' fields in the 'Add Aircraft' section.
Jeff replied to bobsta63's topic in Support Forum
The amount of cargo is randomly added to each aircraft you have loaded for flight. Next, your price (for the flight) is added per lb/kg (however you have it). Finally, the completed (posted PIREP) is calculated by the amount of cargo times the price. I hope that I read your last post correctly. -
You have a very nice template there. Great job on the design.
-
The 'Weight' and 'Cruise' fields in the 'Add Aircraft' section.
Jeff replied to bobsta63's topic in Support Forum
The only downside I found is the weight. I believe that if it isn't in there as MTOW and you have cargo routes, it might not load your aircraft with the correct amt. of cargo. Other than that, you can leave the Cruise blank if you wish. I don't think it really makes a difference if you use it or not. -
If you have this solved, can you post how you did it for everyone can benefit from it.
-
Please don't make multiple posts on the forums about the same thing. Just be patient until you get the answer you are looking for, or Google the darn thing.
-
Depending on the template you are using, it can be in one of two places. Check your layout.tpl and also your .css file
-
I pulled it from my layout.tpl from my cityportal skin
-
That is the only page I have yet to customized. I have a few things in mind to place, and different ways it should look. I might even remove the 2 charts (or place them in custom tables). Other than that, I don't have anything rock solid coded yet, but will soon.
-
paste your schedule_details.tpl here
-
this might also be what you are looking for. <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18106993-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
-
here's my js file for the acars map. Place in your /public_html it will do the rest. lib.zip
-
sorry. I meant in schedules_details.tpl
-
I'm assuming that is your footer on the right. You are missing a </div> on the bottom of your acars.tpl That should move the footer back down.
-
I'm sorry Iain...what exactly is the problem?
-
The 'Weight' and 'Cruise' fields in the 'Add Aircraft' section.
Jeff replied to bobsta63's topic in Support Forum
Actually, Mark, If I set the Cruise in there, it will show up in kAcars as the cruise altitude. When kAcars finds my flights after logging in, it places the cruise altitude of the flight.in the box (if you have it set). I get my flight information from Flight Aware, and they will give you the cruise altitude of the flight. -
Join Virtual Southwest Airlines (Hiring Staff)
Jeff replied to AlaskaAirVirtual's topic in Virtual Airlines Discussion
I still haven't figured out why people advertise their VA here where everyone here runs their own VA. -
Don't get me wrong, but don't Boston Virtual fly on GameSpy? GameSpy is not very fun to be at. You never stay connected. I gave up on them 4 years ago.
-
Read the whole thread before posting. http://forum.phpvms.net/topic/3228-admin-in-the-clouds-1st-admin-template/page__view__findpost__p__29268
-
Open /public_html/admin/templates/pireps_list.tpl After this code: <?php # If there was an error, don't allow the PIREP to go through if($pirep->aircraft == '') { $error = true; } ?> Remove all other coding, and paste this in there. <table width="100%" style="border: none;"> <tr> <td style="border: none;" align="left"> <button class="{button:{icons:{primary:'ui-icon-arrowthick-1-s'}}}" href="#" onclick="$('#details_dialog_<?php echo $pirep->pirepid;?>').toggle()">Details</button> <button class="jqModal {button:{icons:{primary:'ui-icon-script'}}}" id="dialog_details" href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/viewlog?pirepid=<?php echo $pirep->pirepid;?>">Log</button> <button class="jqModal {button:{icons:{primary:'ui-icon-comment'}}}" id="dialog_comments" href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/viewcomments?pirepid=<?php echo $pirep->pirepid;?>"> Comments <span style="font-size: 12px; margin-top: -3px">(<?php echo PIREPData::getCommentCount($pirep->pirepid); ?>)</span></button> <button class="jqModal {button:{icons:{primary:'ui-icon-note'}}}" id="dialog_addcomment" href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/addcomment?pirepid=<?php echo $pirep->pirepid;?>"> Add Comment</button> </td> <td style="border: none;" align="right"> <?php # If there was an error, don't allow the PIREP to go through if($error == false) { ?> <button href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/<?php echo $load; ?>?pilotid=<?php echo $pirep->pilotid?>" action="approvepirep" id="<?php echo $pirep->pirepid;?>" class="pirepaction {button:{icons:{primary:'ui-icon-check'}}}">Accept</button> <?php } ?> <button id="dialog" class="jqModal {button:{icons:{primary:'ui-icon-closethick'}}}" href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/rejectpirep?pirepid=<?php echo $pirep->pirepid;?>&pilotid=<?php echo $pirep->pilotid; ?>">Reject</button> <button class="{button:{icons:{primary:'ui-icon-wrench'}}}" onclick="window.location = '<?php echo SITE_URL?>/admin/index.php/pirepadmin/editpirep?pirepid=<?php echo $pirep->pirepid;?>&pilotid=<?php echo $pirep->pilotid?>'">Edit</button> <button href="<?php echo SITE_URL?>/admin/action.php/pirepadmin/<?php echo $load; ?>?pilotid=<?php echo $pirep->pilotid?>" action="deletepirep" id="<?php echo $pirep->pirepid;?>" class="deleteitem {button:{icons:{primary:'ui-icon-trash'}}}">Delete</button> </td> </tr> </table> <!--<button class="jqModal {button:{icons:{primary:'ui-icon-signal-diag'}}}" id="dialog_route" href="<?php echo SITE_URL?>/admin/action.php/operations/viewmap?type=pirep&id=<?php echo $pirep->pirepid;?>">Route</button>--> </div> <br /> <?php # If there was an error, don't allow the PIREP to go through if($pirep->aircraft == '') { $error = true; Template::Set('message', 'No aircraft for this PIREP. You must edit and assign before you can accept it.'); Template::Show('core_error.tpl'); } ?> <table id="details_dialog_<?php echo $pirep->pirepid;?>" style="display:none; border-left: 3px solid #FF6633; margin-top: 3px;padding-left: 3px;" width="100%"> <tr> <td><strong>Client: </strong> <?php echo $pirep->source; ?></td> <td><strong>Aircraft: </strong> <?php if($pirep->aircraft == '') { $error = true; echo '<span style="color: red">No aircraft! Edit to change</span>'; } else echo $pirep->aircraft. " ($pirep->registration)"; ?> </td> <td><strong>Flight Time: </strong> <?php echo $pirep->flighttime_stamp; ?></td> <td><strong>Distance: </strong><?php echo $pirep->distance; ?> </td> <td><strong>Landing Rate: </strong><?php echo $pirep->landingrate; ?> </td> </tr> <tr> <td colspan="5"><strong>Route: </strong><?php echo $pirep->route;?> <a id="dialog" class="jqModal" style="font-weight: 400;" href="<?php echo SITE_URL?>/admin/action.php/operations/viewmap?type=pirep&id=<?php echo $pirep->pirepid;?>">View</a> </td> </tr> <tr> <td><strong>Load/Price: </strong><?php echo (($pirep->load!='')?$pirep->load:'-').' / '.FinanceData::formatMoney($pirep->price);?></td> <td><strong>Pilot Pay: </strong><?php echo FinanceData::formatMoney($pirep->pilotpay);?></td> <td><strong>Fuel Used: </strong><?php echo ($pirep->fuelused!='') ? $pirep->fuelused.Config::Get('LIQUID_UNIT_NAMES', Config::Get('LiquidUnit')) : '-';?></td> <td><strong>Revenue: </strong><?php echo FinanceData::formatMoney($pirep->revenue);?></td> <td><strong>Gross: </strong><?php echo FinanceData::formatMoney($pirep->gross);?></td> </tr> <?php // Get the additional fields // I know, badish place to put it, but it's pulled per-PIREP $fields = PIREPData::GetFieldData($pirep->pirepid); if(!$fields) { echo 'No additional data found'; } else { $i=1; echo '<tr>'; foreach ($fields as $field) { if($i == 1) { echo '<tr>'; } echo "<td><strong>{$field->title}:</strong> {$field->value}</td>"; if($i == 5) { echo '</tr>'; $i = 0; } $i++; } } echo '</tr>'; ?> </table> </td> </tr> <?php } /* Close the PIREPs loop */ ?> </tbody> </table> <span style="float: right">* - double click to select</span><br /> <?php if(isset($paginate)) { ?> <div style="float: right;"> <a href="?admin=<?php echo $admin?>&start=<?php echo $start?>">Next Page</a> <br /> </div> <?php } /* Close the paginate loop */ ?> </div> <script type="text/javascript"> $("button, input:button, input:submit").button(); </script>
-
Usually in the layout.tpl
-
What I did was I went through every single airport and edited them all (over 1000 of them) and then created a table in the schedules_results.tpl This what you could do. <table> <tr> <th>Airline</th> <th>Departure Airport</th> <th>Arrival Airport</th> <th>Aircraft</th> <th>Bid Flight</th> </tr> </tr> <td><?php echo $route->code. '-'. $route->flightnum ?></td> <td><font color="#333333" size="1"><?php echo $route->deptime;?></font><br /><font size="1"><strong><?php $departname = OperationsData::getAirportInfo($route->depicao);?><?php echo $departname->name;?></font></strong>/td> <td><font color="#333333" size="1"><?php echo $route->arrtime;?></font><br /><font size="1"><strong><?php $arrivename = OperationsData::getAirportInfo($route->arricao);?><?php echo $arrivename->name;?></font></strong></td> <td align="center"><font size="1"><?php echo $route->aircraft ?></font></td> <td><a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> <?php } } ?> </td> </table> There is a lot of missing coding in there to save space in this post, but I hope you get where I'm going here.
-
the rank images are combined as one image I think. You might need to open the image in Gimp or something similar to get them out.