News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Google Member Map

Started by TLM, December 18, 2005, 08:43:52 PM

Previous topic - Next topic

Motorhead

I had a feeling that was the case, think only file needs changing in the Babylon folder then is the index.template

should work then :)

cheers


WhatsUp

Quote from: Webby on January 03, 2007, 03:12:48 PM
It works for me now, everything ! And the errors in the error-log are gone also !! Great work !

One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?

Thanx !
This is set in the admin area.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

binaryspiral

Quote from: Bigguy on January 03, 2007, 03:16:40 PM
I get errors for this file, which is not in the package so I take it it's being read remotely:

maps2.69.api.js (line 290)

and I am getting errors in the errorlog. all to do with the sidebar:



Ditto. Map button works great, map in the profile shows the zoom and movement buttons - but no map.

Bigguy

I certainly hope someone can help us out on this. :)

Quote from: binaryspiral on January 03, 2007, 11:05:37 PM
Quote from: Bigguy on January 03, 2007, 03:16:40 PM
I get errors for this file, which is not in the package so I take it it's being read remotely:

maps2.69.api.js (line 290)

and I am getting errors in the errorlog. all to do with the sidebar:



Ditto. Map button works great, map in the profile shows the zoom and movement buttons - but no map.

Webby

Quote from: WhatsUp on January 03, 2007, 08:45:30 PM
Quote from: Webby on January 03, 2007, 03:12:48 PM
It works for me now, everything ! And the errors in the error-log are gone also !! Great work !

One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?

Thanx !
This is set in the admin area.

Nope, this is the zoom when you open the map as a whole, not when you see the map in your profile.

So again, where can I change this, I think somewhere in GoogleMap.template.index.php ??

WhatsUp

Quote from: Webby on January 04, 2007, 03:53:02 AM
Quote from: WhatsUp on January 03, 2007, 08:45:30 PM
Quote from: Webby on January 03, 2007, 03:12:48 PM
It works for me now, everything ! And the errors in the error-log are gone also !! Great work !

One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?

Thanx !
This is set in the admin area.

Nope, this is the zoom when you open the map as a whole, not when you see the map in your profile.

So again, where can I change this, I think somewhere in GoogleMap.template.index.php ??
The focus of the map - e.g. Netherlands, or Europe - is determined in the admin area, and the altitude (zoom) as you say, in one of the mod files.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

FoneBone

Quote from: Webby on January 04, 2007, 03:53:02 AM
Quote from: WhatsUp on January 03, 2007, 08:45:30 PM
Quote from: Webby on January 03, 2007, 03:12:48 PM
It works for me now, everything ! And the errors in the error-log are gone also !! Great work !

One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?

Thanx !
This is set in the admin area.

Nope, this is the zoom when you open the map as a whole, not when you see the map in your profile.

So again, where can I change this, I think somewhere in GoogleMap.template.index.php ??

You can change the zoom in the Theme/default/profile.template.php.
search for this:

function LoadMap() {
var map = new GMap2(document.getElementById(\"map\"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . "), 4, ". $modSettings['googleMapsType'] .");


To change the zoom, modify the '4' to something between '1-16'. 16 is very near, 1 is the whole world.

Webby

Thanx, I changed it into "9", that's close enough. Exactly what I asked for.

Thanx again !!

WhatsUp

Quote from: Webby on January 04, 2007, 05:19:22 AM
Thanx, I changed it into "9", that's close enough. Exactly what I asked for.

Thanx again !!
LOL!
One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Michael Kopka

I got the following error on installing the mod with the package manager:

10.   Execute Modification   ./Sources/ManagePermissions.php Test failed

Version RC6 and the default theme. Install it anyway?

Any ideas? Thanks.
My SMF: AutoTrac.org [nofollow]

FoneBone

It may cause this failure, because you've got any other mods installed. The save way of installing is to implement the code by hand. Sorry.  ::)

Motorhead

Just to say thanks FoneBone, fingers crossed version 6 worked a treat for me, must be frustrating trying to get something working for everybody...

I still got a style.css test failure when installing but ignored it and all is well..even managed to get it working with the Babylon Theme :) although I've yet to put a link in the index.template, but selecting Babylon theme and entering the googlemap url manually proves it works :) with no errors showing


Webby

Quote from: WhatsUp on January 04, 2007, 05:30:01 AM
Quote from: Webby on January 04, 2007, 05:19:22 AM
Thanx, I changed it into "9", that's close enough. Exactly what I asked for.

Thanx again !!
LOL!
One question : the zoom in the profile is approximately whole Europe, how can I chage that to a zoom of (for instance) the Netherlands ?

Don't know what's so funny, but with the "9" it shows me the upper half of the Netherlands, so I'm satisfied with that :)

Goad

when i go to hit the "install now" button....i get this error....

Quote
Fatal error: packageinstall() [function.require]: Failed opening required '/xxxxx/xxxx/xxxxxxx/xxx/website/Packages/temp/./add_settings.php'
(include_path='.:/usr/local/lib/php') in /xxxxx/xxxx/xxxxxxx/xxx/website/Sources/Packages.php on line 549

Bigguy

No help on this at all. ??? ???

Quote from: Bigguy on January 04, 2007, 12:17:43 AM
I certainly hope someone can help us out on this. :)

Quote from: binaryspiral on January 03, 2007, 11:05:37 PM
Quote from: Bigguy on January 03, 2007, 03:16:40 PM
I get errors for this file, which is not in the package so I take it it's being read remotely:

maps2.69.api.js (line 290)

and I am getting errors in the errorlog. all to do with the sidebar:



Ditto. Map button works great, map in the profile shows the zoom and movement buttons - but no map.

FoneBone

@Goad
you have to create a new folder called temp inside the Package folder and CHMOD it to 777

@Bigguy and binaryspiral
this error is really mysterious, because it shows the error in the api.js from google. i have no idea, how to fix this. maybe you are able to try this mod on a clean installation of the forum.

Bigguy

I did try this on a clean install and I still get the same.

Goad

Quote from: FoneBone on January 04, 2007, 12:40:02 PM
@Goad
you have to create a new folder called temp inside the Package folder and CHMOD it to 777

i did! :(

FoneBone

Okay, I've found another little mistake. Maybe this caused the problems.

Motorhead

whats the mistake, mine seems to be working perfect, is it something I need worry about ??

If you put up the altered code and file I could go in and alter it rather than a new install !!

cheers

Advertisement: