English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Google Maps API key
#7521
Google Maps API key 8 Years ago Karma: 0
Dear Edwin,
I am sharing an extension with many websites and the extension using google map,
I have to use Google Maps API key, so for master site i have no problem but for Slave sites i have error for AIP key,
How can i fix this problem?
rezamoghtada
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7524
Re: Google Maps API key 8 Years ago Karma: 53
The Goolde Maps API key is specific per domain.

If you want to have specific key for each website, you can sometime use the Search/Replace plugin to replace a special keyword that you will decide with the appropriate value for the slave site domain or subdomain.

So that you can have several Google Maps API keys.
See Search/Replace plugin
www.jms2win.com/en/component/docman/doc_...rch--replace-utility


You could create a rule like
Search for
[_GOOGLEMAP_KEY_]
Replaced by
XXXXXXXXX
specific for each domain
edwin2win
Moderator
Posts: 5358
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7529
Re: Google Maps API key 8 Years ago Karma: 0
Dear Edwin,
I am sharing a Joomla booking system and one of configuration of the extension is Google map API key,
I seat up google API key for my Master and my master works well but for my Slaves site i have this error:

This web site needs a different Google Maps API key. A new key can be generated at code.google.com/apis/maps/signup.html.

I got API key for my Slave site and using Search Replace plugin and use this rule:
Search for
[_GOOGLEMAP_KEY_]
Replaced by
XXXXXXXXX

but i thing i am doing wrong and it doesn't work i wrote like this:
Search for
[ABQIAAAA-0GmCKZ2wq2ZUG3ycxss3BQ3IDFZOEyWs7kq9-5beXTHyT_igBTM4lK8DGwZ_WjpcX1pm962S8_jPA]
Replaced by
ABQIAAAA-0GmCKZ2wq2ZUG3ycxss3BStySE45yU5v_0ZViKLmq4V5_UfZRRhjTBPNcsZjLdUQbIoCgyt3visYA


The first IPA key is my Master IPA and the second one is Slave IPA,
What is wrong in this rule?

Also do i have to fill File name #1 and File name #2 too?

Best Regards
Reza
rezamoghtada
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7533
Re: Google Maps API key 8 Years ago Karma: 53
Verify the result generated in your web page (see source HTML) and verify that you have the correct value replaced.

In general is is better to use a keyword instead of the master key to be replaced.
I suspect that you didn't speeled the things correctly and that the search/replace didn't find the pattern.

You can also use file for each sites to define the Search/Replace patterns.
edwin2win
Moderator
Posts: 5358
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7545
Re: Google Maps API key 8 Years ago Karma: 0
Dear Edwin,
I just wanted to let you know this format:

Search for
[_GOOGLEMAP_KEY_]
Replaced by
XXXXXXXXX

didn't work but this format:

[_GOOGLEMAP_KEY_]=XXXXXXXXX

works very well,
Anyway thanks a lot for your help.
Regards
Reza
rezamoghtada
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7549
Re: Google Maps API key 8 Years ago Karma: 53
You had effectivelly to read my text and implement the code.
If I had give you a "cryptic" statement you perhaps would not have understood the idea.

So yes you had to know how to use the Search/Replace plugin and its differents methods to perform the Search/Replace.
edwin2win
Moderator
Posts: 5358
graph
User Offline Click here to see the profile of this user
Last Edit: 2011/07/08 14:14 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla