Jump to content

mark1million

Moderators
  • Posts

    2288
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mark1million

  1. Ok i have figured it out for anyone wishing to comply with google here is the fix.

    open up your /core/templates/core_htmlhead.tpl or ,php depending if you have converted to php files, the line you are looking for is,

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

    You need to replace that with

    <script async defer src="https://maps.googleapis.com/maps/api/js?key=PLACE YOURKEY IN HERE&callback=initMap"></script>
    

    Replace PLACE YOURKEY IN HERE with your generated key

    To generate your API key from Google log in to your Google account and go to https://developers.g...get-api-key#key

    Remember this modification will get overwritten on any update as its in the core_htmlhead.tpl

  2. Hey guys this may seem odd but in the settings page of admin (/admin/index.php/settings) there should be a place to input your google maps api key, on the dev version my field is missing, can i add this in to the local congig directly or where does it go.

    By the way google maps work fine never had an issue but there is an error in the console of chrome stating about the api

    Cheers.

    post-75-0-71428700-1462023630_thumb.png

  3. Harry if i follow you you can use the logged in feature ie display different content for users logged in or not.

    The function is,

    <?php
    if(Auth::LoggedIn() == false)
    { ?>
    <p align="center">Your content for visitors</p>
    
    <?php
    }
    else
    {
    $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
    ?>
    //stuff goes here to display for logged in users
    <?php
    } /* End the else */
    ?>
    

    Thats if im following you right.

  4. Here is what im trying to achieve, any help would be appreciated as its been a while since i have dived deep in to the code pf vms.

    When a pilot is deleted and their is data in the system ie from a screen shot or past event it displays the pilot as 0000, now is there a way to globally set that to echo something else out via the config file?

    Cheers.

  5. Ok Off the top of my head without looking at the code there is a function in the acars script that if the charter function is used the acars will generate a random flight number with a alpha character at the end so there is no way the system will confuse it as a scheduled flight.

    For example TOM123A would be a schedules flight TOM123AV would be a charter flight, the system accepts this no problem then i have some manual sql queries to handle the points scoring system which fall through the net because its a charter flight. But basically if you send it the system should accept it.

    Its been a year or so so i will have to dig about in the code to find out exactly what happens.

×
×
  • Create New...