Jump to content

Recommended Posts

  • Moderators
Posted

Mark,

i was sneaking on your site :lol: and i notiched that you made a direct link with vroute

could you explain how you got this done.

thanks in advance joeri

  • Moderators
Posted

HI Joeri,

If you send a email to Michal Rok he will set vroute to look for a text file with all your vatsim id's in and new ones will automatically be added to your community overnight.

This is the code i use to pull the vatsim id's from the database.

<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
include 'Your site path//core/codon.config.php';
$allpilots = PilotData::getAllPilots();
foreach($allpilots as $pilot)
{
       echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
echo '<br />';
}
?>

All you need to change is the include to your location and it does need the two // for some reason :)

Just put that in a file and give the url to Michal.

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