Jump to content

TennShadow

Members
  • Posts

    724
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by TennShadow

  1. Is it possible for two VA's to share the same pilot table but nothing else?  

    For example,  I have VA "A" with 20 pilots and I want to create a new VA "B".  I want the pilots from VA "A" to be able to login to VA "B" using the same pilotID and password they have in VA "A"..  Other then the same pilot ID and password I want them the be completely separate.    I'm basically wanting signal sign on between the two VA's.

     

    Thanks!

  2. I'm wanting to add the Pilot Hub of the Pilot to the email that staff get when a pilot submits a PIREP.  I have located the email code in PIREPData.class.php but I'm not sure how to get the hub info to show up.  I've tried several different things but my lack of PHP and database knowledge is definitely showing here.  :-)  Any help would be appreciated.

     

    # Send an email to the admin that a PIREP was submitted
                $sub = "A PIREP has been submitted by - {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})";
                $message = "A PIREP has been submitted by {$pilotcode} "
                    ."({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n"
                    ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n"
                    ."Aircraft: {$pirepdata['aircraft']}\n" . "Flight Time: {$pirepdata['flighttime']}\n"
                    ."Landing Rate: {$pirepdata['landingrate']}\n"."Filed using: {$pirepdata['source']}\n\n" 
                    ."Comment: {$comment}\n\n";

     

  3. I haven't tried this myself but it "should" work.  Make a copy of your DB just in case before you start.

    1. Open up phpvms_pilots and record your account ID# under the pilotid column

    2. Open up phpvms_groupmembers

    3. Create a new row by copying another row.

    id = Use the next available # ( you should be able to leave this blank)
    groupid = 1
    pilotid = your pilot id from step 1

     

    Good luck!
     

  4. We all can agree that HTTP is not secure and anytime you login your username and password is sent in clear text.  There have been several people try to add SSL to PHPVMS but have had alots of issues.  I'm not sure what can be done to make SSL easier to use in the next gen version of PHPVMS but I an for it.  I would go SSL if I could.

  5. I'd like the ability to be able to delete things instead of just disabling them.

    Delete Pilots: I know you can delete pilots already but it also removes all their PIREPs.  I'd like the ability to delete the pilot but an option to keep all their data.

    Delete Aircraft:  It would be nice to be able to delete aircraft that are no longer in service.  I know that PIREPs are tied to the aircraft but if there is a way to change the PIREPs to use a "dummy" entry so we can remove the aircraft.  My hanger has over 100 disabled aircraft and I'd love to delete and keep it clean.

  6. This mean that kACARS has to be running as an administrator in order to function correctly.

    I suggest a couple things when using kACARS.

    1.  DO NOT install in the Program Files directory.  I'd install somewhere like C:\kACARS.

    2.  Go to the folder where you installed kACARS and then right-click on the kACARS.exe file.  Select Properties, then the Compatibility tab. Then select the check box in Run this program as an administrator.

     

    • Like 1
  7. On 12/17/2016 at 4:57 AM, mitchmewett said:

    Hello

    I have started a VA alliance group with @HearGrandCookie, however we need to use specific plugins that is only supported by the .php version of phpVMS.

    I have had the tpl one for some time now, and I am going to switch to the DavidJClarke phpVMS .php version, however is it possible to not lose my progress and convert to php?

    THanks

    It is possible but it will take some work.  I just did this myself and it took a bit of time.    I would recommend creating a test / dev site and doing all your changes there because you will run into errors along the way.  There are a lot of VA owners that have moved over so just about every error you'll get has been discussed here on the forums.

    Good luck!

  8. Here is what I have .


    My custom profile fields.

    IVAO ID

    VATSIM ID

    For VATSIM Column

    <?php
    
    $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
    
    if($fieldvalue != '')
    
    {
    
       echo '<a href="http://www.vataware.com/pilot/'.$fieldvalue.'" target="_blank"><img src="'.SITE_URL.'/xxxx/vatsim.png" alt="Vatsim ID" border="0" /></a>';
    
    }
    
     ?>

     

    For IVAO

    <?php 
    $feildvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID');
    
    if($feildvalue != '')
    {
    	echo '<img src="http://status.ivao.aero/R/'.$feildvalue.'.png" width="100" height="20">';
        }
        ?>

     

  9. Awesome - thank you for this.

    I got a couple errors with this. First, it didn't like my complex password until I put the password in quotes. Then that error went away but then got a different one. No backup file is created or emailed. I did get the email that the file was suppose to be attached to but there was nothing attached due to the below errors.

    This was in the error logs.

    [13-Dec-2016 00:25:01 UTC] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /home/xxxxxx/public_html/core/codon.config.php on line 40
    [13-Dec-2016 00:25:01 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in /home/xxxxxx/public_html/core/codon.config.php on line 40
    

    This is from the email it sent me.

    <br />
    <b>Notice</b>: Undefined index: DOCUMENT_ROOT in <b>/home/xxxxxx/public_html/admin/backup.php</b> on line <b>35</b><br />
    <br />
    <b>Notice</b>: Use of undefined constant localhost - assumed 'localhost' in <b>/home/xxxxxx/public_html/admin/backup.php</b> on line <b>37</b><br />
    <br />
    <b>Notice</b>: Use of undefined constant MYDBNAME_REMOVED - assumed 'MYDBNAME_REMOVED' in <b>/home/xxxxxx/public_html/admin/backup.php</b> on line <b>38</b><br />
    <br />
    <b>Notice</b>: Use of undefined constant MYDBNAME_REMOVED - assumed 'MYDBNAME_REMOVED' in <b>/home/xxxxxx/public_html/admin/backup.php</b> on line <b>40</b><br />
    sh: -c: line 0: syntax error near unexpected token `)'
    sh: -c: line 0: `mysqldump --hex-blob --routines --skip-lock-tables --log-error=mysqldump_error.log -h localhost -u MYDBNAME_REMOVED -pPASSWORD MYDBNAME_REMOVED > 20161213_MYDBNAME.sql'
    mysqldump for localhost : MYDBNAME_REMOVED failed with a return code of 1
    Error message was:
    tail: cannot open `mysqldump_error.log' for reading: No such file or directory
    -
    Backup Completed
    

  10. Hey guy,

    I'm looking for a backup script I can run as a cron job that will backup, compress, and the email me my databases nightly. I had a script several years ago that did just that but I don't have it anymore and my googling magic is not strong on this one. My host backups my site daily but I want the added protection of my databases being backed up off site from the host. Any help would be great.

    Thanks!

  11. What did you change if you don't mind me asking. I have changed to static back to not static and everything in between and still no go. I am on php 5.6.25 or something like that using phpVMS 5.5.x

    It actually never worked. I thought it did but it really didn't after I tested it more. :-/ I'm currently using the default news code now and I hate it because of how much space it takes on my front page. I checked my normal list of payware devs but none of them offered a nice news module so for now I'll just keep using the default.

    • Like 1
  12. I have mine in the same place as yours and I'm not seeing any issues using firebug. At this point, I'm not sure where the issues lie. I'll dig around more a bit later. I'm currently working on launching a virtual trucking company to go along with my VA so that has my priority at the moment. :-)

    Thanks for the assistance so far on this. It has been very helpful!

  13. Thank for this suggestion. I just purchased it but it's already over my coding skills. I've tried a few times to get it to work but I don't even think it's calling the script. Oh well, I'll keep messing with it but it's only $3.00 so no big loss. :-)

×
×
  • Create New...