I'm trying to add a link to FlightAware on the Aircraft Detail panel. I'm not sure if this is possible with the Custom Content plugin. Can you tell me if I'm on the right track?
The logic I'm trying to use to create the link is:
Check for a callsign
If it exists and it is a number (e.g. 697) and I know the operator flag code (e.g. WJA), then append the two. Westjet only uses the flight number as the callsign, so this would make the callsign WJA697.
If it exists and it is not a number, then use the callsign
Otherwise use the registration
In enums.js in VRS.LinkSite, I believe I need to add the following before StandingDataMaintenance:
Just doing a bit more reading of the documentation. I think I can replace those two files in their entirety with my own versions using the plugin. But could I instead inject those JS snippets into desktop.html? Maybe at the end of the header?
That is exactly the way to add custom links - the only thing I would suggest is adding some kind of prefix to the name of the VRS.LinkSite index so that there's no possibility of clashing with a future update. Perhaps "jfm_FlightAwareDotCom"?
I can change the topic title but it's probably better if you do it Just click on the Edit button on your first post, you should be able to change the topic title from there.
I did replicate this behaviour for the planespotters.net, since it provides (on one page) another links to different kinds of information (plane photos, airframe infos, aircompany fleet info etc).
Thanks to jfm for posting this thread, so I could walk the same way
Here below the script itself:
I agree. Adding custom links is a bit tricky. You may add some sort of prefix to VRS.LinkSite index so that there's little possibility of clashing when you do the updates. Thanks.
Tammara I cured my nightmares with this dream site atdream dictionary now.I understand my dreams so much better now. Here is thehomelink to that dream site.
Would anyone be able to help me in creating a custom link to flightradar24 as well? I have successfully created a custom link to flightaware.com using jfm's instruction above with the custom content plugin, but I am not able to create a link to Flightradar24. This is the script I am running with the custom content plugin: