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

Bigguy


FoneBone

Difference between RC6 and 7 is the version of the api-file has changed from 1 to 2:
Look in your Profile.template.php

if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) {
if(isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude'])) {
echo '
<tr>
<td class="windowbg" colspan="2">
<script src="http://maps.google.com/maps?file=api&v=1&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>


to:

...
src="http://maps.google.com/maps?file=api&v=2& ...


Nothing special, but I thought it could cause the problem of Bigguy.
Sorry, but I've no other idea.

Bigguy

That's ok thanks for trying. I even downloaded the maps api file and uploaded it to my root of SMF thinking that would take care of it but it didn't. Thanks for trying.

Goad

Quote from: Goad on January 04, 2007, 10:40:19 AM
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


I still get this error....  :(

I wish i never upgraded to 1.1.1, I have had nothing but problems with EVERY component since.

Michael Kopka

I made a clean install of SMF and tried to install the Map Mod first. Everything went OK, it only says that he skipped the german files. After finishing the installation nothing changed in the Forum. No admin area ...
My SMF: AutoTrac.org [nofollow]

Webby

Quote from: millworky on January 04, 2007, 06:50:52 PM
I made a clean install of SMF and tried to install the Map Mod first. Everything went OK, it only says that he skipped the german files. After finishing the installation nothing changed in the Forum. No admin area ...

Ik think this has to do with the missing language files. Upload them manually or change the excisting ones by adding the missing lines.

Michael Kopka

You are right, I uploaded the german language files and set the permissions of some files more to 777. No all works great on Xtrac.de [nofollow]
My SMF: AutoTrac.org [nofollow]

@ngel

#767
Test with version 0.60 RC7 on the defaut theme with SMF 1.1.1

In the admin Panel, the map works fine, no problem.

In the user profil, all is displayed except the map.  There is a script error but I can't find it.

Thanks for your hints and tips.

Slack

QuoteIn the user profile, all is displayed except the map.

Same here.

canuckguy

I just installed it on my RC3 forum, manually had to do the managepermissions.php edits, but it works.

Theres only one problem, you can place your pin and it shows up in the profile, but it doesnt show up on the MAP tab at the top of the forum......no pins show up on it.  But it lists all the names of people who have placed pins.

See what I mean

http://www.trailerparkboys.info/thepark/index.php?action=googlemap

canuckguy

The pins show if I turn off clusters completely in the settings.  Weird.  Is there a fix for that?

Bigguy

We can't see anything because you have guest viewing off.

FoneBone

I've found another mistake and solved it. One of my new members wasn't able to point its location on the map, because the map wasn't displayed in the profile. Now it will  ;D

Bigguy

It still will not show in the profile for me. It does install with no problems except for index.template.php but I figure that is just the button. I have cleared cache and temp files also. I get these errors:

GM_MenuCommander
maps2.69.api.js (line 290)

I am using FF 2.0

Bigguy

When I use firebug in FF 2.0 and hover my mouse over the map it shows me this line of code:

<div style="overflow: hidden; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;">

FoneBone

Quote from: Bigguy on January 07, 2007, 04:15:53 PM
When I use firebug in FF 2.0 and hover my mouse over the map it shows me this line of code:

<div style="overflow: hidden; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;">

On which site do you get this error? On the googlemap site or somewhere in the profile? I'm able to open the map in Firefox 2.0.0.1 de without any problem. And I've searched for this line of code in the source of the map and the profile, without any results ???

Can you post me a link to your map, please?
Regards.


Bigguy

Would you like a test account made for you so you can try it out. I can PM you the details if you like

@ngel

#777
Now, work great in the user profile.

Some suggestions :

0. A little adaptation for translation in main menu : "Member Map" is displayed in all languages

solution
add a line for Modifications.French.php : $txt['googleMapFO'] = 'Members Map';

change in GoogleMap.Template.php :
<div id="googlemap" class="titlebg" style="padding: 4px;">Member Map</div>
by
<div id="googlemap" class="titlebg" style="padding: 4px;">', $txt['googleMapFO'], '</div>

Also in file "GoogleMap.php" in the function Map() :
change$context['page_title'] = 'Member Map';
by$context['page_title'] = $txt['googleMapFO'];

1. Is it possible to add a custom legend for each member ?  The custom legend will be also displayed in the general map with the name of the member and his avatar.

2. Is it possible to add a BBC tag like this : [googlemap=lat,long,size_x,size_y,zoom]text[/googlemap] ? The result is displayed in the topic.  It will be usefull for positionning installation, customer and ... .

Thansks again.

Bigguy

I know I thanked you once before in a PM but I wanted to do it publicly, thanks FoneBone for all your work. We now have a Googlemap working on SMF Helper. Just perfect. ;)

Slack

Yep, thanks Fonebone -- your last revision did the trick.  :)

Advertisement: