Jump to content

Recommended Posts

Posted

You can use simpilot's VATSIM Data Reader here.

Once installed simply add the following to where you want it displayed:

<?php MainController::Run('Vatsim', 'create_vatsim_data', '!CLIENTS:', 'PILOT', 'HVA'); ?>

Note I have entered HVA as the ICAO as that is what your site says but use the ICAO that your pilots will use when flying on VATSIM :)

Posted

Hello Im trying to add on a Feature on my website for a "who is online" feature. The link to my site is www.hootersairva.org I want to put it under the newest pilot section. Any help will be helpful

-Pedro

CEO

HootersAirVa

Hi Jeff I seen your work on the flight board and i was wondering if u can help me out. I have a space on my left column and i want to fill it with a "Who is online" feature. My website is www.hootersairva.org

Thanx for any help

-Pedro

Try using what Iain stated above. Do not PM me of a problem you are having, as I do not support via PM unless I ask you to contact me. Many sources to a persons problem can be easily found by searching. By no means am I trying to be rude, but if someone else is also experiencing the same exact problem you are, the answer should be viewable for all to see, so they can fix it as well. I hope you understand.

Posted

Itrob, Jeff Thank you for your replies...

ok so i uploaded the files it does kinda work but i have this long thing

row_info 0 callsign-> = HVA007

row_info 1 cid-> = 1079348

row_info 2 realname-> = Pedro Tenaud-KLAX

row_info 3 clienttype-> = PILOT

row_info 4 frequency-> =

row_info 5 latitude-> = 34.09472

row_info 6 longitude-> = -117.78680

row_info 7 altitude-> = 1014

row_info 8 groundspeed-> = 0

row_info 9 planned_aircraft-> =

row_info 10 planned_tascruise-> = 0

row_info 11 planned_depairport:-> =

row_info 12 planned_altitude:-> =

row_info 13 planned_destairport:-> =

row_info 14 server:-> = USA-W2

row_info 15 protrevision:-> = 100

row_info 16 rating:-> = 1

row_info 17 transponder:-> = 1200

row_info 18 facilitytype:-> =

row_info 19 visualrange:-> =

row_info 20 planned_revision:-> =

row_info 21 planned_flighttype:-> =

row_info 22 planned_deptime:-> =

row_info 23 planned_actdeptime:-> =

row_info 24 planned_hrsenroute:-> =

row_info 25 planned_minenroute:-> =

row_info 26 planned_hrsfuel:-> =

row_info 27 planned_minfuel:-> =

row_info 28 planned_altairport:-> =

row_info 29 planned_remarks:-> =

row_info 30 planned_route:-> =

row_info 31 planned_depairport_lat:-> =

row_info 32 planned_depairport_lon:-> =

row_info 33 planned_destairport_lat:-> =

row_info 34 planned_destairport_lon:-> =

row_info 35 atis_message:-> =

row_info 36 time_last_atis_received:-> =

row_info 37 time_logon:-> = 20120220034008

row_info 38 heading:-> = 94

row_info 39 QNH_iHg:-> = 30.038

row_info 40 QNH_Mb:-> = 1017

-------

What am i doing wrong?

here is my Layout

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title><?php echo $page_title; ?></title>

<link href="<?php echo SITE_URL?>/lib/skins/vairline/style.css" rel="stylesheet" type="text/css" />

<link href="<?php echo SITE_URL?>/lib/skins/vairline/form.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="<?php echo SITE_URL?>/lib/skins/vairline/vairline.css" />

<?php

/* This is required, so phpVMS can output the necessary libraries it needs */

echo $page_htmlhead;

?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

<script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/vairline/chrome.js">

/***********************************************

* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code

***********************************************/

</script>

</head>

<body>

<?php

/* This should be the first thing you place after a <body> tag

This is also required by phpVMS */

echo $page_htmlreq;

?>

<div id="wrapper">

<div id="top">

<div id="logo"></div>

<div id="loginbox">

<?php

/*

Quick example of how to see if they're logged in or not

Only show this login form if they're logged in */

if(Auth::LoggedIn() == false)

{ ?>

<form name="loginform" action="<?php echo url('/login'); ?>" method="post">

<input type="text" onclick="this.value='';" onblur="this.value=!this.value?'Email':this.value;" name="email" value="HVA" id="email" size="20" />

<input type="password" onclick="this.value='';" onblur="this.value=!this.value?'Password':this.value;" name="password" id="password" value="Password" size="15" />

<input type="hidden" name="redir" value="index.php/profile" />

<input type="hidden" name="action" value="login" />

<button type="submit" id="">Login</button>

</form>

<?php

}

/* End the Auth::LoggedIn() if */

else /* else - they're logged in, so show some info about the pilot, and a few links */

{

/* Auth::$userinfo has the information about the user currently logged in

We will use this next line - this gets their full pilot id, formatted properly */

$pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);

?>

<img align="left" height="50px" width="50px" style="margin-right: 10px;"

src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />

<strong>Pilot ID: </strong> <?php echo $pilotid ; ?>

<strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />

<strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>

<br />

<a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> |

<a href="<?php echo url('/schedules/bids');?>">View My Bids</a> |

<a href="<?php echo url('/profile/');?>">View Pilot Center</a>

<?php

} /* End the else */

?>

</div>

</div>

<div id="banner">

<div id="bannercontent">

<h1> </h1>

</div>

</div>

<div id="nav-menu">

<?php

/* You can modify this template into a table or something, by default

it's list elements inside of a UL. Here's a link with some info:

http://articles.sitepoint.com/article/css-anthology-tips-tricks-4/2

*/

Template::Show('core_navigation.tpl');

?>

</div>

<div id="left">

<div id="box">

<h3>Recent Reports</h3>

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

</div>

<div id="box">

<h3>Newest Pilots</h3>

<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>

</div>

<div id="box">

<h3>Pilots Online</h3>

<?php MainController::Run('Vatsim', 'create_vatsim_data', '!CLIENTS:', 'PILOT', 'HVA'); ?>

</div>

</div>

<div id="right">

<div id = "box">

<?php

/* This will insert all of the "meat" of the page in there - the template

which is generated, depending on which page you're on. To change these

templates, check out the docs on the site. They're under the /core/templates

folder, and to change them, copy them into the folder of your skin (the

folder this file is in right now.

*/

echo $page_content;

?>

</div>

</div>

<div id="footer"><p>copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><br />

<!-- Please retain this!! It's part of the phpVMS license. You must display a

"powered by phpVMS" somewhere on your page. Thanks! -->

<a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> - <a href="http://vairline.org" target="_blank">Design by vAirline</a>/<a href="http://nicktyson.com" target="_blank">Nick Tyson</a></p></div>

</div>

</body>

</html>

Also How would i get it to show No Pilots Online when there are non?

Thanx

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