Jump to content

Recommended Posts

Posted

Sorry if I open an other post but the other user hasn't got my problem.

In basic template routemap and livemap work without problems.

With my template they don't.

http://vvair.volovirtuale.com

/public_html/core/modules/ACARS/ACARS.php

/public_html/core/common/ACARSData.class.php

/public_html/core/templates/acarsmap.tpl

I've uploaded again all files like a fresh install and in the personal template i've put the standard files, but still don't work.

What else could be the problem?

I'm an absolute noob about php and css, so please tell me where to look or which file to show you.

Thanks

  • Moderators
Posted

Sorry if I open an other post but the other user hasn't got my problem.

In basic template routemap and livemap work without problems.

With my template they don't.

http://vvair.volovirtuale.com

/public_html/core/modules/ACARS/ACARS.php

/public_html/core/common/ACARSData.class.php

/public_html/core/templates/acarsmap.tpl

I've uploaded again all files like a fresh install and in the personal template i've put the standard files, but still don't work.

What else could be the problem?

I'm an absolute noob about php and css, so please tell me where to look or which file to show you.

Thanks

Check your skin folder if there is an acarsmap.tpl there, replace it with the original one and see if it's fixed.

Posted

i have allready, i've put the original but nada, not showing.

Now there's a modified version that at least shows people on IVAO and get data from acars db.

Other options?

Consider that the problem is on all pages that have a map displayed, so routes, live map ecc

  • Moderators
Posted

i have allready, i've put the original but nada, not showing.

Now there's a modified version that at least shows people on IVAO and get data from acars db.

Other options?

Consider that the problem is on all pages that have a map displayed, so routes, live map ecc

Remove the acarsmap.tpl and load the page. also if you can upload the file or paste the codes here.When you change skin(template) is it working?

Posted

Remove the acarsmap.tpl and load the page. also if you can upload the file or paste the codes here.When you change skin(template) is it working?

Done.

This is how you see it in default template

http://imageshack.us/photo/my-images/825/acarsdefault.jpg/

and this is with my template.

http://imageshack.us/photo/my-images/848/acarsvva.jpg/

It does the same thing with or without having the acarsmap.tpl in my templates and also with the acarsmap.tpl found in standard template folder and copied in my template folder.

  • Moderators
Posted

i have allready, i've put the original but nada, not showing.

Now there's a modified version that at least shows people on IVAO and get data from acars db.

Other options?

Consider that the problem is on all pages that have a map displayed, so routes, live map ecc

Okay, what I meant was that when you use the original skin(template) does it show the ACARS map correctly or not? if it shows the map correctly then the problem is with your skin(template) if not the problem is either with your installation or something that we have to find out. smile.gif

Posted

Okay, what I meant was that when you use the original skin(template) does it show the ACARS map correctly or not? if it shows the map correctly then the problem is with your skin(template) if not the problem is either with your installation or something that we have to find out. smile.gif

Yes, it does work in default template, i've posted the image a couple of posts above.

Thanks for you help.

  • Moderators
Posted

Simon could you paste your code off your tpl in here so we can look on how you coded it maby a small error that some fresh pair off eyes can see laugh.gif

  • Moderators
Posted

Yes, it does work in default template, i've posted the image a couple of posts above.

Thanks for you help.

Skin problem, go to your skin style.css the problem comes from there. And Joeri is right it would be a relief if you could give us the codes somehow. wink.gif

  • Moderators
Posted

Skin problem, go to your skin style.css the problem comes from there. And Joeri is right it would be a relief if you could give us the codes somehow. wink.gif

<p>Live Flights Map</p>
<script type="text/javascript">
<?php 
/* These are the settings for the Google map. You can see the
Google API reference if you want to add more options.

There's two options I've added:

autozoom: This will automatically center in on/zoom 
 	so all your current flights are visible. If false,
 	then the zoom and center you specify will be used instead

refreshTime: Time, in seconds * 1000 to refresh the map.
 	The default is 10000 (10 seconds)
*/
?>
var acars_map_defaults = {
autozoom: true,
zoom: 4,
center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"),
mapTypeId: google.maps.MapTypeId.TERRAIN,
refreshTime: 10000
};
</script>
<div class="mapcenter" align="center">
<div id="acarsmap" style="width:<?php echo  Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>
</div>
<?php
/* See below for details and columns you can use in this table */
?>
<table border = "0" width="100%" class="acarsmap">
<thead>
<tr>
	<td><b>Pilot</b></td>
	<td><b>Flight </b></td>
	<td><b>Depar</b></td>
	<td><b>Arrive</b></td>
	<td><b>Stat</b></td>
	<td><b>Alt</b></td>
	<td><b>Spd</b></td>
	<td><b>Dist/Time</b></td>
</tr>
</thead>
<tbody id="pilotlist"></tbody>
</table>
<script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script>
<?php
/* This is the template which is used in the table above, for each row. 
Be careful modifying it. You can simply add/remove columns, combine 
columns too. Keep each "section" (<%=...%>) intact

Variables you can use (what they are is pretty obvious)

Variable:							Notes:
<%=flight.pilotid%>
<%=flight.firstname%>
<%=flight.lastname%>
<%=flight.pilotname%>				First and last combined
<%=flight.flightnum%>
<%=flight.depapt%>					Gives the airport name
<%=flight.depicao%>
<%=flight.arrapt%>					Gives the airport name
<%=flight.arricao%>
<%=flight.phasedetail%>
<%=flight.heading%>
<%=flight.alt%>
<%=flight.gs%>
<%=flight.disremaining%>
<%=flight.timeremaning%>
<%=flight.aircraft%>				Gives the registration
<%=flight.aircraftname%>			Gives the full name
<%=flight.client%>					FSACARS/Xacars/FSFK, etc
<%=flight.trclass%>					"even" or "odd"

You can also use logic in the templating, if you so choose:
http://ejohn.org/blog/javascript-micro-templating/
*/
?>
<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotname%></a></td>
<td><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>
</script>

<?php
/*	This is the template for the little map bubble which pops up when you click on a flight
Same principle as above, keep the <%=...%> tags intact. The same variables are available
to use here as are available above.
*/
?>
<script type="text/html" id="acars_map_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br />
<strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br />
<strong>Status: </strong><%=flight.phasedetail%><br />
<strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br />
</span>
</script>

<?php
/*	This is a small template for information about a navpoint popup 

Variables available:

<%=nav.title%>
<%=nav.name%>
<%=nav.freq%>
<%=nav.lat%>
<%=nav.lng%>
<%=nav.type%>	2=NDB 3=VOR 4=DME 5=FIX 6=TRACK
*/
?>
<script type="text/html" id="navpoint_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br />
<strong>Type: </strong>
<?php	/* Show the type of point */ ?>
<% if(nav.type == 2) { %> NDB <% } %>
<% if(nav.type == 3) { %> VOR <% } %>
<% if(nav.type == 4) { %> DME <% } %>
<% if(nav.type == 5) { %> FIX <% } %>
<% if(nav.type == 6) { %> TRACK <% } %>
<br />
<?php	/* Only show frequency if it's not a 0*/ ?>
<% if(nav.freq != 0) { %>
<strong>Frequency: </strong><%=nav.freq%>
<% } %>
</span>
</script>


Copy and paste these codes to your acarsmap.tpl (Make a back up first) meaning replacing with what you have in there and then upload acarsmap.tpl into your skin folder I repeat SKIN FOLDER and see if it's fixed. biggrin.gif

  • Moderators
Posted

first off all parkho stop posting your own code inhere as you might have seen he has some more coding in the acarsmap.tpl so there wil be the probleme.

it normaly wont be a css problem.

Simon just past your code here so we all can look at it

  • Moderators
Posted

first off all parkho stop posting your own code inhere as you might have seen he has some more coding in the acarsmap.tpl so there wil be the probleme.

it normaly wont be a css problem.

Simon just past your code here so we all can look at it

Just trying to help him out, thought maybe my codes do actually work for him ;). You're a staff here, you say stop helping others, I'll stop right away. :)

  • Moderators
Posted

Just trying to help him out, thought maybe my codes do actually work for him ;). You're a staff here, you say stop helping others, I'll stop right away. :)

i don't say stop helping others i say stip posting your code here

Simon has added more code to his file then the normal standard so he probably has an error with the added coding thats why i asked him to post his code

Posted

this is what i have now as acarsmap.tpl in my /lib/skins/vvair

and it's exactly the same code written on the 30/04/2010 from Nabeel on last release.

<?php 
/**
* These are some options for the ACARS map, you can change here
* 
* By default, the zoom level and center are ignored, and the map 
* will try to fit the all the flights in. If you want to manually set
* the zoom level and center, set "autozoom" to false.
* 
* You can use these MapTypeId's:
* http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId
* 
* Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive
* 
* Also, how to style the acars pilot list table. You can use these style selectors:
* 
* table.acarsmap { }
* table.acarsmap thead { }
* table.acarsmap tbody { }
* table.acarsmap tbody tr.even { }
* table.acarsmap tbody tr.odd { } 
*/
?>
<script type="text/javascript">
<?php 
/* These are the settings for the Google map. You can see the
Google API reference if you want to add more options.

There's two options I've added:

autozoom: This will automatically center in on/zoom 
  so all your current flights are visible. If false,
  then the zoom and center you specify will be used instead

refreshTime: Time, in seconds * 1000 to refresh the map.
  The default is 10000 (10 seconds)
*/
?>
var acars_map_defaults = {
autozoom: true,
zoom: 4,
   center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"),
   mapTypeId: google.maps.MapTypeId.TERRAIN,
   refreshTime: 10000
};
</script>
<div class="mapcenter" align="center">
<div id="acarsmap" style="width:<?php echo  Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>
</div>
<?php
/* See below for details and columns you can use in this table */
?>
<table border = "0" width="100%" class="acarsmap">
<thead>
<tr>
	<td><b>Pilot</b></td>
	<td><b>Flight Number</b></td>
	<td><b>Departure</b></td>
	<td><b>Arrival</b></td>
	<td><b>Status</b></td>
	<td><b>Altitude</b></td>
	<td><b>Speed</b></td>
	<td><b>Distance/Time Remain</b></td>
</tr>
</thead>
<tbody id="pilotlist"></tbody>
</table>
<script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script>
<?php
/* This is the template which is used in the table above, for each row. 
Be careful modifying it. You can simply add/remove columns, combine 
columns too. Keep each "section" (<%=...%>) intact

Variables you can use (what they are is pretty obvious)

Variable:							Notes:
<%=flight.pilotid%>
<%=flight.firstname%>
<%=flight.lastname%>
<%=flight.pilotname%>				First and last combined
<%=flight.flightnum%>
<%=flight.depapt%>					Gives the airport name
<%=flight.depicao%>
<%=flight.arrapt%>					Gives the airport name
<%=flight.arricao%>
<%=flight.phasedetail%>
<%=flight.heading%>
<%=flight.alt%>
<%=flight.gs%>
<%=flight.disremaining%>
<%=flight.timeremaning%>
<%=flight.aircraft%>				Gives the registration
<%=flight.aircraftname%>			Gives the full name
<%=flight.client%>					FSACARS/Xacars/FSFK, etc
<%=flight.trclass%>					"even" or "odd"

You can also use logic in the templating, if you so choose:
http://ejohn.org/blog/javascript-micro-templating/
*/
?>
<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>
</script>

<?php
/*	This is the template for the little map bubble which pops up when you click on a flight
Same principle as above, keep the <%=...%> tags intact. The same variables are available
to use here as are available above.
*/
?>
<script type="text/html" id="acars_map_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br />
<strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br />
<strong>Status: </strong><%=flight.phasedetail%><br />
<strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br />
</span>
</script>

<?php
/*	This is a small template for information about a navpoint popup 

Variables available:

<%=nav.title%>
<%=nav.name%>
<%=nav.freq%>
<%=nav.lat%>
<%=nav.lng%>
<%=nav.type%>	2=NDB 3=VOR 4=DME 5=FIX 6=TRACK
*/
?>
<script type="text/html" id="navpoint_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br />
<strong>Type: </strong>
<?php	/* Show the type of point */ ?>
<% if(nav.type == 2) { %> NDB <% } %>
<% if(nav.type == 3) { %> VOR <% } %>
<% if(nav.type == 4) { %> DME <% } %>
<% if(nav.type == 5) { %> FIX <% } %>
<% if(nav.type == 6) { %> TRACK <% } %>
<br />
<?php	/* Only show frequency if it's not a 0*/ ?>
<% if(nav.freq != 0) { %>
<strong>Frequency: </strong><%=nav.freq%>
<% } %>
</span>
</script>

  • Moderators
Posted

i don't say stop helping others i say stip posting your code here

Simon has added more code to his file then the normal standard so he probably has an error with the added coding thats why i asked him to post his code

Roger! smile.gif

Posted

Copy and paste these codes to your acarsmap.tpl (Make a back up first) meaning replacing with what you have in there and then upload acarsmap.tpl into your skin folder I repeat SKIN FOLDER and see if it's fixed. biggrin.gif

Done,

still blank page.

  • Moderators
Posted

Copy and paste these codes to your acarsmap.tpl (Make a back up first) meaning replacing with what you have in there and then upload acarsmap.tpl into your skin folder I repeat SKIN FOLDER and see if it's fixed. biggrin.gif

Done,

still blank page.

Okay! I was looking at the codes you pasted here and noticed it's slightly structured differently with mine but you did copy and paste my codes and still don't get it up! That's surprisingly strange!!!!! huh.gif Would you consider changing your skin like getting a new one and see if it's still blank? BTW, I checked your site but I didn't get blank page I got an image of the whole world pointing out the flight but it was not moving nor was zooming in or out. Can you clear your browser cache?

Posted

Okay! I was looking at the codes you pasted here and noticed it's slightly structured differently with mine but you did copy and paste my codes and still don't get it up! That's surprisingly strange!!!!! huh.gif Would you consider changing your skin like getting a new one and see if it's still blank? BTW, I checked your site but I didn't get blank page I got an image of the whole world pointing out the flight but it was not moving nor was zooming in or out. Can you clear your browser cache?

No, you need to clear the cache, that one is the pro-tempore acars map we use until i solve the problem of phpvms official live map. Now i've put the default acarsmap.tpl in my skin and as you can see it's empty.

I've got 5 templates and all work except mine lol

  • Moderators
Posted

No, you need to clear the cache, that one is the pro-tempore acars map we use until i solve the problem of phpvms official live map. Now i've put the default acarsmap.tpl in my skin and as you can see it's empty.

I've got 5 templates and all work except mine lol

Can you give me you whole skin folder I want to try it to see if it's the same on my website?

  • Moderators
Posted

i may also but don't remember in wich files there are data regarding my user password and db access.. i wouldn't like to send it around :D

Any ideas?

I don't need your username and passwords I just need your template to install on my website. That doesn't require any user/pass. ;)

Posted

I don't need your username and passwords I just need your template to install on my website. That doesn't require any user/pass. ;)

i did not say that :)

I said that in some files in my template i'm pretty sure i had my access data but it do not remember wich ones :)

  • Moderators
Posted

i did not say that :)

I said that in some files in my template i'm pretty sure i had my access data but it do not remember wich ones :)

oh sorry for misunderstanding. Any way, skin folders have normally 4-5 .tpl files mainly the pilot profile, pilot list and style.css and maybe some other .tpl but not a whole lot unless you added some more files in there. :)

  • Moderators
Posted

lol i have something like 20 .tpl files done by the guy that did the template 2 years ago..

LOL, Okay! I don't know what to tell you. Maybe you need to call the guy and ask him to fix this for you or if you wanna give access to your site so I can figure out where the problem is.

Posted

have you tried firebug to see iff an error is on the page?

No, didn't know such a program.

This is what it sais :

routemap

google.maps.MapTypeId is undefined

mapTypeId: google.maps.MapTypeId.ROADMAP

and on livemap

google.maps.MapTypeId is undefined

[interrompi per questo errore]

mapTypeId: google.maps.MapTypeId.TERRAIN,

acars (riga 53)

google.maps.MapTypeId is undefined

[interrompi per questo errore]

mapTypeId: google.maps.MapTypeId.TERRAIN,

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...