Jump to content

mynameiskhan

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by mynameiskhan

  1. i Hope Nabeel or some one else come up with solution? irfan
  2. thanx mark1million my issue is resolved by the grace of god thanks so much but i have one more question if you can also help in this one now i have also added ivao id,vatsim id,active/nonactive bars in table how these options will work for me in whcih file i have to add and what to add please tell me? for other new joiners if you have same problem with pilot list please add this code it will do a magic. <div class="mcright"> <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!</div>'; return; } ?> <table class="sortable" width="700" cellspacing="1" cellpadding="5" border="1"> <thead> <tr> <th width="56px">Pilot ID</th> <th width="150px">Name</th> <th width="80px">Rank</th> <th width="55px">Flights</th> <th width="55px">Hours</th> <th width="100px">Last Flight</th> <th width="55px">Vatsim</th> <th width="55px">Ivao </th> <th width="65px">Active/Inactive</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td width="1%" nowrap><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <div align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </div></td> <td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td> <td><div align="center"><?php echo $pilot->totalflights?></div></td> <td><div align="center"><?php echo $pilot->totalhours?></div></td> <td><div align="center"><?php //$report = PIREPData::GetLastReports($pilot->pilotid, 1); if($pilot->lastpirep == 0) { echo 'No data yet'; } else { $report = PIREPData::GetLastReports($pilot->pilotid, 1); echo date('d.M.Y', strtotime($report->submitdate)); } ?></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Vatsim ID" /></a></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'IVAO ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='. $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Ivao ID" /></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php } ?> </div> </tbody> </table> <br /> </div> irfan
  3. i have the same Problem as Well any body can help please
  4. Guys i tried but result is in front of you you can see in the shot what happened now what i did is i uploaded the latest file pilot_list.tpl again from obesessblue folder and tried to modify that file what i did is just removed some </div> from bottom of the page and now it came up like this my main problem is to align pilot names to align the table please suggest me what i will do now? irfan
  5. here is the code of pilot_list2.tpl Snipped the code - Nabeel Dear all as you have seen that my pilot names have shifted to left side and not accurate so any body can guide me to resolve this issue what happend there. irfan
  6. Thanks SimPilot for the reply well guys i tried to put the code which simpilot suggested it was showing my gif file there but the problem is it was only showing when i am putting Takeoff in first line other values it is not showing any thing here is my full acars.tpl code which i modified have look so you guys check where i was wrong and also please tell me the exact phase values of FSACARS like Borading,Taxing,Takeoff,Climbing,Crusing,Decending,Landed is these are the values i have to put or it should be exact values which is given in default file of FSACARS please also tell me the exact values which i have to put if any one of you can paste full code here as exactly as we have to put so it will be more appreciative here is my modified code. Waiting to hear from you Guys with full resolution. Irfan
  7. nabeel i tried also but failed its nothing showing our there after this code <td><%=flight.phasedetail%></td> we have to add in next line this code or in the same line <td><% if(flight.phasedetail== 'Boarding'){%><img src="/lib/skins/ObsessBlue/image/boarding.gif" /><%}%></td> if you can edit your self full code in acars.tpl file and paste it here it will be much appreciative. Thanks Irfan
  8. Nabeel if you dont mind please explain in detail in which file i have to do settings and where i have to add this code in which line of the file thanks in advance
  9. Nabeel i dont know but before its showing me Defoult PNG avator but now it is also not showing what i will do where is the file from which i can do setting of avator i am using OBESSBLUE skin.
  10. friends i have some issues lined up as i have launched New Virtual Airline recently Now the problem is i tried to Upload avator of my own choice after giving the file in browse section it comes up with an error and it is Warning: imagecreatefromgif() [function.imagecreatefromgif]: Filename cannot be empty in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 451 Warning: imagesy(): supplied argument is not a valid Image resource in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 464 Warning: imagesx(): supplied argument is not a valid Image resource in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 465 Warning: Division by zero in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 468 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 470 Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 471 Warning: imagepng(): supplied argument is not a valid Image resource in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 475 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/ahmad/public_html/virtualairblue/core/common/PilotData.class.php on line 476 ow please help me out where is the actual problem what i have to do to resolve it? regards irfan khan
  11. Nabeel Thats What I am asking that How i can do it how it is possible to modify acars.tp file where do i have to make changes to bring images on Live Map table please tell me where do i have to make changes here is the acar.tpl file code
  12. Dear All just have little question if any body can solve it or can do it for me is there any option that we can add small status images Like Boarding,Crusing,Taxing, in Live Map or any other solution for it will be appreciative i have seen many but dont know how to add gif or flash animation images or like green.red light like on airports showing flight status. example Like this i hope some one can help me out of this please please reply. Irfan
  13. i am having one more problem if you can help in this also i would appreciate it also and the problem is while registering i am getting this error can you tell me how i can resolve it. Error Registering Cannot add or update a child row: a foreign key constraint fails (`ahmad_Airblue/phpvms_pilots`, CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE) this is the error. regards irfan
  14. Thanks man you are a genius it worked for me WOW very happy thanks thanks thanks thanks thanks MANY MANY thanks.
  15. Dear Freinds i am having Problem in installing Skin i domt know exatcly where the problem is i tried many things but not succeeded if any of you can help me i will appreciate it. i have installed obessblue skin on my new virtual Airblue site URL is My link and problem is after installing it its not showing header menu transition effect like mouseover effect and drop down menu effects as it is showing every thing on authors site My site Authors Site with full navigation panel I hope you all will understand my problem. Irfan khan
  16. Hi guys i am new here my name is irfan khan i have started my new VA and installed this phpvms in my server but still have litlle problem as you can see in the pic when ever i am pressing on pilot center or on pilots it is giving me error modules _________ not found please help me really appreciate it. regards irfan khan
×
×
  • Create New...