Jump to content

LIVE MAP IMAGES


simonecatalano

Recommended Posts

yes, you just need to create the image name it cruising or whatever, and use the code:

 <img src="<?php echo SITE_URL?>/lib/images/<%=flight.phasedetail%>.png" alt="<%=flight.phasedetail%>"/> 

You can change it from a png to a gif or jpg if you so wish.

Place that code in your acarsmap.tpl file and save it in your skin folder.

  • Like 1
Link to comment
Share on other sites

I have insert here (acarsmap.tpl) but don't work

<script type="text/html" id="acars_map_row">
<tr class="<%=flight.class%>">
<td bgcolor="#FFFFFF"><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.flightnum%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.aircraftname%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.depicao%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.arricao%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.alt%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.gs%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></font></td>
<td bgcolor="#FFFFFF"><font color="#000000"><%=flight.phasedetail%></font></td>
<td img src="<?php echo SITE_URL?>/lib/images/<%=flight.phasedetail%>.png" alt="<%=flight.phasedetail%>"</td>
</tr>
</script>

Link to comment
Share on other sites

I have insert this

<td align="center" bgcolor="#FFFFFF"><img src="<?php echo SITE_URL?>/lib/images/<%=flight.phasedetail%>.gif" alt="<%=flight.phasedetail%>"/> </td>

but when I go to the live map i view this http://prntscr.com/2o76rl

Possibly your link is wrong? Maybe when entering the image link, type the actual whole URL. Also ensure it actually IS there

Link to comment
Share on other sites

I Have [RESOLVED] COPY AND PASTE THIS CODE IN YOUR ACARSMAP.TPL

<table>
<?php
$results = ACARSData::GetACARSData();
if (count($results) > 0)
  {
  foreach($results as $flight)
	  {
		    if($flight->client == 'FSACARS')
		    {$plane = OperationsData::getAircraftInfo($flight->aircraft);}
		    else
		    {$plane = OperationsData::getAircraftByReg($flight->aircraft);}
			 ?>
    <tr>
			  <td align="center">
						    <?php
						    if($flight->phasedetail == "Boarding")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/Boarding1.gif'>"; }
						    elseif($flight->phasedetail == "Taxiing to Runway")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/ONAPPROCH.gif'>"; }
						    elseif($flight->phasedetail == "Taking Off")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/Boarding1.gif'>"; }
						    elseif($flight->phasedetail == "Climbing")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/Boarding1.gif'>"; }
						    elseif($flight->phasedetail == "Cruise")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/ONAPPROCH.gif'>"; }
						    elseif($flight->phasedetail == "Arrived")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/ARRIVED.gif'>"; }
						    elseif($flight->phasedetail == "Descending")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/Boarding1.gif'>"; }
						    elseif($flight->phasedetail == "Level Flight")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/Boarding1.gif'>"; }
						    elseif($flight->phasedetail == "On Approach")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/ONAPPROCH.gif'>"; }
						    elseif($flight->phasedetail == "Taxiing to Gate")
										    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/images/Boarding1.gif'>"; }
						    else    { echo "<img style='padding-left:3px;' src='http://www.vpia.org/VirtualPIA/lib/skins/brilliancev1/images/ARRIVED.gif'>"; }
						    ?>
			  </td>
			  <td align="center"><?php echo $flight->flightnum;?></td>
			  <td align="center"><?php echo $flight->depname;?></td>
			  <td align="center"><?php echo $flight->arrname;?></td>
			  <td align="center"><?php echo $flight->pilotname;?></td>
			  <td align="center"><?php echo $plane->fullname;?></td>
			  <td align="center"><?php echo $flight->phasedetail; ?></td>
	   </tr>
	 <?php
			  }
				    } else { ?>
						    <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #ff961e;">No Flights in Progress!</td></tr>
				    <?php
				    }
				    ?>
</table>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...