Disable all calls to Google

This topic contains 10 replies, has 3 voices, and was last updated by  Paolo 9 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #21016

    krischin
    Free User
    Post count: 18

    Hello,

    I live in China, where google is blocked. So, my site doesn’t work here. I need to turn off all calls to google, including google maps. How can I do that?

    Thanks

    #21023

    Guust
    Moderator
    Post count: 29970

    Without any connection to Google, your site can never work, as the maps cannot be shown. I’ll get the developers to have a look at your question too.

    #21033

    krischin
    Free User
    Post count: 18

    Thanks Guust. Specifically, line 324 in geodirectory_template-tags.php

    <script type=”text/javascript” src=”http://gmaps-samples-v3.googlecode.com/svn/trunk/geolocate/geometa.js”></script>

    This line is causing all the hanging of my site. When I comment it out it breaks the details page. Any help would be great.

    #21087

    Paolo
    Site Admin
    Post count: 31206

    Hi Krischin,

    GeoDirectory without googlemaps isn’t really usable at the moment.

    Remove that call wouldn’t be so hard, but making all the rest work without it, would require rewriting several part of the plugin.

    It’s not only the detail page that will not work properly.

    Also search and add listing form will result broken.

    How do you want to use the plugin, without the maps?

    What is an laternative to googlemaps in China? Do they have API?

    Let us know,

    #21357

    krischin
    Free User
    Post count: 18

    Hi Paolo,

    I’ve finished my site and it works fine through a VPN. Because Google is blocked, I’ve turned off all calls for google fonts etc. Now, the problem is google maps – the site just hangs because it is blocked when the VPN is turned off. I want to use the directory portion, just not show google maps. I will send you an example site where this is working (non-GD), and my GD site privately below. For now, if I could turn off the google maps and still have the listings show, that would be great. Then, maybe in the future you could add an option for the user to turn off google maps if they don’t have a VPN. This would be the ideal situation. I could provide a China VPN for your development if you need it.

    Thanks,

    #21358

    krischin
    Free User
    Post count: 18
    This reply has been marked as private.
    #21423

    Paolo
    Site Admin
    Post count: 31206

    Quick question, would you want to disable google maps calls only for vistiors with a Chinese IP or disable them completely for all your visitors?

    Let us know,

    Thx

    #21474

    krischin
    Free User
    Post count: 18

    Hi Paolo,

    Thank you for staying with this. In the ideal situation, if an outside China VPN is enabled, they will see Googlemaps. If an outside China VPN is not enabled they will see nothing but everything else is would be OK. In the case of the site I sent you previously, the map shows “Javascript is required to view this map.” when there is no Googlemaps access – but everything else works fine. I can send you a China VPN by email for testing. Please let me know.

    Kris

    #21565

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    too many parts of both the core plugin and the addons would have to be rewritten to achieve something similar.

    In the future we may be interested in extending other map providers (possibly one that includes china).

    For what you are considering, it would have to be considering a customization (a major one) and not something we can provide support for.

    Thanks

    #21598

    krischin
    Free User
    Post count: 18

    Hi Paolo,

    Ok. I can understand that. Can you at least tell me how to disable googlemaps completely for all visitors? Then at least I could use the directory.

    Thanks.

    #21735

    Paolo
    Site Admin
    Post count: 31206

    Hi again,

    it is really not possible to disable all google maps api calls without modifying a bunch of files.

    You would have to change:

    1) The add listing page (to remove the map, the latitude and longitude fileds making sure to remove all call to the API to autocomplete informations)

    2) Listing Details Page (to remove map from the detail tabs)

    3) Search (to avoid using lat and long to establish proxiity)

    This is to be considered a customization and for this reason, beyond the scope of this forum.

    In addition, you may find yourself in trouble everytime we release an update, because I’m not 100% sure this can be done leaving core files untouched.

    Thx

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket