Jump to content

HCStrike

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by HCStrike

  1. 5 minutes ago, web541 said:

    Yeah that's correct, just confirm you've got flights going at the moment? And check the logs to see if there is any data being populated. Also, in your hosting, go to phpmyadmin and check the phpvms_acarsdata table and see if there are any rows populated.

    I don't have flights running at the moment but yesterday I did and the flight didn't show up. There is nothing in the logs at the moment but I set the logging to 2 so I changed it to 1 and I'll try a flight

  2. 1 minute ago, web541 said:

    For the "google is not defined" error, try replacing the contents of your core_htmlhead.php file with this

    https://raw.githubusercontent.com/DavidJClark/phpvms_5.5.x/master/core/templates/core_htmlhead.php

    And then replace this line

    
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

    With this one

    
    <script async defer src="http://maps.googleapis.com/maps/api/js?key=YOURKEYHERE" type="text/javascript"></script>

    And replace YOURKEYHERE with your Google Maps API Key (from their dev console).

    Remove any google maps <script> from your layout.php file (keep it in core_htmlhead).

    Just remember to keep the order of the lines correct and don't move any around otherwise it will screw up the loading sequence.

    This is what is in my core_htmlhead.php file

    <script async defer src="http://maps.googleapis.com/maps/api/js?key=MY_KEY" type="text/javascript"></script>

     

  3. 5 minutes ago, web541 said:

    If it isn't showing up (or showing as a white screen), can you please check your browser console (right click, inspect element => console) and post any errors. If the map is loading but there are no flights showing, then enable and check your logging for any DB errors.

    To be honest, they are both an issue, my map only loads after a refresh of my page and No flights show in the map, I'll try the error logging but you can reference this post for the map not loading https://stackoverflow.com/questions/45627716/google-maps-not-appearing-until-refresh

  4. 15 hours ago, Parkho said:

    You can disable "bids on bid" in "local.config.php" file. Look for the following:

    
    Config::Set('DISABLE_BIDS_ON_BID', false);

    Just change "false" to "true". Now your pilots will be able to bid on a bidded schedule.

    Wouldnt I keep it at false as if I changed it to true people wouldnt be able to bid on bids?

  5. I cannot find the simbrief section in my schedule_briefing.php on phpVMS 5.5 

    I added this code, is it all correct?

    <form id="sbapiform">
    
    <table>
    <tr>
     <?php $planedata=(OperationsData::getAircraftByReg($schedule->registration)) ;?>
     <td><input type="hidden" name="type" size="5" type="text" placeholder="ZZZZ" value="<?php echo $planedata->icao ;?>"></td>
    		 </td>
    <tr>
    <tr>
    
     <td><input type="hidden" name="orig" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="<?php echo $schedule->depicao ; ?>"></td>
    <tr>
    <tr>
    
     <td><input type="hidden" name="dest" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="<?php echo $schedule->arricao ; ?>"></td>
    <tr>
    <tr>
    
     <td><input type="hidden" name="route" placeholder="Enter your route here"></td>
    </tr>
    <tr>
     <td colspan=2></td>
    </tr>
    <tr>
    
     <td><input type="hidden" name="units" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="KGS"></td>
    	 </tr>
    <tr>
    
    </table>
    
    
    <br><br>
    
    <input type="hidden" name="airline" value="<?php echo $schedule->code?>">
    <br>
    
    <input type="hidden" name="fltnum" value="<?php echo $schedule->flightnum?>">
    <?php $today = date("dMy");?>
    <input type="hidden" name="date" value="<?php echo $today?>">
    <?php $deptimes = explode(":", $schedule->deptime); ?>
    <input type="hidden" name="deph" value="<?php echo $deptimes[0]?>">
    <input type="hidden" name="depm" value="<?php echo $deptimes[1]?>">
    <?php $arrtimes = explode(":", $schedule->arrtime); ?>
    <input type="hidden" name="steh" value="<?php echo $arrtimes[0]?>">
    <input type="hidden" name="stem" value="<?php echo $arrtimes[1]?>">
    <input type="hidden" name="reg" value="<?php echo $schedule->registration?>">
    
    <input type="hidden" name="navlog" value="1">
    <input type="hidden" name="selcal" value="GR-FS">
    <input type="hidden" name="planformat" value="lido">
    
    <input type="button" onclick="simbriefsubmit('http://fly.multicrew.co.uk/index.php/SimBrief');" style="font-size:30px" value="Generate Simbrief">
    
    </form>

     

  6. Hi,

    I am trying to setup my noreply email to send the registration confirmation emails etc. out to people when they register but they dont seem to be sending. My host is zoho and my settings are as follows

    # Email Settings
    Config::Set('EMAIL_FROM_NAME', 'MultiCrew No-Reply');
    Config::Set('EMAIL_FROM_ADDRESS', 'noreply@multicrew.co.uk');
    
    Config::Set('EMAIL_USE_SMTP', true);
    # Add multiple SMTP servers by separating them with ;
    Config::Set('EMAIL_SMTP_SERVERS', 'smtp.zoho.com');
    Config::Set('EMAIL_SMTP_PORT', '465');
    Config::Set('EMAIL_SMTP_USE_AUTH', true);
    Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps
    Config::Set('EMAIL_SMTP_USER', 'noreply@multicrew');
    Config::Set('EMAIL_SMTP_PASS', '*********');

    I tried testing by sending a mass mail but I did not receive any emails. What could be wrong in my configuration?

×
×
  • Create New...