Jump to content

stuartpb

Members
  • Posts

    326
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by stuartpb

  1. mm, odd, I cannot seem to get this on mine? my pilots can select any bid they wish from any airport, regardless of where they last landed :angry:

    care to share how you managed it?

    I already have:

    http://forum.phpvms.net/topic/5309-modified-simpilots-frontschedule-search/page__p__35393#entry35393

    I should warn you though, a few people have been unable to replicate what I done. It works for me. Just back up your original files, just in case it doesn't work. You can ignore the amendments to the search module, just concentrate on the schedule_results.tpl part.

  2. this thread is mainly for the author of phpvms. it may be something for you to think about in the next release. Is there someway, you can only allow a pilot to select a bid, on a route from the airport he was last at? I know, using the fleet pages etc, you can tell via the last pirep where an aircraft is, so it must be possible. So if a pilot flies from A to B, only allow him to add bids that Start at B, and not A?

    You can do this already. I have that option enabled on my VA's despatch system, with day, location and rank restrictions on all scheduled flights.

  3. It's looks pretty good as a work in progress. I like the colour scheme, and overall design. There is a lot of white space on the home page that could be put to good use though. I noticed that you haven't resized the Live ACARS map, so a chunk on the right has been cut off. The same applies in the pilot's public profile page, with the flash PIREP chart.

  4. It's ok friend. I realy need some pilots to join.. Please spread the word!

    You would be better advertising your site on the many forums that allow VA promotion. Just ensure you follow their rules on advertising your VA. Everyone here is running their own VA, so you wouldn't get many interested pilots joining from here. Before you do advertise though, I would recommend spending spending some time on finishing the site. Don't be in a rush to try attracting pilots. Concentrate on getting the website functional, and looking good. Then go for it with the promotion. You'll find attracting pilots to join will be easier then. Even then, it's an uphill struggle getting new members, so be prepared for a slow start. Every successful VA wasn't built overnight, and every VA with a lot of active pilots built their membership up over time. :)

  5. With the help of my new flights ops director, we have finalised the rework to our fleet. Now though, we need to have the aircraft repainted, and my skills are definitely lacking in this area. So does anyone have any recommendations for people who are offering repaints as a service? Please only recommend if you have used their services personally.

    Thanks in advance

    Stuart

  6. Well there isnt much information to give, it just says "kACARS Has stopped responding" and it gives you the option to close, find a solution and, try to resume. Then, when i hit find solution, nothing comes up. Does kACARS have compatibility issues with Win 7? And this never happened to me when i used a free version of kACARS.

    Sorry for butting in, but are you running the KAacars as admin (right click, go properties then compatibility then select run as admin)? You do need to for Win7.

  7. For the ranks:

    <img src="http://yourdomain.com/lib/images/ranks/<?php echo $aircraft->ranklevel; ?>.jpg"/>

    You need to put the above into a table cell on the fleet table page.

    Make sure the path to the image is correct for your server and also you have used the correct image format (png,jpg etc)

    I named the rank images as numerical values, 1 to 9. Lowest rank is 1, highest is 9. The numerical ranklevel and image name need to match up for this to work.

    • Like 1
  8. EDIT: Forget that, I think I ballsed the code up. For a really quick and easy way to get a progress bar that looks good, and is easy to modify:

    http://blog.leetsoft.com/2006/8/22/super-simple-css-bars

    You would need to amend the following line:

    <div class="progress-container">          
       <div style="width: 95%"></div>
    </div>

    To:

    <div class="progress-container">          
       <div style="width: <%=flight.percomplete%>%"></div>
    </div>

    Create a new table column, and place that code in between the <td></td>. Use the CSS as shown on the website in your skins stylesheet, and bobs your mothers brother!

    • Like 3
  9. I can understand that, but at which place in the script, because I have put the code in and nothing happens. Maybe put the whole part

    of the code here.

    I have another question what to do with charterflights. How do you calculated that.

    As always with regards,

    Cor

    Regards the charter flights, we are using Kacars custom, and have stipulated that pilots must enter the route into Kacars before the flight commences. That way the route and % remaining are shown correctly in the ACARS & PIREPS data. We can't physically force them to enter the routes, but we can refuse PIREPS submitted without them.

    Find the line shown below in the ACARS.php module file:

    $c['pilotid'] = PilotData::GetPilotCode($c['code'], $c['pilotid']);

    And add this after that line:

    $totaldistance = round(SchedulesData::distanceBetweenPoints($flight->deplat, $flight->deplng, $flight->arrlat, $flight->arrlng));
    $percomplete = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100), 2));
    $c['percomplete'] = $percomplete;

    Once you have done that, you can call the percent in the acarsmap.tpl file with the following:

    <%=flight.percomplete%>

    This will give the completion percentage in a whole number and two decimal places. You can simply use the text output, or use the value with CSS to create a progress bar, below is one example of how to, but there are many other ways too:

    http://cssglobe.com/post/1468/pure-css-animated-progress-bar

    Cheers,

    Stuart

  10. Looking good. Only criticism I could offer is concerning the use of a splash page. I personally don't like them, as landing on them soon becomes boring, but that's my personal preference. I know you can just bookmark the index page, but that requires me having to work. When I done my web design module, our tutor said that anything you add to a site which means a visitor has to think or carry out unnecessary steps is a bad thing, and I agree.

  11. Jeff, would the code to go in the ACARS module's for each loop go like this:

    $td = SchedulesData::distanceBetweenPoints($depicao->lat, $depicao->lng, $arricao->lat, $arricao->lng);
    $percentleft = (($TD-$c['distremaining'])/$TD)*100;

    • Like 1
×
×
  • Create New...