Jump to content

Angel Air

Members
  • Posts

    252
  • Joined

  • Last visited

Posts posted by Angel Air

  1. Hi all,

    I have a pilot on my VA who fly's xplane and on MAC, he is using xacars to record his flight, as that is the only compatible acars program.

    But it is chucking up lots of errors.

    1. pilot number is showing up as 0000

    2. when he does a flight it breaks the live map (no ones flight shows up even though other flights are taking place)

    3. I have a live flights section on the site which just shows up as multiple '0's

    This problem only happens with xacars as everyone else use smartCARS 

    here is a screenshot to try and help explain.

     

    Screenshot_3.png

  2. 21 hours ago, web541 said:

    Try using this

    
    <?php
    $dep_schedules = SchedulesData::findSchedules(array('depicao' => $hubs->icao));
    foreach($dep_schedules as $sched) {
    	echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao;
    	echo '<br />';
    }
    
    $arr_schedules = SchedulesData::findSchedules(array('arricao' => $hubs->icao));
    foreach($arr_schedules as $sched) {
    	echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao;
    	echo '<br />';
    }
    ?>

    You can then format it how you would like in your template.

    Thank you for this,

    I have just got to find where to edit the table now :)

  3. 2 hours ago, ProAvia said:

    Post what line 2031 says. What format is the avatar you are uploading (file extension)?

    Here is line 2031

    $rankimg = imagecreatefromstring($rankimg);

     

  4. Morning all,

    I have had this problem for some time now, and just wondered if anyone else has had the same problem and knows how to fix it.

    When accepting PIREPS and editing profiles after the acceptance/upload of a avatar i get this error.

    Warning: imagecreatefromstring(): Data is not in a recognized format in /home/britann1/public_html/crew/core/common/PilotData.class.php on line 2031

    If anyone can point me in the right direction of a fix I would really appreciate it.

    Thanks

    Scott

  5. Hi all I am trying to show the below code on the profile_main.php but can't get any of the data to show.

    Here is the code, I have taken this from pirep_viewreport.php

    
                                <b>Departure Airport</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $pirep->depname?> (<?php echo $pirep->depicao; ?>)</p>
                            </li>
                            <li class="list-group-item">
                                <b>Arrival Airport</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $pirep->arrname?> (<?php echo $pirep->arricao; ?>)</p>
                            </li>
                            <li class="list-group-item">
                                <b>Aircraft</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $pirep->aircraft . " ($pirep->registration)"?></p>
                            </li>
                            <li class="list-group-item">
                                <b>Flight Time</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $pirep->flighttime; ?></p>
                            </li>
                            <li class="list-group-item">
                                <b>Date Submitted</b> <p class="pull-right" style="color: #3C8DBC"><?php echo date(DATE_FORMAT, $pirep->submitdate);?></p>
                            </li>
                            <?php
                                if($pirep->route != '')
                                {
                                    echo '<li class="list-group-item"><b>Route</b> <p class="pull-right" style="color: #3C8DBC">'.$pirep->route.'</p></li>';
                                }
                            ?>
                            <li class="list-group-item"><b>Status</b>
                                <?php
                                    if($pirep->accepted == PIREP_ACCEPTED)
                                        echo '<div class="label label-success pull-right">Accepted</div>';
                                    elseif($pirep->accepted == PIREP_REJECTED)
                                        echo '<div class="label label-danger pull-right">Rejected</div>';
                                    elseif($pirep->accepted == PIREP_PENDING)
                                        echo '<div class="label label-info pull-right">Approval Pending</div>';
                                    elseif($pirep->accepted == PIREP_INPROGRESS)
                                        echo '<div class="label label-warning pull-right">Flight in Progress</div>';
                                ?>
                            

    Here is what I see when I add this code to profile_main.php

    Screenshot_4.png

  6. Hi all,

    I am sure this has been asked and answered more than once but I am struggling to find the correct way to display if a Pilot is flying on Vatsim.

    I would like to display it on the live flights board.

    Any help would be great

    Thanks in advance

    Scott

  7. David,

    not sure if you have had this report from anyone else but I am getting an error when I accept a PIREP here is the error.

    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Data is not in a recognized format in /home/angelair/public_html/core/common/PilotData.class.php on line 1016
    

    Also same error when trying to upload avatar picture

    And the same error when you reset the signatures from within the admin/maintenance panel

    seems like a consistent error but again not sure how to fix.

    Scott

  8. Thanks for the help David,

    two of the problems have been solved now I am still having trouble with the pilots public profile has anyone else had this problem?

    I have the option of setting the php version I am running so I have set it to run on 5.3 which solved the other problem.

    The only thing I can think of doing is re-install of phpvms to fix the issue but I really dont want to have to do that if I can help it.

    Scott

  9. Hi all,

    Not sure if anyone else has had this problem but I am getting this error above the landing stats

    Deprecated: Non-static method TouchdownStatsData::get_stats_by_cur_month() should not be called statically, assuming $this from incompatible context in /home/angelair/public_html/test/core/modules/TouchdownStats/TouchdownStats.php on line 36
    

    I have tried to add this to the Touchdownstats.php

    public static function top_landing_this_month () {
    

    but that just breaks the frontpage.

    any ideas for a workaround?

    Thanks in advance

    Scott

  10. Hi all I am running phpvms 5.5.2 and php version 5.6 and I am getting all sorts of errors on my site here are a few examples......

    when you click on a pilots name it should show their Public profile instead I get this.

    Fatal error: Call to undefined method ChartsData::build_pireptable() in /home/angelair/public_html/core/modules/Profile/Profile.php on line 83
    

    Another problem, I have got Simpilots pilot reward system installed and when you click on the reward centre link this is what the return is.

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

    has anyone else had any problems with VA Central Rank a few days ago it started to display this instead of the rank...

    Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): ^ in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): ^ in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    Warning: simplexml_load_string(): ^ in /home/angelair/public_html/lib/skins/CCV1/frontpage_main.php on line 198
    

    any help with these would be great

    Thanks in advance

    Scott

  11. Hi all,

    I am getting these errors when installing

    Deprecated: Non-static method FleetData::getAircraftTotals() should not be called statically, assuming $this from incompatible context in /home/angelair/public_html/core/modules/Fleet/Fleet.php on line 36
    Deprecated: Non-static method FleetData::get5MostRecentFlights() should not be called statically, assuming $this from incompatible context in /home/angelair/public_html/core/modules/Fleet/Fleet.php on line 37
    Deprecated: Non-static method FleetData::getAllScheduledFlights() should not be called statically, assuming $this from incompatible context in /home/angelair/public_html/core/modules/Fleet/Fleet.php on line 38
    

    Any help would be great thanks

    and I have tried the above suggestion and it does not work

  12. I don't think it will work in Dreamweaver at all..you need a PHP/MySQL server for everything to work. Try it on your live site, and I believe you are missing the opening and closing PHP tags.

    Just a pointer, a kind one, I always try and let you know that answers to most of the things you and others ask are available in the documentation (be it phpVMS, SMF, Dreamweaver) provided. So, instead of waiting for others to reply, try and see if you can fix it yourself in the meantime, and show a little bit of desire to solve things yourself. That way you give motivation for others to help you. Just as an example, if you tried the code on a live server, you'd see if it works. Seeing your previous posts it doesn't seem like you tried. If you did and it displayed the code in plain text, a quick Google search would most probably give a solution or atleast a hint on where to look at. Take this as friendly advice.

    Hi Sava,

    I really am grateful for the help you have provided.

    I certainly have tried the code before asking for help on both dreamweaver and on my live site I have read the documentation on the SMF forum and I do try to resolve any problems I might have myself before asking for help. My biggest problem I have is that I am not the greatest with code which is why I have to ask for help.

    I am sorry if you think that I have not even tried to resolve the issue myself but I can assure you that is not the case.

    In future I will think twice before asking for help in these Forums

    Scott

  13. The error is fixed then. Nothing being displayed leads me to believe that you are calling the function the wrong way. I've checked out the docs, seems that is the case. You are missing one argument. Try this:

    include('./forum/SSI.php');
    $topics = ssi_recentTopics($num_recent = 5, $exclude_boards = null, $include_boards = null, $output_method = 'array');
    foreach ($topics as $topic) {
    echo $topic['link'];
    }
    

    Thank you Sava do I need to add any php code to get it to work?

  14. include('./Forum/SSI.php'); 

    Relative path means relative to the location of the file where you are including SSI.php

    This would work if your forum folder is in the root of your phpVMS installation. :)

    Have tried that Sava (thanks for the help by the way) but it does not show anything no errors no breaks in the page and no posts you can see here www.angelairva.co.uk look for Latest Forum Posts on frontpage This is the total code I am using....

    <?php
    include('./Forum/SSI.php');
    $topics = ssi_recentTopics(5,null,'array');
    ?>
    

×
×
  • Create New...