Jump to content

Pilot online/ offline in signature?


James142

Recommended Posts

  • Administrators

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

Link to comment
Share on other sites

  • Moderators

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 :)

Link to comment
Share on other sites

Guest lorathon

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.

Link to comment
Share on other sites

Guest lorathon

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);

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

  • Moderators

OK so here is the site to automate stuff if you dont have access to cron jobs.

http://www.phpjobscheduler.co.uk/

You can setup your file system backup to your databases, its easy to setup and understand although i have not used it for over a year or so but it worked fine for me when i used it.

Link to comment
Share on other sites

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