Jump to content

Recommended Posts

Posted

Hello,

I was wondering if there was a code to say if a pilot is online or offline on the website in the badge/signature? I have being looking around the forums but found nothing.. unsure.gif

Thanks,

James

Posted

I do recall him mentioning that as well. Not sure what came out of it to be honest. Except I think his showed if guys were online or offline at Vatsim. You can view it on the ACA site in action.

  • Administrators
Posted

I built a seperate status badge from the native phpVMS pilots badge. It is updated every 10 minutes by a cron job running on the server. It gets the online/offline, route, flight status, etc, from the acars data table on the site so it doesnt matter where they are flying, vatsim, ivao, offline. As long as they are connected to the acars client and the site their pilot status badge is updated. If they are not connected to the site via cars it takes the last flight data from their last pirep and displays some basic info, last flight number, date last seen, etc.

There is a page with all of the active pilot's status badges here -> http://www.virtualaca.net/index.php/status

And they are also located in each pilots profile like here -> http://www.virtualaca.net/index.php/profile/view/1

I have been debating with myself about releasing this in some way.....

  • Moderators
Posted

I built a seperate status badge from the native phpVMS pilots badge. It is updated every 10 minutes by a cron job running on the server. It gets the online/offline, route, flight status, etc, from the acars data table on the site so it doesnt matter where they are flying, vatsim, ivao, offline. As long as they are connected to the acars client and the site their pilot status badge is updated. If they are not connected to the site via cars it takes the last flight data from their last pirep and displays some basic info, last flight number, date last seen, etc.

There is a page with all of the active pilot's status badges here -> http://www.virtualaca.net/index.php/status

And they are also located in each pilots profile like here -> http://www.virtualaca.net/index.php/profile/view/1

I have been debating with myself about releasing this in some way.....

Dave,

Put it on your site at a cost, ill be the first in line to buy that script :)

Guest lorathon
Posted

ive tried doing the same thing however fivedev have disabled the "fopen" command so trying to figure out how to open the image to be edited...

Not true. I am on fivedev and until just a few days ago each pirep filed used "fopen". Your script must have been wrong.

Posted

sorry to mislead ppl here, its the url fopen thats disabled... will re-check the code to make sure i wasnt using a url parth to the file, but i know i had an error on the lines of: " URL file-access is disabled in the server configuration in /home/imgvirtu/public_htm"

Guest lorathon
Posted

here was my code maybe that will help.

$file = './lib/pirep_charts/'.$pirepid.'_Alt.xml';
$write = fopen($file, "w");

// do some stuff and fill $_xml with what I want to write (obviously I was writing xml files) 

fwrite($write, $_xml);

fclose($write);

Posted

here was my code maybe that will help.

$file = './lib/pirep_charts/'.$pirepid.'_Alt.xml';
$write = fopen($file, "w");

// do some stuff and fill $_xml with what I want to write (obviously I was writing xml files) 

fwrite($write, $_xml);

fclose($write);

Cheers will give it ago :) thanks for that!

Posted

Dave your a top man. working like a charm ;)

FWX001 Have you set up the cron job?

I do not understand how to set up the cron job

Posted

There are links for instructions and support included within the email you received the script in.

I have seen links but I don't understand <_<

What do I do with the example?

must I insert in the script?

This is an example of a Cronjob to update the badges every 10 minutes.

*/10 * * * * /usr/bin/php -f /home/yourdomain/public_html/core/modules/Status/updatestatus.php /dev/null 2>&1

I'm sorry but I cannot do anything with the example

Regards

FWX001 B)

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