Jump to content

nfinger

Members
  • Posts

    14
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by nfinger

  1. 12 hours ago, ViniciusQuadros said:

     

    
    <input type="button" onclick="simbriefsubmit('https://www.vexvirtual.com/index.php/SimBrief');" style="font-size:30px" value="Generate Simbrief">

    This is my code above. Open on a new tab when I click on generate Simbrief.

    Hi ViniciusQuadros,

    I am also using crewcenter and never got the simbrief plugin to work. Could you please shared the complete code you are using with me to use from the briefing page?

     

    Currently i am using a cut-down version that simply links to the simbrief site and automatically inputs flight number, departure and destination only.

    • Haha 1
  2. How can I sort the pilot list by a custom fieldvalue.

    We use regions instead of Hubs but it is a customfield and need to sort it by region. these are in a separate database table and not in the main pilots table, so stati function for the pilots table does not work as the value is not in there.

    eg. i use this one to sort by last flight and it works fine.

    public static function getPilotsSortedLastFlight($count = 1000) {
            $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'pilots
                    ORDER BY `lastpirep` DESC
                    LIMIT ' . $count;

            return DB::get_results($sql);
        } 

    using this to call it:

    <?php
    class About3 extends CodonModule
    {
    function index ()
    {

    $this->set('pilot_list', PilotData::getPilotsSortedLastFlight());
    $this->render('pilots_list_sort.php');
    }

    check link here: http://icrew.nobleairaus.com/index.php/About3

     

  3. Hi,

    I installed the module and cannot get it to work. In the instructions it says: I cannot find line 195 or any corresponding link where to add this, see attached. I modified one line to take the user directly to Simbrief but is not supposed to work this way. Any help would be appreciated. 

    4.Edit your schedule_briefing.tpl in /core/templates and in line 195 edit the link to corespond to your site
    Example http://../index.php/SimBrief

    when i call the module directly i get many errors like this:

    Warning: simplexml_load_file(): http://www.simbrief.com/ofp/flightplans/xml/.xml:125: parser error : xmlParseEntityRef: no name in /home/noble6/public_html/iCrew.nobleairaus.com/core/modules/SimBrief/SimBrief.php on line 12

    Warning: simplexml_load_file(): if (typeof(window.old_alert) != 'undefined' && typeof(jquery_confirm) != 'undef in /home/noble6/public_html/iCrew.nobleairaus.com/core/modules/SimBrief/SimBrief.php on line 12

    Warning: simplexml_load_file(): ^ in /home/noble6/public_html/iCrew.nobleairaus.com/core/modules/SimBrief/SimBrief.php on line 12

     

     

    schedule_briefing.zip

  4. i get the same error:

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>No such file or directory (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p>

                                                                                    </blockquote><hr noshade color=dddddd size=1>

    ..core/classes/ezdb/ezdb_mysql.class.php on line 103

     

    any help would be welcome, obviously directory exists.

  5. I recently installed phpvms 5.5.2 and get the following cronjob error.

    Any help would be welcome.

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>No such file or directory (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p>

                                                                                    </blockquote><hr noshade color=dddddd size=1>

      thrown in /.../core/classes/ezdb/ezdb_mysql.class.php on line 103

     

×
×
  • Create New...