Jump to content

TennShadow

Members
  • Posts

    724
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by TennShadow

  1. Hi Keith,

    Care to explain a bit more about what you mean by "one aircraft per schedule rotation".

    After reading that again I believe I just misworded that statement. I just meant something like aircraft "1" will start at airport A -> airport B -> airport A. Just thinking about doing that is daunting. That is why I was reaching out to others that may have done something like this. A scheduling system is something I could definitely pay for if someone made a module for it. :-)

  2. My current VA policy is very lax. I only have one aircraft registration per type for all schedules of that type. However, as I am recreating my VA, I'm leaning more towards a realistic schedule approach. One aircraft per schedule rotation, etc. However, I've never done anything like this before.

    My question is to the VA owners that have done things like this. Could you provide me with any tips on how to start this? I'm sure I'm making this harder than it probably is and am over thinking this. Anyways, any tips or suggestions would be greatly appreciated.

  3. I recently switched to PHPVMS 5.5.2 and downloaded this via the plugin manager so I'm running the correct version. I've getting the below error on my frontpage_main.php page.

    Fatal error: Using $this when not in object context in /home/xxx/public_html/core/modules/PopUpNews/PopUpNews.php on line 33

    I've tried a couple suggestions in this thread but no go. Any thoughts?

  4. I just noticed that in your previous post that you said you modified the module

    Just to clarify, in core/modules/Screenshots/Screenshots.php

    You have these

    public function {
    

    And in core/common/ScreenshotsData.class.php you have these

    public static function {
    

    If that doesn't work, then you might have to wait for Dave, you can try to hide the error in the meantime but that is not ideal

    That's correct. The errors are gone now but my above posted code no longer works in the 5.5.2 version. It worked fine on the previous version but I'm stumped as to way I'm now getting no errors but the screenshots are not showing up.

  5. Thanks for the help. I just needed a fresh set of eyes.

    That fixed the ExtraData class issue.

    However, whenever I change the public function to public static function in the actual module it breaks.

    Here is the error I'm still getting in the logs.

    PHP Strict Standards: Non-static method Screenshots::get_pilots_newscreenshot() should not be called statically, assuming $this from incompatible context in /home/xxx/public_html/lib/skins/xxx/pilot_public_profile.php on line 162

    Maybe it will help to tell you want I'm trying to do. I'm trying to show the last 4 screen shots of a pilot on the public profile. I had it working fine on the public version of PHPMVS but it's not working on the 5.5.2 version. It shows that I don't have any screenshots. Here is my ugly code for this on the public profile.

    <?php
    echo '<table class="table">';
    echo '<thead>';
    echo '<tr>';
    echo '<th colspan="7">'.$userinfo->firstname . ' ' . $userinfo->lastname.'\'s Last 4 Submitted Screenshots</th>';
    echo '</tr>';
    echo '</thead>';
    $allscreenshots = ExtraData::get_pilots_newscreenshot($userinfo->pilotid, 4);
    if(is_array($allscreenshots))
    {
    echo '<tbody>';
    $tiles=0;
    $rowclass = 0;
    foreach($allscreenshots as $screen)
    {
    if ($tiles == '0')
    {
    echo '<tr class="row'.$rowclass.'">';
    }
    echo '<td align="center" valign="top">
     <a href="'.SITE_URL.'/index.php/Screenshots/large_screenshot?id='.$screen->id.'">
     <img src="'.SITE_URL.'/pics/'.$screen->file_name.'" border="0" width="200px" height="150px" />
     </a><br />
     Date: '.date('m/d/Y', ($screen->date)).'
     </td>';
    $tiles++;
    if ($tiles == '4')
    {
    echo '</tr>';
    $tiles=0;
    }
    $rowclass = 1 - $rowclass;
    }
    echo '</tbody>';
    }
    else
    {
    echo '<tr><td align="center">No Screenshots Yet!!</td></tr>';
    }
    echo '</table>';
    ?>
    

    Here's the call from ExtraData

    public static function get_pilots_newscreenshot($pilot_id, $count) {
     $query = "SELECT id, file_name, file_description, pilot_id, UNIX_TIMESTAMP(date_uploaded) AS date FROM screenshots WHERE pilot_id='$pilot_id' AND file_approved='1' ORDER BY date_uploaded DESC LIMIT $count;";
     return DB::get_results($query);
    }
    

  6. Hi guys,

    I'm slowly trying to convert my site to PHPVMS v 5.5.2 using PHP 5.5. I installed this module via the Plugin Manger which I just assumed all these would have been fixed in this version. However, I'm still getting the below errors. I've went into the module and change public function to public static function but all that does is completely break my template. Nothing works at that point. Any suggestions?

    PHP Strict Standards: Non-static method Screenshots::show_random_screenshot() should not be called statically, assuming $this from incompatible context in /home/xxxx/public_html/lib/skins/xxx/frontpage_main.php on line 440

    PHP Strict Standards: Non-static method Screenshots::get_pilots_newscreenshot() should not be called statically, assuming $this from incompatible context in /home/xxxx/public_html/lib/skins/xxx/pilot_public_profile.php on line 162

    PHP Strict Standards: Non-static method ExtraData::get_pilots_newscreenshot() should not be called statically, assuming $this from incompatible context in /home/xxxx/public_html/lib/skins/xxx/pilot_public_profile.php on line 177

  7. Did you buy this and if so does it work really well? I cant afford it but I work with another va that is interested. I hate to recommend it blindly.

    Yes, I bought this. I found some bugs and worked with Servetas to get them fixed. I also suggested a few changes to the permission system of the forum that will make this even more awesome. Hopefully those are doable. But either way this is a great system and has most of the features I need. The best part for me is no more two systems to maintain.

    Thanks,

    Keith

    • Like 2
  8. Make sure you haven't installed kACARS in the Program Files directory. If you have , uninstall it and reinstall in C:\kACARS or something similar. After you have installed it, go into that folder and look for kACARS.exe. Right click and select properties. Go to the Compatibility Tab and make sure you select Run As Administrator.

  9. It is funny, the hate mails that I got about it I returned asking what their solution would be and never heard anything but from one.

    I don't doubt it. There are a lot of internet trolls that hide behind their emails. Most people will happily accept constructive criticism with solid feedback. However, like you said you only got one reply.

  10. With all the complaints I received I have hid it in the background currently, Until I can find something that makes everyone happy with the system it will remain that way. All data is still being recorded and live flights are showing on the map.

    You will not be able to please everyone I'm afraid. I thought the system you created was more fair than what the first version of VACentral had. Obviously it's your call but I'd add it back. :-)

    • Like 1
  11. Ah I see ! Thanks !

    Can I also ask if there is a possibility to have the ID of the Pilot that will be in the acceptance letter and use to connect to the pilot center ?

    And if so, where can I find the code line ?

    Cheers

    Use this:

    <?php echo PilotData::getPilotCode($pilot->code, $pilot->pilotid); ?>
    

    That will display the Pilot ID. Just add that to email_registrationaccepted.tpl or php

×
×
  • Create New...