Jump to content

Ariel

Members
  • Posts

    335
  • Joined

  • Last visited

Posts posted by Ariel

  1. Hey guys,

     

    So yesterday i decided to try a fresh install of the beta 7. version 7.0.0 (build 191119.a335ed) to be exact. Everything went well actually. Installation and all. Up until today. Yesterday i added some airports just to test everything out and today when i tried adding more it no longer looks up airports. Not sure if its my hosting, internet, or the website itself that maybe causing this. Since i was playing around with a few things yesterday and changed a few files i did a fresh install today with a whole new database and still...no airport lookup

     

    Any input is gladly appreciated.

     

    NOTE... i only did the install for testing purposes i know that phpVMS 7 is not released yet and is still in beta phase 

  2. On 1/26/2017 at 7:18 AM, servetas said:

    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBorb_ELH8kXiXxDGpfbz1dgyQk5Gmo7NE&libraries=weather&sensor=true"> </script>

    For future references this seemed to have worked for me. I dont know why the key google was giving was just not working. Thanks Servetas;)

  3. 3 hours ago, StratusGroup said:

    stratusgroup.co.uk

    Your website takes us now to GoogleUK. Personally it looks like you will be only focusing on UK VAs which would kind of limit you to the possible and potential VAs wanting to join your alliance. Your branding itself tells me all this and that is how i came to that conclusion. I could be wrong and that might not be what you guys are going for but thats what i get from your website address. I did put some thought into maybe presenting my project to you and maybe somewhere down the near future join the alliance but my project and where its based from will not be a fit. This could be something to look at and if your guyses focus is not on a particular region then changes might be needed. Again thats just my take on all this. The branding thus far looks great. We have yet to know exactly what was discussed with the 8 VAs and what this 'unique" service(in detail) you will be offering to the community but everything else you mentioned sounds really great and wish you guys the best.

  4. No worries, feel free to use my code on your side, I purely gave it to you as an example

    As per your issue above, this should solve the error

    <?php
    $pirep = PIREPData::getRecentReportsByCount(1);
    if(!$pirep) {
    echo 'THERE IS NO FLIGHTS';
    } else {
    foreach($pirep as $p) {
    echo '
    '.$p->depicao.' <img src="/lib/skins/vdelta3/img/airplaneicon.png" alt=""> '.$p->arricao.'
    FLIGHT: '.$p->code . $p->flightnum.'
    AIRCRAFT: '.$p->aircraft.'
    SUBMITTED: '.date(DATE_FORMAT, $p->submitdate).'
    ';
    }
    }
    ?>
    

    web541,

    Worked like a charm. Thank you again...i really appreciate it!! ^_^

    • Like 1
  5. Now i did try adding an ELSE section to the code so when a pilot doesnt have any flights (ex. new pilot) it will display something saying that there is no flights but i keep getting a syntax error.

    Parse error: syntax error, unexpected 'else' (T_ELSE)

    Does the code not allow an else to it?

    <?php
    $pirep = PIREPData::getRecentReportsByCount(1);
    foreach($pirep as $p) {
    echo '
    '.$p->depicao.' <img src="/lib/skins/vdelta3/img/airplaneicon.png" alt=""> '.$p->arricao.'
    FLIGHT: '.$p->code . $p->flightnum.'
    AIRCRAFT: '.$p->aircraft.'
    SUBMITTED: '.date(DATE_FORMAT, $p->submitdate).'
    ';
    }
    else
    {
      echo 'THERE IS NO FLIGHTS';
    }
    ?>
    

  6. can't remember what type of field the "submitdate" is, but you could try

    <?php echo $report->depicao; ?> <img src="/airplaneicon.png" alt=""> <?php echo $report->arricao; ?>
    FLIGHT: <?php echo $report->code . $report->flightnum; ?>
    AIRCRAFT: <?php echo $report->aircraft; ?>
    DATE SUBMITTED: <?php echo date(DATE_FORMAT, strtotime($report->submitdate)); ?>
    

    or if that doesn't work, do a

    <?php echo print_r($report); ?>
    

    And post what you have for the field

    [submitdate] =>
    

    What I use

    <?php
    $pirep = PIREPData::getRecentReportsByCount(1);
    foreach($pirep as $p) {
    echo $p->depicao.' - '.$p->arricao;
    echo '<br />';
    echo $p->code.$p->flightnum;
    echo '<br />';
    echo $p->aircraft;
    echo '<br />';
    echo date(DATE_FORMAT, $p->submitdate);
    echo '<br />';
    }
    ?>
    

    Hey web541,

    Thanks a bunch for responding. I did end up changing the submit date with the first edit you suggested and that did correct the issue regarding the submitdate.

    Now for the life of me i couldnt get the aircraft name to appear and though you did post what you use on your site i didnt want to use it with out giving it a few tries with other codes and such...but that was to no avail.

    I did, on a side note, used your "spoiler" code and that did the trick and want to thank you for showing your code. I did tweak it alittle just to not have too many echos and but either one works just fine...

    <?php
    $pirep = PIREPData::getRecentReportsByCount(1);
    foreach($pirep as $p) {
    echo '
    '.$p->depicao.' <img src="/airplaneicon.png" alt=""> '.$p->arricao.' 
    FLIGHT: '.$p->code . $p->flightnum.'
    AIRCRAFT: '.$p->aircraft.'
    SUBMITTED: '.date(DATE_FORMAT, $p->submitdate).'
    ';
    }
    ?>
    

    All in all thank you for the help. I really appreciate it!! #lifesaver ;)

  7. Im trying to display the latest flight details of a pilots last flown flight.

    Using this code

    <?php echo $report->depicao; ?> <img src="/airplaneicon.png" alt=""> <?php echo $report->arricao; ?>
    FLIGHT: <?php echo $report->code . $report->flightnum; ?>
    AIRCRAFT: <?php echo $report->aircraft; ?>
    DATE SUBMITTED: <?php echo date(DATE_FORMAT, $report->submitdate); ?>
    

    but what i get is this

    Screenshot_3.png

    The airport ICAOs are correct and so is the flight number but the aircraft and date are either not what i want it to show or wrong. The aircraft assigned to that flight is the second aircraft on the database but i want it to display the aircraft name. As for the date I cant seem to understand where its getting it from if not from the last submitted PIREP.

    Can anyone please let me know what im doing wrong!

    Very much appreciated and thank you in advance!

  8. Open core/classes/CodonModule.class.php

    Right after <?php on a new line add

    ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

    that doesnt do anything

    i still get this error when accessing /index.php/SimpleNews/item/1

    Fatal error: Using $this when not in object context in /home3/vdelta/public_html/beta/core/modules/SimpleNews/SimpleNews.php on line 39

    i get this error when accessing /index.php/SimpleNews

    Fatal error: Using $this when not in object context in /home3/vdelta/public_html/beta/core/modules/SimpleNews/SimpleNews.php on line 17

  9. Okay so i was able to get it to work with your modification of the NewsData.class

    but i also found that in order to use the code

    <?php SimpleNews::NewsList(); ?>

    you must also change the "public function" to "public static function" in the core/modules/SimpleNews/SimpleNews.php i believe there is 4 lines to edit

    but when i click on the news to read it it takes me to the news page and gives me this

    Fatal error: Using $this when not in object context in public_html/core/modules/SimpleNews/SimpleNews.php on line 39

  10. This is how I fixed my strict standard errors when converting to 5.5

    Open core/common/NewsData.class

    Find public function and replace it with public static function. Most cases there are several lines that need to be replaced.

    but did you change the .tpl files to .php?

  11. What errors?

    I get strict standards errors when i change the .tpl files to .php

    Strict Standards: Non-static method NewsData::GetNews() should not be called statically, assuming $this from incompatible context in public_html/core/modules/SimpleNews/SimpleNews.php

    Strict Standards: Non-static method NewsData::Truncate() should not be called statically, assuming $this from incompatible context in public_html/core/templates/simplenews_page.php

    Strict Standards: Non-static method NewsData::IsNextPage() should not be called statically, assuming $this from incompatible context in public_html/core/templates/simplenews_page.php

    Strict Standards: Non-static method NewsData::CountPages() should not be called statically, assuming $this from incompatible context in public_html/core/common/NewsData.class.php

    when not changed i get this

    Strict Standards: Non-static method NewsData::GetNews() should not be called statically, assuming $this from incompatible context in public_html/core/modules/SimpleNews/SimpleNews.php on line 18

    Notice: The template file "public_html/core/templates/simplenews_page.php" doesn't exist in public_html/core/classes/TemplateSet.class.php on line 231

×
×
  • Create New...