test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • luis_aristizabal Friend
    #172066

    how can i use this plugin for different domains??, the problem comes up because it needs a unique key for each domain.
    Thank you…

    Blaine Friend
    #431049

    Hi!
    You may try a to hack config.class.php:

    //$this->googleMapsApiKey = $this->getValueFromDB("google", "googleMapsApiKey");
    if ($_SERVER['HTTP_HOST']=='www.domain1.info') {
    $this->googleMapsApiKey = "ABQIAAAAghEL0NcBvDhWKMj4E_lvZRSiS3wFlvUDvSmOtGhoSvKuGSvSnhQ4j0bw5IdiVcBLGgdk0g_dyuN5Gg";
    } elseif ($_SERVER['HTTP_HOST']=='www.domain2.info') {
    $this->googleMapsApiKey = "ABQIAAAAghEL0NcBvDhWKMj4E_lvZRRJVwckG9VcWmyzwH7h3afePhjBxRQ_6afy5KW_-lLivg4yGt08qGYuAw";
    } elseif ($_SERVER['HTTP_HOST']=='www.domain3.info') {
    $this->googleMapsApiKey = "ABQIAAAAghEL0NcBvDhWKMj4E_lvZRSC5iyYp-TnoUBU9-1uZtzkG_LpdhR_ryvqEL-NQE7mgPs2C0lPw8SkjA";
    } elseif ($_SERVER['HTTP_HOST']=='www.domain4.info') {
    $this->googleMapsApiKey = "ABQIAAAAghEL0NcBvDhWKMj4E_lvZRSxpPcLM7BgsIf1AX1SRjh9LgLYtRTlHwTQ1L5GaPqOznfhb3ykqnCaOg";
    }

    DO NOT use my exact code, insert your own. This is for multiple domains on one site.
    Let me know.
    Thanks!

    luis_aristizabal Friend
    #432172

    where is this “config.class.php”? Should i look into plugins directories?. I can’t find it. thank you

    Blaine Friend
    #432409

    I have another link that may be better to help you on this. let me know when we ca mark this one solved!
    thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Blaine 12 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum