Home Fórum | Support forum
Üdvözlet, Vendég

API key problem
(1 megtekintés) (1) vendég
SimpleCalendar Map module forum.
If you find bugs please open a new topic (You need to login).
LeOldal: 1
TÉMAKÖR: API key problem
#170
API key problem 1 év, 4 hónapja  
This is cool, a site in Hungarian! I'm glad you have an English section, too.

I am facing a Google Map API key error with the SC Map module. I already have a new key but that did not help. Can you help me? And which information do you need to help me? I can give you some information right now:

One year ago I made a web site with SimpleCalendar and the SC Map module on it. The calendar is concentrated on one event which takes place every year on many different locations. The locations are grouped into categories. I made some template overrides to adapt the calendar and the map to this specific situation.

At present, the next issue of this event is coming up. I thought it would be good to install the latest versions of SC and the SC Map module. Unfortunately I ran into several problems because of my own template overrides. Most of them are solved now, with the help of Fabrizio. It's just the API key problem right now.

Cheers, Frits
Vendégként nem küldhető be hozzászólás.
 
#171
Válasz: API key problem 1 év, 4 hónapja  
Hello oorzaak!

1.,
Are there any error message?

2.,
Do you use template override for the map module? So do you have this directory?
\templates\YOUR_TEMPLATE\html\mod_simplecalendarmap
If yes, what files are there in?

3.,
Please try this:
Change this line ~14. (in \modules\mod_simplecalendarmap\tmpl\default.php or \templates\YOUR_TEMPLATE\html\mod_simplecalendarmap\default.php if exist)

Kód:

$GMAPAPI = $config->gmap_api_key;

change to
Kód:

$GMAPAPI = 'YOUR_API_KEY';

Where YOUR_API_KEY is what you get from google.

I am waiting for you feedback.
Regards
Manó
Utolsó szerkesztés: 2010-12-29 21:30 : Manó.
Vendégként nem küldhető be hozzászólás.
If you find my module useful please make a small donation or/and make review on the JED. It is motivate me!
 
#172
Re:Válasz: API key problem 1 év, 4 hónapja  
Hi Manó,

1.,
Are there any error message?

Yes, it says that "a different Google Maps API key is necessary for this website". An then it states the Google url where you can get a new API key. I got a new key but it makes no difference.
Google Maps can also be called from the SC main component, when viewing details of an event. This works properly, it is just the module that throws the error.

2.,
Do you use template override for the map module? So do you have this directory?
\templates\YOUR_TEMPLATE\html\mod_simplecalendarmap
If yes, what files are there in?

Well in fact I do not have this directory. I have been messing around with two files that were in de main directory of the module: helper.php and mod_simplecalendarmap.php
I only realize that now you asked for it. I made these changes more than one year ago and I forgot what I did exactly. I'll check these files agains the new versions.

3.,
Please try this:
Change this line ~14. (in \modules\mod_simplecalendarmap\tmpl\default.php or \templates\YOUR_TEMPLATE\html\mod_simplecalendarmap\default.php if exist)

Kód:

$GMAPAPI = $config->gmap_api_key;

change to
Kód:

$GMAPAPI = 'YOUR_API_KEY';

Where YOUR_API_KEY is what you get from google.

I tried but it doesn't help. Now I'll check the helper.php and mod_simplecalendarmap.php files for changes in the new version.

I'm sorry to bother you with this; one year ago I was quite new to Joomla and didn't realize the consequences of some of my actions.

Thanks for your help, Frits
Vendégként nem küldhető be hozzászólás.
 
#173
Válasz: Re:Válasz: API key problem 1 év, 4 hónapja  
Hi oorzaak,

Please try with the original files, or install the latest SimpleCalendar AND! the latest SC Map module without changes.

I am waiting for your feedback.

Regards
Manó
Vendégként nem küldhető be hozzászólás.
If you find my module useful please make a small donation or/and make review on the JED. It is motivate me!
 
#184
Re:Válasz: Re:Válasz: API key problem 1 év, 4 hónapja  
Hi, sorry for keeping you waiting. Re-installing without changes did the trick! Now I'll try to insert some of my modifications again, one at a time.

Thanks for your help!

Frits
Vendégként nem küldhető be hozzászólás.
 
FelOldal: 1