Jump to content

mischka

Members
  • Posts

    287
  • Joined

  • Last visited

Posts posted by mischka

  1. Tbh no acars program is immune to crapping out. But kACARS is by far the best freeware acars prog out there. What would be better instead of disabling manual pireps altogether would be to say only use it if you have absolutely no other option, such as internet going down for an extended period of time, and they are bored and decide to fly, they can record the details and file the pirep manually then when their internet comes back online

    exactly! even if the internet works, there might be problems with the VA website or some other reason why acars can't connect.

    Or, if your pc shut down midflight and you resume from a save-file, there's no way kacars will cooperate.. you'd have to file manually.

    acars is all very handy but I wouldn't want to miss a pirep because of it, even when filed manually. That's both for me as a pilot as well as from a VA perspective

  2. While removing the non-bid link may sound like a good idea, I don't think completely disabling manual pireps is a good idea. What if something goes wrong mid-flight with the kAcars? Happened to me often enough... kacars isn't the most brilliantly written piece of software, and you shouldnt punish your pilots or yourself for wasting pireps due to kacars mucking up :)

    just my 2 cents...

  3. I think that's rather how often the system checks if a user is still online

    Indeed if I look at the referenced function, i see it returns this:

    SELECT p.*

    FROM ".TABLE_PREFIX."pilots p, ".TABLE_PREFIX."sessions s

    WHERE s.pilotid = p.pilotid

    AND DATE_SUB(NOW(), INTERVAL {$minutes} MINUTE) <= s.`logintime

    On both my sites I have this value set to 20, however on one site it never times out and on the other all the time.

  4. Hey Guys,

    I'm working on a new site, and one annoyance I'm having is that the session doesn't stay alive i.e. i don't stay logged on. On my main site all works fine and I never have to log in, but here I think after half an hour or so it kicks me out again. Specially annoying if I do some admin-work and when I submit it doesn't actually submit :(

    Anyone can shed some light on this?

  5. I've had a weird issue one or two weeks ago, where I would get an email from phpvms saying a new user is registered. Upon checking the admin section and the pilots table in phpmyadmin, the pilots specified in the mail were not present. Also, my website statistics did not show any trace of a user registering at that hour.

    very odd!

  6. Hello guys,

    I had a real weird issue today: When a user was logged in, the site was working normal. Soon as I logged out though, there were loads of error messages all over the homepage, many relating to database issues. Also, things like recent flights, filed pireps, news and other stuff that gets loaded from the db was not showing.

    I tried clearing the cache, didn't help. I bothered the support of my host but they pointed at the phpvms system, saying their servers were well within parameters.

    Then, while being logged out, I clicked on one of the links on my page and then went back the homepage.. all of a sudden all was fine!

    This got me thinking about the session management, and I went into my db... I noticed several sessions with my IP address and userid 0... I deleted all of those and then it was working normally again... for a minute or so. hmmmm, what the hell?

    Then one of the error messages drew my attention. On my homepage I had a little script that gets the countrycode of the visitor and shows a suitable picture on the banner, eg a visitor from prague will get a picture of prague airport.

    It appeared that the site I used to fetch data from (api.hostip.info) is down and hence the request was not completed in time.. so it seems now this problem is solved

    Anyway... until 10 seconds ago my phpvms_sessions table had over 6200 records in it. it was manually flushed on 31st of May (ie a month ago) so thats a lot of records created for absolutely nothing. How can this be and how can it be fixed?

  7. that looks really great, and just how I want it!

    However...

    just updated my schedule_results.tpl with the code you posted -> nothing

    then I downloaded your schedule_results and temporarily put it on my site -> nothing either!

    seems its not so much a problem of the specific code in the results.tpl but either in the header or a client-side issue..

    still, your schedule_results doesn't work on any of my computers (my sim-pc, my two thinkpads, my girlfriends dell)

    .. now I wonder, does mine work on yours?

    this is the page with your code in it: http://european.virt.../FrontSchedules

  8. @parkho: yes, I managed to get in now. It looks really neat but it's not exactly what I need

    @strider: yes, I also put it in the schedule_results.tpl.

    This is what my schedule_result.tpl looks like:

    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css" type="text/css" />
       <style>
        .loading { background: url(/img/spinner.gif) center no-repeat !important}
       </style>  
       <script type="text/javascript">
       $(function (){
        $('a.ajax').click(function() {
    	    var url = this.href;
    	    // show a spinner or something via css
    	    var dialog = $('<div style="display:none" class="loading"></div>').appendTo('body');
    
    	    // open the dialog
    	    dialog.dialog({
    		    // add a close listener to prevent adding multiple divs to the document
    		    close: function(event, ui) {
    			    // remove div with all data and events
    			    dialog.remove();
    		    },
    		    modal: true, height: 600, width: 700, position: ['center',80], title: "Schedule details"
    	    });
    	    // load remote content
    	    dialog.load(
    		    url,
    		    {}, // omit this param object to issue a GET request instead a POST request, otherwise you may provide post parameters within the object
    		    function (responseText, textStatus, XMLHttpRequest) {
    			    // remove the loading class
    			    dialog.removeClass('loading');
    		    }
    	    );
    	    //prevent the browser to follow the link
    	    return false;
        });
       });
       </script>
    

    and then the rest

    the link looks like this:

    <a class="ajax" href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?>
      <?php echo '('.$route->depicao.' - '.$route->arricao.')'?>
     </a>
    

  9. it wont let me log in... tried with ALD0001 and also the email address provided, and the supplied password but it wont let me in.

    About your solution: I really want to use this modal window on different places of my website (like pirep history, pilot brief and others) where I just need a dialog window and JIT loading. So thanks for the idea but it doesn't suit my needs

  10. Ok, I've gotten a bit further on my own accord, but still need some help.

    This experimental page does exactly what I want: http://european.virtualairlines.eu/jquerytest.htm

    However, if I paste the script code into my schedule_results.tpl, or any other page, it doesn't work any more..

    eg http://european.virtualairlines.eu/index.php/schedules <- click on the flight number to get the details

    the schedule_details.tpl will just load in a full window, not in the dialog box.

    from the test htm I took out the calls, because they were duplicated in the phpvms header page.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>

    I also tried moving my script into the <head> section but it doesn't matter.. the experimental page has the script in the body and works just fine.

    who knows where the problem lies? Im getting a tad frustrated here :(

  11. Hey guys,

    I'm trying to implement a kind of modal dialog window, much like the one you see in the admin section. For example when editing an airport you click on edit on the row and a window pops up with the relevant form.

    I've tried analyzing and extracting the code in the admin section, as well as trying to google, but after an hour it has yielded nothing but frustration :(

    I admit that jquery is not my strength, so i thought it might be better to ask someone who does know what I need and knows how to make it work with phpvms. After all, this functionality seems to be built into phpvms already, so why not use it?

    thanks in advance :)

×
×
  • Create New...