Changing the Aircraft Details popup window

User-created resources that can help you get more out of your BaseStation software.

Moderators: admin, chrisg0wtz, KineticDavid, Moderators

Postby bones » March 13th, 2007, 9:58 am

If the read only attribute is still set then making a copy won't work as this will also have the read only option set.

All the default Kinetic files have Read Only set to prevent misuse so you HAVE to turn this off before the ability for making changes is possible.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby n13tlr » March 13th, 2007, 5:54 pm

bones
i have changed the read only but still cannot delete the files in my data files and after copying the files off this forum cannot paste into the data file either

nick
n13tlr
 
Posts: 153
Joined: December 15th, 2006, 7:21 pm
Location: Todmorden

Postby bones » March 13th, 2007, 6:26 pm

Send me your XSL file.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby n13tlr » March 13th, 2007, 6:47 pm

have sent it
thanks
n13tlr
 
Posts: 153
Joined: December 15th, 2006, 7:21 pm
Location: Todmorden

Flightaware.com xsl trick

Postby jmhayes » March 20th, 2007, 11:51 pm

Here's what I do for links into Flightaware.com ...

Code: Select all
<xsl:variable name="FlightNo"
  select="translate(//currentflight/callsign,' ','')"/>

<span class="entrycaption">
<a href="http://flightaware.com/live/flight/{$FlightNo}" target="new">
FlightAware: <xsl:value-of select="$FlightNo"/></span></a>
User avatar
jmhayes
 
Posts: 120
Joined: September 16th, 2005, 9:03 pm
Location: San Francisco, CA US

Postby n13tlr » March 21st, 2007, 7:34 pm

Hi
do you simply copy and paste all that anywhere in your xsl file

nick
n13tlr
 
Posts: 153
Joined: December 15th, 2006, 7:21 pm
Location: Todmorden

Postby bones » March 22nd, 2007, 1:06 am

No - you have to place it correctly within the structure of the XSL. It has to lie within the <body> tags but outside any existing <table> tags. You could insert it between the end of one table - denoted by the </table> tag and the next <table> tag like so:

Lots of code...
</table>

Insert the new lines here

<table>
Lots of code...


but it may not look pretty. As always, if you are new to this and need to experiment to get it right because you don't understand XSL then make a copy of the XSL file first. If you mess it up and haven't got a copy to fall back on then you are snookered.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby n13tlr » March 22nd, 2007, 10:50 am

point taken have had a go and i will leave it up to the experts

nick
n13tlr
 
Posts: 153
Joined: December 15th, 2006, 7:21 pm
Location: Todmorden

Postby bones » July 16th, 2007, 10:46 am

Further examples have been posted in a secondary thread at http://www.kinetic-avionics.co.uk/forums/viewtopic.php?t=4435.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby RichyV » November 1st, 2007, 10:26 pm

Mine's just a variation on a theme really...

Code: Select all
<?xml version="1.0" encoding="iso8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>

<head>
<link rel="stylesheet" href="basestation.css" type="text/css"/>
</head>

<body>

<table width="600">
<tr>
<td width="200" height="150">
<img src="C:\planes\{//regdata/registration}_A.jpg" width="200" height="133" border="0" />
</td>
<td>

<table>
<tr>
<td width="399">
<div class="entryheading" align="center">Aircraft Data</div>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="399">
<tr>
<td>
<tr>
<td width="154">
<span class="entrycaption">ModeS Code : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
</td>
<td width="245">
<span class="entrycaption">ICAO Code : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/ICAOTypeCode"/></span>
</td>
</tr>

<tr>
<td width="154">
<span class="entrycaption">Registration : </span>
<span class="entrydata"><font color="blue"><xsl:apply-templates select="//regdata/registration"/></font></span>
</td>

<td width="245">
<span class="entrycaption">Type : </span>
<span class="entrydata"><font color="green"><xsl:apply-templates select="//regdata/type"/></font></span>
</td>
</tr>

<tr>
<td width="154">
<span class="entrycaption">Serial No : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/serialno"/></span>
</td>

<td width="245">
<span class="entrycaption">Operator : </span>
<span class="entrydata"><font color="red"><xsl:apply-templates select="//regdata/registeredowners"/></font></span>
</td>
</tr>

<tr>
<td width="154">
<span class="entrycaption">Flight No : </span>
<span class="entrydata"><font color="blue"><xsl:apply-templates select="//currentflight/callsign"/></font></span>
</td>

<td width="245">
<span class="entrycaption">Country : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/country"/></span>
</td>
</tr>
<tr>
<td>
</td>
</tr>

</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

</td>
</tr>
</table>

<table>
<tr>
<td width="606">
<span class="entryheading">User Notes</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="606">
<tr>
<td>
<span><font color="red"><xsl:apply-templates select="//user/notes"/></font></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="606">
<span class="entryheading">Web Links</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="606">
<tr>
<td>

<tr>
<td width="325">
<a href="http://dm.airliners.net/search/photo.search?regsearch={//regdata/registration}&amp;distinct_entry=true" target="new">
<span class="entrycaption">Click here to link to Airliners.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<a href="http://www.caa.co.uk/application.aspx?categoryid=60&amp;pagetype=65&amp;applicationid=1&amp;mode=detailnosummary&amp;fullregmark={//regdata/registration}" target="new">
<span class="entrycaption">Click here to link to CAA G-INFO for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>

<tr>
<td width="325">
<a href="http://www.jetphotos.net/showphotos.php?offset=0&amp;where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||" target="new">
<span class="entrycaption">Click here to link to Jetphotos.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<xsl:variable name="Nreg" select="substring-after(//regdata/registration,'N')"/>
<a href="http://registry.faa.gov/aircraftinquiry/NNumSQL.asp?NNumbertxt={$Nreg}" target="new">
<span class="entrycaption">Click here to link to FAA Registry for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>

<tr>
<td width="300">
<a href="http://www.planepictures.net/netsearch4.cgi?stype=reg&amp;srng=2&amp;srch={//regdata/registration}&amp;offset=0&amp;range=10" target="new">
<span class="entrycaption">Click here to link to Planepictures.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<a href="http://www.flytecomm.com/cgi-bin/trackflight?action=select_advanced&amp;flight_id={//currentflight/callsign}" target="new">
<span class="entrycaption">Link to FlyteComm for flight no: <xsl:apply-templates select="//currentflight/callsign"/></span></a>
</td>
</tr>

<tr>
</tr>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>


...and it gives me this:

Image
By richyv at 2007-11-01
User avatar
RichyV
 
Posts: 345
Joined: April 16th, 2007, 11:00 am
Location: Gloucestershire

Postby Mr Phil » November 2nd, 2007, 4:44 pm

Nice one richy
I will save that for later
when I get another BOX
still got the software though
MMS COME ON (yo yo) :wink:
The Geek shall inherit the earth

M1PAC
User avatar
Mr Phil
 
Posts: 811
Joined: October 8th, 2006, 6:50 am
Location: Keighley West Yorkshire

Postby Currymonster » November 2nd, 2007, 5:43 pm

Well done Richy, thanks alot for taking the time out, been asking all week for this answer and you have provided spot on!!

Works like a dream, great for newbies like me that know what they want but not sure how to get it.

Cheers mate

Steve
User avatar
Currymonster
 
Posts: 100
Joined: October 25th, 2007, 8:39 pm
Location: Crewe,Cheshire

Postby RichyV » November 2nd, 2007, 6:51 pm

Mr Phil; Currymonster, no probs at all :!:

Glad I can be of some help & contribute from time to time... 8)

(...as well as ask annoying questions :twisted: )

Cheers
User avatar
RichyV
 
Posts: 345
Joined: April 16th, 2007, 11:00 am
Location: Gloucestershire

Postby Mr Phil » November 2nd, 2007, 7:58 pm

RichyV wrote:Mr Phil; Currymonster, no probs at all :!:

Glad I can be of some help & contribute from time to time... 8)

(...as well as ask annoying questions :twisted: )

Cheers

so long as you dont mind annoying answers :wink:
The Geek shall inherit the earth

M1PAC
User avatar
Mr Phil
 
Posts: 811
Joined: October 8th, 2006, 6:50 am
Location: Keighley West Yorkshire

Aircraft Details

Postby garry » December 7th, 2007, 8:53 pm

I have made a few changes to to the basestation file, what I would like to do is change the default window size so I do not have the scroll bars.
The picture is what it defaults to when opened for the firrst time
Image
After I have manually extended them for the first the horizontal scroll bar disapears and the vertical one is greyed out but it is remembered for the next time it is opened.

It is only a picky smal thing but would like to learn how to do it if possible. :D
So far I have learned a few things from fiddling around but I still have a lot to learn.
User avatar
garry
 
Posts: 14
Joined: November 16th, 2007, 10:21 am
Location: Bristol

PreviousNext

Return to Resources

Who is online

Users browsing this forum: No registered users and 1 guest

cron