Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Spuds on December 12, 2007, 01:49:12 PM

Title: Google Member Map
Post by: Spuds on December 12, 2007, 01:49:12 PM


Google Member Map V2.6
By Spuds (http://custom.simplemachines.org/mods/index.php?action=search;author=11359)
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1010)
Latest Version on GitHub (https://github.com/Spuds/Google-Member-Map)



License
This modification is released under a MPL V2 license, a copy of it with its provisions is included with the package.

Dependencies
The Google JavaScript Maps API V3 to create the map and place pins.  This API is available for any web site that is free to consumers. By enabling and using this SMF modification you will be acknowledging and agreeing to the Google<a href="http://code.google.com/apis/maps/terms.html"> terms of use</a>';

JSColor (http://jscolor.com/) project to select the pin color in the admin interface.  JSColor is by Jan Odvárko and is released under the GNU Lesser General Public License. LGPL differs from GPL by allowing you to use JSColor even in non-(L)GPL applications.

Introduction
This mod installs a member map to your website which allows your members to pin their location on a map. It uses Google Maps 3.0 API to generate the map and place 'Push" pins.

Google Earth can also make use of the pin data. This mod allows for the exporting of user pin data in to a .kml file for those that want to use Google Earth to see their member locations.  Simply add a network link in Google Earth to point at http://www.example.com/forums/index.php?action=.kml to get the data for Google Earth.  The capability to export .kml files is controlled by the permission to view the map, and keep in mind Google Earth will appear as a guest to your forum.

Features
o Adds a member map button to the main menu
o Adds a member profile area for users to add their pin to thier profile.  This will then appear on the map. 
o Ablilty to search by location when placing thier pin
o Adds Profile info bubbles to the map pins
o Ability to cluster pins together to improve map legabilty.  Clusters will un-cluster as you zoom in on them

How to Use
In your admin panel you will need to enable it, which implies your acceptance of Google Maps terms of service.  Choose the settings that best work for your site.  There are many settings so you can fine tune the experience for your users and site.  Next, your members will need to edit their profiles and place a pin on the map to show their location and save their profile. That pin will then display on the main member map page. The admin will also need to set the map permissions so users can view the map as well as place a pin on the map.

Support
Please use the member map thread for support with this modification.

Changelog
2.6 - 18 Dec 2011
o + added a hidden map reset button to middle of pan control
o + prevented output of gzip data when portamx is active
o ! fixed member names not appearing in bold when they should have been
o ! fixed undefined txt var due to order of load language
Title: Re: Google Member Map
Post by: KGIII on December 13, 2007, 06:28:51 AM
Is that "if you need support message him" correct or is it "if you need support for an older version that is not taken over by me then please message him" what you are meaning to say? *would love to poke at it but, well, I wanna know where to ask questions when things blow up*
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 04:08:04 PM
I am not encouraging people to use old versions, if they wish there is no support. TLM is leaving SMF.
"if you need support message him" as in messaging me.. I will change it so it is more understandable.

brianjw
Title: Re: Google Member Map
Post by: TEOC2 on December 13, 2007, 04:29:49 PM
Can i resize the map?

We have a frappr map in beta testing and its set to 100%,
<embed width="100%" height="100%" align="middle"

Can i tweak it like that?
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 04:51:21 PM
You should be able to. Give it a try and see how it goes... :)
Title: Re: Google Member Map
Post by: TEOC2 on December 13, 2007, 05:04:20 PM
Quote from: brianjw on December 13, 2007, 04:51:21 PM
You should be able to. Give it a try and see how it goes... :)

Where would i find the code?

Also, a thumbnail of the users avatar would be good too, maybe above the members name.
Great mod BTW.
8) 8) 8)
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 05:17:39 PM
Ok, you would find it in ./Themes/default/GoogleMap.template.php
Also, the code isn't an embed tag, it is a script tag. Not sure if there is a way to size script objects though...
I believe it is:

<script src="http://maps.google.com/maps?file=api&v=2&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>


A thumnail of their avatar...

- Next to their name on the list?
because there is already an avatar on the white bubble that pops up when clicking on the icon on the googlemap or the users link on the list...
See:
' . $marker['avatar']['image'] . '

brianjw
Title: Re: Google Member Map
Post by: TEOC2 on December 13, 2007, 05:25:32 PM
Quote from: brianjw on December 13, 2007, 05:17:39 PM
Ok, you would find it in ./Themes/default/GoogleMap.template.php
Also, the code isn't an embed tag, it is a script tag. Not sure if there is a way to size script objects though...
I believe it is:

<script src="http://maps.google.com/maps?file=api&v=2&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>


A thumnail of their avatar...

- Next to their name on the list?
because there is already an avatar on the white bubble that pops up when clicking on the icon on the googlemap or the users link on the list...
See:
' . $marker['avatar']['image'] . '

brianjw

Ok, thanks, i'll have a play with the code, yes, your right the ava does show on the pin, i have it installed on a sacrificial board so nobody had avatars.
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 05:52:10 PM
No problem. I looked around a little and it almost looks like it isn't possible. The best place to get support for the map itself provided by google is google.. The mod however can be supported here.
Title: Re: Google Member Map
Post by: TEOC2 on December 13, 2007, 06:20:09 PM
I sent you a PM.
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 06:28:41 PM
For those using the Custom 'Actions' and 'Profile Fields' mods will need to manual install until I get some free time to make it work around the mods.

Manual Install Instructions
If there are any files that have errors, they're conflicting with another mod as this has been tested. So go ahead and install it anyway. Then I recommend using the package parser at http://www.gamerzgarage.com/package.php to manually install the files that had the issue, all other files should already be installed after submitting it to your package manager. Edit the files with the find and replace, save it, and upload it to your website. Be sure you do the manual install after you've submitted the mod to your package-manager and it is installed even with errors otherwise you may get some website errors.

brianjw
Title: Re: Google Member Map
Post by: Omniverse on December 13, 2007, 06:33:16 PM
Woot, thanks brianjw. I've been waiting for an update to this for awhile. :)
Title: Re: Google Member Map
Post by: brianjw on December 13, 2007, 06:38:54 PM
You're welcome :)

Give me your comments about the new sidebar right layout... It also now scrolls when it exceeds the available space. ;)

brianjw
Title: Re: Google Member Map
Post by: TEOC2 on December 13, 2007, 06:59:12 PM
I have a test forum set up if ppl want to see it in action,
http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)

Ive tweaked /Themes/default/GoogleMap.template.php a bit to change the map size and side bar height.


overflow: auto;
width: 150px;
height: 900px;


<div id="map" style="width: 800px; height: 800px; color: #000000;"></div>
Title: Re: Google Member Map
Post by: AllMassive on December 14, 2007, 01:52:43 AM
Are the Pins from the old Version still available after switching to your Version?
Title: Re: Google Member Map
Post by: TEOC2 on December 14, 2007, 09:08:18 AM
Just thought i would show how to make the US the default location.
http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)
Feel free to join and put in a pin. Its not a live forum.



(https://www.simplemachines.org/community/index.php?action=dlattach;topic=210708.0;attach=44484;image)

Title: Re: Google Member Map
Post by: brianjw on December 14, 2007, 03:55:50 PM
Quote from: AllMassive on December 14, 2007, 01:52:43 AM
Are the Pins from the old Version still available after switching to your Version?
Yep, they are... :) Database hasn't changed, all you need to do is uninstall the previous versions and install 0.1. ;)
Title: Re: Google Member Map
Post by: seraphikah on December 14, 2007, 06:26:19 PM
how do i get the links to take members to the map? I have the link up, but it takes me to the home page. not sure what code i need to define where the map asset takes me and where i put it? new to SMF lol!
Title: Re: Google Member Map
Post by: qubbah on December 15, 2007, 03:15:54 AM
how can i make scroll for username list in google map?
Title: Re: Google Member Map
Post by: brianjw on December 15, 2007, 09:08:49 AM
Quote from: seraphikah on December 14, 2007, 06:26:19 PM
how do i get the links to take members to the map? I have the link up, but it takes me to the home page. not sure what code i need to define where the map asset takes me and where i put it? new to SMF lol!
I am not sure what you're talking about. Explain please. :)
Quote from: qubbah on December 15, 2007, 03:15:54 AM
how can i make scroll for username list in google map?
When you have a certain ammount of usernames on a list, it will begin to scroll.

brianjw
Title: Re: Google Member Map
Post by: seraphikah on December 15, 2007, 11:55:56 AM
Sorry, I am a BAD explainer! lol. What I want is to get a link to the map on the menu bar, like where it says home, profile, admin, etc. I figured out how to get a link to show up there, but I don't know how to get it to function. I'm assuming it has to have another code put in somewhere to define it, like the shop mod did. But I don't know where or what code. This is the code I put in to get the link to show, if that will help:

// GoogleMap
      echo'<a href="', $scripturl, '?action=map" class="menulinks">Map</a> | ';
Title: Re: Google Member Map
Post by: brianjw on December 15, 2007, 12:22:21 PM
It should be this:

// GoogleMap
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
      echo'<a href="', $scripturl, '?action=googlemap" class="menulinks">Map</a> | ';


brianjw

PS{ Does it show up at all? }
Title: Re: Google Member Map
Post by: seraphikah on December 15, 2007, 01:24:03 PM
Ok, I'll try that. The link shows up in the menu bar but when I click it, it takes me to the home page. Everyone can access the map though through their profile. But I'll try your code and report back :)

Thank you! I had to modify that a little bit to get it work. This is the code that works for me, but I'm sure that's because of the theme I was using it on.

// GoogleMap
      echo'<a href="', $scripturl, '?action=googlemap" class="menulinks">Map</a> | ';


So I guess all I had wrong was the action name, I had map instead of googlemap. With the other line in it, my map link wasn't showing up at all...but without it, it functions perfect, so thanks!
Title: Re: Google Member Map
Post by: brianjw on December 15, 2007, 01:32:49 PM
All you really need to do is change ?action=map to ?action=googlemap
?action=map doesn't exsist so it is taking you to the homepage. ;)

Remember to enable and enter pin in the 'Features an Options' >> 'Member Map'

brianjw
Title: Re: Google Member Map
Post by: brianjw on December 15, 2007, 05:11:30 PM
If anyone is interested in doing some translations for this mod, that would be awesome. :)
There have been other languages posted in the past, but since I added and changed things, I'd need a new translation of all languages that are possible.
Code (These are the default english strings) Select

$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Pinned Member\'s';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you\'re not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you\'re not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';


Thanks,
brianjw
Title: Re: Google Member Map
Post by: caryb on December 16, 2007, 03:16:50 AM
I have install errors on my 1.1.4 forum! http://www.qah.org.au I have attached pictures of the error & other installed mods!


Cary
Title: Re: Google Member Map
Post by: TEOC2 on December 16, 2007, 04:42:54 AM
@brianjw, or anyone who knows, is it possible to make it so that when you click on a member's name on the coloum on the right the pin will be centered on the screen, like almost exactly center?
http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)


@cary. Whoa! you need to crop the screenies down to just show the relavant info.
See my attachments. v

Title: Re: Google Member Map
Post by: falguni1 on December 16, 2007, 06:00:28 AM
wow very nice.
Title: Re: Google Member Map
Post by: brianjw on December 16, 2007, 08:58:22 AM
Quote from: caryb on December 16, 2007, 03:16:50 AM
I have install errors on my 1.1.4 forum! http://www.qah.org.au I have attached pictures of the error & other installed mods!
The Custom Action Mod is conflicting in ModSettings.php and index.template.php, I am not sure yet. Go ahead and install even though you get that error, then attach ModSettings.php and index.template.php, I will make the appropriate edits for the mod to work.

Quote from: TEOC2 on December 16, 2007, 04:42:54 AM
@brianjw, or anyone who knows, is it possible to make it so that when you click on a member's name on the coloum on the right the pin will be centered on the screen, like almost exactly center?
http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)
Well, there is no way of making it center unless their is something at the google map docs or anything but it does move the map so you can completely see the balloon and the pin location. But it isn't center. I will look into this and get back to you if I find anything.

brianjw
Title: Re: Google Member Map
Post by: fiver on December 16, 2007, 09:12:12 AM
Hi brianjw,

Just installed this mod and playing with it for a while. Had a look in Forum Error Log and found these:

Quotehttp://www.fivearts.net/index.php?action=googlemap (http://www.fivearts.net/index.php?action)                                                                                       
                        8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 57



Quotehttp://www.fivearts.net/index.php?action=googlemap (http://www.fivearts.net/index.php?action)                                                                                       
                        8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 62



Quotehttp://www.fivearts.net/index.php?action=googlemap;sa=.js (http://www.fivearts.net/index.php?action)                                                                                       
                        
8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Sources/GoogleMap.php
Line: 108

Quotehttp://www.fivearts.net/index.php?action=googlemap;sa=.js (http://www.fivearts.net/index.php?action)                                                                                       
                        
8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Sources/GoogleMap.php
Line: 111

The same 4 messages for each member throughtout the error log.

Great mod. Hope the error can be fixed.

Many thanks.

;)




Title: Re: Google Member Map
Post by: brianjw on December 16, 2007, 10:36:47 AM
Those errors won't have any affect on your forum other than filling up the error log. I will see if I can fix them. ;)
Title: Re: Google Member Map
Post by: fals on December 16, 2007, 04:37:48 PM
Im using the "old" google maps scripts.... might upgrade to this instead :-)
http://www.fg-forum.dk/smf/index.php?action=googlemap

I would love to have the "mousewheel zoom" function included..... used on http://maps.google.dk/maps
Title: Re: Google Member Map
Post by: Louis EX on December 16, 2007, 07:05:08 PM
I had a "test failed" on style.css, I installed it anyway I'm using the default theme. I'll tell you later if it works.

It works but I would prefer if it was like the previous google map, when you just typed your location and it automatically pins that point for you. Cause now everybody has to place their pin themselves and members are quite lazy.
Title: Re: Google Member Map
Post by: brianjw on December 16, 2007, 07:37:33 PM
Quote from: fals on December 16, 2007, 04:37:48 PM
Im using the "old" google maps scripts.... might upgrade to this instead :-)
http://www.fg-forum.dk/smf/index.php?action=googlemap

I would love to have the "mousewheel zoom" function included..... used on http://maps.google.dk/maps
I have not read anything in the google map docs with this feature, allthough the map you linked to does have "mousewheel zoom", I will get in touch with google about this...
Quote from: Louis EX on December 16, 2007, 07:05:08 PM
I had a "test failed" on style.css, I installed it anyway I'm using the default theme. I'll tell you later if it works.

It works but I would prefer if it was like the previous google map, when you just typed your location and it automatically pins that point for you. Cause now everybody has to place their pin themselves and members are quite lazy.
Manually install the style.css file. ;)
I don't recall a previous member map that had this function, I will talk to TLM.
Title: Re: Google Member Map
Post by: Louis EX on December 17, 2007, 12:18:30 AM
Quote from: brianjw on December 16, 2007, 07:37:33 PM
Quote from: fals on December 16, 2007, 04:37:48 PM
Im using the "old" google maps scripts.... might upgrade to this instead :-)
http://www.fg-forum.dk/smf/index.php?action=googlemap

I would love to have the "mousewheel zoom" function included..... used on http://maps.google.dk/maps
I have not read anything in the google map docs with this feature, allthough the map you linked to does have "mousewheel zoom", I will get in touch with google about this...
Quote from: Louis EX on December 16, 2007, 07:05:08 PM
I had a "test failed" on style.css, I installed it anyway I'm using the default theme. I'll tell you later if it works.

It works but I would prefer if it was like the previous google map, when you just typed your location and it automatically pins that point for you. Cause now everybody has to place their pin themselves and members are quite lazy.
Manually install the style.css file. ;)
I don't recall a previous member map that had this function, I will talk to TLM.
Wait I misunderstood, what I meant was, not map related but the old one's pinned member's list had categorised members to their countries. I'm not sure if its TLM's version or not but  http://www.soldatforums.com/index.php?action=mm

Anyway great mod, I dont really care if you add that feature, its working great for me. <3
Title: Re: Google Member Map
Post by: qubbah on December 17, 2007, 01:51:49 AM
how can i make scrolling in the username list?
Title: Re: Google Member Map
Post by: TEOC2 on December 17, 2007, 02:44:42 AM
Quote from: qubbah on December 17, 2007, 01:51:49 AM
how can i make scrolling in the username list?

You already asked this and got an answer in the post after your question.
Title: Re: Google Member Map
Post by: qubbah on December 17, 2007, 03:25:22 AM
ok .. sorry about misschecked....

im using the old one...
now i updated it manually..

tq
Title: Re: Google Member Map
Post by: cbmr777 on December 20, 2007, 03:13:26 AM
I installed the Google Maps mod tonight.  I did have to install it manually as it failed on the Load.php upon trying to use the package manager.  FTR, I have these other mods installed:

1.     Simple_Mood      1.0 
2.    TinyPortal    0.983    
3.    View Single PM    1.3    
4.    Show Multiple Badges (Aka Stars)    1.0    
5.    Display Age and Location next to posts    1.0    
6.    SMF Trader System    1.1

But I installed it manually with no problems. 

Anyway, I do have one minor problem that perhaps someone can help me with...

When I click on "Member Map", and once at the map, click on a userid or pin, the popup properly displays the information. If I close the popup and zoom in/out, and call up a popup again, it does not display properly.

2007-12-20_popupdefault.jpg - shows what happens upon clicking on the popup when initially arriving at the member map.
2007-12-20_popupzoomout.jpg - shows what happens after zooming in/out.

Is there a way to fix this?

I also would like to see the avatars in the popups resized (via HTML or whatever).  Our avatars are set at 125x125 and in the popup they are just too large for my liking.  Can this be remedied, too?

Thank you for a great mod.  I've been manually editing a map myself and it is getting tedious.  Loving having something more automated!   :D

Title: Re: Google Member Map
Post by: digit on December 20, 2007, 07:34:30 AM
Quote from: fivearts on December 16, 2007, 09:12:12 AM
Hi brianjw,

Just installed this mod and playing with it for a while. Had a look in Forum Error Log and found these:

Quotehttp://www.fivearts.net/index.php?action=googlemap (http://www.fivearts.net/index.php?action)                                                                                       
                        8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 57



Quotehttp://www.fivearts.net/index.php?action=googlemap (http://www.fivearts.net/index.php?action)                                                                                       
                        8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 62



Quotehttp://www.fivearts.net/index.php?action=googlemap;sa=.js (http://www.fivearts.net/index.php?action)                                                                                       
                        
8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Sources/GoogleMap.php
Line: 108

Quotehttp://www.fivearts.net/index.php?action=googlemap;sa=.js (http://www.fivearts.net/index.php?action)                                                                                       
                        
8: Undefined index:  googleSidebar
File: /home/fivearts/public_html/Sources/GoogleMap.php
Line: 111

The same 4 messages for each member throughtout the error log.

Great mod. Hope the error can be fixed.

Many thanks.

;)






It sounds like your installation failed to add $txt['googleSidebar'] = 'Where to show sidebar';

to your ModSettings.english.php file. (So it probably missed that whole block of text)   Look at modification.xml for more info.
Title: Re: Google Member Map
Post by: digit on December 20, 2007, 07:35:04 AM
GREAT!  It finally works in IE!  Woo Hoo!  I sent you my $5.   :)

edit: hmm, one member reporting - using IE on Windows XP no pins after 16 minutes - -granted I have 2500+ pins.  Is this just a RAM problem?


Title: Re: Google Member Map
Post by: digit on December 20, 2007, 07:50:41 AM
Do you think it would be possible to add the option of showing NO pins, but allow people to click on the sidebar names to show the pop ups?

With 2500 pins, I am crashing members systems! (and I don't really care for the pin clustering).

Thanks in advance.
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 09:31:03 AM
@cbmr777: This is a problem with the Google Map meaning that this is a problem on Googles side. This has happened to me a number of times also but if you click on another person and then click on that person it will display fine. I will contact Google to see if we can work together to fix this.

@digit: I received the payment. You have full permission to remove the copyright. Their probably is an option seeing that all the events and codes are coded in GoogleMap.php but I don't think I have enough knowledge for that.

@EVERYONE: Did I mension that this map supports utf-8 now? As in the past, if a member had a "TM", "R", or any other symbol then it wouldn't display properly.... Now it does :)
And utf-8 is already in your versions, if you downloaded 0.1 already.
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 09:33:20 AM
I need a couple of opinions from everyone,

1.) What do you think about ?action=membermap instead of ?action=googlemap
(theyre the same ammount of characters)

2.) Do you all like the new "Sidebar Right" function?

brianjw
Title: Re: Google Member Map
Post by: Owain on December 20, 2007, 11:00:39 AM
Its great someone has taken this mod over, I have been using it for ages! I will wait until it comes out of beta before upgrading but thanks Brianjw for taking it on!

O.
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 11:41:26 AM
Well it's 100% safe. It's been tested multiple times. Because it's stable I am probably going  to upgrade it from 0.1 to 1.0 ;)

brianjw
Title: Re: Google Member Map
Post by: cbmr777 on December 20, 2007, 01:45:09 PM
Quote@cbmr777: This is a problem with the Google Map meaning that this is a problem on Googles side. This has happened to me a number of times also but if you click on another person and then click on that person it will display fine. I will contact Google to see if we can work together to fix this.

Thanks!  I look forward to a seeing what they say! :D

Quote
1.) What do you think about ?action=membermap instead of ?action=googlemap
(theyre the same ammount of characters)

I like membermap better *but* not a big deal either!

Quote2.) Do you all like the new "Sidebar Right" function?

I didn't use GoogleMaps mod before this but thought I'd chime in to say I like it!  :)   

Title: Re: Google Member Map
Post by: sg707 on December 20, 2007, 02:15:32 PM
For the "hidden" members, does it show on the maps too? I'm pretty sure they'll yell "Privacy Invation"
Title: Re: Google Member Map
Post by: digit on December 20, 2007, 02:55:31 PM
Quote from: sg707 on December 20, 2007, 02:15:32 PM
For the "hidden" members, does it show on the maps too? I'm pretty sure they'll yell "Privacy Invation"

They have to add their own pins to be visible! Don't want to be seen? don't add your pin!
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 02:58:53 PM
Yeah the members would be pretty pissed if they were automatically on the map lol... they'll think "stocker admins" or something lol.
Title: Re: Google Member Map
Post by: milesenglish on December 20, 2007, 05:09:14 PM
I think I boned up my installation!

I installed it using Package Manager and during the process it said I needed to change file permissions using chmod.  This message appeared in an FTP settings window.  I entered the password and continued as I thought it would at some point tell me which files I needed to change permissions on but it never did.  Can anyone tell which ones I need to change?  Also, I don't see anything new in the Features and Options setting - is that because of the chmod problem I have or did I mess up some other part of the install as well?!?!


Also, does this mod work with Tiny Portal?  I'm running SMF 1.1.4 and Tiny Portal 0.9.8.  I can post a link to my site if needed (I don't know what the etiquette is for posting site links).

Thanks,
Miles
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 05:14:10 PM
It should work with TinyPortal. Go ahead and completely UNinstall this and go to (Package Manager>>Options), go down to Cleanup Permissions and check "All files are writable."... Then install through package manager. Once install is complete, go back to the Options and check "Only the standard files are writable."

brianjw
Title: Re: Google Member Map
Post by: milesenglish on December 20, 2007, 05:19:20 PM
OK, I did that and I still don't see anything under Features and Options.  Also, I selected "All files are writable" and clicked "Change file permissions" but it doesn't seem to stick.  It just refreshes the page and the option "Only the standard files are writable" is selected.

I did not get the chmod screen this time though so maybe that's a good sign...
Title: Re: Google Member Map
Post by: brianjw on December 20, 2007, 07:00:06 PM
That makes me think that you have a problem with your SMF installation, not the mod.

brianjw
Title: Re: Google Member Map
Post by: cbmr777 on December 20, 2007, 09:05:58 PM
Quote from: milesenglish on December 20, 2007, 05:09:14 PM
Also, does this mod work with Tiny Portal?  I'm running SMF 1.1.4 and Tiny Portal 0.9.8.  I can post a link to my site if needed (I don't know what the etiquette is for posting site links).

I have TP and it works. :)

Quote@cbmr777: This is a problem with the Google Map meaning that this is a problem on Googles side. This has happened to me a number of times also but if you click on another person and then click on that person it will display fine. I will contact Google to see if we can work together to fix this.

Just an update now that I have it enabled for my members and I have more pins on the map...

My popup, along with others, do not show properly (like in my 2nd screenshot)... even if you click on someone else that does show right and then come back to me.  In fact, out of all members who have pinned themselves to the map, only one shows properly all the time.  Really strange.  :-/

Title: Re: Google Member Map
Post by: milesenglish on December 20, 2007, 11:09:18 PM
Does this error log entry help?

Applying Filter: Error message '8: Undefined index: googleMapFO
File: /home/nedocorg/public_html/forums/Sources/ModSettings.php
Line: 141' (Clear filter)

I'm running Default Avatar and Favicon.  Is it possible that either of those is affecting this install?



Quote from: brianjw on December 20, 2007, 07:00:06 PM
That makes me think that you have a problem with your SMF installation, not the mod.

brianjw
Title: Re: Google Member Map
Post by: TEOC2 on December 21, 2007, 02:07:44 AM
Can i adjust the level of zoom shown in  the members profile to a lesser amount by default?

Some of the more remote places dont have anything to display at the default zoom level.  For example, look at "admin's" profile.

http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)
Title: Re: Google Member Map
Post by: brianjw on December 21, 2007, 09:20:33 AM
@milesenglish: People have already posted the error logs they have. Compare that one to the ones that were posted earlier. It shouldn't affect how Google Map mod runs at all but I am still looking into it.

@TEOC2: I'll have a look at the Profile.template.php/Profile.php and compare it to the GoogleMap.template.php to see what i can do.
Title: Re: Google Member Map
Post by: milesenglish on December 21, 2007, 10:15:57 AM
I'll compare logs but I'm not sure it's indicative of anything.  I used your Package Parser and compared each and every change with my files and everything is correct.  I appreciate you continuing to look into this.

I also uninstalled Default Avatar and Favicon as they seemed to be modifying the same files as GMM.  Reinstalled GMM and still no luck.  I turned off Tiny Portal and went back to the default theme and nothing!

I really don't want to give up on this mod!!
Title: Re: Google Member Map
Post by: brianjw on December 21, 2007, 11:37:16 AM
PM me with an admin account and ftp information and I will see if I can get it to work for you.
Title: Re: Google Member Map
Post by: milesenglish on December 21, 2007, 03:55:46 PM
Brian got GMM working on my site but now I want to modify what part of the world is displayed on the map.  My site is for New England Ducati owners so I'd like the map to default to a New England view.  I tracked down an appropriate lat and long but I'm really not sure where to insert that info.  In an older post by TEOC2 he had a dialog box with the coords and a zoom level.  Is that something I should have in Admin settings?
Title: Re: Google Member Map
Post by: brianjw on December 21, 2007, 04:04:57 PM
Go to Admin>>Features and Options>>Member Map and enter the lat and lon.

brianjw
Title: Re: Google Member Map
Post by: TEOC2 on December 21, 2007, 04:13:06 PM
Also posted here,
http://binkles.wsnw.net/qwerty/index.php?topic=4.0 (http://binkles.wsnw.net/qwerty/index.php?topic=4.0)

I went to google maps and searched new england and got this code from there,
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=New+England&amp;ie=UTF8&amp;oe=utf-8&amp;client=firefox-a&amp;z=14&amp;iwloc=addr&amp;om=1&amp;ll=46.543277,-102.856321&amp;output=embed&amp;s=AARTsJpvCcux_qlgWm8S_0OJWBa-CKoLdw"></iframe><br /><small><a href="http://maps.google.com/maps?q=New+England&amp;ie=UTF8&amp;oe=utf-8&amp;client=firefox-a&amp;z=14&amp;iwloc=addr&amp;om=1&amp;ll=46.543277,-102.856321&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

In amongst all the html are the co-ordinates (46.543277,-102.856321)

Goto ADMIN>FEATURES&OPTIONS>MEMBER MAP and put them in. You can tweak the zoom and co-ordinayes a bit to get the exact position.

Like this,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi5.tinypic.com%2F82lg7py.jpg&hash=71eef9eb76884d220911231c578e46baa38184c4)


See the resulting map here,

http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)
Title: Re: Google Member Map
Post by: digit on December 21, 2007, 04:19:56 PM
Quote from: TEOC2 on December 21, 2007, 04:13:06 PM
Also posted here,
http://binkles.wsnw.net/qwerty/index.php?topic=4.0 (http://binkles.wsnw.net/qwerty/index.php?topic=4.0)

I went to google maps and searched new england and got this code from there,
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=New+England&ie=UTF8&oe=utf-8&client=firefox-a&z=14&iwloc=addr&om=1&ll=46.543277,-102.856321&output=embed&s=AARTsJpvCcux_qlgWm8S_0OJWBa-CKoLdw"></iframe><br /><small><a href="http://maps.google.com/maps?q=New+England&ie=UTF8&oe=utf-8&client=firefox-a&z=14&iwloc=addr&om=1&ll=46.543277,-102.856321&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

In amongst all the html are the co-ordinates (46.543277,-102.856321)

Goto ADMIN>FEATURES&OPTIONS>MEMBER MAP and put them in. You can tweak the zoom and co-ordinayes a bit to get the exact position.

Like this,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi5.tinypic.com%2F82lg7py.jpg&hash=71eef9eb76884d220911231c578e46baa38184c4)


See the resulting map here,

http://binkles.wsnw.net/qwerty/index.php?action=googlemap (http://binkles.wsnw.net/qwerty/index.php?action=googlemap)

Any idea if your clustering works?  I can't get mine to work, and I have 2500 entries, but have it set to show 1000 pins so not to crash my Mods machines!

I can't get the clusterer to work at all.  :-(


Title: Re: Google Member Map
Post by: TEOC2 on December 21, 2007, 04:21:33 PM
Erm, no idea.

There's only about 10 members on there, and 3 of them are me.  :P

Im using frappr on my main site, im just testing this mod as i may go over too it if its better.
Title: Re: Google Member Map
Post by: m771401 on December 21, 2007, 04:29:03 PM
Everything went pretty smooth for me. Although I have dropdown menus. Unfortunately they are dropping down behind the map preventing me access to menu. Any ideas?
Title: Re: Google Member Map
Post by: milesenglish on December 21, 2007, 04:34:39 PM
Haha, for some reason the tab doesn't show up under "Features and options" but there is a space between Layout and Karma that's clickable.  I entered the lat and long and got exactly what I was looking for!

You guys are great!!  Thanks for all the speedy assistance.
Title: Re: Google Member Map
Post by: TEOC2 on December 21, 2007, 04:44:10 PM
Quote from: milesenglish on December 21, 2007, 04:34:39 PM
Haha, for some reason the tab doesn't show up under "Features and options" but there is a space between Layout and Karma that's clickable.  I entered the lat and long and got exactly what I was looking for!

You guys are great!!  Thanks for all the speedy assistance.

Thats a language problem i think, did you install with fantastico?
You need to set plain english, NOT english-utf8
Title: Re: Google Member Map
Post by: brianjw on December 21, 2007, 06:13:38 PM
Quote from: m771401 on December 21, 2007, 04:29:03 PM
Everything went pretty smooth for me. Although I have dropdown menus. Unfortunately they are dropping down behind the map preventing me access to menu. Any ideas?
It's a problem with whatever theme you're currently using as it works on mine and everyones site ive seen so far.
Title: Re: Google Member Map
Post by: cbmr777 on December 21, 2007, 06:38:26 PM
I found this and used it to find our lat/long.

http://www.gorissen.info/Pierre/maps/googleMapLocationv3.php
Title: Re: Google Member Map
Post by: m771401 on December 22, 2007, 06:58:59 PM
This may or may not be relevant to this mod. Really just google maps in general. Just posting here should someone else have the same problem.
I was able to resolve the problem by adding z-index to my div for my drop down menu. Now my menu doesn't drop under the map.

Quote from: brianjw on December 21, 2007, 06:13:38 PM
Quote from: m771401 on December 21, 2007, 04:29:03 PM
Everything went pretty smooth for me. Although I have dropdown menus. Unfortunately they are dropping down behind the map preventing me access to menu. Any ideas?
It's a problem with whatever theme you're currently using as it works on mine and everyones site ive seen so far.
Title: Re: Google Member Map
Post by: brianjw on December 22, 2007, 10:31:49 PM
Glad you were able to solve your problem! :)

@digit: The clustering feature should work. It did in the testing on my site and one on another. It is a possibility because you have used alot of space on your server that it might work but is slow to load.
Title: Re: Google Member Map
Post by: digit on December 23, 2007, 10:51:07 AM
Quote from: brianjw on December 22, 2007, 10:31:49 PM
Glad you were able to solve your problem! :)

@digit: The clustering feature should work. It did in the testing on my site and one on another. It is a possibility because you have used alot of space on your server that it might work but is slow to load.

It loads all the pins though! (2500!)  Would it load the clusters after the pins?


Title: Re: Google Member Map
Post by: afe on December 23, 2007, 02:16:46 PM
This is the error I get, when I install this. "!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
"

Can anyone tell me why?
Title: Re: Google Member Map
Post by: afe on December 23, 2007, 02:17:12 PM
 Type Action Description
1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Extract File ./Themes/default/images/german/googlemap.gif 
7. Execute Code add_settings.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Sources/ManagePermissions.php Test successful
11. Execute Modification ./Sources/ModSettings.php Test failed
12. Execute Modification ./Sources/Profile.php Test successful
13. Execute Modification ./Themes/default/style.css Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Themes/default/Profile.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.german.php Skipping file
18. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
19. Execute Modification ./Themes/default/languages/ModSettings.german.php Skipping file
20. Execute Modification ./Themes/default/languages/Who.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.german.php Skipping file
Title: Re: Google Member Map
Post by: afe on December 23, 2007, 03:14:25 PM
Now I get a password I have to insert
Title: Re: Google Member Map
Post by: brianjw on December 23, 2007, 04:59:27 PM
Please don't post multiple times on the same matter. Simply use the edit function on this site. ;)

To answer your problem, you have Custom Actions and/or Profile Field Mods installed, which conflicts with this mod. You will need to do a manual install on that by going to http://www.gamerzgarage.com/package.php and uploading GoogleMap.zip.

Before doing all that, install it even with the file error. Then do the manual install on ModSettings.php by opening it up in your favorite editor (be it notepad, dreamweaver, frontpage) and using ftp.

You have to enter your ftp information to allow the mod to install in some files that might not be writable. If you have problems with this, go to Package Manager>>Options and select All files are writable just during the installation of this mod and others you may install when this pops up.
Title: Re: Google Member Map
Post by: afe on December 23, 2007, 06:07:29 PM
I just installed it, now how do I work it or something/enable it?
Title: Re: Google Member Map
Post by: brianjw on December 23, 2007, 09:31:49 PM
Your Package Manager should have redirected you to the admin for it, but it is located at:
Features and Options >> Member Map

brianjw
Title: Re: Google Member Map
Post by: afe on December 23, 2007, 11:12:00 PM
I don't see anything such as that. http://www.athletes4excellence.com/images/smf.jpg
Title: Re: Google Member Map
Post by: falguni1 on December 24, 2007, 03:07:30 AM
is it safe to signup from google and get key they have so many terms and conditions.
Title: Re: Google Member Map
Post by: brianjw on December 24, 2007, 07:54:30 AM
@afe: The mod must have had an error. Have you manually installed ModSettings.php correctly.
Please attach ModSettings.php in ./Sources/ so I can take a look and fix anything if needed.

@falguni1: Idt is completely safe to join Google with the terms and conditions.
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 28, 2007, 06:59:59 AM
Quote from: digit on December 20, 2007, 07:35:04 AM
GREAT!  It finally works in IE!  Woo Hoo!  I sent you my $5.   :)

edit: hmm, one member reporting - using IE on Windows XP no pins after 16 minutes - -granted I have 2500+ pins.  Is this just a RAM problem?

Can you tell me how to get it working with IE7? I only can see the map but I can't see member's pins and member's name on the sidebar (I see it empty)... With FireFox it's all OK...
Good Mod anyway.
Bye,
PS

EDIT: If it can be of any help, I have manual installed it on a custom theme...

EDIT 2: And what if I would modify behaviour of pins? Now they change colour according to member's gender, I would like they change colour according to member's group (administrator, user, visitor); can some of you help me doing this?
And it is possible to collapse the box on the bottom of the map by default?

Sorry for my bad English...
Title: Re: Google Member Map
Post by: brianjw on December 28, 2007, 09:15:20 AM
It should work on IE7. IE7 is the only browser I use. I've been on multiple sites using this and it works perfectly and it works fine on my test site and my live site. I really don't know what to tell you other then
1.) Did you use the previous versions of the mod by TLM, did you make sure it was completely uninstalled? The previous versions had trouble with IE.
2.) Did you modify any part of the mod?
3.) While manually installing, were you sure to use the Package Parser or the modification.xml file to be sure you get every theme file that needs to be manually installed?

brianjw
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 28, 2007, 09:37:26 AM
1) I've never used any previous version of this mod (I use v0.1 - 15 of December update)
2) I've only modified style.css and GoogleMap.template.php to change background color of legend and sidebar
3) I did use Package Parser and I've done all that has to be done... In fact with FireFox all works good!

Any suggestion for Edit2 part of my previous post?

Thanks,
PS

EDIT: here is the address:
http://www.blackbirds-rt.net/public/portale/forum/index.php?action=googlemap
you gotta register to the forum...
Title: Re: Google Member Map
Post by: brianjw on December 28, 2007, 09:39:48 AM
Sorry, don't know how to do edit2, i will need to talk to TLM.

I really don't know what would the problem be other than maybe something missed being modified like through the package manager, I really don't know but it works in firefox...
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 28, 2007, 03:15:36 PM
For now, I've been able to remove the small overview map in the bottom right box...
To do so, open /source/GoogleMaps.php and find this line:
map.addControl(new GOverviewMapControl(new GSize(200,150)));
Comment it out not to show it.
Bye,
PS
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 29, 2007, 05:19:12 AM
Here is an Italian translation by myself...

Modification.italian.php
$txt['googleMap'] = 'Mappa Utenti';
$txt['googleMappinned'] = 'Elenco Utenti';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Segnaposto';
$txt['googleMapGreenPinNG'] = 'Non specificato';
$txt['googleMapBluePin'] = 'Uomo';
$txt['googleMapRedPin'] = 'Donna';
$txt['googleMapPurplePin'] = 'Gruppo di segnaposto';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Clicka qui per posizionare il tuo segnaposto se non lo hai già fatto.</a>';
$txt['googleMapDisclaimer'] = 'Posiziona il tuo segnaposto quanto vicino ritieni sia necessario.';
$txt['cannot_googleMap_view'] = 'Spiacente, non sei abilitato a vedere la Mappa Utenti.';
$txt['permissionname_googleMap_view'] = 'Guarda la Mappa Utenti';
$txt['permissionhelp_googleMap_view'] = 'Abilita utenti a vedere la Mappa Utenti. Se non settato, gli utenti non vedranno la mappa.';
$txt['cannot_googleMap_place'] = 'Spiacente, non sei abilitato a posizionare un segnaposto sulla Mappa Utenti.';
$txt['permissionname_googleMap_place'] = 'Posiziona segnaposto sulla Mappa Utenti';
$txt['permissionhelp_googleMap_place'] = 'Abilita utenti a posizionare un segnaposto sulla Mappa Utenti. Se non settato, gli utenti non potranno posizionare segnaposti sulla mappa.';


ModSettings.italian.php
$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';


Who.italian.php
$txt['whoall_googlemap'] = 'Sta visualizzando <a href="' . $scripturl . '?action=googlemap">la Mappa Utenti</a>.';
$txt['whoall_.kml'] = 'Sta visualizzando un feed Google Earth.';


Bye,
PS
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 29, 2007, 08:23:14 AM
I took a pic of the error...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg80.imageshack.us%2Fimg80%2F4509%2Ferroregmsp5.th.jpg&hash=a308844c3974d19b060b30b08799842d99643d24) (http://img80.imageshack.us/my.php?image=erroregmsp5.jpg)

And here is a pic with FireFox (all OK):

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg341.imageshack.us%2Fimg341%2F7209%2Fokgmgi5.th.jpg&hash=1c4310815ac6a9dd529352d08de26607a7e8474a) (http://img341.imageshack.us/my.php?image=okgmgi5.jpg)

And I read all this 50 pages topic:
http://www.simplemachines.org/community/index.php?topic=61213.0
Without finding any solution...
But I found out that there are someone with the same problem of mine (page 59) still unsolved...
Can you please help me? The problem is I can't understand what file to search for error (if I go in line 81, I only get a blanc line)...
Bye,
PS
Title: Re: Google Member Map
Post by: brianjw on December 29, 2007, 11:26:50 AM
Could you translate the error message? :)
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 29, 2007, 01:25:22 PM
Sure I can! (I'm a dumb I didn't it in my previous post!)

Line: 81
Char: 17
Error: 'documentElement' is null or it isn't an object
Code: 0
URL: ...index.php?action=googlemap

Hoping this can help...
Bye,
SP
Title: Re: Google Member Map
Post by: brianjw on December 29, 2007, 01:28:00 PM
I am so sorry! I am unable to help you with this problem. If only Internet Explorer gave better error messages with more detail. It's weird you have these problems on your website because I've viewed many sites with my mod on it and also my own in IE7 which displays correctly.

Check http://demo.gamerzgarage.com/index.php?action=googlemap for example in IE7. It works...

brianjw
Title: Re: Google Member Map
Post by: rcmc_ronny on December 29, 2007, 05:45:57 PM
Hello,

first awesome mod :) thank you very much for that.

I have a problem, no pins are shown in the sidebar and on the map. There are pins set, the langt and lat. are in the database correctly set.

i get the following errors in the error_log:

8: Undefined variable: last
File: /var/www/---hide---/GoogleMap.template.php (eval?)
Row: 495

8: Undefined variable: first
File: /var/www/---hide---/GoogleMap.template.php (eval?)
Row: 492

Could you give me a hint on this ?

I habe SMF 1.1. RC2 running ...

Ronny
Title: Re: Google Member Map
Post by: brianjw on December 29, 2007, 09:10:51 PM
I would recommend updating your forum to 1.1.4 because:
1.) It has better security and bug fixes.
2.) This mod allows for all versions to be installed however, I only support the 3 versions such as 1.1.2, 1.1.3, and 1.1.4 because I don't have any forums running 1.1 RC2.

There must have been an error in the installation, please check to make sure that all fields have been installed by unzipping GoogleMap.zip and upload add_settings.php to your fourm directory (/smf or public_html --- whatever smf is located in). Then go to http://www.yoursite.com/smf/add_settings.php (your path to smf) and run it in your browser. Then make sure your pin in Google Maps is correct by making a new pin. Make sure when entering your sites address it is only entered as "http://www.yoursite.com/smf/" (nothing else/ just your path to smf and the trailing "/")

Please verify all the things I stated and this might also help other people who have been having problems with their map. Please verify the API pin is as I entered and your database settings are completely uploaded.

And one more thing for everyone to hear:
While asking for support, please always include a link to your website for me to view. If permissions don't allow guests to view the member map  - then pm with test account info.

brianjw
Title: Re: Google Member Map
Post by: rcmc_ronny on December 30, 2007, 07:25:48 AM
hi,

Ok, thank you for your response. I will first upgrade to 1.1.4 and then i will check, if all things work, if not i will chekc the installation and if all goes wrong i will post once more :)

ron
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 30, 2007, 07:28:45 AM
I've found exactly where the error is:

var markers = xmlDoc.documentElement.getElementsByTagName("marker");

I tried this:

var markers = xmlDoc.getElementsByTagName("marker");

The error message doesn't come up, but it still not display member's list nor the pins in IE, in FF it all remains OK...

Can you please try to solve that?
Bye,
PS
Title: Re: Google Member Map
Post by: fals on December 30, 2007, 01:34:47 PM
Quote from: brianjw on December 16, 2007, 07:37:33 PM
Quote from: fals on December 16, 2007, 04:37:48 PM
I would love to have the "mousewheel zoom" function included..... used on http://maps.google.dk/maps (http://maps.google.dk/maps)
I have not read anything in the google map docs with this feature, allthough the map you linked to does have "mousewheel zoom", I will get in touch with google about this...

I have finally found a way to do this, works best in Internet Explorer though.

Mousewheel Zoom

Open:
Sources/Googlemaps.php

Find:
function MakeMap() { // Globals. //Icon(s), and if gender is enabled, php will allow those to be defined.
Above, add:
function cancelscroll() { window.event.returnValue = false; window.event.cancelBubble = true; }
Find:
map.addControl(new GMapTypeControl());
Below, add:
map.enableScrollWheelZoom(); map.enableContinuousZoom();

Open:
Templates/default/GoogleMap.template.php

Find:
<div id="map"

After, add:
onmousewheel="cancelscroll()"

Example on http://www.fg-forum.dk/smf/index.php?action=googlemap (http://www.fg-forum.dk/smf/index.php?action=googlemap)
In firefox/mozilla browsers, the entire page will scroll along, i have not found a working fix for this yet
Title: Re: Google Member Map
Post by: brianjw on December 30, 2007, 04:39:15 PM
@CrazyHorse80: Sorry, I can't understand why it is doing that...
Please PM me with a link and a test account so I can see it for myself.

Thanks,
brianjw
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 30, 2007, 05:58:55 PM
I sent you a PM... It has no object (me dumb...  O:) )
Bye,
PS
Title: Re: Google Member Map
Post by: CrazyHorse80 on December 31, 2007, 08:46:17 AM
Problem solved... I dunno how, it started to work by its own...
It's very very strange, 'cause I always empty browser cache, cookies and all temp files every time I tried something new...
Bye,
PS
Title: Re: Google Member Map
Post by: brianjw on December 31, 2007, 09:13:34 AM
Hmmm, well I am glad you got it solved. Now that I think about it, it was probably Googles side of the map. (not the mod)

brianjw
Title: Re: Google Member Map
Post by: zepfms on January 03, 2008, 10:24:49 AM
I would like to share with you my Greek translation

Add the following code to Themes/default/languages/Modifications.greek-utf8.php
Edit in utf-8 encoding

// GOOGLE MAP Greek Translation by zepfms v0.1
$txt['googleMap'] = 'Χάρτης Μελών';
$txt['googleMappinned'] = 'Καταχωρημένα Μέλη';
$txt['googleMapc'] = 'Χάρτης Μελών Mod από τον <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Μέλος';
$txt['googleMapGreenPinNG'] = 'Αγνώστου φύλου';
$txt['googleMapBluePin'] = 'Άνδρας';
$txt['googleMapRedPin'] = 'Γυναίκα';
$txt['googleMapPurplePin'] = 'Σύνολο Μελών';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Πατήστε εδώ για να προσθέσετε την τοποθεσία σας αν δεν το έχετε κάνει ήδη.</a>';
$txt['googleMapDisclaimer'] = 'Διαλέξτε το σημείο όσο κοντα θελετε απο την πραγματική τοποθεσία.';
$txt['cannot_googleMap_view'] = 'Συγνώμη, δεν έχετε το δικαίωμα να δείτε τον Χάρτη Μελλών.';
$txt['permissionname_googleMap_view'] = 'Δείτε τον Χάρτη Μελών';
$txt['permissionhelp_googleMap_view'] = 'Κάντε τον Χάρτη Μελών ορατό στους χρήστες. Αν δεν επιλεχθεί, ο χαρτης δεν θα είναι ορατος στους χρήστες.';
$txt['cannot_googleMap_place'] = 'Συγνώμη , δεν έχετε το δικαίωμα να προσθέσετε τοποθεσία';
$txt['permissionname_googleMap_place'] = 'Προσθέστε Τοποθεσία';
$txt['permissionhelp_googleMap_place'] = 'Μπορούν να προστεθούν τοποθεσίες. Αν δεν επιλεχθεί, δεν είναι δυνατόν να προστεθούν τοποθεσίες απο άλλους χρήστες.';
Title: Re: Google Member Map
Post by: brianjw on January 03, 2008, 11:07:39 AM
Thanks for sharing that! I will get a chance to develop the languages better in the mod and then add in the things you guys have translated. ;)
Title: Re: Google Member Map
Post by: zepfms on January 03, 2008, 11:13:52 AM
Im glad to help..


Can you plz help me with the following

When i select the Greek Language, I cannot see the "MEMBER MAP" option at the smf horizontal menu. I can see it only when i have the English Language selected.

I have edited Modifications.greek-utf8.php and ModSettings.greek-utf8.php
Title: Re: Google Member Map
Post by: brianjw on January 03, 2008, 11:57:15 AM
I'd have to look into why it's doing that. Have you also edited the other language files this mod modifies? I believe someone in this topic posted all the language files you have to modify...

brianjw
Title: Re: Google Member Map
Post by: zepfms on January 03, 2008, 12:36:13 PM
I see that the mod uses three language files that i have edit them already (Modification, ModSettenings & Who)

Menu options are generated from index.template.php

there i see the following


// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
</td>' , $current_action == 'googlemap' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


$txt['googleMap']=The name of the menu option


Can you tell me where/how do i enable the following options:

(googleMap_view)

$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';

I didnt find them anywhere
      
Title: Re: Google Member Map
Post by: brianjw on January 03, 2008, 12:47:06 PM
Go ahead and remove the ' , $txt['googleMap'] , ' from the index.template.php and just type Member Map or anything you wish.

You can enable/disable those options in the permissions for each membergroup.

brianjw
Title: Re: Google Member Map
Post by: zepfms on January 03, 2008, 01:32:23 PM
Sorry but i forgot that i m not using the default theme...  :P

I had to do some edits on the index.template.php on my themes dir


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Work out where we currently are.
if ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';


// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
</td>' , $current_action == 'googlemap' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';


Thanks and congratulations for your mod, it is very good!!
Title: Re: Google Member Map
Post by: Thamar on January 03, 2008, 04:32:16 PM
Is it possible to add extra locations?
Title: Re: Google Member Map
Post by: TEOC2 on January 03, 2008, 04:43:13 PM
Quote from: Thamar on January 03, 2008, 04:32:16 PM
Is it possible to add extra locations?

???
Title: Re: Google Member Map
Post by: Thamar on January 03, 2008, 04:54:17 PM
I mean, can I add pins for certain places in the world that might be of interest...
Title: Re: Google Member Map
Post by: brianjw on January 03, 2008, 05:49:53 PM
You can, it would take modification of the GoogleMap.php I think or the js file and to add pins, you have to find what kind of pin you want and the documentation here: http://code.google.com/apis/maps/index.html

brianjw
Title: Re: Google Member Map
Post by: dsanchez on January 03, 2008, 09:10:38 PM
Hello, first I want to thank for this great mod!

However, a couple of questions:

*How can I do to show the members names under the map?

*How can I change the default zoom for the member's profiles?

*How can I set the width to 100% so that the map can use the whole area of my container?

Thanks a lot!

David.
Title: Re: Google Member Map
Post by: brianjw on January 04, 2008, 08:14:44 AM
1.) I plan to make this an option for the next version.
2.) You would have to edit either Profile.php or Profile.template.php. I don't like putting a default zoom in profiles because it might encourage to put their exact pin right on there house and there are some "crazy people out there" (we can say)
3.) Someone in this topic has resized the member map, it was on page 1 and 2 i think...

brianjw
Title: Re: Google Member Map
Post by: dsanchez on January 04, 2008, 12:48:26 PM
Quote from: brianjw on January 04, 2008, 08:14:44 AM
2.) You would have to edit either Profile.php or Profile.template.php. I don't like putting a default zoom in profiles because it might encourage to put their exact pin right on there house and there are some "crazy people out there" (we can say)

Actually I would like to set by default a zoom 3 or 4 for the profile cause currently everytime someone put a pin on the map, then when you check his profile it shows like a zoom 10, you can see even the streets. But still don't find a way...
Title: Re: Google Member Map
Post by: dsanchez on January 04, 2008, 01:28:04 PM
Quote from: brianjw on January 04, 2008, 08:14:44 AM
3.) Someone in this topic has resized the member map, it was on page 1 and 2 i think...

I managed to make it :)
http://curefans.com/index.php?action=googlemap

I clean up a bit the code to make it tableless. I will put the code later.
Title: Re: Google Member Map
Post by: brianjw on January 04, 2008, 01:48:01 PM
After looking through the files, You could call ?action=googlemap;sa=.js in the profile.template.php but then it would look exactly like ?action=googlemap and have everyones pins on it...

But, I might have made something that allows you to do what you want... It will be the same zoom you set in the Features and Options >> Member Map.

Save the attached profilemap.js file to your /Sources/ directory. Then find and replace...

Open Profile.template.php
FIND

<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>

ADD AFTER

<script type="text/javascript" language="JavaScript" src="', $sourcedir, '/profilemap.js"></script>


Again, it is not tested and I am not sure IF it will work.
Title: Re: Google Member Map
Post by: dsanchez on January 04, 2008, 02:19:21 PM
Quote from: brianjw on January 04, 2008, 01:48:01 PM
But, I might have made something that allows you to do what you want... It will be the same zoom you set in the Features and Options >> Member Map.
is not tested and I am not sure IF it will work.

I tried this but unfortunately it does not work. I tested changing my location to any other city.

Attach two screenshots:

*The first one shows the map when I place the pin, looks OK :)
*The second is the map after I saved the changes. It shows too much detailed location :-[
Title: Re: Google Member Map
Post by: brianjw on January 04, 2008, 04:08:57 PM
I don't think that is considered too detailed. It's only detailed if you place your pin on the exact street or house you live on. Just keep it in the general vicinity and it will be ok. That would be fine (where your pin is)
Title: Re: Google Member Map
Post by: dsanchez on January 05, 2008, 05:57:00 PM
Quote from: brianjw on January 04, 2008, 04:08:57 PM
I don't think that is considered too detailed. It's only detailed if you place your pin on the exact street or house you live on.

Yes, I see your point. I just would like the zoom to be like 3 or 4 by default. I will take a look to see what can be changed. Thanks again!
Title: Re: Google Member Map
Post by: fiver on January 06, 2008, 10:44:38 PM
Hi brianjw,

I wonder is it possible to do this:

1. When members, who have not added a pin, click on "MEMBER MAP" tab, it takes them to their own profile and straight to the map/add pin section. (Perhaps with a message that says "You need to add your location pin before you can view other's pin" or "Please add your location pin before using MEMBER MAP.")

2. When members who have added the pin click on "MEMBER MAP" tab, then only it will take them to the map with all the pins.

This may be a "fairer" way for members who had added a pin, also it will encourage those who want to view other's location to add their location first.

Thanks.
Title: Re: Google Member Map
Post by: Omniverse on January 07, 2008, 12:05:03 AM
Went through and didn't see this listed...

Is it possible to change the color of the background for the pop up window?
The white doesn't work with the theme we use, but I'm not sure where to edit it.

Works great by the way, thanks for the update again . :)
Title: Re: Google Member Map
Post by: brianjw on January 07, 2008, 05:02:22 PM
fivearts, unfortunately that is not an easy function to do. It would take a rewrite of some of the permissions in the mod and would also take editing of every map file.

Omniverse, unfortunately (again) this is also a function of Google's side of the map. I am making a list of things I need to get to google and talk about although haven't had much time with the new year and holidays and such. You can however edit text colors and css inside of the popup.

To make a note to *everybody* using the map:

Anything inside of the map, is a function of Googles side and cannot be changed without them modifying their systems. Go ahead and post it anyway because I am making a list to talk to google about some things we'd like to see changed if they can.
Title: Re: Google Member Map
Post by: Omniverse on January 07, 2008, 05:07:34 PM
Ahh, ok.

Well then, changing the text it is. That's really the problem anyways, is that the text is unreadable on the white backgroud. I think our theme is overiding that bit. Not sure.

Where might the code be to edit for the text.... or more to the point, what code exactly? :)

Edit: I see its the links in the pop up that can't be seen. The rest is fine. You can't read a member name on the pop up for instance.
Title: Re: Google Member Map
Post by: brianjw on January 07, 2008, 06:37:07 PM
Hmmm, we will need to make a new css for the linked options then so your theme which obviously doesn't support it's colors doesn't mess up the link col

Currently, I am very busy with some work, I will see what I can do tomorrow to make it work like you want it.
Title: Re: Google Member Map
Post by: dsanchez on January 08, 2008, 05:53:57 PM
My googlemap working can be seen here

http://curefans.com/index.php?action=googlemap

Attach you will find the files I modified in order to make it look like that. There are modifications in "GoogleMap.template.php" to make it tableless and so that it fits all the the box container. In "GoogleMap.php" I just made a single modification so that usernames in the map are show one next to the another.

Finally, replace the following code in your "styles.css" file in your default Theme.

Quote

/* Google Maps */

#googlemap {
padding:4px;
}

#googlemapmain h3 {
font-size:1.3em;
margin:5px;
}

/*set dimensions of the map*/
#map {
width:100%;
height:500px;
}

.googleMaps {
color:#000;
}

.googleMapsSidebar {
color:#fff;
margin:5px;
overflow: auto;
}

.googleMapsLegend {
color:#fff;
margin:5px auto;:
overflow: auto;
text-align:center;
}

/* Google Maps Links */
a.googleMapsLink {
color:#000;
font-size: small;
}

Title: Re: Google Member Map
Post by: zepfms on January 09, 2008, 07:36:37 AM
Hello, can you please tell me what is clustering and how can i use it?

Thnx :)
Title: Re: Google Member Map
Post by: brianjw on January 09, 2008, 05:23:25 PM
Clustering allows big groups of pins in the same general location to appear as one pin [i think it is, if I remember correctly]. You can use it by enabling it in
[Admin Control Center>>Features and Options>>Member Map]

brianjw
Title: Re: Google Member Map
Post by: zepfms on January 10, 2008, 06:32:06 AM
Quote from: brianjw on January 09, 2008, 05:23:25 PM
Clustering allows big groups of pins in the same general location to appear as one pin [i think it is, if I remember correctly]. You can use it by enabling it in
[Admin Control Center>>Features and Options>>Member Map]

brianjw

I tried that without any luck  :(

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg135.imageshack.us%2Fimg135%2F4838%2Fscreenshotkz1.png&hash=73d5c0025e9aa758b5ebca876dd984dc8bd1c4e8)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg84.imageshack.us%2Fimg84%2F3792%2Fscreenshot1gm2.png&hash=4ad6eef105c8fd07793f32786c884bef7661875f)
Title: Re: Google Member Map
Post by: Paracelsus on January 10, 2008, 06:46:51 AM
Is it possible to automatically pin one's location through IP address? For example by using SMFs IP info?
Title: Re: Google Member Map
Post by: flow_ on January 10, 2008, 10:38:46 AM
if you get erros like: "Undefined index: googleSidebar"
->
googleSidebar isnt right defined in ModSeettings.php
changing
array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
to
array('select', 'googleSidebar', array('1', '2')),
solves the problem and also make the option usefull
1 = dont show sidebar
2 = show sidebar on the right side

ps:
but maybe it would be better to change the appropiate lines in
GoogleMap.template.php
to make things clearer
Title: Re: Google Member Map
Post by: brianjw on January 10, 2008, 05:23:09 PM
@zepfms: This is the same clusterer system that hasn't been changed from the previous versions of TLM. If it worked then, it should work now. You might have to change the number of pins per cluster to get it to work. I am not even familar if it works...

@Paracelsus: Why would you want a users pin to be displayed automatically through IP address? This would cause alot of things, like law suits against your website, and stalkers...

@flow_: Thanks for the tip, although I don't recommend setting it to 1 and 2 in ModSettings.php as it will make things hard to understand in the administration panel as I do recommend changing 1 and 2 to No Sidebar and Sidebar Right

I will be releasing a new version of 0.2 soon! :)

brianjw
Title: Re: Google Member Map
Post by: fiver on January 11, 2008, 01:22:17 AM
Hi brianjw,

I install it on another forum and tested successfully
Quote
Install Actions
Installations actions for "Google Member Map":
               Installing this package will perform the following actions:               
TypeActionDescription
1.Extract File./Sources/GoogleMap.php
2.Extract File./Themes/default/Clusterer2.js
3.Extract File./Themes/default/GoogleMap.template.php
4.Extract File./Themes/default/images/google_earth_feed.gif
5.Extract File./Themes/default/images/english/googlemap.gif
6.Extract File./Themes/default/images/german/googlemap.gif
7.Execute Codeadd_settings.php
8.Execute Modification./index.phpTest successful
9.Execute Modification./Sources/Load.phpTest successful
10.Execute Modification./Sources/ManagePermissions.phpTest successful
11.Execute Modification./Sources/ModSettings.phpTest successful
12.Execute Modification./Sources/Profile.phpTest successful
13.Execute Modification./Themes/default/style.cssTest successful
14.Execute Modification./Themes/default/index.template.phpTest successful
15.Execute Modification./Themes/default/Profile.template.phpTest successful
16.Execute Modification./Themes/default/languages/Modifications.english.phpTest successful
17.Execute Modification./Themes/default/languages/Modifications.german.phpSkipping file
18.Execute Modification./Themes/default/languages/ModSettings.english.phpTest successful
19.Execute Modification./Themes/default/languages/ModSettings.german.phpSkipping file
20.Execute Modification./Themes/default/languages/Who.english.phpTest successful
21.Execute Modification./Themes/default/languages/Who.german.phpSkipping file

After I click Install Now, next is a white page with these  lines:

Parse error:  syntax error, unexpected $end in /........./Packages/temp/add_settings.php on line 99
Title: Re: Google Member Map
Post by: teamvtec on January 11, 2008, 07:20:26 AM
I had the older version of this mod installed but after a fresh 1.1.4 install.
When i add your mod it installs fine and the member pins show up in their profile


but not here  http://www.civicvtec.org/forums/index.php?action=googlemap



Can you tell me what's wrong?
Title: Re: Google Member Map
Post by: CrazyHorse80 on January 11, 2008, 04:02:43 PM
Are you using IE?
Title: Re: Google Member Map
Post by: brianjw on January 11, 2008, 05:39:55 PM
@fivearts: That is strange and the only thing it could be is your forum. The package hasn't been changed in anyway since the first release so it could only be your test forum.

@teamvtec: It should work, nothing php code wise has been changed except for a few bugfixes and the Sidebar Right added since TLM's versions. The link isn't valuable because guests can't see the member map. ;)

Also, none of this should have to do with what browser you're using. I have both the latest versions of IE and FF and both work great with the member Map.

brianjw
Title: Re: Google Member Map
Post by: Klabautermann on January 12, 2008, 07:18:04 AM
I installed the mod, at the point Modsettings.php I got a error. So I modified the modsettings.php by myself, and now I get this error when trying to access the options in the admin backend:

Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /www/htdocs/tinyso/Sources/ModSettings.php:387) in /www/htdocs/tinyso/Sources/ModSettings.php on line 427

Any ideas?
Title: Re: Google Member Map
Post by: Paracelsus on January 12, 2008, 11:53:14 AM
Quote from: Klabautermann on January 12, 2008, 07:18:04 AM
I installed the mod, at the point Modsettings.php I got a error. So I modified the modsettings.php by myself, and now I get this error when trying to access the options in the admin backend:

Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /www/htdocs/tinyso/Sources/ModSettings.php:387) in /www/htdocs/tinyso/Sources/ModSettings.php on line 427

Any ideas?

I also made something similar, because I thought ModSettings.php install had failed, but apparently just a part of it failed. You have most likely the same thing declared twice and you have to erase one of them.
Title: Re: Google Member Map
Post by: Klabautermann on January 12, 2008, 12:01:43 PM
Ah Paracelsus, that was it! Thx
Title: Re: Google Member Map
Post by: Klabautermann on January 12, 2008, 12:16:27 PM
I have enabled the mod, and in the user settings i can point on the map where i live. But where can i find the map where all users are shown??
Title: Re: Google Member Map
Post by: lbuisson on January 12, 2008, 12:49:54 PM
dear all,

I installed well (without error) google map mod

but In smf default theme or personnal theme admin I can't find googlemap settings...

Somebody can help me?
Title: Re: Google Member Map
Post by: lbuisson on January 12, 2008, 01:45:20 PM
Ok I see the problem

it is because it is not translate in French then I will do it

if you want I will can give you french translation?
Title: Re: Google Member Map
Post by: TheDel on January 12, 2008, 01:53:07 PM
OK my turn-
I went in and used the parser for this and I get the following in ModSettings

Parse error: syntax error, unexpected ';', expecting ')' in /home/type1par/public_html/Sources/ModSettings.php on line 451

I cant seem to find but heres my file
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
        die(
'Hacking attempt...');

/*        This file is here to make it easier for installed mods to have settings
        and options.  It uses the following functions:

        void ModifyFeatureSettings()
                // !!!

        void ModifyFeatureSettings2()
                // !!!

        void ModifyBasicSettings()
                // !!!

        void ModifyLayoutSettings()
                // !!!

        void ModifyKarmaSettings()
                // !!!

        Adding new settings to the $modSettings array:
        ---------------------------------------------------------------------------
// !!!
*/

/*        Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
                array('check', 'nameInModSettingsAndSQL'),

           And for a text box:
                array('text', 'nameInModSettingsAndSQL')
           (NOTE: You have to add an entry for this at the bottom!)

           In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
           and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

        Here's a quick explanation of how to add a new item:

         * A text input box.  For textual values.
        ie.        array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
                        &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A text input box.  For numerical values.
        ie.        array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
                        &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A text input box.  For floating point values.
        ie.        array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
                        &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
        ie.        array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
                        &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A check box.  Either one or zero. (boolean)
        ie.        array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
                        'OptionalReferenceToHelpAdmin'),

         * A selection box.  Used for the selection of something from a list.
        ie.        array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
                        &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
        Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

         * A password input box. Used for passwords, no less!
        ie.        array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
                        &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

        For each option:
                type (see above), variable name, size/possible values, description, helptext.
        OR        make type 'rule' for an empty string for a horizontal rule.
        OR        make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
        global 
$context$txt$scripturl$modSettings$sourcedir;

        
// You need to be an admin to edit settings!
        
isAllowedTo('admin_forum');

        
// All the admin bar, to make it right.
        
adminIndex('edit_mods_settings');
        
loadLanguage('Help');
        
loadLanguage('ModSettings');

        
// Will need the utility functions from here.
        
require_once($sourcedir '/ManageServer.php');

        
$context['page_title'] = $txt['modSettings_title'];
        
$context['sub_template'] = 'show_settings';

        
$subActions = array(
                
'actions' => 'ModifyActionSettings',
                
'invite' => 'ModifyInviteSettings',
                
'basic' => 'ModifyBasicSettings',
                
'layout' => 'ModifyLayoutSettings',
'googlemap' => 'ModifyGoogleMapSettings',

                
'karma' => 'ModifyKarmaSettings',
                
'googlebot' => 'ModifyGooglebotSettings',
                
'profile' => 'ModifyProfileSettings',
        );

        
// By default do the basic settings.
        
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
        
$context['sub_action'] = $_REQUEST['sa'];

        
loadLanguage('CustomProfile');
        
// Load up all the tabs...
        
$context['admin_tabs'] = array(
                
'title' => &$txt['modSettings_title'],
                
'help' => 'modsettings',
                
'description' => $txt['smf3'],
                
'tabs' => array(
                        
'basic' => array(
                                
'title' => $txt['mods_cat_features'],
                                
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
                        ),
                        
'actions' => array(
                                
'title' => 'Custom Actions',
                                
'href' => $scripturl '?action=featuresettings;sa=actions;sesc=' $context['session_id'],
                        ),
                        
'layout' => array(
                                
'title' => $txt['mods_cat_layout'],
                                
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
                        ),
                        
'profile' => array(
                                
'title' => $txt['cp_cpfields'],
                                
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
                        ),

                        
'invite' => array(
                                
'title' => $txt['invite_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=invite;sesc=' $context['session_id'],
                        ),
                        
'googlebot' => array(
                                
'title' => $txt['ob_googlebot_modname'],
                                
'href' => $scripturl '?action=featuresettings;sa=googlebot;sesc=' $context['session_id'],
                        ),
'googlemap' => array( 'title' => $txt['googleMapFO'], 'href' => $scripturl '?action=featuresettings;sa=googlemap;sesc=' $context['session_id'], ),

                        
'karma' => array(
                                
'title' => $txt['smf293'],
                                
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
                                
'is_last' => true,
                        ),
                ),
        );

        
// Select the right tab based on the sub action.
        
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
                
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

        
// Call the right function for this sub-acton.
        
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
        global 
$context$txt$scripturl$modSettings$sourcedir;

        
isAllowedTo('admin_forum');
        
loadLanguage('ModSettings');

        
// Quick session check...
        
checkSession();

        require_once(
$sourcedir '/ManageServer.php');

        
$subActions = array(
                
'actions' => 'ModifyActionSettings',
                
'invite' => 'ModifyInviteSettings',
                
'basic' => 'ModifyBasicSettings',
                
'layout' => 'ModifyLayoutSettings',
                
'karma' => 'ModifyKarmaSettings',
'googlemap' => 'ModifyGoogleMapSettings',

                
'profile' => 'ModifyProfileSettings',
        );

        
// Default to core (I assume)
        
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

        
// Actually call the saving function.
        
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
        global 
$txt$scripturl$context$settings$sc$modSettings;

        
$config_vars = array(
                        
// Big Options... polls, sticky, bbc....
                        
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
                
'',
                        
// Basic stuff, user languages, titles, flash, permissions...
                        
array('check''allow_guestAccess'),
                        array(
'check''userLanguage'),
                        array(
'check''allow_editDisplayName'),
                        array(
'check''allow_hideOnline'),
                        array(
'check''allow_hideEmail'),
                        array(
'check''guest_hideContacts'),
                        array(
'check''titlesEnable'),
                        array(
'check''enable_buddylist'),
                        array(
'text''default_personalText'),
                        array(
'int''max_signatureLength'),
                
'',
                        
// Stats, compression, cookies.... server type stuff.
                        
array('text''time_format'),
                        array(
'select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
                        array(
'float''time_offset'),
                        array(
'int''failed_login_threshold'),
                        array(
'int''lastActive'),
                        array(
'check''trackStats'),
                        array(
'check''hitStats'),
                        array(
'check''enableErrorLogging'),
                        array(
'check''securityDisable'),
                
'',
                        
// Reactive on email, and approve on delete
                        
array('check''send_validation_onChange'),
                        array(
'check''approveAccountDeletion'),
                
'',
                        
// Option-ish things... miscellaneous sorta.
                        
array('check''allow_disableAnnounce'),
                        array(
'check''disallow_sendBody'),
                        array(
'check''modlog_enabled'),
                        array(
'check''queryless_urls'),
                
'',
                        
// Width/Height image reduction.
                        
array('int''max_image_width'),
                        array(
'int''max_image_height'),
                
'',
                        
// Reporting of personal messages?
                        
array('check''enableReportPM'),
        );

        
// Saving?
        
if (isset($_GET['save']))
        {
                
// Fix PM settings.
                
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
                
$save_vars $config_vars;
                
$save_vars[] = array('text''pm_spam_settings');

                
saveDBSettings($save_vars);

                
writeLog();
                
redirectexit('action=featuresettings;sa=basic');
        }

        
// Hack for PM spam settings.
        
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
        
$config_vars[] = array('int''max_pm_recipients');
        
$config_vars[] = array('int''pm_posts_verification');
        
$config_vars[] = array('int''pm_posts_per_hour');

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
        
$context['settings_title'] = $txt['mods_cat_features'];

        
prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
        global 
$txt$scripturl$context$settings$sc;

        
$config_vars = array(
                        
// Compact pages?
                        
array('check''compactTopicPagesEnable'),
                        array(
'int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
                
'',
                        
// Stuff that just is everywhere - today, search, online, etc.
                        
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
                        array(
'check''topbottomEnable'),
                        array(
'check''onlineEnable'),
                        array(
'check''enableVBStyleLogin'),
                
'',
                        
// Pagination stuff.
                        
array('int''defaultMaxMembers'),
                
'',
                        
// This is like debugging sorta.
                        
array('check''timeLoadPageEnable'),
                        array(
'check''disableHostnameLookup'),
                
'',
                        
// Who's online.
                        
array('check''who_enabled'),
                
'',
                        
// What messages to display when the user's postcount is 0
                        
array('text''PostCountWarningMessageTitle'),
                        array(
'text''PostCountWarningMessage'),
                        array(
'int''MinReqPostCount'),
                
'',
                        array(
'text''PostCountWarningBorderColor'),
                        array(
'text''PostCountWarningBackgroundColor'),
                        array(
'text''PostCountWarningTextColor'),

        );

        
// Saving?
        
if (isset($_GET['save']))
        {
                
saveDBSettings($config_vars);
                
redirectexit('action=featuresettings;sa=layout');

                
loadUserSettings();
                
writeLog();
        }

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
        
$context['settings_title'] = $txt['mods_cat_layout'];

        
prepareDBSettingContext($config_vars);
}

// Invite MOD
function ModifyInviteSettings()
{
        global 
$sourcedir;
        require_once(
$sourcedir '/Invite.php');
        
InviteSettings();
}


function 
ModifyProfileSettings()
{
        global 
$sourcedir;
        require_once(
$sourcedir '/CustomProfile.php');
        
CustomFieldSettings();
}

function 
ModifyKarmaSettings()
{
        global 
$txt$scripturl$context$settings$sc;

        
$config_vars = array(
                        
// Karma - On or off?
                        
array('select''karmaMode'explode('|'$txt['smf64'])),

                        array(
'check''karmadescmod'),
                        array(
'int''karmamaxmembers'),
                        array(
'check''karmalogview'),
                        array(
'check''karmapermiss'),
                        array(
'check''karmalinks'),
                        array(
'check''karmaisowner'),
                        array(
'check''karmakarma'),
                        array(
'check''karmaurl'),
                        array(
'check''karmaotherstat'),
                        array(
'check''karmasurv'),
                        array(
'text''karmawhatwrite'36),
                        array(
'check''karmacensor'),
                        array(
'check''karmatopicstarter'),
                        array(
'check''karmanotifier'),
                        array(
'int''karmaidmember'),
                        array(
'check''karma_pm_send_link'),
                        array(
'check''karma_pm_send_desc'),
                        array(
'check''karma_pm_send_changelink'),
                        array(
'text''karmacantmodify'36),
                        array(
'text''karmacantmodify2'36),

                
'',
                        
// Who can do it.... and who is restricted by time limits?
                        
array('int''karmaMinPosts'),
                        array(
'float''karmaWaitTime'),
                        array(
'check''karmaTimeRestrictAdmins'),
                
'',
                        
// What does it look like?  [smite]?
                        
array('text''karmaLabel'),
                        array(
'text''karmaApplaudLabel'),
                        array(
'text''karmaSmiteLabel'),
        );

        
// Saving?
        
if (isset($_GET['save']))
        {
                
saveDBSettings($config_vars);
                
redirectexit('action=featuresettings;sa=karma');
        }

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
        
$context['settings_title'] = $txt['smf293'];

        
prepareDBSettingContext($config_vars);
}

function 
ModifyGooglebotSettings()
{
        global 
$txt$scripturl$context$settings$sc;

        
$config_vars = array(
                        
// Count all instances of spiders?
                        
array('check''ob_googlebot_count_all_instances'),
                        array(
'check''ob_googlebot_display_all_instances'),
                        array(
'check''ob_googlebot_display_agent'),
                        array(
'check''ob_googlebot_display_own_list'),
                
'',
                        
// Count spiders on most online?
                        
array('check''ob_googlebot_count_most_online'),
                
'',
                        
// Redirect PHPSESSID URLs?
                        
array('check''ob_googlebot_redirect_phpsessid'),
        );

        
// Saving?
        
if (isset($_GET['save']))
        {
                
saveDBSettings($config_vars);
                
redirectexit('action=featuresettings;sa=googlebot');
        }

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlebot';
        
$context['settings_title'] = $txt['ob_googlebot_modname'];

        
prepareDBSettingContext($config_vars);
}


function 
ModifyActionSettings()
{
        global 
$sourcedir;
        require_once(
$sourcedir '/CustomAction.php');
        
CustomActionSettings();
}


function 
ModifyGoogleMapSettings()
{
global $txt$scripturl$context$settings$sc;
 
$config_vars = array(
// Map - On or off?
array('check''googleMapsEnable'),
array('check''googleMapsEnableLegend'),
'',
// Key, pins static/gender/membergroup
array('text''googleMapsKey'),
array('check''googleMapsPinGender'),
array('int''googleMapsPinNumber'),
            array(
'select''googleMapsType', array('G_NORMAL_MAP' => 'Map''G_SATELLITE_MAP' => 'Satellite''G_HYBRID_MAP' => 'Hybrid')),
            array(
'select''googleSidebar', array('No Sidebar''Sidebar Right')),
        
'',
            
// Default Location/Zoom
            
array('float''googleMapsDefaultLat''25'),
            array(
'float''googleMapsDefaultLong''25'),
            array(
'int''googleMapsDefaultZoom'),
        
'',
            
// Clustering Options
            
array('check''googleMapsEnableClusterer'),
            array(
'int''googleMapsMinMarkerCluster'),
            array(
'int''googleMapsMaxVisMarker'),
            array(
'int''googleMapsMaxNumClusters'),
            array(
'int''googleMapsMaxLinesCluster'),
            
);
 
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlemap');
}
 
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlemap';
$context['settings_title'] = $txt['googleMapFO'];
 
prepareDBSettingContext($config_vars);
}

?>








line 451 seems to be this one
{
global $txt, $scripturl, $context, $settings, $sc;

Thanks in advance- sooooooooo happy to see the ball picked up on this mod!
Title: Re: Google Member Map
Post by: lbuisson on January 12, 2008, 03:10:59 PM
Hi again

I just finish to translate in french google map mod : http://www.polaris-site.com/forum/index.php?action=googlemap

But I don't find where to translate page title "Member Map"

And another thing is for legend :

how can Hi change colors of background? (don't whant white)

Title: Re: Google Member Map
Post by: TheDel on January 13, 2008, 01:10:49 AM
Ok
fixed my issue-
when I pasted from the parser, it didnt separate the lines so everything was on one line-

split it down and BANG...Mod worked!

Awesome job Brian

(PS- the is a typo in modsetting.english  one of the "defaults" has the a and u reversed)
Title: Re: Google Member Map
Post by: Klabautermann on January 13, 2008, 10:42:17 AM
One Problem. Till this morning everything has worked fine (only ä ö ü are not working). Users filled out the map, fine. Then I installed the "    Location on Member List" Mod. Now nobody of my users can see the pins on the googlemap. I (the admin) see all of them. Only in their profile they will see the pin, but none are shown on the map. What' wrong?
Title: Re: Google Member Map
Post by: brianjw on January 13, 2008, 02:19:59 PM
The Member Map Settings should be in Features and Options in the admin panel. If it's not there, you need to add the text strings to the language you're using.

Go ahead and post any languages you may make as I will add them in future versions.

You can find the Member Map at /index.php?action=googlemap
It should display a link in the default theme, if not there was an error with install. You just need to manually add a googlemap button on the top of your theme.

If you can see the pins there really should be no problem but if your users cannot see them that is just really weird. You might want to answer/do some of the following:
- Did you install any other mods BEFORE it stopped working to your users? If so, which ones?
- Are permissions correctly set?
- Are there any errors in your error log (i know there are) but is there any relating to this issue of some kind?

TheDel, I will look into it, Thanks :)
Title: Re: Google Member Map
Post by: Klabautermann on January 13, 2008, 02:29:38 PM
Hello brianjw, thanks for your answer. I installed "Location on Member List", than it stoped working for my members, the Global Moderator still sees it.

Permissions are checked, looks good (was my first suggestion)

This is the error log when a normal user klicks on the googlemap:

Apply Filter: Only show the error messages of this member  Clausewitz       Today at 20:27:01
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap;sa=.xml
Apply Filter: Only show the errors with the same message
8: Undefined offset: 2
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:27:01
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap;sa=.xml
Apply Filter: Only show the errors with the same message
8: Undefined offset: 1
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:59
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap;sa=.js
Apply Filter: Only show the errors with the same message
8: Undefined offset: 2
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:59
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap;sa=.js
Apply Filter: Only show the errors with the same message
8: Undefined offset: 1
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:53
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined index: rightpanel
File: /www/htdocs/tinyso/Themes/default/GoogleMap.template.php (eval?)
Line: 737
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:53
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined index: host
File: /www/htdocs/tinyso/Sources/Subs.php
Line: 2410
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:53
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined offset: 2
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
   
Apply Filter: Only show the error messages of this member Clausewitz    Today at 20:26:53
Apply Filter: Only show the error messages of this IP address 217.231.52.28      Apply Filter: Only show the error messages of this session a64d422134d778c5e4a82fdbfe32e818
Apply Filter: Only show the error messages of this URL http://www.tiny-soldiers.com/index.php?action=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined offset: 1
File: /www/htdocs/tinyso/Themes/callisto114/languages/ThemeStrings.english.php (eval?)
Line: 72
Title: Re: Google Member Map
Post by: brianjw on January 13, 2008, 02:35:31 PM
Ok, then try uninstalling that mod and try to see if your members can see it then. I really don't think any of those error entries would have anything to do with it not being viewable.
Title: Re: Google Member Map
Post by: Klabautermann on January 13, 2008, 03:20:06 PM
Uninstalled the mod and tried it again. does not work, Then I opend Opera browser and the googlemap page, Pins are there. Back to IE 6, nothing, Firefox works also. Whats wrong?!?
Title: Re: Google Member Map
Post by: CrazyHorse80 on January 13, 2008, 04:52:49 PM
Quote from: Klabautermann on January 13, 2008, 03:20:06 PM
Uninstalled the mod and tried it again. does not work, Then I opend Opera browser and the googlemap page, Pins are there. Back to IE 6, nothing, Firefox works also. Whats wrong?!?

I had the same problem... I still can't say why, but it now works again...
Bye,
PS
Title: Re: Google Member Map
Post by: Aileen on January 14, 2008, 08:46:00 AM
This isone of the best mods Ive seen in the community

BTW Is there a way to hide the admins and global moderators on the map?
Title: Re: Google Member Map
Post by: brianjw on January 14, 2008, 03:59:37 PM
The only way there is at the time is to just tell them not to post their pins. Unless of course you wanted them to only display to you, the admin. However, that is beyond my knowledge of my mod.
Title: Re: Google Member Map
Post by: Yngwiedis on January 15, 2008, 11:25:15 AM
Hello...

I am trying to change the colors of the link inside the white bubble from style.css of the theme i use, but is not seems to work.
Any suggestions ?

Thank you...
Title: Re: Google Member Map
Post by: généralbol on January 15, 2008, 06:21:04 PM
Hello, I am a french user, I have just downloader the modification of Brianjw, thank you ... after having changed my chmod .. no problemo ...

Unfortunathy, I have no icon in my toolbar in SMF ...
I dont khow why ...
Thank you for yoour help and Happy new year  ;)

Thierry ...

My forum is about pizzaiolo !!!
Title: Re: Google Member Map
Post by: brianjw on January 15, 2008, 06:25:35 PM
Are you using the default theme?
Are you using English on your forum or have translated the strings and added it to your Modifications.french.php or other languages?

Link colors, will change depending on your theme.
Title: Re: Google Member Map
Post by: Bluey on January 16, 2008, 12:31:35 AM
Hi

This is a great mod but I have a little problem.  I place my pin in my profile and it saves and shows ok in the profile  but it does not show in the member map.

Update

In my error logs I get this error

8: Undefined index: googleMap
File: /home/uams1/public_html/SMF/Sources/GoogleMap.php
Line: 301

When I open the file in note pad  line 301 is the blank line after  $marker['googleMap']['longitude'] . '" ';

// Lets bring it all together...
            $markers = '<marker lat="' . $marker['googleMap']['latitude'] . '" lng="' . $marker['googleMap']['longitude'] . '" ';

            if ($marker['gender']['name'] == $txt[238]) {
               $markers = $markers . 'gender="1"';
            } elseif ($marker['gender']['name'] == $txt[239]) {
               $markers = $markers . 'gender="2"';
            } else {
               $markers = $markers . 'gender="0"';
            }

            $markers = $markers . ' label="' . $marker['name'] . '" html="'. $datablurb . '" />';

            echo $markers;
Title: Re: Google Member Map
Post by: Yngwiedis on January 16, 2008, 08:47:42 AM
Quote from: Yngwiedis on January 15, 2008, 11:25:15 AM
Hello...

I am trying to change the colors of the link inside the white bubble from style.css of the theme i use, but is not seems to work.
Any suggestions ?

Thank you...

Is there any help for the above ?
Title: Re: Google Member Map
Post by: brianjw on January 16, 2008, 04:45:23 PM
Bluey, I am starting to wonder... I think this might be Google because many people have had this problem, many people havent and many people have and it fixed itself. I am unable to give support for this currently but I will talk to Google. That error shouldn't affect anything.

Yngwiedis, your links will change depending on your themes link color. I will look for a way to bypass your themes link color and to make it another color if that is what you want?
Title: Re: Google Member Map
Post by: généralbol on January 16, 2008, 06:11:01 PM
Quote from: brianjw on January 15, 2008, 06:25:35 PM
Are you using the default theme?

My thème is Babylon - SMF 1.1.2 - My site is http://www.europe-pizza.fr/forum/index.php


Are you using English on your forum or have translated the strings and added it to your Modifications.french.php or other languages?

My forum is french langage, and, I did not to change language for moment ...


Link colors, will change depending on your theme.

T
Title: Re: Google Member Map
Post by: brianjw on January 16, 2008, 07:00:47 PM
Ok, well you will need to manually edit /Themes/babylon/index.template.php to include a Member Map link...
Title: Re: Google Member Map
Post by: dry3210 on January 16, 2008, 10:14:18 PM
I've changed the colors in the style.css but it doesn't seem to actually change the colors on the map

Any ideas?
Title: Re: Google Member Map
Post by: Yngwiedis on January 17, 2008, 07:15:15 AM
Quote from: brianjw on January 16, 2008, 04:45:23 PM
Bluey, I am starting to wonder... I think this might be Google because many people have had this problem, many people havent and many people have and it fixed itself. I am unable to give support for this currently but I will talk to Google. That error shouldn't affect anything.

Yngwiedis, your links will change depending on your themes link color. I will look for a way to bypass your themes link color and to make it another color if that is what you want?

Yes. This is exactly what i want :)
Title: Re: Google Member Map
Post by: Bluey on January 17, 2008, 07:17:27 PM
I have fixed my problem.  I loaded and uninstalled it originally but this did not take away some of the settings. When I used the package parser to have a look at the files there were two identical entries for the code. I deleted one set and eveything is working fine. I have my pins up and showing and all is well. I love this mod
Title: Re: Google Member Map
Post by: brianjw on January 17, 2008, 08:35:20 PM
@Bluey: Was the code that caused the problem there by default in the current, latest package?

Could you please post what line of code you removed if this is in fact the case?

@Yngwiedis: I am going to begin working on this. I should hopefully have something for you by tomorrow...

@ALL:: I will be releasing a new version, maybe tomorrow, the next day, or just soon in general. The fixes will be some of the things you guys reported and some of the things Google has responded to. Please give me any suggestions to send to google if you would like to see it in your map and I will see what I can do to get out to them. I will be creating an Upgrade package so you don't have to uninstall and install the new version...

Thanks,
brianjw
Title: Re: Google Member Map
Post by: Bluey on January 19, 2008, 02:19:49 AM
Sorry but I didn't keep the code just deleted it.  They were just duplicate entries of the code in the package caused I presume by me uninstalling and reinstalling.  They were in just about every file the package updated
Title: Re: Google Member Map
Post by: brianjw on January 18, 2008, 07:27:29 PM
Do you remember what the code was?
Title: Re: Google Member Map
Post by: brianjw on January 19, 2008, 05:11:23 PM
Due to the recent server crashes with SMF, some people may have not been able to download the mod or view the screenshots. This is all fixed now. :)

brianjw
Title: Re: Google Member Map
Post by: Bluey on January 19, 2008, 06:19:51 PM
It was just the code in the package duplicated. For example where the package had this code

'googleMap' => array(
         'latitude' => $profile['latitude'],
         'longitude' => $profile['longitude'],
      ),

I had this

'googleMap' => array(
         'latitude' => $profile['latitude'],
         'longitude' => $profile['longitude'],
      ),
'googleMap' => array(
         'latitude' => $profile['latitude'],
         'longitude' => $profile['longitude'],
      ),
Title: Re: Google Member Map
Post by: brianjw on January 19, 2008, 08:19:08 PM
OK, so it's just your website duplicating it...
Title: Re: Google Member Map
Post by: teamvtec on January 19, 2008, 08:51:50 PM
Hi Brain, i had another go at installing this mod.
deleted everything that had to do with the mod in the datbase etc.

Installed fine, had to manual input changes in custom index.template.php
but it's still not showing member pins and my browser is giving me an error:

Rule:81
Token:17
Error: 'documentElement' is empty or not a object
Code: 0
URL: http://www.civicvtec.org/forums/index.php?action=googlemap

Could you take a look? ;)



Edit: I just tried the link in Firefox and it displays a member link with pin.
so it's a IE7 problem??
Title: Re: Google Member Map
Post by: Bluey on January 19, 2008, 08:58:23 PM
Quote from: brianjw on January 19, 2008, 08:19:08 PM
OK, so it's just your website duplicating it...

Yes I think so but when I unistalled it shouldn't have removed the code
Title: Re: Google Member Map
Post by: Yngwiedis on January 22, 2008, 04:38:26 AM
Quote from: brianjw on January 17, 2008, 08:35:20 PM

@Yngwiedis: I am going to begin working on this. I should hopefully have something for you by tomorrow...


Any news about that ?
Title: Re: Google Member Map
Post by: brianjw on January 22, 2008, 04:38:12 PM
Sorry. Haven't gotten around to finishing it. I am working on it right now... Later tonight you should have something... (if it works like I  think it should :))
Title: Re: Google Member Map
Post by: Bluey on January 23, 2008, 03:58:26 PM
Hi Brian

As an idea for future upgrades could you please think about having a setting for your default location on the Profile page.  I have set my default location on the Map page and that works fine but as nearly all my members will be from Australia it would be good to default to a local area when they are trying to first set thier pin rather than having to zoom in which seems to confuse some people.

Also it would be good to have a help text for user on how to use the map. If they haven't seen Googlemaps be fore they can struggle
Title: Re: Google Member Map
Post by: brianjw on January 23, 2008, 04:37:11 PM
If I can catch TLM, I will ask him if it is possible to do that with the profile. The help part would be easy to do and I will release an update sometime this week hopefully.

And again! I am sorry Yngwiedis... I have been so busy with work lately I just haven't had time to be much online at the moment. I am going to try to get this to you tonight...
Title: Re: Google Member Map
Post by: myswag on January 23, 2008, 09:09:46 PM
brianjw,

Great mod, now I just need it to work for me. I'm no coder just a newbie who doesn't know what he is doing...

The install said it was successful but when It redirected me to the MM admin page all the text was missing and it didn't show under Features and Options.

SMF version 1.1.4
Current Theme is English Steel 1.6

Any help would be great.

Cheers
Brett

www.myswag.org

Title: Re: Google Member Map
Post by: brianjw on January 23, 2008, 09:59:55 PM
@myswag:
Well first thing. Is it installed at all? To find out, using FTP locate your smf root and then look for /Themes/default/ if the file GoogleMap.template.php it SHOULD be installed correctly. It could also be the case where you need to add the text strings to /Themes/default/languages Modifications.english.php or need to add them to your themes Modifications.english.php (if it has that folder) Try re-installing and see what happens after doing the above...

@Yngwiedis:
I now have thought out and planned what I am going to do. Hopefully it should work. Please attach the following files: GoogleMap.php (located in ./Sources/), style.css (located in ./Themes/default/ or if you want a different theme than default in ./Themes/<theme-name>/)
using FTP, do that. Then I will modify the files in with the new css that should make links display right. When I do send back the files, don't replace them over the originals, make backups!!! But I do need the files before I start the process.

brianjw
Title: Re: Google Member Map
Post by: myswag on January 23, 2008, 10:54:09 PM
I reinstalled it but still the same. Checked ftp and files are there.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmyswag.org%2Fgallery%2Fd%2F2658-1%2Fsmf002.jpg&hash=70d1fd568f12656cdec52b230305b53d820d89d1)

That's about it for me and coding. Will wait and see if a mate can help me out.
Title: Re: Google Member Map
Post by: Yngwiedis on January 24, 2008, 02:43:00 AM
Quote from: brianjw on January 23, 2008, 09:59:55 PM

@Yngwiedis:
I now have thought out and planned what I am going to do. Hopefully it should work. Please attach the following files: GoogleMap.php (located in ./Sources/), style.css (located in ./Themes/default/ or if you want a different theme than default in ./Themes/<theme-name>/)
using FTP, do that. Then I will modify the files in with the new css that should make links display right. When I do send back the files, don't replace them over the originals, make backups!!! But I do need the files before I start the process.

brianjw

OK. The files are attached in the .zip
The style.css is not from default theme.

Please if you finish the modifications, can you post the changes too ?
Because maybe i will need to add them in another theme in the future.

Thank you...
Title: Re: Google Member Map
Post by: brianjw on January 24, 2008, 05:58:08 PM
@myswag:
Please attach the following files: Modifications.enlish.php (from /Themes/default/languages/)
Is the custom theme you're using have a /languages/ folder with Modifications.english.php inside it?
Does it work in the SMF Default Theme? (http://www.yoursite.com/smf/index.php?theme=1)

@Yngwiedis:
Ok, I will work on this for tonight and will get it to you maybe tomorrow or even tonight if I am lucky.
Title: Re: Google Member Map
Post by: LadyC on January 31, 2008, 09:54:11 PM
i'm going to ask probably the most ignorant question possible...

i don't understand the "key" thing. i registered for a key, but what do i do with it? i copied the html code it generated, but i have no idea what the file should be named. do i just call it "map_key.html" and upload it into the root directory of the forum?
Title: Re: Google Member Map
Post by: brianjw on January 31, 2008, 10:33:36 PM
You don't copy the html code. You copy just the number-letter pin at the top and paste it in Admin Panel >> Features and Options >> Member Map (in the appropriate field)

Quote from: TO THE PEOPLE I HAVENT HELPED BUT SAID I WOULD TRY TO HELPand the people who I have been "putting off" - I am so sorry! I've gotten busy with server issues and haven't been able to test things and had to fix things and now I am switching hosts and have to transfer everything to a new host. Please bare with me and thoughs that have been "put off" don't hesitate to send me a pm (because i invited you) meaning you've posted and i told you i'd do something. I have a horrible memory and would like to help you guys. Again, please pm me if i have been "putting you off" anywhere in this topic. The Inbox for pms seems to remind me (like my to-do list)

brianjw
Title: Re: Google Member Map
Post by: LadyC on January 31, 2008, 11:35:26 PM
oh! thank you!
Title: Re: Google Member Map
Post by: Garry1953 on January 31, 2008, 11:41:43 PM
I just installed it.
Only had one prob with modsettings.php due to other mods installed, so I manually added the lines needed.

Glad to report it works great.
Thanks
Title: Re: Google Member Map
Post by: Yngwiedis on February 01, 2008, 08:39:06 AM
/me still waiting...
Title: Re: Google Member Map
Post by: brianjw on February 01, 2008, 04:11:35 PM
Yes, Yngwiedis. You were one of the people I have been "putting off" (read quote above)
I will try to get to finishing that up as soon as I can.

I am sorry I cannot help you sooner.

brianjw
Title: Re: Google Member Map
Post by: mwp on February 02, 2008, 04:45:43 PM
Stupid Question?

I'm trying to use the package manager, and it brings me to a page telling me:

Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

I enter my user name and password - but just keep getting the "FTP information required" screen back.  I keep trying to change permissions to allow all files to be modified, but SMF won't accept the change

Any suggestions?
Title: Re: Google Member Map
Post by: brianjw on February 02, 2008, 04:58:52 PM
This means you're not entering the correct FTP information. FTP is the "File Manager" (in cpanel) that has all your websites files. There are special access logins for the FTP, check with your host if you don't know what that is.

You also can go to the Package Manager >> Options (or settings / whatever it says)
Then go down and select, all files writeable. Then delete GoogleMap, reinstall it again. Then it shouldn't give you that page. When you're done, for security, switch it back to the default setting that was there before you changed it to all files writeable.

brianjw
Title: Re: Google Member Map
Post by: mwp on February 02, 2008, 05:09:26 PM
Thanks - I had tried that already.  I'm using the same settings as I use for FileZilla.  SMF won't maintain the permission to write all files
Title: Re: Google Member Map
Post by: mwp on February 02, 2008, 05:12:16 PM
Can I install the files manually using FileZilla?

I've tried that too - but the controls for GoogleMap don't show up, nor is the page found (including add_settings.php
Title: Re: Google Member Map
Post by: brianjw on February 02, 2008, 05:25:46 PM
Upload GoogleMap.zip to http://www.gamerzgarage.com/package.php with your smf version and with all edits selected.
You can manually install it that way. To manually install the database you have to upload add_settings.php to your smf root and run it in a browser. Once you've run it, it should the database should be installed.

But do the file edits first, then install the database.

brianjw
Title: Re: Google Member Map
Post by: TheDel on February 03, 2008, 02:03:47 PM
Hey Brian- reporting back I love this mod.
Just a question- is there anyway to display the total members using the map?
I'm running a contest involving the Map and it would be whole lot easier being able to tell when someone has added their pin.
Title: Re: Google Member Map
Post by: brianjw on February 03, 2008, 06:38:57 PM
I am sure there is a way but unfortunately I do not have the time due to a computer crash (the one im using) and had to pay $500 dollars to fix it and I am installing windows updates and all my software back up so it may be a few weeks until I could get this done.
Title: Re: Google Member Map
Post by: TheDel on February 03, 2008, 08:05:50 PM
ahhhh dont sweat it then.
Title: Re: Google Member Map
Post by: BigMike on February 04, 2008, 12:34:08 PM
Hello,

Sorry I did not read through all 10 pages to find the answer to this.

I just installed the mod, and under Admin > Features and Options, clicking on "Member Map" reloads the "Basic Features" menu.

I used package manager to install. Everything went well. After the install I noticed nothing has changed, so I figured it must first be enabled in the Admin center, but I cannot access the features for this mod.

Thanks for the help!

The link "Member Map" points to "http://myforum/index.php?action=featuresettings;sa=googlemap;sesc=<my id>" and it only reloads the Basic Features menu when clicked on.
Title: Re: Google Member Map
Post by: brianjw on February 04, 2008, 05:29:21 PM
That means ModSettings.php was not installed correctly. Please attach ModSettings.php from /Sources/ to your next post and I will make it work for you. :)

brianjw
Title: Re: Google Member Map
Post by: BigMike on February 04, 2008, 06:52:59 PM
You Sir were correct!! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fboard.marlincrawler.com%2FSmileys%2Fmarlin%2Fbowdown.gif&hash=8404d5c7f1a4f4cf707e6fc125f814ea9d111fd6)

I edited the modification file to get around a mod I had, and I can't believe that I removed 1 line from it. Wow, sorry for my mistake, everything is working great now, please carry on :D
Title: Re: Google Member Map
Post by: BigMike on February 04, 2008, 07:15:18 PM
Wow, got everything working! Thank you!


"The defualt Zoom" is spelled wrong ;)
Title: Re: Google Member Map
Post by: brianjw on February 04, 2008, 07:24:20 PM
Thanks for the report on that spelling issue. It'll be fixed in the next version.

TO ALL USERS USING THE MEMBER MAP
While I was working on creating the mod further, *boom* my computer crashes. That is the short story of it, lol, if you want to hear the long story, PM me <---.
Anyway, it's going to be a little while until I can get back to the development of this mod. I can still give support requests such as the ones I have answered recently, but I am currently limited on what I can do.

brianjw
Title: Re: Google Member Map
Post by: BigMike on February 04, 2008, 07:29:24 PM
Quote from: brianjw on February 04, 2008, 07:24:20 PM
While I was working on creating the mod further, *boom* my computer crashes.

You gotta stop looking at pron
Title: Re: Google Member Map
Post by: brianjw on February 04, 2008, 07:38:15 PM
lol. nono that's not it...
It has "magnets" involved in erasing EVERYTHING out of the harddrive so that was unusable. lol.
Title: Re: Google Member Map
Post by: BigMike on February 04, 2008, 07:44:32 PM
Quote from: brianjw on February 04, 2008, 07:38:15 PM
so that was unusable.


nooooooooooooo! all the pron is gone!!! ohh the agony!
Title: Re: Google Member Map
Post by: smashmash on February 05, 2008, 03:44:30 AM
Tried to install this and got failed test as follows and "strongly advised" (lol!) not to install - so I didn't!

11. Execute Modification ./Sources/ModSettings.php Test failed

Any ideas?

I have googlebot and youtubeBBC mods installed
Title: Re: Google Member Map
Post by: BigMike on February 05, 2008, 11:17:34 AM
It is going to be very hard to resolve the problem on the fly here.

1) What you need to do is download your remote /Sources/ModSettings.php (the file that is on your website now).

2) Then download the compressed mod file for this mod and open it (probably using WinRAR).

3) Then open up Notepad, and drag & drop the file "modification.xml" from the compressed file and into Notepad so you can read it.

4) Now go to line #71 (or search for "<file name="$sourcedir/ModSettings.php">")


Ok, it is below this line where the modifications are being made to your ModSettings.php file. What you need to do is open up your ModSettings.php file and check to see where the problem is.

ps. in MS Notepad, go to View > Status Bar so you can see the line number at the bottom of the window.

If you look in the Google Map mod file, on Line #73 you can see it searches for $context['sub_template'] = 'show_settings'; which can be found in your /Sources/ModSettings.php file on or around line #116.

What you need to do is edit the Google Map modification.xml file so that it matches the modifications you've done to your forum that are in your /Sources/ModSettings.php file.  :)

For instance, I had to do the following:

Here is the default Google Map mod file search string:
DEFAULT SEARCHING FOR......
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',



But on my forum I have done mods, like you, and in actuality, here is what my /Sources/ModSettings.php file looks like:
MY ACTUAL /Sources/ModSettings.php FILE CONTAINS:
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'fusebox' => 'ModifyFuseBoxSettings',
'sbox' => 'ModifySboxSettings',
'profile' => 'ModifyProfileSettings',



So you can see the differences in what Google Map mod is looking for compared to what my /Sources/ModSetting.php file actually has.

So what I did was this:

1) After I found the difference above, I changed the Google Map mod "modification.xml" file to this:

<file name="$sourcedir/ModSettings.php">
<operation>
<search position="before"><![CDATA[ $context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'fusebox' => 'ModifyFuseBoxSettings',
'sbox' => 'ModifySboxSettings',
'profile' => 'ModifyProfileSettings',]]></search>




Can you see that? I added:

'karma' => 'ModifyKarmaSettings',
'fusebox' => 'ModifyFuseBoxSettings',
'sbox' => 'ModifySboxSettings',
'profile' => 'ModifyProfileSettings',


To the Google Map mod "modification.xml" file so that it now matches my modified /Sources/ModSettings.php file.


Now I know this seems complicated, but it is very easy, especially since there are ONLY TWO modifications that need to be made to your /Sources/ModSettings.php file, so you only need to edit the Google Map "modification.xml" file twice to reflect the changes that exist on your forum in its /Sources/ModSettings.php file.


Ok, now once these two changes are done to your modification.xml Google Map mod file, Next all you have to do is:

1) Save the file to your desktop using the file name "modification.xml" & close Notepad.
2) Drag and Drop this newly created modification.xml file right into the Compressed file that you still have open in WinRAR or WinZip, overwriting the original file.
3) Now go back to your Package Manager, and upload the now modified Google Map mod file to your forum and try the process again.

If you made the correct changes to the modification.xml file so that it correctly reflects the mods you've done to your forum as found in your /Sources/ModSettings.php file, then it will install without a hitch.

You might need to rename the compressed file if you've already uploaded it to your forum, but I am not sure on this.

Good luck!
BigMike
Title: Re: Google Member Map
Post by: Bluey on February 08, 2008, 06:43:45 AM
Quote from: brianjw on January 23, 2008, 04:37:11 PM
If I can catch TLM, I will ask him if it is possible to do that with the profile. The help part would be easy to do and I will release an update sometime this week hopefully.


Hi Brian

Just an update. My members are loving this mod.  Anything on the profile suggestion or help text yet?

Cheers

bruce
Title: Re: Google Member Map
Post by: BigMike on February 08, 2008, 11:09:52 AM
Quote from: Bluey on February 08, 2008, 06:43:45 AM
My members are loving this mod.

X2.

I have used many different Member Maps over the years and none have gained as much appreciation from my members as this one. Thank you very much for all your work! It is working great!

Regards,
BigMike
Title: Re: Google Member Map
Post by: brianjw on February 08, 2008, 04:00:00 PM
Nothing yet Bluey. In fact, I am going to see if I can send him an email before I forget. I will also be going through the topic and sending a few emails to google.

Thanks, for the compliments guys. :)

brianjw
Title: Re: Google Member Map
Post by: kizer on February 09, 2008, 01:12:58 PM
Quote from: brianjw on January 03, 2008, 05:49:53 PM
You can, it would take modification of the GoogleMap.php I think or the js file and to add pins, you have to find what kind of pin you want and the documentation here: http://code.google.com/apis/maps/index.html

brianjw

Talk about confusing. I was trying to simply place a pin or two or well OK, I want to place alot of pins, but I was having issues trying to find exactly what to place and where in the code.

My goal is I have a Jeep community and I'd like to place Offroad parks on the map and if it was possible using that code a measuring tool to show others how far it is from their current location to the park of choice.
Title: Re: Google Member Map
Post by: brianjw on February 09, 2008, 02:21:16 PM
I do agree. It is very confusing about the documentation. I just had a long look at all the docs and it is very confusing. Best bet is to get support in the Google Maps group on google.
Title: Re: Google Member Map
Post by: cubetgio on February 09, 2008, 02:34:35 PM
Hi everybody and thanks for this great mod that i install tody without any problem.

I have got the maps, my default location, i declare my own pin in my profile
But ...
I can't see my pin on right side when i activate member maps. I create another profile and declare another pin but nothing appear on right side.

I even download IE7 ... the same.

Could you help me ?   :(


Title: Re: Google Member Map
Post by: kizer on February 09, 2008, 05:16:26 PM
cubetgio,
I had the same problem until I zoomed in a little bit. I set my default zoom to 2 and it seems to work fine.
Title: Re: Google Member Map
Post by: Bluey on February 09, 2008, 05:25:40 PM
cubetgio

Did you uninstall and the re install the mod at any time.  I had the same issue and I found that when I had uninstalled the mod then reinstalled it that it duplicated some of the settings. This caused it to malfunction and when I cleaned it up and deleted the duplicate settings it worked fine.  Use the package parser to see what should be there
Title: Re: Google Member Map
Post by: kizer on February 09, 2008, 05:26:36 PM
Quote from: brianjw on February 09, 2008, 02:21:16 PM
I do agree. It is very confusing about the documentation. I just had a long look at all the docs and it is very confusing. Best bet is to get support in the Google Maps group on google.

I found this which helps you generate code. I guess its just a matter of figuring out how to plug it into your app.
http://gmaps-samples.googlecode.com/svn/trunk/simplewizard/makemap.html

I found another one, but of course each generates its own code which makes figuring out how to plug it in hard. ;)
http://mapmaker.donkeymagic.co.uk/
Title: Re: Google Member Map
Post by: cubetgio on February 11, 2008, 06:05:30 AM
Quote from: Bluey on February 09, 2008, 05:25:40 PM
cubetgio

Did you uninstall and the re install the mod at any time.  I had the same issue and I found that when I had uninstalled the mod then reinstalled it that it duplicated some of the settings. This caused it to malfunction and when I cleaned it up and deleted the duplicate settings it worked fine.  Use the package parser to see what should be there

to BLUEY

Hi ,
Thanks for your answer.

You are right when you say that I install , uninstall and re-install the mod. And i would like to identify the files and code duplicated by these operations.

Do you known which files and codes are concerned by the dubble installation ?
I watch to the code but cann't see anything.

thanks for your help!

Giovanni
1.1.4 smf version

www.ceue.be
Title: Re: Google Member Map
Post by: lookang on February 11, 2008, 06:13:52 AM
Installations actions for "Google Member Map":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Extract File    ./Themes/default/images/german/googlemap.gif    
7.    Execute Code    add_settings.php    
8.    Execute Modification    ./index.php    Test successful
9.    Execute Modification    ./Sources/Load.php    Test successful
10.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
11.    Execute Modification    ./Sources/ModSettings.php    Test failed
12.    Execute Modification    ./Sources/Profile.php    Test successful
13.    Execute Modification    ./Themes/default/style.css    Test successful
14.    Execute Modification    ./Themes/default/index.template.php    Test failed
15.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Test successful
18.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
19.    Execute Modification    ./Themes/default/languages/ModSettings.german.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
21.    Execute Modification    ./Themes/default/languages/Who.german.php    Skipping file

help? :D
Title: Re: Google Member Map
Post by: Bluey on February 11, 2008, 06:30:37 AM
Quote from: cubetgio on February 11, 2008, 06:05:30 AM
Quote from: Bluey on February 09, 2008, 05:25:40 PM
cubetgio

Did you uninstall and the re install the mod at any time.  I had the same issue and I found that when I had uninstalled the mod then reinstalled it that it duplicated some of the settings. This caused it to malfunction and when I cleaned it up and deleted the duplicate settings it worked fine.  Use the package parser to see what should be there

to BLUEY

Hi ,
Thanks for your answer.

You are right when you say that I install , uninstall and re-install the mod. And i would like to identify the files and code duplicated by these operations.

Do you known which files and codes are concerned by the dubble installation ?
I watch to the code but cann't see anything.

thanks for your help!

Giovanni
1.1.4 smf version

www.ceue.be

Hi Giovanni

Open the mod with the package parser.  Check the files you have to change in Cpanel. Look for a duplication of the code in that file. It is pretty easy to spot

For example it may say add after  xxxx and you will have  this

xxxx
xxxx

You just need to delete the extra code. It takes a little time but it works.  I have found this to be an issue with a number of mods now that have been uninstalled and reinstalled.  I always check this now if I have an error installing a mod.

Let me know how you go.

Brian

I am no mod maker but this appears to be an issue. How do we report it?

Title: Re: Google Member Map
Post by: brianjw on February 11, 2008, 04:33:07 PM
It is not an issue with the mod other than it is a very big mod and requires time to install. In some cases it will timeout and sometimes only edit some of the files (not all) and then you have to apply the mod again. This is simply a problem with the package manager and the host you may use.

Also, to find out exactly what the mod adds and what it edits, use the Package Parser at my website: http://www.gamerzgarage.com/package.php (do not use SMF 2.0 as it isnt available yet)

Let me know if you all need other help. I think my computer is fully up so I will have more time to do things. Version 0.2 will be delayed.
Title: Re: Google Member Map
Post by: cubetgio on February 11, 2008, 06:47:58 PM
Quote from: brianjw on February 11, 2008, 04:33:07 PM
It is not an issue with the mod other than it is a very big mod and requires time to install. In some cases it will timeout and sometimes only edit some of the files (not all) and then you have to apply the mod again. This is simply a problem with the package manager and the host you may use.

Also, to find out exactly what the mod adds and what it edits, use the Package Parser at my website: http://www.gamerzgarage.com/package.php (do not use SMF 2.0 as it isnt available yet)

Let me know if you all need other help. I think my computer is fully up so I will have more time to do things. Version 0.2 will be delayed.

Hello Brian and Bluey

Is it a problem if when creating the Google key i declare as domain  http://forum.ceue.be instead of usual url ... i mean www.ceue.be ?

$boardurl = 'http://forum.ceue.be' in settings.php

The result is that :

php index of my smf is in http://forum.ceue.be/index.php (it's managed as an add-on by my hoster AMEN) and php index of my website is in http://www.ceue.be/index.php
Title: Re: Google Member Map
Post by: brianjw on February 12, 2008, 04:35:02 PM
You must enter your URL for the pin to a direct location of SMF, not to an intro page or main website. So if SMF (this site) wanted to install this mod, they would enter "http://www.simplemachines.org/community/" (no quotes) with a backslash at the end which is a must.

Mine is directly my home url so I would and have entered it as "http://www.gamerzgarage.com/" (no quotes)
Title: Re: Google Member Map
Post by: Bluey on February 15, 2008, 12:41:33 AM
Hi Brian

Is there a trick to the clustering. I have it enabled and have the minimum no of pins per cluster set to 4 . I have 5 pins all on the one single property when you zoom in and they still don't show as a cluster.  What am I missing?
Title: Re: Google Member Map
Post by: Paracelsus on February 15, 2008, 03:33:08 AM
I'm also having problems with the cluster thing...

How close must they be from each other to be considered as in the same location and thus to be part of a cluster? Because I've seen like more than 30 in the same area (around 50km diameter) and no cluster at all (and it's defined to above 5 or so).
Title: Re: Google Member Map
Post by: Bigguy on February 15, 2008, 03:34:18 AM
Are there any errors in the error logs at all pertaining to this. ???
Title: Re: Google Member Map
Post by: Bluey on February 15, 2008, 03:49:59 AM
Yes there is this error

8: Undefined index: sub_action
File: /home/lgapa/public_html/SMF/Sources/ModSettings.php
Line: 195


and on line 195 I have this code which looks out of place.  I have taken a bit of code before and after and highlighted line 195 in red

'googlemap' => array(
    'title' => $txt['googleMapFO'],
    'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
   ),
   
   'chat' => array(
    'title' => $txt['chatTitle'],
    'href' => $scripturl . '?action=featuresettings;sa=chat;sesc=' . $context['session_id'],     ),
   'karma' => array(
    'title' => $txt['smf293'],
    'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
   ),   
   'googlebot' => array(
    'title' => $txt['ob_googlebot_modname'],
    'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
   ),   
   'googlebot' => array(
    'title' => $txt['ob_googlebot_modname'],
    'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
    'is_last' => true,
   ),
  ),
);
// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
  $context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;
// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}
// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
Title: Re: Google Member Map
Post by: brianjw on February 15, 2008, 08:28:19 AM
From past experience with the Google Map mod done by TLM. I think that is still a bug that needs to be worked out. Some sites have it working good and they say they havent modified anything. It's a question that is hard to answer.

That error wouldn't involve why the clustering feature isn't working.

brianjw
Title: Re: Google Member Map
Post by: cubetgio on February 17, 2008, 05:58:16 AM
Quote from: brianjw on February 12, 2008, 04:35:02 PM
You must enter your URL for the pin to a direct location of SMF, not to an intro page or main website. So if SMF (this site) wanted to install this mod, they would enter "http://www.simplemachines.org/community/" (no quotes) with a backslash at the end which is a must.

Mine is directly my home url so I would and have entered it as "http://www.gamerzgarage.com/" (no quotes)

Thanks a lot for the follow-up but no improvement in my case. I'll wait until next version.

Mapping is working well but without pins neither in the map or on right side . There is an exception ... is when i run google earth I can see the yellow pins on the map but only there

I would like to help more that giving you this follow-up but I can't.
I'll return here to see evolution of the mod.
Title: Re: Google Member Map
Post by: Spudgun on February 20, 2008, 11:16:50 AM
First may I say thanks Brianjw for this great mod. ;)

I am having trouble installing the mod but it's the sheer number of other mods (too many to mention or list) that's the problem not your mod Brianjw.

I am using SMF 1.1.4

I am getting the following errors;

Type      Action                   Description

1.      Extract File                   ./Sources/GoogleMap.php    
2.      Extract File                   ./Themes/default/Clusterer2.js    
3.      Extract File                   ./Themes/default/GoogleMap.template.php    
4.      Extract File                   ./Themes/default/images/google_earth_feed.gif    
5.      Extract File                   ./Themes/default/images/english/googlemap.gif    
6.      Extract File                   ./Themes/default/images/german/googlemap.gif    
7.      Execute Code              add_settings.php    
8.      Execute Modification    ./index.php                 Test successful
9.      Execute Modification    ./Sources/Load.php    Test successful
10.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
11.    Execute Modification    ./Sources/ModSettings.php    Test failed
12.    Execute Modification    ./Sources/Profile.php    Test successful
13.    Execute Modification    ./Themes/default/style.css    Test successful
14.    Execute Modification    ./Themes/default/index.template.php    Test successful
15.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file
18.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
19.    Execute Modification    ./Themes/default/languages/ModSettings.german.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
21.    Execute Modification    ./Themes/default/languages/Who.german.php    Skipping file


If anyone can advise or fix this problem I would be forever thankful as many of my forum members are requesting this superb mod.

I have attached both of the test failed files if anyone has time to look at them.

Kind regards
Sg

P.s. I will put £10 in the Paypal account of the person who can fix this for me, I promise.
Title: Re: Google Member Map
Post by: Bigguy on February 20, 2008, 03:47:03 PM
Back up the other two files before you try these two ok. They have been debugged and have no errors. :) PLEASE BACKUP FIRST THOUGH.
Title: Re: Google Member Map
Post by: brianjw on February 20, 2008, 04:13:58 PM
Thanks bigguy for your help ;)
Title: Re: Google Member Map
Post by: Bigguy on February 20, 2008, 04:25:20 PM
Not a problem Brian. :)
Title: Re: Google Member Map
Post by: Spudgun on February 20, 2008, 11:54:55 PM
Thanks for the help Bigguy but still not working.

After installing the mod with the errors shown above then replacing the files you attached, I get thrown to the page where you enter the Google Map API key and setup. The after entering the key and setting the show mod option, the page disappears on clicking save. There is then no sign of the mod as if it's not there. nothing in 'Features and Options' and nothing showing on menu bar or in profile as if the mod was not installed.

Thanks again for your help though Bigguy, it is much appreciated.

Regards
Sg
Title: Re: Google Member Map
Post by: Bigguy on February 21, 2008, 01:31:36 PM
Sounds like an ownership problem to me. Do you have other mods installed. ???
Title: Re: Google Member Map
Post by: Spudgun on February 22, 2008, 06:04:17 AM
I think the mod is clashing with another mod I have that shows gallery pictures on members profiles.

I have hand installed a member location map on my forum now but thankyou very much for your time and help Bigguy.

Kind regards
Sg
Title: Re: Google Member Map
Post by: AndreaC on February 22, 2008, 06:01:20 PM
Hello every one, I've exactly the same problem of cubetgio and CrazyHorse80 with Internet Explorer 6 and 7.
I can't see member's pins and member's name on the sidebar...
Any news about this problem?

Thanks
  Andrea

PS brianjw I sent you the 5$, thanks for this really nice mod!  :)

Title: Re: Google Member Map
Post by: brianjw on February 22, 2008, 08:42:41 PM
Thanks for the donation. That really helps alot. :) You should have gotten a response to your donation email from my server. ;)

I really don't know what is going on with IE6 +7. I am starting to wonder if it's the mod or microsofts products. I have IE on my computer and all works well. Maybe you need to upgrade to latest IE7 and lose 6 (horrible version). I don't know maybe it's a bug in the program. Honestly, I couldn't tell you and I don't think TLM could either since this I believe has been a problem for some time.
Title: Re: Google Member Map
Post by: AndreaC on February 23, 2008, 03:06:36 AM
Yes I recived your response to the donations  ;)

If you want to see the problem I can send to you a pm with adress username and passwd of a test user  :)

PS I upgraded to IE7 but same problem  :(
Title: Re: Google Member Map
Post by: AndreaC on February 23, 2008, 06:15:50 AM
Another little bug with correction that in GoogleMap.php

change

            <Point>
                <extrude>1</extrude>
                <altitudeMode>absolute</altitudeMode>
                <coordinates>' . $marker['googleMap']['longitude'] . ',' . $marker['googleMap']['latitude'] . ',8000</coordinates>
            </Point>

with

            <Point>
                <extrude>1</extrude>
                <altitudeMode>relative</altitudeMode>
                <coordinates>' . $marker['googleMap']['longitude'] . ',' . $marker['googleMap']['latitude'] . ',0</coordinates>
            </Point>


To have (on GE) the pins posed on the earth at every altitude  instead of the previus fixed 8000meters  ;)
Title: Re: Google Member Map
Post by: koolaid on February 23, 2008, 04:34:05 PM
I have left and right panels enabled. How can i get it to disappear when viewing the map?

Title: Re: Google Member Map
Post by: Sweetwater on February 27, 2008, 08:04:21 AM
I got a few errors on install with 1.1.4

I've got a gazillion other mods already running so its probably going to be complicated to fix.



Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Extract File ./Themes/default/images/german/googlemap.gif 
7. Execute Code add_settings.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test failed  
10. Execute Modification ./Sources/ManagePermissions.php Test successful
11. Execute Modification ./Sources/ModSettings.php Test failed  
12. Execute Modification ./Sources/Profile.php Test successful
13. Execute Modification ./Themes/default/style.css Test successful
14. Execute Modification ./Themes/default/index.template.php Test failed  
15. Execute Modification ./Themes/default/Profile.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.german.php Skipping file
18. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
19. Execute Modification ./Themes/default/languages/ModSettings.german.php Skipping file
20. Execute Modification ./Themes/default/languages/Who.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.german.php Skipping file
Title: Re: Google Member Map
Post by: Shean on February 27, 2008, 08:24:23 AM
Turkish addition

$txt['googleMap'] = 'Üye haritası.';
$txt['googleMappinned'] = 'Takılmış Üye./ler';
$txt['googleMapc'] = 'Üye Mod çiz <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones topluiğnesi.';
$txt['googleMapGreenPinNG'] = 'Hayır cinsiyeti.';
$txt['googleMapBluePin'] = 'Erkek';
$txt['googleMapRedPin'] = 'Kadın';
$txt['googleMapPurplePin'] = 'Cluster topluiğneler';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Burada click gitmek senin topluiğneni koy var zaten.</a>';
$txt['googleMapDisclaimer'] = 'Senin topluiğneni sen yakın rahat hissetir as koy yapıyor.';
$txt['cannot_googleMap_view'] = 'Üzgün, senin\ Üye haritasını inceleme için izin verilme.';
$txt['permissionname_googleMap_view'] = 'Bakış Üyesi haritası.';
$txt['permissionhelp_googleMap_view'] = 'Insanlara Üye haritasını incelemek için izin ver.  Insanlar yerleştirilme, haritayı görmeyecek.';
$txt['cannot_googleMap_place'] = 'Üzgünüm, senin\ Üye haritası için bir topluiğneyi koyma için izin verilme.';
$txt['permissionname_googleMap_place'] = 'Yer topluiğnesi Üye haritası';
$txt['permissionhelp_googleMap_place'] = 'İzin ver insanlar place orada Üye haritasını tak.  Insanlar yerleştirilme, topluiğneler oraya koymaya yetenekli olmayacak.';


:) I will rejoice if you affect :P
Title: Re: Google Member Map
Post by: brianjw on February 27, 2008, 04:17:14 PM
Thanks for the turkish addition for everyone to use! :)

As for the problems Sweetwater is having. Use the Package Parser (http://www.gamerzgarage.com/package.php), upload GoogleMap.zip where it says to upload it, choose your version and install for 1.1.4. Then choose all files (not templates only) and manually edit the files that HAVE ERRORS ONLY and submit the mod in the package manager. NOTE: Submit the mod in the package manager with errors first, then manually install the files with errors.
Title: Re: Google Member Map
Post by: snicker on February 27, 2008, 07:58:47 PM
I just created a brand new 1.1.4 install from scratch with no customization and the first thing I did was install this new Google Maps mod. It installed without any errors but when it redirects you to the admin page for the Google Maps config it just goes to the "Poll Settings" and there is no option anywhere for the Google Maps.

Shouldn't mod at its least work fine without errors on a fresh 1.1.4 install?
Title: Re: Google Member Map
Post by: brianjw on February 27, 2008, 09:57:52 PM
It works fine as it has been tested continuously. Even on YOUR fresh install, it receives errors because it could be your host or behind the scenes problems. Go to the package parser (link in my previous post) upload GoogleMap.zip and make sure that ModSettings.php (/Sources/) has googlemap stuff in it.
Title: Re: Google Member Map
Post by: koolaid on February 27, 2008, 10:07:28 PM
is it possible to put have it say your location when you click on a member's pin instead of having to zoom in to find out?
Title: Re: Google Member Map
Post by: brianjw on February 27, 2008, 10:14:58 PM
That would require Google's feedback as that doesn't have anything to do with the mod and couldn't be coded into the map because Google currently does not offer it. I am making another list to send to google.
Title: Re: Google Member Map
Post by: biggbigg on March 02, 2008, 02:12:03 AM
I have the same problem as a few others ;(   Everything seems to work and members profiles show the pin placement yet the main members map shows no pins or pinned members when viewed in IE but works perfectly in Firefox.

I have tried as other said to uninstall and reinstall and even checked every page for duplicate code but could find none ;(  Any help appreciated.
Title: Re: Google Member Map
Post by: brianjw on March 02, 2008, 08:08:11 AM
biggbigg,

This problem unfortunately is unsolved. I am thinking it is a problem with "Google's Systems" so I will contact them immediately regarding the problem.
Title: Re: Google Member Map
Post by: biggbigg on March 02, 2008, 01:41:59 PM
Thanks any help is appreciated.
Title: Re: Google Member Map
Post by: biggbigg on March 04, 2008, 06:51:42 AM
I have tried a few other peoples forums with the same mod installed and it works so i dont think its an issue between goodle or IE.  I did uninstall and reinstall the package and that seems to be my problem. I have checked the code via the parser and see nothing wrong yet it still only works in Firefox and not IE.

Does anyone else have any suggestions or are there any of the files i can post for you guys to look through. I am sure its an error / double entry somewhere but for the life of me i cant find it.

Thanks
Title: Re: Google Member Map
Post by: brianjw on March 04, 2008, 06:58:56 PM
I have no idea what the cause of the problem is then, possibly one of the following:

- Confict with another mod. Please post a full list of your installed mods

- Conflict in the database, again with another mod. Refer to the above that is underlined.

Thanks,
brianjw
Title: Re: Google Member Map
Post by: cubetgio on March 06, 2008, 07:35:45 AM
Here is my big list of Mod installed

1. Auto Embed Video Clips 1.9   [ Uninstall ] [ List Files ] [ Delete ] 
2. Buy Me A Beer 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
3. Color & BgColor BBCode Bar 3.3   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF Gallery Lite 1.8.1.2   [ Uninstall ] [ List Files ] [ Delete ] 
5. Group on Registration 1.1.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Mp3Tube BBCode 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. RSS Feed Poster 1.0.5   [ Uninstall ] [ List Files ] [ Delete ] 
9. Random BBCode 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
10. Wikipedia BBCode 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
11. XarSmilies-1 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
12. XarSmilies-2 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
13. SMF Archive 1.1   [ List Files ] [ Delete ] 
14. cbi, 1.0 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. MySpace Field 2.4   [ Uninstall ] [ List Files ] [ Delete ] 
19. SMF 1.1.2 Update Package 1.1.2   [ List Files ] [ Delete ] 
20. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
21. SMF 1.0.11 / 1.1.3 Update 1.1   [ List Files ] [ Delete ] 
22. Member List Position Filter 1.1.0   [ Uninstall ] [ List Files ] [ Delete ] 
23. Todays Birthday 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
24. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
25. SMF Shoutbox 1.16b   [ Uninstall ] [ List Files ] [ Delete ] 
26. Google Member Map 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
27. Colorize Boards 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
28. SMFChess 1.0   [ Uninstall ] [ List Files ] [ Delete ] 

Avatar Packages
Mod Name Version 
1. Country Flags 1.1.1   [ Uninstall ] [ List Files ] [ Delete ] 


Title: Re: Google Member Map
Post by: brianjw on March 06, 2008, 05:06:03 PM
Are you having trouble installing this mod cubetgio?
Title: Re: Google Member Map
Post by: cubetgio on March 07, 2008, 06:40:29 AM
Hi Brian,

Yes, i get some trouble, remember my message.


http://www.simplemachines.org/community/index.php?topic=210708.msg1429179#msg1429179 (http://www.simplemachines.org/community/index.php?topic=210708.msg1429179#msg1429179)
Title: Re: Google Member Map
Post by: brianjw on March 07, 2008, 04:07:38 PM
Oh yes. Sorry, I totally forgot. ;)

Those mods really shouldn't affect it, I'll have a closer look in a little while - if I find anything, ill be sure to let you know.
Title: Re: Google Member Map
Post by: biggbigg on March 07, 2008, 04:50:12 PM
Heres the mods i have -

Mod Name Version 
1. New RSS Button Per Board 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. SMF Links 1.6.7   [ Uninstall ] [ List Files ] [ Delete ] 
3. SMF 1.1.1 Update Package 1.1.1   [ List Files ] [ Delete ] 
4. SMF 1.0.11 / 1.1.3 Update 1.1   [ List Files ] [ Delete ] 
5. Ad Managment 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Reg Bar 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. AddThis Social Bookmarks 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
9. SMF 1.1.2 Update Package 1.1.2   [ List Files ] [ Delete ] 
10. Google Member Map 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
11. SMF 1.0.3 Update Package 1.0.3  [ Apply Mod ] [ List Files ] [ Delete ] 
12. Treasury 2.05  [ List Files ] [ Delete ] 
13. Treasury 2.08   [ Uninstall ] [ List Files ] [ Delete ] 
14. SMF Staff Page 1.5.1   [ Uninstall ] [ List Files ] [ Delete ] 
15. FlashChat Integration 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
16. Excess Blank Lines 1.02  [ List Files ] [ Delete ] 
17. Edit Meta Data 1.0   [ List Files ] [ Delete ] 
18. SMF Arcade 2.0.7   [ List Files ] [ Delete ] 
19. Add Sitepreviews 1.31   [ Uninstall ] [ List Files ] [ Delete ] 
20. SMF 1.0.6 Update 1.0  [ List Files ] [ Delete ] 
21. SMF 1.0.7 / 1.1 RC2 Update 1.0  [ List Files ] [ Delete ] 
22. Ad Managment 2.3   [ List Files ] [ Delete ] 
Title: Re: Google Member Map
Post by: brianjw on March 07, 2008, 05:41:48 PM
I don't really see any problems with those mods either. I'll check to confirm that too.
Title: Re: Google Member Map
Post by: biggbigg on March 08, 2008, 02:03:11 AM
it actually worked in both IE and Firfox for a week / then after updating treasury it stoped working in IE but continued fine in firefox. I have tried installing and uninstalling a  few times and even gone through all the file changes by hand and cant see anything wrong.

Its probably some double code somewhere that got left behind but i am damned if i can find it lol
Title: Re: Google Member Map
Post by: mwmconsulting on March 10, 2008, 11:25:54 AM
Hey brianjw,

I'm testing out your beta mod and really like what I see so far.  I made a few tweaks to the layout just as a personal preference.  A few things to mention though:


Just some thoughts.

As for many of you who are not getting the mod to install correctly, I personally have never had a mod install cleanly without tweaking the code first.  That is one issue I have with SMF.  Mods are rarely built to withstand the changes made by other mods.  You eventually get this snowball effect whereby you have to personally ensure the mod will correctly install with your "customized" version of SMF.

At the very least, the developers of SMF should have a testing area where modders could ensure their mod would install cleanly on a fresh install of SMF.  I'm not talking about a complete SMF install, just a testing area where the result would either be "pass" or "fail because of".  Of course, this doesn't ensure it would work for everyone, but a least the modder would know that they didn't accidentally code the mod's installation for their altered version of SMF.

Cheers!

- MWM
Title: Re: Google Member Map
Post by: brianjw on March 10, 2008, 06:25:00 PM
Thank you for your words mwmconsulting. To answer some of your thoughts,

1.) This isn't really a bug, it's mainly to show the pins location better. It also isn't coded by my preference as it is google's side of the map.
2.) This is a known bug with "Google's Side of the map." I have contacted google many times but havent received any answer regarding this issue and many others. So for the moment, they're too busy I guess.
3.) Thank you for correcting that! That will be adding to version 0.2 beta.


News about Version 0.2 beta!
My computer has been crashing due to viruses and gaming on a non-gaming laptop. This has slowed down the release of 0.2 beta. All the changes I made before these crashes are gone which is why it takes longer. The release of version 0.2, will only be the following:
Let me know what you think about this release that will hopefully soon be coming out.
Title: Re: Google Member Map
Post by: Yngwiedis on March 10, 2008, 06:30:29 PM
Quote from: Yngwiedis on January 15, 2008, 11:25:15 AM
Hello...

I am trying to change the colors of the link inside the white bubble from style.css of the theme i use, but is not seems to work.
Any suggestions ?

Thank you...

Hello brianjw...

Any news for the above problem ?
Title: Re: Google Member Map
Post by: brianjw on March 10, 2008, 07:58:22 PM
OK go into GoogleMap.php in /Sources/

(I am not quite sure what links in the balloon you're talking about, all of them?)
Find

if (($marker['website']['url'] != '') && ($marker['website']['title'] != ''))
$datablurb = $datablurb . '<a href="' . $marker['website']['url'] . '">' . $marker['website']['title'] . '</a>';

Replace

if (($marker['website']['url'] != '') && ($marker['website']['title'] != ''))
$datablurb = $datablurb . '<a href="' . $marker['website']['url'] . '"><font color="#000000">' . $marker['website']['title'] . '</font></a>';

That will fix the website link ( i think ). Try that and let me know what happens. Then I will tell you how to continue with the rest of the balloon.
Title: Re: Google Member Map
Post by: Yngwiedis on March 11, 2008, 09:09:52 AM
Quote from: brianjw on March 10, 2008, 07:58:22 PM
OK go into GoogleMap.php in /Sources/

(I am not quite sure what links in the balloon you're talking about, all of them?)
Find

if (($marker['website']['url'] != '') && ($marker['website']['title'] != ''))
$datablurb = $datablurb . '<a href="' . $marker['website']['url'] . '">' . $marker['website']['title'] . '</a>';

Replace

if (($marker['website']['url'] != '') && ($marker['website']['title'] != ''))
$datablurb = $datablurb . '<a href="' . $marker['website']['url'] . '"><font color="#000000">' . $marker['website']['title'] . '</font></a>';

That will fix the website link ( i think ). Try that and let me know what happens. Then I will tell you how to continue with the rest of the balloon.

I change that code but i don't see anything changed.

Take a look at the attached screenshot...
Title: Re: Google Member Map
Post by: Poor_Knight on March 11, 2008, 01:50:28 PM
When I installed the mod I see all the members on the map even though they didn't place themselves - they are all just clustered in one location (0,0 I think).

So when I use the sidebar it shows all members as pinned although they really aren't/ How do I change this behavior?

Thx in advance :)
Title: Re: Google Member Map
Post by: brianjw on March 11, 2008, 04:23:24 PM
I am guessing dark themes aren't going to work with the Google Map then. I can only say to change the link color to something that is both visible in dark and light colors like orange or something in your themes style.css.

This isn't a behavoir of the mod. This is either a problem with your pin with Google or the installation  had some trouble.
Title: Re: Google Member Map
Post by: Poor_Knight on March 11, 2008, 07:58:34 PM
Quote from: Poor_Knight on March 11, 2008, 01:50:28 PM
When I installed the mod I see all the members on the map even though they didn't place themselves - they are all just clustered in one location (0,0 I think).

So when I use the sidebar it shows all members as pinned although they really aren't/ How do I change this behavior?

Thx in advance :)

No ideas?
Title: Re: Google Member Map
Post by: brianjw on March 11, 2008, 08:26:09 PM
Please read my previous post.
Title: Re: Google Member Map
Post by: Poor_Knight on March 11, 2008, 11:47:27 PM
Quote from: brianjw on March 11, 2008, 08:26:09 PM
Please read my previous post.

Sorry, missed the last part.

Yeah likely my install then since I had to due manual. But any ideas why it would auto-generate a pin for all members? I'm not sure where to look for this.
Title: Re: Google Member Map
Post by: Poor_Knight on March 12, 2008, 10:29:46 AM
Quote from: Poor_Knight on March 11, 2008, 11:47:27 PM
Sorry, missed the last part.

Yeah likely my install then since I had to due manual. But any ideas why it would auto-generate a pin for all members? I'm not sure where to look for this.

Didn't have DB fields set to NULL...
Corrected by setting the longitude/latitude fields to allow NULL value and UPDATED the fields to be set to NULL.
Title: Re: Google Member Map
Post by: brianjw on March 12, 2008, 04:25:47 PM
They should already be set like that. It couldve been your webhost blocking parts of the query through the install.
Title: Re: Google Member Map
Post by: AdviseorAnswers.com on March 16, 2008, 12:05:44 PM
I am running smf 1.1.3 and the latest TP with nearly 70 mods installed. As such I have to manually add at least part of the modifications each time I add or update a mod.

I finally got around to this one and had to manually modify:
Load.php
Modsetting.php
index.template.php

After I add the modifications to load.php I had a load error on line 1851 that prevented my site from loading. To correct this I removed ")" from that line, and it allowed my site to load and I finished adding the final two manual modifications. 
Now I have no admin controls in the "Features and Options" for this mod nor is there a tab showing for it.


note* This was a fresh load. not an update.
Title: Re: Google Member Map
Post by: brianjw on March 16, 2008, 02:49:43 PM
I suggest you use the http://www.gamerzgarage.com/package.php (Package Parser) to solve your problems by uninstalling the mod.

I also suggest that you don't run so many modules on your website. - The more, the harder it is to upgrade SMF & install new/uninstall mods.
Title: Re: Google Member Map
Post by: AdviseorAnswers.com on March 17, 2008, 06:23:25 AM
Quote from: brianjw on March 16, 2008, 02:49:43 PM
I suggest you use the http://www.gamerzgarage.com/package.php (Package Parser) to solve your problems by uninstalling the mod.

I also suggest that you don't run so many modules on your website. - The more, the harder it is to upgrade SMF & install new/uninstall mods.

The link returns this:
Warning: include_once(/home/brianjw/public_html/geshi/geshi.php) [function.include-once]: failed to open stream: No such file or directory in /home/brianjw/public_html/package.php on line 59

Warning: include_once() [function.include]: Failed opening '/home/brianjw/public_html/geshi/geshi.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brianjw/public_html/package.php on line 59

Fatal error: Class 'GeSHi' not found in /home/brianjw/public_html/package.php on line 60
Title: Re: Google Member Map
Post by: brianjw on March 17, 2008, 08:23:27 AM
Please use the SleepyCode Package Parser: http://sleepycode.com/PackageParser/index.php

My website will be up and down all day to day because I am over the limited space with my host and I thought I was deleting unused items but I guess that is used.
Title: Re: Google Member Map
Post by: Yngwiedis on March 17, 2008, 10:27:40 AM
If i can ask, how much you pay for your hosting, and how many space you get ?
Title: Re: Google Member Map
Post by: brianjw on March 17, 2008, 10:45:33 AM
I get 250 MB disk space and 5000 MB bandwidth with these features. (http://www.montecarlohosting.net/content/view/18/43)
for $59.50 per year.
Title: Re: Google Member Map
Post by: Yngwiedis on March 17, 2008, 10:50:10 AM
If you want, i can give you the exact same features, with 1 GB disk space and 10 GB bandwidth for 5 euros ( ~8 dollars ) per month ;)
Title: Re: Google Member Map
Post by: brianjw on March 17, 2008, 10:53:15 AM
Cool. I'll add your host to my list. I am still negotiating with my current host because it's a pain to transfer everything.

I noticed the link in your signature. I only understand english. :(
Title: Re: Google Member Map
Post by: Yngwiedis on March 17, 2008, 11:06:02 AM
Yes the site is for Greek people only, but if you want anything just communicate with me via PM ;)
Title: Re: Google Member Map
Post by: Klabautermann on March 18, 2008, 10:08:49 AM
I have installed the mod and it works fine, only on ething want work: nothing happens if i click on a pinned member (the pinned member list on the right) whats wrong?
Title: Re: Google Member Map
Post by: brianjw on March 18, 2008, 10:30:32 AM
It should open a balloon in the map. Try setting the zoom to a higher level like 2 or 3 or even more if you want. Then move your mouse around and a balloon should show. If this doesn't work, there was some kind of an error in your install.
Title: Re: Google Member Map
Post by: klra on March 18, 2008, 07:49:47 PM
I have successfully applied this Mod & it is working great- Thanks!

One thing I would like to see though- how about the location of the member being displayed in the baloon?

I do have the Member Location Mod installed.

I have added what it might look like in RED below-

Title: Re: Google Member Map
Post by: biggbigg on March 18, 2008, 08:24:28 PM
Ok little update on my problem, In Firefox the pins show correctly on the members map and in peoples profiles section but using IE7 the pins show ok in the profiles but not on the member map page. What page of code should i post / look at to try and correct this issue?

Any help appreciated.
Title: Re: Google Member Map
Post by: brianjw on March 18, 2008, 08:43:55 PM
@klra:
The Member Location Mod isn't in SMF by default. However, there is a form field in the profile that says Location and will allow the user to enter anything. I can make that appear in the balloon. This will be included in 0.2 beta.

@biggbigg:
Please search through the thread. This could be a number of problems with other mods conflicting, installation problems, or your SMF Forum not functioning properly.
Title: Re: Google Member Map
Post by: klra on March 18, 2008, 08:52:17 PM
QuoteThe Member Location Mod isn't in SMF by default. However, there is a form field in the profile that says Location and will allow the user to enter anything. I can make that appear in the balloon. This will be included in 0.2 beta.

I have my location filled in, and understand that you will make this an option in the future.

Is there an edit we can do in the mean time?
Title: Re: Google Member Map
Post by: brianjw on March 18, 2008, 09:16:44 PM
I don't have access to my files so I cannot give the current code to do this. I might be able to give something tomorrow but at the time I cannot.
Title: Re: Google Member Map
Post by: Maliah on March 19, 2008, 11:12:55 AM
Hello,

I have two questions.

The first one is: Is it possible to have this "navigation field" disabled by default?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg138.imageshack.us%2Fimg138%2F9162%2Fnavou6.jpg&hash=899836cabb2fc0355e658467a3f0f75ae823fe6c)
I know its possible to turn it off by clicking on that little arrow but it's covering by default an important part of the map the way we use it.

The second is: It is possible to set the default Mapview (Longtitude and Latitude) in the Settings, but this does only apply do the View of the ?action=googlemap and not the Map displayed in the profile. (When you  set your Pin for the first time).

Is it possible to somehow set the default displayed longtitude and latitude and zoom factor in the displayed map on the profile configuration too?

Best Regards.
Title: Re: Google Member Map
Post by: brianjw on March 19, 2008, 12:37:47 PM
@Maliah:

1.) Please search the topic as this has been answered or just the code posted to remove it.
2.) There is not an option to enable any kind of zoom in the profile. As for the longitude and latitude, are you talking about in the profile as well where they set the pin? That is also not an option.
Title: Re: Google Member Map
Post by: Nao 尚 on March 21, 2008, 04:35:48 PM
Hello there,

I spent the better part of my birthday converting a mod to SMF2 :P
My.
Anyway, obviously it's Google Member Map, so here it is.

Basically, it's the same as the SMF 1.1.4 version. Everything is (hopefully) correctly upgraded. It does work for me at least (cyna.fr). It was a real pain in the a** to convert all of the admin area so please don't yell at me if there's any problem.

I also added a French version, and refactored some of the code manually to my taste. (i.e. SMF's default code presentation.)
I don't think I have anything else to say ;)

Hope you don't mind me posting this, Brian. You know I've saved you at least a few hours of work ;)

EDIT -- re-uploaded the package. Forgot to convert a couple of queries in add_settings.php. Also, I forgot to mention I've removed Brian's package server addition from that file. I'm not sure about the point of adding this. Feel free to add it again, though.
Title: Re: Google Member Map
Post by: Nao 尚 on March 22, 2008, 07:56:21 AM
I'm currently improving the mod for my own taste, but I made an improvement that would best be shared with everyone.

Remove this from GoogleMap.php:

// This is to help against those funky chars... and protect against those " errors in XML!
$datablurb = htmlspecialchars($datablurb);


Replace:

$markers = $markers . ' label="' . $marker['name'] . '" html="'. $datablurb . '" />';


With:

$markers .= ' label="' . $marker['name'] . '"><![CDATA[' . $datablurb . ']]></marker>';


And finally, replace:

var html = markers[i].getAttribute("html");


With:

var html = markers[i].childNodes[0].nodeValue;


That's all... As a result:
- the generated xml files are cleaner and tighter.
- the mod effectively becomes compatible with Pretty URLs and other SEO mods that use ob_sessrewrite to change links. (I'm thinking about the profile link.)
Title: Re: Google Member Map
Post by: Nao 尚 on March 22, 2008, 10:03:33 AM
The two colspan="2" mentions in the html data should also be removed. These conflict with the rowspan="3" from the avatar picture. Removing them allows everything to be aligned to the left of the avatar, as it should be.
I also removed the white-space stuff in my custom version -- having a long description would move the avatar outside the bubble.
Title: Re: Google Member Map
Post by: brianjw on March 23, 2008, 07:00:43 PM
Thanks for adding this here for people. I'll take a quick few peeks at it and I can add it to the main modsite so it can be noticed a little better. I responded to your PM before I read this so... ;)

The point of the package server is for the people already with the mod installed to get an easy install and go there to install the new one or even upgrade.
Title: Re: Google Member Map
Post by: Lasalle on March 24, 2008, 04:49:59 AM
For people from Poland

In
ModSettings.polish.php we add:


$txt['googleMapsEnable'] = 'Włącz Google Member Map';
$txt['googleMapsEnableLegend'] = 'Pokaż legendę z pinezkami';
$txt['googleSidebar'] = 'Gdzie pokazać boczny panel';
$txt['googleMapsKey'] = 'Klucz ze strony internetowej Google Maps API';
$txt['googleMapsPinGender'] = 'Czy przy pinezkach powinna być zaznaczana płeć użytkowników?';
$txt['googleMapsPinNumber'] = 'Możliwa maksymalna ilość pinezek, do zamieszczenia na mapie';
$txt['googleMapsType'] = 'Wybierz rodzaj mapy';
$txt['googleMapsDefaultLat'] = 'Domyślna szerokość geograficzna';
$txt['googleMapsDefaultLong'] = 'Domyślna długość geograficzna';
$txt['googleMapsDefaultZoom'] = 'Domyślne ustawienie zoom';
$txt['googleMapsEnableClusterer'] = 'Włącz grupowanie pinezek';
$txt['googleMapsMinMarkerCluster'] = 'Minimalna ilość pinezek w grupie';
$txt['googleMapsMaxVisMarker'] = 'Maksymalna ilość pinezek widocznych na mapie';
$txt['googleMapsMaxNumClusters'] = 'Maksymalna liczba grup pinezek';
$txt['googleMapsMaxLinesCluster'] = 'Maksymalna liczba pozycji w info boxie grup';
$txt['googleMapFO'] = 'Mapa użytkowników';


In
Modifications.polish.php

$txt['googleMap'] = 'Mapa użytkowników';
$txt['googleMappinned'] = 'Użytkownicy zaznaczeni pinezką';
$txt['googleMapc'] = 'Member Map Mod został napisany przez <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Czyjaś pinezka';
$txt['googleMapGreenPinNG'] = 'Niezaznaczona płeć';
$txt['googleMapBluePin'] = 'Mężczyzna';
$txt['googleMapRedPin'] = 'Kobieta';
$txt['googleMapPurplePin'] = 'Zbiór pinezek';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Kliknij tutaj by przypiąć swoją pinezkę, jeśli jeszcze tego nie zrobiłeś/aś</a>';
$txt['googleMapDisclaimer'] = 'Umieść swoją pinezkę w takim miejscu jakie uznasz za najwłaściwsze.';
$txt['cannot_googleMap_view'] = 'Niestety nie udostępniono Ci możliwości oglądania mapy.';
$txt['permissionname_googleMap_view'] = 'Pokaż mapę użytkowników';
$txt['permissionhelp_googleMap_view'] = 'Pozwól ludziom widzieć mapę użytkowników. Jeśli ta opcja nie jest ustawiona nie będą jej widzieć.';
$txt['cannot_googleMap_place'] = 'Niestety nie udostępniono Ci możliwości zamieszczenia pinezki na mapie.';
$txt['permissionname_googleMap_place'] = 'Zamieść swoją pinezkę na mapie użytkowników';
$txt['permissionhelp_googleMap_place'] = 'Pozwól ludziom zamieszczać swoje pinezki na mapie użytkowników, jeśli ta opcja nie jest ustawiona ludzie nie będą mogli zamieszczać pinezek.';


Geographic coordinate for Poland in Google Maps
szerokość geograficzna: 52.173931692568
długość geograficzna: 18.8525390625

I translated it, but I'm not quite sure that I understand correctly difference betwen:
"Number of max pins to show on map"  (is it for all possible pins?)
"Maximum Visable Pins On Map" (for visible pins on diffrent part on map?)

Can somenone explain that for me?
edited:
OK, now is correct
Title: Re: Google Member Map
Post by: brianjw on March 24, 2008, 08:21:26 AM
The Number of Maximum pins is to only allow a certain number on the map. If you want all of them, set it to a really high number, although it might slow load times down and could cause problems with the map if you use too many pins on the map. This one limits your members, once it goes to the maximum, no one else can pin their place.

Maximum Visbable Pins On Map is like the last one but members can still place pins and some pins will not appear on the map.

Nao
I tested your version of the mod and the profile doesn't want to save the Profile Page. Take a look at your coding transfer in that spot.
Title: Re: Google Member Map
Post by: Nao 尚 on March 24, 2008, 01:47:26 PM
Yes, I made the change in the meantime, and forgot to submit it.
The problem is that as soon as the mod started working, I stopped updating the package and just modified my own files ;) Oops ;) (I always update my SMF files with a diff parser using the latest SVN, so I don't really need to reinstall mods...)

Anyway, find the "googlemap" area in Profile-Modify and replace it with:

'latitude' => array(
'type' => 'callback',
'callback_func' => 'googlemap_modify',
'permission' => 'profile_extra',
// Set longitude too!
'input_validate' => create_function('&$value', '
global $profile_vars, $cur_profile;

$value = (float) $value;
if (isset($_POST[\'longitude\']))
{
$profile_vars[\'longitude\'] = !empty($_POST[\'longitude\']) ? (float) $_POST[\'longitude\'] : 0;
$cur_profile[\'longitude\'] = !empty($_POST[\'longitude\']) ? (float) $_POST[\'longitude\'] : 0;
}
return true;
'),
'preload' => create_function('', '
global $context, $cur_profile;

$context[\'member\'][\'googleMap\'][\'latitude\'] = $cur_profile[\'latitude\'];
$context[\'member\'][\'googleMap\'][\'longitude\'] = $cur_profile[\'longitude\'];

return true;
'),
),


Shamelessly inspired from other examples in Profile-Modify.php...

Also replace 'googlemap' with 'latitude' in the place with 'hr' and stuff. (Same file.)

Have fun :)
(You can still test it at http://cyna.fr/index.php?action=googlemap)
Title: Re: Google Member Map
Post by: Lasalle on March 24, 2008, 06:22:38 PM
I have a little problem. I have smf 1.1.4. In bright forest theme everything is alright but in Apollobb I don't see link to the profile, legend with gender (only pins), and no title of box with users.

Link to theme:
http://custom.simplemachines.org/themes/index.php?lemma=356 (http://custom.simplemachines.org/themes/index.php?lemma=356)

edited:
oh sorry there is diffrent file modifications.polish.php in this style.
Title: Re: Google Member Map
Post by: brianjw on March 24, 2008, 08:43:11 PM
So it's fixed? :) Good. Glad you got it working.
Title: Re: Google Member Map
Post by: brianjw on March 26, 2008, 10:43:25 PM
0.2 Will be released! Here are the plans & changes...
- Release time is unknown.
- Language strings will be moved from Modifications.<language>.php to GoogleMap.<language>.php making it easier to change the languages.
- Compatibility with 2.0 thanks to Nao!
- Removal of the scroller in the bottom right corner.

Some fixes are:
- When map is disabled it didn't display any message, just a blank page.
- CSS Errors in GoogleMap.template.php - thanks Nao. (whitespace doesn't exist and norwap isn't a correct value - fixed version: white-space: nowrap

More are to come and this message will be edited until 0.2 is released. A changelog will be provided in this release to notify you of the changes.

When 0.2 releases, you may download the upgrade package from your package manager through our package server named Gamerz Garage.
Title: Re: Google Member Map
Post by: mwp on March 27, 2008, 08:59:18 PM
I have the mod running in the default theme.  When I try to add a "pin" to my profile through:

Click here to go place your pin if you have not already.

I get the profile options.  I add an address in "location" but no pin shows up.

Any idea what I'm missing?

Thanks
Title: Re: Google Member Map
Post by: brianjw on March 27, 2008, 09:51:10 PM
The Location part doesn't have anything to do with the mod at the moment.

There should be a map in the profile options towards the bottom of the page where it says: "Place your pin as close as you feel comfortable doing so."

I am currently only providing support for the versions compatible with 1.1. The mod that Nao has posted is not yet supported but will be.
Title: Re: Google Member Map
Post by: mwp on March 28, 2008, 08:17:18 AM
Thanks.  The link at the bottom of the membermap page brings you to the profile page, but there is no map on that page.  Ideally, one could enter their address in their profile and have the lat-long generated for the map.

I'll try generating a separate doc with addresses to populate the map.

One more question - I was using the Classic Yaab theme, and did the install manually using the package parser.  The map button didn't show on the menu so I had to switch to the default theme.  The modifications to index.template.php are apparently different - the following lines don't exist in the Classic theme:

if ($context['current_action'] == 'search2')
      $current_action = 'search';
Title: Re: Google Member Map
Post by: brianjw on March 28, 2008, 04:01:37 PM
The mod isn't compatible for other themes than default unless done by manual install.

There should be a map in the profile page. There was an error in your install.
Title: Re: Google Member Map
Post by: mwp on March 31, 2008, 09:16:09 PM
OK, my bad - I dropped a curly bracket in the profile.template.php

It now works well.  Is there a simple way to import or use a text file with geocoding to display a bunch of pins?

Better yet - add an address in the profile page and use the Google geocoding to place the pin??

Thanks for all of your work on this
Title: Re: Google Member Map
Post by: kizer on April 01, 2008, 12:35:04 PM
I tell all my members to place their pins near their house not on their house. Keeps the stalkers away. ;)
Title: Re: Google Member Map
Post by: brianjw on April 01, 2008, 04:39:49 PM
@mwp: As this doesn't have anything to do with the mod itself. It has more to do with Google's side of the Member Map so I am going to have to ask you to contact them regarding that. I know you can export things from the map through .kml (for google earth) but i don't know if you can import.

@kizer: As the mod says, "Place your pin as close as you feel comfortable doing so."
Title: Re: Google Member Map
Post by: mwp on April 01, 2008, 11:38:40 PM
Thanks to both.  I agree re: exact location, though my site is for a private organization and is password protected (FWIW).  I wanted to give users the option of disclosing email addresses.

I've created a separate map with pinpoints based on a CSV doc with geocoded addresses - just didn't know if this was a "solved problem" in SMF

Thanks again
Title: Re: Google Member Map
Post by: jdvarner on April 05, 2008, 10:56:14 PM
when i try to load thru package manager on smf it says FTP Information Required. how do i get around this?
Title: Re: Google Member Map
Post by: slinouille on April 06, 2008, 07:10:11 AM
Works on SMF2  :P

Thank you Nao for your french traduction ;) ... and of course brianjw :)

Bye
Title: Re: Google Member Map
Post by: brianjw on April 06, 2008, 07:31:50 AM
Quote from: jdvarner on April 05, 2008, 10:56:14 PM
when i try to load thru package manager on smf it says FTP Information Required. how do i get around this?
There is no way. The mod needs to make it temporarily writable to modify those files. Enter your ftp username and password and you'll be good. It doesn't store it anywhere.
Title: Re: Google Member Map
Post by: Solidus.s on April 06, 2008, 05:34:55 PM
Thanks! Works fine! I had to make some changes to adapt it to my theme, and i translated it to Spanish.
Thanks again! ;)
Title: Re: Google Member Map
Post by: jdvarner on April 06, 2008, 07:20:59 PM
Quote from: brianjw on April 06, 2008, 07:31:50 AM
Quote from: jdvarner on April 05, 2008, 10:56:14 PM
when i try to load thru package manager on smf it says FTP Information Required. how do i get around this?
There is no way. The mod needs to make it temporarily writable to modify those files. Enter your ftp username and password and you'll be good. It doesn't store it anywhere.

confused. so im to use the ftp info vs the database info? only ask because everything i do with the forum is smf and through the database. but you mentioned i should use the ftp info. so the ftp login/password for the website where the database resides.

just curious how this writes to the database if the ftp and database are different.
Title: Re: Google Member Map
Post by: brianjw on April 06, 2008, 08:15:23 PM
FTP stands for File Transfer Protocol. It is basically the system you use to transfer files on and off your website. If you use CPanel, the ftp is called File Manager. If you still need help with FTP and CPanel if you use it, I recommend using your favorite search engine or contacting your host.
Title: Re: Google Member Map
Post by: jdvarner on April 07, 2008, 09:27:53 AM
thanks. i understand ftp. I guess my real question is... do you have to execute a file after transfer so to install the google map? just figured i can upload the files via my own ftp client and then execute whatever needs to be executed to actually install the mod.
Title: Re: Google Member Map
Post by: HellBent on April 07, 2008, 12:30:35 PM
Hi,

I've installed your latest version on the default and custom theme. Everything works fine except that the pointers aren't showing up.

Is there a fix for this ? I've looked through this thread and on google, but couldn't find anything.

Thanks in advance :)
Title: Re: Google Member Map
Post by: biggbigg on April 07, 2008, 03:59:48 PM
As far as i know not.  I have reinstalled this script over and over agian checked for duplicate code and nada. Pointers show on profile and show on map but only with firefox. Try looking at the page with firefox and if they appear welcome to my world LOL

Hope its not same issue for you though lol
Title: Re: Google Member Map
Post by: brianjw on April 07, 2008, 05:02:11 PM
jdvarner, it should install by itsef through the Package Manager after entering the full correct FTP information. ;)

HellBent & biggbigg, this is Google's side of the issue. As answered many times. Narrowing down your search in the future may help. ;) This also doesn't have an affect on all sites - my site displays it fine. I recommend putting fresh files over the current SMF ones except for Settings.php and Settings_bak.php and all the install files and this will uninstall other mods and modifications that may have had an affect on this map. Reinstall the mod.
Title: Re: Google Member Map
Post by: HellBent on April 08, 2008, 05:05:33 AM
Quote from: biggbigg on April 07, 2008, 03:59:48 PM
As far as i know not.  I have reinstalled this script over and over agian checked for duplicate code and nada. Pointers show on profile and show on map but only with firefox. Try looking at the page with firefox and if they appear welcome to my world LOL

Hope its not same issue for you though lol

QuoteHi bigg, I've done several re-installs too, totally from scratch. I get the pointer in profile, but that's it. I don't even get it in firefox.

I'll do one more install of smf from scratch and post the link to see if any of you can see pointers.

Thanks for your reply :)

Edited to add:

ok I finished re-install and this time I checked the UTF-8 option during install and it's working fine.

Settings in admin panel:

The default Latitude  - 45.089035564831036
The default Longitude - -35.859375
The default Zoom - 2

If you can bear to do a fresh install, I'm sure it would work for you also, unless you tried that already :)

Here's a neat site where you can get the exact lat-long you need:
http://mapmaker.donkeymagic.co.uk/  you have to sign up but no validation required so you can use it immediately.

Choose the view you want as your membermap default and then get javascript:  in the javascript code it generates, you'll find the lat + long settings :)
Title: Re: Google Member Map
Post by: HellBent on April 08, 2008, 06:47:13 AM
Quote from: brianjw on April 07, 2008, 05:02:11 PM

HellBent & biggbigg, this is Google's side of the issue. As answered many times. Narrowing down your search in the future may help. ;) This also doesn't have an affect on all sites - my site displays it fine. I recommend putting fresh files over the current SMF ones except for Settings.php and Settings_bak.php and all the install files and this will uninstall other mods and modifications that may have had an affect on this map. Reinstall the mod.

Thanks for your reply Brian :)

It was the utf-8 option during install. I checked it this time and all worked like a dream :) 
Title: Re: Google Member Map
Post by: brianjw on April 08, 2008, 09:24:43 PM
Glad it is now working. I am going to update the readme in the mod to tell people about the known issue. It's not really fixable, it's just preference.
Title: Re: Google Member Map
Post by: jdvarner on April 10, 2008, 08:47:42 PM
This is error i get. Fixable?

Type Action Description
1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Extract File ./Themes/default/images/german/googlemap.gif 
7. Execute Code add_settings.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Sources/ManagePermissions.php Test successful
11. Execute Modification ./Sources/ModSettings.php Test failed
12. Execute Modification ./Sources/Profile.php Test successful
13. Execute Modification ./Themes/default/style.css Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Themes/default/Profile.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.german.php Skipping file
18. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
19. Execute Modification ./Themes/default/languages/ModSettings.german.php Skipping file
20. Execute Modification ./Themes/default/languages/Who.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.german.php Skipping file
Title: Re: Google Member Map
Post by: brianjw on April 10, 2008, 09:42:26 PM
Attach your ModSettings.php file. It's another mod conflicting with this mod. I can fix it for you.
Title: Re: Google Member Map
Post by: jdvarner on April 11, 2008, 09:07:50 AM
Brian its attached.
Title: Re: Google Member Map
Post by: brianjw on April 11, 2008, 12:18:27 PM
@jdvarner:

Now apply the mod through the package manager if you haven't already even with the ModSettings.php error. After it is installed successfully, upload the attached file and overwrite the existing ModSettings.php in /Sources/ with it.
Title: Re: Google Member Map
Post by: jdvarner on April 11, 2008, 11:08:03 PM
okay. i got it loaded. it had me register with google.com to create my own key for my site? now what? right now i have a blank member map and annoying error, saying that the map is already registered.
Title: Re: Google Member Map
Post by: brianjw on April 11, 2008, 11:11:04 PM
Well you have to enter the google pin in the admin features and options for google member map. Make sure while entering the url for getting the pin you typed it in as "http://www.myforum.com/smf" <-- no back slash "/" and in this example, the smf is in the directory smf<--
Yeah, you do have to register on google.com. That is why lesser people use the mod then when you didn't have to register.
Title: Re: Google Member Map
Post by: jdvarner on April 11, 2008, 11:14:27 PM
duh. never mind.

damn i fell dumb right about now. :)
Title: Re: Google Member Map
Post by: Skhilled on April 12, 2008, 04:33:11 AM
Hi brian,

I've been getting these same 4 errors whenever clicking the link to Google Maps. The link works and there are no other problems. Using smf 1.1.4 and the default theme. I've checked all of the edits and they are in place. Any ideas or am I missing something?

Quote
http://tink-fun.com/index.php?action=googlemap;sa=.js (http://tink-fun.com/index.php?action=googlemap;sa=.js)
Apply Filter: Only show the errors with the same message
8: Undefined index: googleSidebar
File: /home/tinkfunc/public_html/Sources/GoogleMap.php
Line: 111

http://tink-fun.com/index.php?action=googlemap;sa=.js (http://tink-fun.com/index.php?action=googlemap;sa=.js)
Apply Filter: Only show the errors with the same message
8: Undefined index: googleSidebar
File: /home/tinkfunc/public_html/Sources/GoogleMap.php
Line: 108

http://tink-fun.com/index.php?action=googlemap (http://tink-fun.com/index.php?action=googlemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: googleSidebar
File: /home/tinkfunc/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 62

http://tink-fun.com/index.php?action=googlemap (http://tink-fun.com/index.php?action=googlemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: googleSidebar
File: /home/tinkfunc/public_html/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 57

Mods installed:

TinyPortal                                               0.983
Member Awards                                               1.0.2
Member Color Link                                               2.1.0
SMFShop                                               3.0
SMF Gallery Lite                                               1.8.1.2
MCLegendII                                               1.1
FlashChat Integration                                               1.0
Users Online Today Mod                                               1.4.0
E-Arcade                                               2.5.0
Country Flags                                               1.0.3
Title: Re: Google Member Map
Post by: brianjw on April 12, 2008, 01:35:00 PM
Skhilled, it is a known bug. I am still working to fix it. A fix was made in this topic but I am trying to improve it so it is clearly read in the administration panel.
Title: Re: Google Member Map
Post by: Skhilled on April 14, 2008, 09:40:21 AM
Oh sorry, Brian. I must have missed it. Thanks. :)
Title: Re: Google Member Map
Post by: SgtMic on April 14, 2008, 02:40:28 PM
When you release this for 2.0 xxx rc (or a final version :)) will members need to reenter their locations? Or will the new version pick up on that table?
Title: Re: Google Member Map
Post by: brianjw on April 14, 2008, 04:16:25 PM
Quote from: SgtMic on April 14, 2008, 02:40:28 PM
When you release this for 2.0 xxx rc (or a final version :)) will members need to reenter their locations? Or will the new version pick up on that table?
The tables shouldn't change. If it does, I hope to create some kind of script to transfer. I know for large websites, it would be a pain for members to have to re-enter their location again. I am working on a way.
Title: Re: Google Member Map
Post by: SgtMic on April 14, 2008, 05:09:26 PM
Quote from: brianjw on April 14, 2008, 04:16:25 PM
Quote from: SgtMic on April 14, 2008, 02:40:28 PM
When you release this for 2.0 xxx rc (or a final version :)) will members need to reenter their locations? Or will the new version pick up on that table?
The tables shouldn't change. If it does, I hope to create some kind of script to transfer. I know for large websites, it would be a pain for members to have to re-enter their location again. I am working on a way.

Nice. On one of my sites, there are over 300 members with pins on the map. :)
Title: Re: Google Member Map
Post by: Basie on April 17, 2008, 03:07:47 PM
My site has a portal.

So the main page is www.mysite.com and the forum is www.mysite.com/forum

So which of those URL's do I use when I sign up with google?
Title: Re: Google Member Map
Post by: brianjw on April 17, 2008, 04:37:15 PM
You would use http://www.mysite.com/forum

NOTE: There must be a http:// before the url, there must be NO / (slash) after the word forum. So basically you are linking to your forum.
Title: Re: Google Member Map
Post by: 2Ntense on April 20, 2008, 02:39:31 PM
ahem... Modifications.english.php should have been

$txt['googleMappinned'] = 'Pinned Members';
$txt['googleMapGreenPinGD'] = 'Someone\'s Pin';


Members is neither possessive nor a contraction.
Someone's IS possessive.

http://en.wikipedia.org/wiki/Apostrophe  :P

Title: Re: Google Member Map
Post by: brianjw on April 20, 2008, 06:28:12 PM
LOL 2Ntense, it doesn't go with it if it is Someone's Pin, maybe if I do "Member Pins" (i know that is correct grammar lol. ;)

QUICK UPDATE
0.2 is well on the way. 0.2 will have new language files (GoogleMap.<LANGUAGE>.php, possibly others)
New features for SMF 1.1.4
- Language Files (GoogleMap.<language>.php (which were formerly located in Modifications.<language>.php))
- Removal of annoying features (Map sliding frame in bottom right (many requests were how to remove it, this will be removed in this version))
- Several bug fixes.

(https://www.simplemachines.org/community/Themes/smsite/images/english/new.gif)Will work with SMF 2.0 versions in 0.2
- All changes above in SMF 1.1.4 will be made to the compatible version with SMF 2.0.

Please understand, we have added that we aren't going to update the Google Map mod until SMF 2.0 was in final or RC's and have put it there to give us open time to give full effort into the mod. It may very well be released sooner then when the final versions or RC versons do come out. This is unknown as of yet.
Title: Re: Google Member Map
Post by: SgtMic on April 20, 2008, 08:50:15 PM
Quote from: brianjw on April 20, 2008, 06:28:12 PM
Will work with SMF 2.0 versions in 0.2

Quote from: brianjw on April 20, 2008, 06:28:12 PM
Please understand, we have added that we aren't going to update the Google Map mod until SMF 2.0 was in final or RC's and have put it there to give us open time to give full effort into the mod. It may very well be released sooner then when the final versions or RC versons do come out. This is unknown as of yet.

Does it or does it not work with SMF 2.0? I'm a little confused.  :)
Title: Re: Google Member Map
Post by: 2Ntense on April 20, 2008, 09:56:14 PM
One note (applies to Seek2501's question and several others):

the API KEY that you request is for the ROOT of your site, not any sub-dir.  It's valid for the entire domain.  In other words, apply for hxxp://www.smf.com/ and not hxxp://www.smf.com/forum

http://code.google.com/support/bin/answer.py?answer=55146&topic=10945

And it's for the domain that your members are surfing, NOT the physical name of your server.  If your server is hxxp://234ra.godaddy.com you will use your own domain name of hxxp://www.smf.com, NOT the server.

I doubt putting the FAQ link in there at the head of the thread wouldn't eliminate any of the questions, though.  Who reads the FAQs?


BTW, from the playing I've done (elsewhere) with the GoogleMap API, it's more stable if you plunk it inside of an IFRAME and use their preferred <body onload="load()" onunload="GUnload()"> statement to get the Javascript to initialize properly and exit cleanly.  It's a bear with SMF though as the BODY is somewhere else.

I've spent a fruitless day today trying to get the functions to work as a sub-action from the MEMBERLIST.  Sigh.  Maybe sometime later when I know the forum code better... if it's still the same in 2.0.  :-\


And finally, I added a small 'useability' tweak to mine.  When you place a pin it re-centers the map around the new pin.  Makes it easier to zoom in from there.  ;D  In Profile.template.php, add the line in red.

         GEvent.addListener(map, 'click', function(overlay, point) {
            if (overlay) {
               map.clearOverlays();
               document.getElementById(\"latitude\").value = \"\";
               document.getElementById(\"longitude\").value = \"\";
            } else if (point) {
               map.clearOverlays();
               map.addOverlay(new GMarker(point));
               map.panTo(point);
               document.getElementById(\"latitude\").value = point.y;
               document.getElementById(\"longitude\").value = point.x;
            }


Title: Re: Google Member Map
Post by: brianjw on April 20, 2008, 11:00:24 PM
@SgtMic:
I was simply explaining what things were going to be like in version 0.2. 0.2 will be compatible with SMF 2.0. The latest version of this mod is 0.1. ;)

@2Ntense:
I lost some of what you were saying when you stated the part about the iframe and body tag. Could you please explain that?
What are you trying to get added to the member map?

Thanks for the tweak. I will add that in to 0.2 :)
Title: Re: Google Member Map
Post by: SgtMic on April 21, 2008, 12:07:11 AM
Quote from: brianjw on April 20, 2008, 11:00:24 PM
@SgtMic:
I was simply explaining what things were going to be like in version 0.2. 0.2 will be compatible with SMF 2.0. The latest version of this mod is 0.1. ;)

Now I understand. I'm just getting a little antsy for this mod.
But I understand the reasoning for holding off until a stable release.
Title: Re: Google Member Map
Post by: 2Ntense on April 21, 2008, 10:42:34 AM
Google's applet is a little funky and it's got memory issues.  If you don't invoke it with the methods that they recommend, your browser can get exceedingly slow after you've hit the applet a bunch of times (for instance, after looking at a bunch of member's profiles linked from the main map).  The 2.x version of the applet that they're using now is better, but it's far from perfect.

The LOAD and UNLOAD commands also cure most of the issues with IE and other browsers suddenly deciding to not show pins or the map (there's a bunch of complaints about that here that aren't resolved).  IE is the worst offender, but I've seen Opera have grief as well.  For some reason the browser doesn't always recognize that you've invoked the applet.  To get the LOAD and UNLOAD to work right, I found by experimentation that if I didn't have control over the <head> and <body> tags on a page, the only way I could force it was to drop the whole function inside of an <iframe>.  The iframe is rendered last (after the rest of the page loads) so it serves the same 'initialization sequence' purpose as <head> and <body>.  The stuff outside of the iframe is equivalent to <head> and opening and closing the iframe works to trigger the ONLOAD and ONUNLOAD calls.  I haven't tried screwing with SMF's <head> and <body> tags but I'm willing to bet that it would be hard to get the preferred initialization to work right with SMF, and you'd be doing useless Javascript calls on every page of the forum (not just the page views with maps).  I had the same problems before and dropping the map function inside of an iframe solved it permanently.

I have a sample around here somewhere... I'll see if I can find it.
Title: Re: Google Member Map
Post by: 2Ntense on April 21, 2008, 02:45:12 PM
Here's another minor change I had to do on ours: limit the avatar size in the balloon.  Some of our members have avatars up to 260px tall, which either extends well outside of the balloon or makes the balloon insanely large.  I've seen it do both ugly things.

in Sources/GoogleMap.php replace two instances of
<td rowspan="3">' . $marker['avatar']['image'] . '</td>
with
<td rowspan="3"><img src="' . $marker['avatar']['href'] . '" height="80" /></td>

As a side benefit, I noticed that a couple of my 'test dummy' members had animated GIFs for avatars, and they weren't animated in the balloon before I sized the height.



I've done a handful of other small changes, but one that some people may enjoy is a 'search' box when they're initially placing their pin.  You can add the same function on the main MEMBER MAP display, but we don't have enough people to make it worthwhile.

Here's what it looks like: http://img138.imagevenue.com/img.php?image=03206_new_search_box_122_970lo.jpg

Here's the chunk out of Themes/default/Profile.template.php that I tweaked, with my additions in red:
   //Google Map Member Map pin set
   if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_place'))) {
   echo '
                     <tr>
                        <td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
                     </tr><tr>
                        <td class="windowbg2" colspan="2" align="center">
    <style type="text/css">
      @import url("http://www.google.com/uds/css/gsearch.css");
      @import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
     #map input, textarea {background-color: #ffffff;}
      }
    </style>
                        <script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
    <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0" type="text/javascript"></script>
    <script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>   
                        <div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div>
                        <div id="message" align="center">Click to place a point or click on your point to remove it.</div>
                               <div id="disclaimer" align="center">', $txt['googleMapDisclaimer'] ,'</div>

                           <input type="hidden" name="latitude" id="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
                           <input type="hidden" name="longitude" id="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
                           <script type="text/javascript">';
   //Evil hack on this!!!
        echo '
      //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

   echo "
      function LoadMap() {
         var map = new GMap2(document.getElementById(\"map\"));
         map.addControl(new GLargeMapControl());
         map.addControl(new GMapTypeControl());
      var options = {suppressInitialResultSelection : true, resultList : google.maps.LocalSearch.RESULT_LIST_SUPPRESS};
      map.addControl(new google.maps.LocalSearch(options), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));";

The marker for the city disappears when you move or click on the map.  I tried but wasn't able to eliminate the stub of the search result.  If you type in PARIS then you get Paris, France.  If you type in PARIS TX then you get a somewhat less-cultured location.  ;D

edit: without the "#map input, textarea {background-color: #ffffff;}" line added in above, SOME themes will put Lawd Only Knows what color in the textarea of the search box (Aliennation was black on black).   >:(  If you play with any of the CSS settings, use the #map identifier as that will ONLY apply to items within the map itself (Google's stuff).  Some of their CSS may override your attempts, though.
Title: Re: Google Member Map
Post by: 2Ntense on April 21, 2008, 03:53:45 PM
Awww, s--t.  I've been doing all of my work and checking with Firefox, and both IE and Opera fall flat on their faces... all 3 maps are blank in both browsers: no pins, no map, nada.  Looks like I'll have to dig out that IFRAME fix sooner rather than later.  I can see from Opera's Javascript console that a major chunk of the script isn't being loaded/initialized correctly.
Title: Re: Google Member Map
Post by: brianjw on April 21, 2008, 04:52:38 PM
Damn. Well I don't think the mod will be in an iframe as the whole point of the mod is to integrate it and in an iframe isn't really "integrated."

Thanks for the other fixes as well. They are being put in 0.2.
Title: Re: Google Member Map
Post by: 2Ntense on April 22, 2008, 02:24:04 AM
Brian,

TLM used this:  setTimeout(\'MakeMap()\', 500);  in GoogleMap.php to try and fire off the whole function chain that sends the JS request to Google and then goes on from there.  That's what's causing IE to fold; it's not a reliable construct to initialize their script.  IE will load part of the page and then get confused with the JS running.

I've fiddled with the files I have and got it to reliably load the two profile maps with IE6, but it still falls flat on it's face with the main map.  I get the map display itself, but no sidebar member list or markers.  What IE is complaining about is the <BODY> statement, which is where the onload/onunload initializations are supposed to happen.

There's another method using a Javascript onload that one guy says works, but you'd still have to put the API functions up inside the <HEAD> of the page, which sucks for every page that's NOT the member map.
www3.telus.net/DougHenderson/test_onload_map.html

There's Yet Another method mentioned at the Google API Groups, but when I type in the author's name I get 12,000 hits (yeah, that's Google)  ;D  The other method used the window.onload=load(); javascript at the end of the map function to fire it off.  I'm still hunting this one down.
edit: found him!  ://econym.googlepages.com/index.htm

About 75% of our members are still using various versions of IE from 6.0 on, so I don't have a choice in supporting that old hag.  I'll keep looking for The Fix.

edit: <remove (head) from (rear end)><reload>  something in my security settings for IE was blocking the script(s) after the initial map display (sidebar, etc).  Once I set the test site to the 'trusted' zone the map works fine.  Never mind!   ;D  Onward!
Title: Re: Google Member Map
Post by: 2Ntense on April 22, 2008, 02:46:14 PM
I'm looking at adding a function similar to what FiveArts requested on page 7? here, blocking the main map unless the member has placed a pin.  It won't be pretty 'cos I don't see a clean way to get that info into that chunk.
Title: Re: Google Member Map
Post by: brianjw on April 22, 2008, 04:06:22 PM
It would require modifying the map code itself, the php code (with if statement) and possibly another db table.

2Ntense, you have lots of experience in this. In your edit in the post above the one above, it shows an edit. Are you saying that this was an issue on your part or what?
Title: Re: Google Member Map
Post by: RustyBarnacle on April 22, 2008, 04:08:27 PM
Would you consider complete addys for local groups of friends who sometimes want driving directions to each other's place?
Title: Re: Google Member Map
Post by: brianjw on April 22, 2008, 04:20:58 PM
RustyBarnacle, I am not sure quite what you're saying. Are you saying complete addresses? For this mod, No. Because there are people on the internet even those who can be registered to your site are stalkers. It's just for safety. If I released something, I could be partially responsible if something happens to that person. ;)
Title: Re: Google Member Map
Post by: RustyBarnacle on April 22, 2008, 04:23:21 PM
I gotcha, no problem, I was still wondering how I would handle that issue if you said yes anyway.  :)
Title: Re: Google Member Map
Post by: 2Ntense on April 22, 2008, 10:48:38 PM
Yep, anal <> cranial inversion.  :-[  I have IE locked down so tightly that it wouldn't load the controlling Javascript from Google.  I got the maps but no markers.  I set my test site as 'trusted' for now to get around it, which eliminates most of the security settings in IE.

For those of you that don't know how Google's API works, Google loads a large chunk of Javascript into your browser cache, and that's what does a lot of the map functions other than the tile display.


Privacy modifications:

in Sources/GoogleMap.php
      // create the map
      var map = new GMap2(document.getElementById("map"));

      // ====== Restricting the range of Zoom Levels =====
      // Get the list of map types     
      var mt = map.getMapTypes();
      // Overwrite the getMinimumResolution() and getMaximumResolution() methods
      for (var i=0; i<mt.length; i++) {
      mt.getMinimumResolution = function() {return 2;}
      mt.getMaximumResolution = function() {return 11;}
      }

      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.addControl(new GScaleControl);
      // Sets the map type based on admin prefrence API 1 !!!


in Themes/default/Profile.template.php

   function LoadMap() {
      var map = new GMap2(document.getElementById(\"map\"));
      map.disableDragging();
      map.disableDoubleClickZoom();
      map.addControl(new GScaleControl);
      map.setCenter(new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . "), 6, ". $modSettings['googleMapsType'] .");
      var point = new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . ");
      var marker = new GMarker(point);
      map.addOverlay(marker);
   }

I did two slightly different things.  The first one locks the ZOOM factor of the main map between 2 and 11 (see the changes in red)  I suppose you could allow all the way out to 1 for the minimum zoom, but what's the point?  The markers don't display until 2, and it eliminates questions.

The second change disables zooming and dragging when you view someone else's profile, and I locked the zoom at a point I liked, 6 in this case.  You could use the same 'zoom limit' trick above, but there's little need since it will only ever show the one marker.  Again, fewer questions.  You don't need the 'map.addControl(new GScaleControl);', all it does is put the distance scale in the lower-left corner.

I'm PURELY suggesting these for people comfy with hacking your source files.  Creeping Featurism could turn Brian's (and TLW's) excellent work into an endless nightmare, and it won't ever get released.
Title: Re: Google Member Map
Post by: 2Ntense on April 23, 2008, 12:18:54 AM
Brian, I'll take a look at the CSS for you.  I use a very dark theme myself, and the balloons are nearly impossible to read with my preferred theme.

Correct me if I'm wrong, but you want the balloon text inside the map to be the fixed set of colors in the CSS you added, but the side PINNED MEMBERS table and the bottom ICON COLOR LEGEND you intend to be from the theme colors, correct?  I think it looks more consistent with the rest of the theme that way, and it's LOADS easier since IE doesn't always respect the container.

All I need to do is back-track what IE and FF are thinking is the container for the map itself, as that's the only place that's hard to read.

edit: got it!  Add this just below the CSS that Brian put in there, or use it in place of the other CSS addition.  This ONLY effects the text in the map bubble, leaving the other text and links on the map page to inherit from your theme.

#map a:link{
    color: #000080;
}
#map a{
    color: #00ff00;
}

#map a:active{
    color: #ff0000;
}

#map a:hover{
    color: #000;
}

And of course, Firefox thinks your 'member name' is just the a color, IE thinks that both clickable links are the a:link color.
Title: Re: Google Member Map
Post by: 2Ntense on April 23, 2008, 11:09:10 AM
update: the IE on 2 of my 3 computers has suddenly beshat itself and will only show the map tiles, not the markers or the 'Pinned Members' list.  I've tried clearing the cache and doing everything I know of to cure it.

To heck with it, I'll go ahead and release it to our members that way.  Maybe it'll convince a few of 'em to stop using IE.
Title: Re: Google Member Map
Post by: brianjw on April 23, 2008, 04:17:23 PM
2Ntense, you are very experienced in this. I think we could complete alot if we worked on it together. How would you feel about joining my forums and we could discuss alot of the mod there? (link in sig). Thanks, I will also add the css in there. So many things have been added from you already. :)
Title: Re: Google Member Map
Post by: 2Ntense on April 23, 2008, 05:04:29 PM
Oh, I'm *far* from knowledgeable! :D  I'm just a deft hacker.  I've played with the Google API somewhat over the last few years and know a bit of PHP, and I can *sometimes* hack Javascript.  I'll log in over there in case there's anything I can do to help, though.

BTW, I found out what broke my map: one of our members had the username Lèvres (she's Quebeqois, don't ya know).  I removed her from the member map and viola!  it works under IE again.  We'd had it running in UTF-8, but someone broke that last year and the UTF isn't working now... which buggered a bunch of the posts as well.
Title: Re: Google Member Map
Post by: brianjw on April 23, 2008, 05:44:01 PM
Hmm, so it should work now? I think I set it up as a UTF-8 map in the current 0.1.
Title: Re: Google Member Map
Post by: 2Ntense on April 26, 2008, 09:38:45 PM
Ah, I wasn't clear...

The map supports UTF-8, and our test site USED to.  Some of the member names were in UTF characters.  Now that UTF is buggered on the test site, IE (and only IE) blows chunks if the SQL database has UTF in it but the forum header doesn't have UTF showing for the coding.  Firefox, Opera and Netscape rode out the UTF characters and displayed the map & side panel with the forum not set to UTF, and IE gagged with a useless error message and only displayed the map tiles, no markers or side bar.

That's a hint to people that can't get the side panel to show up in IE when they *know* that they have members pinned.  It's Yet Another failure mode of that worthless old browser.  Verify that your forum header has <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
if you had UTF running in the past, or double-check your active member names.

None of our support staff have a Mac so I couldn't test that specific fault with Safari.

----------------------------------

Well, I'm about done with all of the fiddling I can do.  I'm bolting it all together so that I don't have to do a manual install on the main site.  It blew on a few of the files initially due to other mods we had installed, so I'll tweak the install tests to account for our existing mods. 
Title: Re: Google Member Map
Post by: brianjw on April 26, 2008, 09:55:15 PM
I think I will add that edit into the mod, however I am not sure how to do it...
It would probably run as an error="ignore" kind of command but it would have to search for something and find it and then replace with this new code. That is where the error="ignore" comes in to play because UTF-8 may already be in use. :)

My database has over 200 characters in it that looks like: PÃÆ'Įââ,¬â,,¢ÃƒÆ'ââ,¬Â ’ÃÆ'ƒâ€Ã...¡ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,©cs

I am going to have to sit down one day and fix them all. Most of them are my username with the trademark symbol. :P
Title: Re: Google Member Map
Post by: Sabre™ on April 29, 2008, 04:21:33 AM
Hi Brian
Ive just manually installed this, and now I cant get into my site lol
Im hoping it is because of one missing item(fingers crossed), which is the "add_settings.php".
Where do I add this??   I tried to the root of my forum, and the default temp directory.
No glory.
I know I havent forgotten to add a section of code, as I have now gone over it 3 times.(A mean feat in itself!! lol)

Any guidance would be appreciated :)
Thank You in advance

[HERE] (http://truculent.hammersway.com/home/) is my site, so you can see what I mean.
Title: Re: Google Member Map
Post by: GenghisChris on April 29, 2008, 07:38:54 AM
Hi guys, my forum error log is filling up with this error

8: Undefined index: googleSidebar
File: /home/chris/public_html/forums/Sources/GoogleMap.php
Line: 111

it's happening on multiple lines so is filling up my log quicker thn a quick thing moving quickly

Any ideas why this might be, we're using the default skin, it seems to happen in relation to  a calendar bug we have too
Title: Re: Google Member Map
Post by: Bigguy on April 29, 2008, 11:45:09 AM
brianjw; mod author is away for a few days. He should be back around Thursday of this week.
Title: Re: Google Member Map
Post by: Sabre™ on April 29, 2008, 06:21:00 PM
Ok Thanks BigGuy.

I'll remove the mod later today so I can get back in lol   and wait till Brians back.

Cheers mate :)
Title: Re: Google Member Map
Post by: fals on May 01, 2008, 02:53:22 PM
Hi
To anyone who still has problems displaying pins and memberlist in Internet Explorer...

I helped a friend install this MOD and we had the same problem - pins only show in firefox.

On my own site i use the "old" version of this googlemap mod and it works in all browsers.

So i simply took the Sources/GoogleMap.php from my site and uploaded on his site = wolla, it works  :D

I have attached it here, so give it a try (remember to backup your old Googlemap.php)
Included with a few of my own enhancement, mousewheel zoom and so on  ;)
Title: Re: Google Member Map
Post by: brianjw on May 01, 2008, 04:19:10 PM
Hi all! I am back.

@Sabre: Have you tried installing via package manager? Did you use the Package Parser (http://www.gamerzgarage.com/package.php) to guide you through manual install?
I even make mistakes by reading it out of the file, so that is why I recommend the package parser.
Title: Re: Google Member Map
Post by: 2Ntense on May 01, 2008, 08:39:12 PM
Quote from: fals on May 01, 2008, 02:53:22 PM
I helped a friend install this MOD and we had the same problem - pins only show in firefox.

On my own site i use the "old" version of this googlemap mod and it works in all browsers.

So i simply took the Sources/GoogleMap.php from my site and uploaded on his site = wolla, it works  :D

I have attached it here, so give it a try (remember to backup your old Googlemap.php)
Included with a few of my own enhancement, mousewheel zoom and so on  ;)

Interesting.  I just did a DIFF on that file versus what brianjw has been working from, and there are two areas of difference that are likely causing the issues.  In both places it's to do with the XML file that's used to generate the sidebar, and in both the character set coding was changed from "ISO-8859-1" to "UTF-8".

With respect to the tests I did, this is an IE error only.  All other browsers deal with international character sets gracefully, even older versions of these other browsers.  I've yet to find a version of IE that does it correctly.  Oh, what a shock!  IE is buggy!

Say Brian, is there a variable that you can read that will set the XML character set to whatever the member/forum is using?  I'd guess that on some of these installations people aren't running either the ISO English or the UTF-8... it may be in Lower Vulnavian or some other language set.

------------------

Here's a MySQL query that you can use to do a 'global search & replace' on the wonky characters you have.  We had the same issues after we changed hosts.  You'll want to re-run it for each mangled group of characters, once in the body and once in the subject.  In our case the host move only gobbled the left and right single-quotes.

UPDATE smf_messages SET subject = REPLACE(subject,'old_text','new_text');
and
UPDATE smf_messages SET body = REPLACE(body,'old_text','new_text');
Title: Re: Google Member Map
Post by: brianjw on May 01, 2008, 10:15:37 PM
2Ntense, that is partially out of my knowledge but I might be able to come up with something. I am also having trouble understanding entirely what you are saying about this. There is no way to find out what the users encoding in the browser can handle. That is the problem...

I don't seem to have any problems with this on IE 7. I just think that your members need to either upgrade their browser or switch to firefox at this point until we can figure something out.
Title: Re: Google Member Map
Post by: 2Ntense on May 01, 2008, 10:45:59 PM
Brian, I took the reply back to your board... no sense confusing all of the good folks out here.

The MySQL query is for the issues you have over there after moving hosts, nothing to do with the GoogleMaps mod.
Title: Re: Google Member Map
Post by: SgtMic on May 02, 2008, 12:00:04 AM
Updated for 1.1.5?
Title: Re: Google Member Map
Post by: 2Ntense on May 02, 2008, 12:35:23 AM
Doesn't need any change for 1.1.5.  I'm running it now.
Title: Re: Google Member Map
Post by: brianjw on May 02, 2008, 09:30:40 AM
I will add to the modsite that it is compatible for 1.1.5. No changes are required for 1.1.5 as it doesn't affect any mods.
Title: Re: Google Member Map
Post by: Sudhakar Arjunan on May 02, 2008, 11:13:20 AM
HI Respected BrianJw,

I have installed in My Forum Default and other Dilbermc theme also.

Got everything worked perfectly in http://forum.itacumens.com

But when i looked in to the profile page i had found the map towards the right side. like one showed in attached pic.

And i had even tried to change the No sidebar in Features and Options but i dont find any change in it.

Check the Attachment and help me as soon Mr.BrainJW

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Google Member Map
Post by: brianjw on May 02, 2008, 11:42:38 AM
I already see that you have other modifications installed so it is probably conflicting with another mod. Please attach your Profile.template.php from /Themes/default/ and your Profile.php from /Sources/

Thank you. :) Then I can help you.
Title: Re: Google Member Map
Post by: 2Ntense on May 02, 2008, 01:19:03 PM
Sudhakar, I have the same 'Forum Visitors' mod, and it looks like you got the code insert at the wrong spot.  Here's my themes/default/Profile.template.php (just a piece):

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td colspan="2" align="center" valign="top"><br />
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>
<tr class="titlebg">
<td height="26" colspan="2">', $txt['latest_visitors'], '</td>
</tr>';
if(!empty($visitor_profile)) {
foreach ($visitor_profile as $visitor)
echo '<tr>
            <td width="15%" class="windowbg" align="center" style="padding:5px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="50" />' : '', '</td>
<td class="windowbg" style="padding:5px;"><b>', $visitor['username'], '</b><br /><span class="smalltext">Posts:', $visitor['posts'], '<br /><a href="', $scripturl, '?action=profile;u=', $visitor['id'], '">Profile</a></span></td>
</tr>';
}
else {
echo '<tr>
<td colspan="2" align="center"><br />', $txt['no_visitors'], '</td>
</tr>';
}
echo'
</table>
</td>
</tr>';
// INSERT THE GOOGLE MAP HERE
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) {
if(isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude'])) {
echo '


I suspect your code insert is going in before the if(!empty($visitor_profile)) { line.  The attached pics show the default theme and the Dilber MC that I see you're using, but with the insert point I've used above.  If you adjust your insert point to account for the 'Forum Visitors' mod then all will be good.

Another way to do it is to uninstall the 'Forum Visitors' mod, THEN install the GoogleMap mod, and then re-install the 'Forum Visitors' mod.  That should allow the Visitors to add it's extra column, and still have the Google Map at the bottom of the page.  I haven't tested this, but it makes sense.  Both mods are trying to use the same insert point in the Profile.template.php, so the installation sequence is important.
Title: Re: Google Member Map
Post by: Sudhakar Arjunan on May 02, 2008, 02:22:22 PM
Hi Respected 2Ntense,

Great work

But i had misspelled somewhere so i though i will change it later and disabled the cool mod.

Now i had Tried it and its working fine, and you have explained more clearly.

Thanks For it and am Very Thankful for your Share.

Take  a look over @ http://forum.itacumens.com

Thanks & Regards,
Sudhakar, Admin
www.itacumens.com
Title: Re: Google Member Map
Post by: Sabre™ on May 02, 2008, 08:48:01 PM
Quote from: brianjw on May 01, 2008, 04:19:10 PM
@Sabre: Have you tried installing via package manager? Did you use the Package Parser (http://www.gamerzgarage.com/package.php) to guide you through manual install?
I even make mistakes by reading it out of the file, so that is why I recommend the package parser.

Yea mate, I tried the parser the second time.
I cant recall the error I was receiving, as it was toward the beginning of last week when attempting to add this.
It wont install via package manager for me, so went for the manual approach. I lost count of the amount of times I added then removed the code  lol       But Im trying to get the package manager to install it now.
I keep gettin that ftp friggen page.   Ive chmoded ALL of my folders to 777 then 755 with no glory.
Each time I add my details to that ftp page, it just goes right back to it   lol    <--frustrated laugh

Have you, or anybody here gotten through this page??
Ive read over 12 threads of people who have had this with other mods, but what has worked for them, failed for me :-\
Hopefully someone has the answer, cause Im at this stage (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmilies.sofrayt.com%2Feng%2Fcomputer7.gif&hash=e1cb20fdd15633bb673527df41e5df26786bb21b)

lol

Thankyou in advance :)
Title: Re: Google Member Map
Post by: 2Ntense on May 02, 2008, 09:45:11 PM
Most likely, the requirement for FTP is due to one (or both) of these two things:

1) the change to /index.php, as this is the first mod I've installed that hit that file, or

2) the upload and execution of add_settings.php

It looks like it's safe to do those two steps in advance and remove them from the modification.xml, but I've already hand-patched my forum so I can't test that Wild-Assed-Guess for ya.  There's no way for me to uninstall from the test site short of going back in and replacing a bunch of backup copies.  Yeah, I had the same issue, and the FTP CHMOD never worked for me either.  I was stuck doing it all the hard way.

If I had another 'sacrificial forum' that I could test on, I'd give you a solid answer.
Title: Re: Google Member Map
Post by: brianjw on May 02, 2008, 10:41:00 PM
@Sabre™:
Your issue sounds like one that I had when I switched hosts. Many hosts are different, many require different things...
Create a /temp/ directory in ./Packages/ and chmod it to 777.
If you continue having problems, try this mod: http://custom.simplemachines.org/mods/index.php?mod=724

brianjw
Title: Re: Google Member Map
Post by: c3vettes on May 02, 2008, 11:05:56 PM
Am I missing something or are the pins only placed manually via panning and zooming to find your location? Any way for member's to place their pin with an address entry like on a location search?

BTW, it works great for me both with Firefox and IE7. (SMF 1.1.5 and about 8 mods).



Title: Re: Google Member Map
Post by: brianjw on May 02, 2008, 11:15:01 PM
c3vettes, I believe we are integrating a search in the next version. Currently, everything is beta and is still undergoing testing. As well as the SMF 2.0 release is holding back the next version. ;)
Title: Re: Google Member Map
Post by: c3vettes on May 02, 2008, 11:52:44 PM
Thanks for the update!  8)
Title: Re: Google Member Map
Post by: Sabre™ on May 03, 2008, 03:21:21 AM
Cheers Brian.
I tried both suggestions, with no glory.
Gonna give the manual install another run, while I have the time.

Thanks 2Ntense.
If another install doesnt go well for me, then I'll give your suggestion a go.
Title: Re: Google Member Map
Post by: brianjw on May 03, 2008, 09:50:12 AM
If you still have problems with this:

I recommend putting fresh files over the current SMF ones except for Settings.php and Settings_bak.php and all the install files. This will uninstall other modifications (mods) and themes that may have had an affect on this map. You really only have to overwrite the default, babylon, and classic themes. Any other themes in the Themes directory can be left there. Reinstall the mod.
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 04:38:04 PM
SMF 1.1.5 default theme

hello... i love this mod but i have been struggling through two attempts to edit 4 files that failed on install... The problem is when I follow the instructions the code I am suppose to find and edit or replace doesn't match up so I am trying to guess and doing a poor job..lol :)

with the index template and profile template files my own alterations for google ads might be the problem which i hope to work around  ;D..  could you please take a look at these files a see if they can be edited to work properly.. any help would be appreciated :)  thanks for listening
Title: Re: Google Member Map
Post by: brianjw on May 04, 2008, 06:21:26 PM
Well, I think I worked around it for you. :) Very easy, all you had to do was narrow down your search to only some of the parts the code what you wanted to find (obviously manually).

Instructions:
If you haven't already, install the package through the package manager even with the errors of these files. Then manually copy over these files through FTP.
MAKE A BACKUP OF THE OLD FILES BEFORE REPLACING THEM
index.template.php => ./Themes/default/
Load.php => ./Sources/
ModSettings.php => ./Sources/
Profile.template.php => ./Themes/default/
(just to remind you your locations for the files)

Thanks,
brianjw

FINALLY, the attachments!
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 08:22:04 PM
First I want to thank you for trying to help me :) 

I completed the install and then uploaded these 4 new files to replace the ones that failed. I even did it twice just in case the first upload did not work... i think there is a problem because when i go to "features and options" i only see these below in the menu

Basic Features    Layout and Options  Member Color Link  Custom Profile Fields  Karma  Googlebot & Spiders

From reading the instructions page shouldn't I see a menu item for this google map?  :)   :P
Title: Re: Google Member Map
Post by: brianjw on May 04, 2008, 08:37:57 PM
Well, I double-checked the file. It most definitely should be working. Is there like a blank space or something? <-- that would have to be a problem of the language files.
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 08:49:32 PM
hi, sorry sir i uploaded the old files by mistake...  8)  ok i uploaded the right files this time and now when you go to my site at the top of the forums you see this below... and all the font is real big :)
______________________________________________________

action=logout;sesc=', $context['session_id'], '">' , $txt[108] , ' ' , $current_action == 'logout' ? ' ' : ''; // The end of tab section. echo '   '; } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (isset($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = '  '; } ?>
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 08:52:01 PM
oh and this is what my profile page looks like :)

edited removed profile link for privacy
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 09:00:26 PM
ok this is strange i uploaded them several more times because i wonder if the FTP works sometimes now all seems ok.. let me see if i have the map button now.. brb
Title: Re: Google Member Map
Post by: Filipina on May 04, 2008, 09:17:58 PM
WOW thanks so much it is an awesome mod... it must have just been a failed upload .. all seems to be working great :)  Thanks so much for your time and effort :)
Title: Re: Google Member Map
Post by: brianjw on May 04, 2008, 09:53:52 PM
No problem. :) Get a new FTP. What FTP do you use? ;)
Title: Re: Google Member Map
Post by: 2Ntense on May 06, 2008, 03:06:27 AM
To everyone that has problems with IE: Brian's close to releasing an update, but in the meantime here's the solution:

in Sources/GoogleMap.php

find:
header("Content-Type: application/xml; charset=UTF-8");

replace with:
header('Content-Type: application/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));

and

find (2 places):
echo '<?xml version="1.0" encoding="UTF-8"?>

replace with:
echo '<?xml version="1.0" encoding="', $context['character_set'], '"?' . '>

The problem was a mis-match between the forum character set and what the XML was trying to display.  IE doesn't handle unknown characters at all well.

This fixes the problem where IE shows the map, but not the pins or sidebar.


Also, I'm pretty sure we're adding a new setting to enable or disable the KML feed, so we'll need new text descriptions from our international friends.

English: $txt['KMLoutput_enable'] = 'Enable the KML output';
German: $txt['KMLoutput_enable'] = 'KML Ausgang aktivieren';
(I guessed on that translation)
Turkish?
French?
Greek?
Italian?
Polish?
correct Deutsch?  ;D

Anyone want to ring in with the translations?  The list above is all that's been posted to the thread so far...
Title: Re: Google Member Map
Post by: 2Ntense on May 06, 2008, 02:31:14 PM
Here's something else for our international friends (from Google's developer pages)

How can I get the Maps API to display in a language besides English?

The map controls, tooltips, and copyrights have been translated for a subset of languages. To get the map to display the translation for a certain language, you can add "hl=XX" to your <script> tag, where XX is the ISO639 two-letter code for that language. For example, German has the code 'de,' so you would use: <script src="http://maps.google.com/maps?file=api&v=2&hl=de&key=abcdefg"> to get zoom controls that say "Verkleinern" instead of "Zoom out".
We currently have translations for Basque (eu), Catalan (ca), Danish (da), Dutch (nl), Finnish (fi), French (fr), Galician (gl), German (de), Greek (el), Italian (it), Japanese (ja), Norwegian (no), Norwegian Nynorsk (nn), Russian (ru), Spanish (es), Swedish (sv), and Thai (th).


in $themedir/GoogleMap.template.php,
find:

<script src="http://maps.google.com/maps?file=api&v=2&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>

replace with:
<script src="http://maps.google.com/maps?file=api&v=2&hl=XX&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>
(where XX is the two-letter country code from the above list)

and in $themedir/Profile.template.php
find (2 places):

<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>

replace with:
<script src="http://maps.google.com/maps?file=api&v=2&hl=XX&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>
(where XX is the two-letter country code from the above list)

Here's an example im Deutsch -
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg230.imagevenue.com%2Floc583%2Fth_97985_localized-de_122_583lo.jpg&hash=651522ad2a40618782c30812a6b5c82dbeb65039) (http://img230.imagevenue.com/img.php?image=97985_localized-de_122_583lo.jpg)
Title: Re: Google Member Map
Post by: 2Ntense on May 08, 2008, 05:35:56 PM
This has been bugging me in the background of my tweaks...  ;D

Here's a crude hack so that the main MEMBER MAP only shows up if someone has placed a pin:

Quotefunction MapsXML() {
   global $db_prefix, $context, $scripturl, $txt, $modSettings, $user_info, $themeUser, $memberContext, $user_settings;
.
.
.
            $markers = $markers . ' label="' . $marker['name'] . '" html="'. $datablurb . '" />';
if (isset($user_settings['latitude']))
            echo $markers;
My additions are in red (don't forget the comma before $user_settings) in the two places shown in $sources/GoogleMap.php  and I see the GLOBAL line with $user_settings wrapped in the quote.  That's all on one line.

here's a 'before and after' they've placed a pin:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi32.tinypic.com%2Fmvt57b.jpg&hash=d19950006fdbbf5ebb809e7ef59d84901846c206)

They can still see your profile summary map, but not the main multi-member map with pins and info.

You should also make it clear in the text at the bottom of the map that they will not see any pins until they place a pin... down near this:  "Click here to go place your pin if you have not already."

Note that this crude hack looks *exactly* like the IE error that a lot of people had:  map, but no pins or sidebar names.  There's a different way to do it right at the top of the GoogleMap.php file so that it won't even show the map, but I haven't fleshed out the IF-ELSE note that says "You have not placed a pin... you won't be able to see the map until you place a pin of your very own." part, so it's just a blank panel with MEMBER MAP at the top.  Not very nice.
Title: Re: Google Member Map
Post by: brianjw on May 08, 2008, 07:15:14 PM
Thanks 2Ntense. I am going to create a seperate package from the current package and add all these additions that aren't going to be in the mod BY default but will be an add on to those who want it. :)
Title: Re: Google Member Map
Post by: 2Ntense on May 08, 2008, 10:04:00 PM
<grin> Yeah, I know *exactly* what you're going through, being in the 'hot seat' on this project.  Don't you know the old adage "no good deed ever goes unpunished?"

That's why I publish my unrelated or only-somewhat related tweaks out here for the average joes.  If people want to fiddle with their code, fine.  If you added everyone's requests in the main code you'd have 3 or 4 pages of feature switches in the Admin CP for some of the crazy functions people have wanted, and half of the code will be IF cases for odd functions that most people won't use.

First and foremost, it's a Member Map.  There's any number of different things you can do with the Google Map API and a bit of code, but it all takes time and testing and makes the whole structure hard to maintain.
Title: Re: Google Member Map
Post by: biggbigg on May 09, 2008, 02:21:37 AM
It worked for ME!!! Much Appreciated.

Quote from: 2Ntense on May 06, 2008, 03:06:27 AM
To everyone that has problems with IE: Brian's close to releasing an update, but in the meantime here's the solution:

in Sources/GoogleMap.php

find:
header("Content-Type: application/xml; charset=UTF-8");

replace with:
header('Content-Type: application/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));

and

find (2 places):
echo '<?xml version="1.0" encoding="UTF-8"?>

replace with:
echo '<?xml version="1.0" encoding="', $context['character_set'], '"?' . '>

The problem was a mis-match between the forum character set and what the XML was trying to display.  IE doesn't handle unknown characters at all well.

This fixes the problem where IE shows the map, but not the pins or sidebar.


Also, I'm pretty sure we're adding a new setting to enable or disable the KML feed, so we'll need new text descriptions from our international friends.

English: $txt['KMLoutput_enable'] = 'Enable the KML output';
German: $txt['KMLoutput_enable'] = 'KML Ausgang aktivieren';
(I guessed on that translation)
Turkish?
French?
Greek?
Italian?
Polish?
correct Deutsch?  ;D

Anyone want to ring in with the translations?  The list above is all that's been posted to the thread so far...
Title: Re: Google Member Map
Post by: Sweetwater on May 09, 2008, 08:37:42 AM
Hi,

I get the following when trying to upload
Quote11. Execute Modification ./Sources/ModSettings.php Test failed  

If I ignore & install anyway I cannot access the Google Map area in the Admin > Feature & Options

The button is there but nothing happens when I click on it.

Any ideas??

Thankyou....

Sweetwater
Title: Re: Google Member Map
Post by: 2Ntense on May 09, 2008, 09:24:17 AM
The "test failed" error means that you will ALWAYS have to add that change in manually.  It's supposed to scare you off and make you think about doing a change to your forum that may break it, but nobody listens to warnings.  :o

The error means that you have some other mod (probably the Custom Actions Mod) that's conflicting with the changes the Google Member Map is trying to do, so it gives up and aborts one or more changes to that file when it can't find the code it's looking for.

You'll have to add the changes to ModSettings.php in by hand; use the Package Parser (http://www.gamerzgarage.com/package.php) to figure out what you need to add.

The ModSettings file is what adds all of the options into your Admin panel.  Until you enable the Member Map and enter the key into the Admin panel options under FEATURES AND OPTIONS >> MEMBER MAP, you won't see anything.
Title: Re: Google Member Map
Post by: Sweetwater on May 09, 2008, 10:25:58 AM
Thankyou for the reply,
Your explainatory reply not only worked, but it helped me to understand the workings of Package Parser & SMF.

Thankyou Very Much.... :-)

Sweetwater


Quote from: 2Ntense on May 09, 2008, 09:24:17 AM
The "test failed" error means that you will ALWAYS have to add that change in manually.  It's supposed to scare you off and make you think about doing a change to your forum that may break it, but nobody listens to warnings.  :o

The error means that you have some other mod (probably the Custom Actions Mod) that's conflicting with the changes the Google Member Map is trying to do, so it gives up and aborts one or more changes to that file when it can't find the code it's looking for.

You'll have to add the changes to ModSettings.php in by hand; use the Package Parser (http://www.gamerzgarage.com/package.php) to figure out what you need to add.

The ModSettings file is what adds all of the options into your Admin panel.  Until you enable the Member Map and enter the key into the Admin panel options under FEATURES AND OPTIONS >> MEMBER MAP, you won't see anything.
Title: Re: Google Member Map
Post by: Sabre™ on May 09, 2008, 04:50:47 PM
Anybody know where the add_settings.php goes please?
Im forced to manually install.
Cheers :)
Title: Re: Google Member Map
Post by: brianjw on May 09, 2008, 05:38:04 PM
add_settings.php gets placed in the forum directory. Then you go to your browser and go to the add_settings.php file. Then delete the file. The databases are now installed.
Title: Re: Google Member Map
Post by: Sabre™ on May 09, 2008, 06:45:15 PM
THATS what Ive been missing!!  lol
Cheers mate, Ive uninstalled it for now, as Im getting weird errors in my new forum, and Ive just narrowed it down to smf 1.1.5  fresh install.
Anyways, thats another thread!!  lol

Cheers mate, when Ive added it, I'll post back :)
Title: Re: Google Member Map
Post by: 2Ntense on May 13, 2008, 03:34:30 PM
Someone had asked earlier if it was possible to have the 'overview map' in the lower-right corner of the main Member Map come up automatically hidden or minimized.  The answer is YES.

In $sources/GoogleMap.php

find:
map.addControl(new GOverviewMapControl(new GSize(200,150)));

and replace with:
ovMap = new GOverviewMapControl(new GSize(200,150));
map.addControl(ovMap);
ovMap.hide();


This brings the overview map up, and then collapses it once the map is fully loaded.  I prefer it that way as it gives the general users a clue that SOMETHING is down there to click on.  If you don't like that and want to have it shrunk on initial load, change the last line to ovMap.hide(true);

You can also change the size of the overview map with the GSize(wide,tall) part of the statement.
Title: Re: Google Member Map
Post by: bcman on May 13, 2008, 09:49:51 PM
Hi,

Started reading the 21 pages but could not find how to change the link (member name) in the balloon so it directs direct back
to smf in joomla.

it directs now back
http://www.domain.com/smf/index.php?action=profile;u=1

and i would like to direct back to

http://www.domain.com/joomla/index.php?option=com_smf&Itemid=29&action=profile;u=1

thanks for you help
bc
Title: Re: Google Member Map
Post by: brianjw on May 13, 2008, 10:09:10 PM
bcman, give me until tomorrow to find a fix for this. :)
Title: Re: Google Member Map
Post by: bcman on May 13, 2008, 10:13:39 PM
thank you brian

bc
Title: Re: Google Member Map
Post by: brianjw on May 13, 2008, 10:19:36 PM
OK, do you know the php string for the url to smf through joomla?
If not, could you ask someone at a joomla support website. $scripturl is pointing to http://www.yoursite.com/your_smf/index.php.
Title: Re: Google Member Map
Post by: bcman on May 13, 2008, 10:50:04 PM
I just did,

did a search to with no luck

bc
Title: Re: Google Member Map
Post by: bcman on May 14, 2008, 02:32:59 PM
but no luck does anyone have an idea?

thanks
bc
Title: Re: Google Member Map
Post by: brianjw on May 14, 2008, 04:25:37 PM
bcman, double posting will not solve anything. I have decided not to do this for you because it seems you're most likely using an illegal version of the SMF + Joomla Bridge. SMF no longer distributes it and is now illegal to use. It is illegal to use joomlahacks' bridge as well.

Please read http://www.simplemachines.org/community/index.php?topic=184557.msg1174170#msg1174170 for more information.

If you choose to move on to a different legal CMS such as Mambo (http://www.mamboserver.com/) which SMF makes a bridge for, then I will be happy to help you with this.

While I looked at the files, it seems more of a problem with the SMF + Joomla bridge anyway, not the Google Member Map. ;)
Title: Re: Google Member Map
Post by: casp3r on May 18, 2008, 04:12:35 PM
Installed on 2.0 Beta 3.1 Public. Went without a hitch. But when I add a pin to the map and save my profile the pins doesn't remain. Any ideas? Thanks
Title: Re: Google Member Map
Post by: brianjw on May 18, 2008, 06:15:01 PM
casp3r, the mod isn't compatible with ANY versions of SMF 2.0 as of yet. So there is no support for it and no versions even compatible with it. I recommend unintalling it immediately.

I am working on a version for SMF 2.0 as we speak although it may take a little time due to me being a little short on time with everything I have to do.
Title: Re: Google Member Map
Post by: SgtMic on May 18, 2008, 06:15:17 PM
Quote from: casp3r on May 18, 2008, 04:12:35 PM
Installed on 2.0 Beta 3.1 Public. Went without a hitch. But when I add a pin to the map and save my profile the pins doesn't remain. Any ideas? Thanks

Link from the mod site.
QuoteThis mod will be updated for SMF 2.0 when it comes out of beta and reaches its RC's or Final Versions. Sorry for the inconvenience!
Title: Re: Google Member Map
Post by: SgtMic on May 18, 2008, 06:16:18 PM
LOL, Brian beat me to it.
Title: Re: Google Member Map
Post by: casp3r on May 18, 2008, 06:41:17 PM
Sorry had downloaded the mod from this thread and at least one person said that it installed fine on smf2.
Title: Re: Google Member Map
Post by: brianjw on May 18, 2008, 07:28:16 PM
Yeah. A kind user made that. It isn't supported nor official yet but I am taking his mod and trying to fix the problems with it. :)
Title: Re: Google Member Map
Post by: casp3r on May 18, 2008, 07:29:10 PM
No problem - thanks
Title: Re: Google Member Map
Post by: webfan on May 19, 2008, 06:05:55 PM
Great Mod! Thank you (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.startforum.de%2FSmileys%2Fclassic%2Fbravo.gif&hash=44ec2d092e575b7273573a60e0993195054cd6d6)

I just have at least one question:
QuoteYou may make up to 15,000 geocode requests per day.
...
You may use the Maps API geocoder solely to obtain and display points on map images provided through the Service.
Can you add that feature, or give me a hint how to do it:
how to use the geocoder solely, or maybe how to calculate how many geocode requests I have done, and then to disable the mod temporaly before the limit is reached?

mfg

Title: Re: Google Member Map
Post by: brianjw on May 19, 2008, 06:07:05 PM
I don't exactly know what you're saying.
Title: Re: Google Member Map
Post by: webfan on May 19, 2008, 06:28:13 PM
Excuse my English  :-[
I found this in google terms of service (maps api):
Quote1.6 Geocode Requests. You may make up to 15,000 geocode requests per day. If you exceed this value within a 24-hour limit, the Maps API geocoder may stop working for you temporarily. If you attempt to circumvent this limit, your access to the Service may be blocked immediately. If you continue to abuse this limit, your access to the Maps API geocoder may be blocked permanently. You may use the Maps API geocoder solely to obtain and display points on map images provided through the Service.
As I understood, I'm allowed to do "15,000 geocode requests" per 24hours.
I would like the Member Maps Mod to be disabled automatically, if the number of 14,999 geocode requests is reached, and reactivated after a period of time (temporary).
Is this possible?

Title: Re: Google Member Map
Post by: brianjw on May 19, 2008, 07:59:48 PM
webfan:

It is not possible. It requires google to write in some coding on their part and then adding a script to the map which unfortunately will not happen. If this does happen, they will ban your site for a small amount of time but it is a temporary ban and if you continue to do this (go over limit) then your site may be permanantly ban. You will know when it happens. ;)
Title: Re: Google Member Map
Post by: 2Ntense on May 19, 2008, 08:11:59 PM
Geocoding isn't part of the 'official' beta, and the ONLY place it's implemented at all is in the little SEARCH box that I'd added to the 'place a pin' map routine, which you can only find on Brianjw's site or earlier in the thread (if you hack it into your existing code.)
http://www.simplemachines.org/community/index.php?topic=210708.msg1515874#msg1515874

If you have so many members using the SEARCH box to place pins that you're worried that you'll hit the 15K limit, then I'm surprised your server doesn't fall over and die... must be one heck of a host!  ;D  I'd guess you must have 50,000 to a few million members!

The XML file that's sent every time the main map is generated doesn't use geocoding, it's merely sending a bunch of pre-coded lat/lon values plus text. 

'Geocoding' means turning an address into lat/lon values, and that's exactly what Google's geocoding server does when you type something into the little SEARCH box.  It runs through a huge table of names (usually called a Gazetteer in map terminology) and tries to find a substring match on what you'd typed versus what's in the database.  It then returns the probable results with the relevant coordinates.  It's a very processor-intensive search.

Clear enough?
Title: Re: Google Member Map
Post by: webfan on May 19, 2008, 08:33:47 PM
Mh. I was believing to show a pin on the map is a geocode request, and restricted the MapsJS() function to (15000/Members_who_pinned) calls within 24h.

QuoteClear enough?
So, to use the mod without a SERACH BOX or anything else does not produce any geocoding query?
Ok, I understood that I have not enough members for my problem  :)

Ok, thank you for your help!
mfg
Title: Re: Google Member Map
Post by: 2Ntense on May 19, 2008, 08:59:11 PM
Yes, it's only in the SEARCH box on the page where they place a pin in their profile (Forum Profile Information), and the function only gets activated if they hit the [Search] button.  Showing the map with that control embedded does not do a geocode request, but doing an actual [Search] will.

On most forums (even with many thousands of members), any one member will maybe use it once to quickly zoom to their location, and then never again.  I thought that was safe enough, and is also why I did not add the same function to the main MEMBER MAP display.
Title: Re: Google Member Map
Post by: brianjw on May 22, 2008, 10:02:05 PM
I think the Google Member Map 0.2 beta is very close to release.

2Ntense has been working restlessly trying to squash all the bugs that I reported to him with the new feature addition and 2.0 installation. We will release the mod when we cannot find any more bugs to mess with.

I would like to let people know that 2Ntense's search will be added and be an enable/disable option in the admin. The Map Overview (small map frame in bottom right of current 0.1) will be disabled by default but will be an enable/disable feature as well. There are many more to come...
Title: Re: Google Member Map
Post by: Nao 尚 on May 23, 2008, 04:02:42 AM
Brian, did you read my latest 2 pm's with my fixes for the issues I encountered with my SMF2 conversion?

What will be the new features?
Title: Re: Google Member Map
Post by: 2Ntense on May 23, 2008, 03:09:12 PM
Well, we could toss in the stripped-down support for extra POIs (Points of Interest) in an external XML file... that's pretty easy to add.  I've run it up on the SMF 1.1 and SMF 2.0 versions of GoogleMap and it works.

So far, one time out of 50 or 60 MEMBER MAP views I saw it show the members in the sidebar but not show the extra POI pin label I had added.  I was curious so I zoomed in and the pin was there, but the label in the sidebar wasn't.  When I refreshed the screen the label was there again.  Brian has some weird issues on his test forum, so that may explain it.  I have both SMF 1.1 and SMF 2.0 test forums running the same change and have not seen it on my sites.

I prefer the stripped-down POI support because it's very simple code and it puts the editing and maintainence of the additional XML on the few people that have requested it.

I purposely made an invalid XML 'markers' file, and all that GoogleMap.php does is not display it... it doesn't crash the member pins like I might have suspected.
Title: Re: Google Member Map
Post by: 2Ntense on May 25, 2008, 10:47:36 AM
Request for HELP!! from the SMF 2.0b3.1 wizards. :D

In trying to convert the Member Map to 2.0 we've hit a snag.  Neither nao nor I have been able to figure out the right syntax to have the $profile_fields array store the correct value in the database.  I've tried everything I know of in the last two days short of aborting the whole 'latitude' => array(... thing and falling back to an ugly direct database query.

Critical to the proper function of the map are $profile_fields['latitude'] and $profile_fields['longitude'], which can be either a float or NULL (the default value in the SQL field).  The return value of 'latitude' from the template MODIFY routine is either a float or empty (no point set), which should be a float or NULL as it is in SMF 1.1.x
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg192.imagevenue.com%2Floc144%2Fth_23831_fields_122_144lo.jpg&hash=1f39ae813b6f8e13ce54115ee6467d69f926020e) (http://img192.imagevenue.com/img.php?image=23831_fields_122_144lo.jpg)

No matter what I've tried we're never getting NULL when the value is empty, something is converting empty to zeroes (0.000000000000000 in this case) which is a perfectly valid lat/lon pair off the coast of Africa.  I tried casting it as a FLOAT and got the same results.

Here's all boolean test results for a real latitude (-122.02154), the 'all zeros' and NULL in the database:
number: is numeric, is string, is set
zeroes:  is numeric, is string, is set
NULL:    is string, is set, is empty
this was for $context['member']['googleMap']['latitude']

Previously we'd just left the field empty and let the SQL function handle setting it to NULL, but that's not working with the new mechanisms...

Here's one variation I've tried from the Profile-Modify.php $profile_fields array:

'latitude' => array(
'type' => 'callback',
'callback_func' => 'googlemap_modify',
'permission' => 'googleMap_place',
// latitude and longitude track as a pair
'input_validate' => create_function('&$value', '
if (!empty($value))
{
$profile_vars[\'longitude\'] = $_POST[\'longitude\'];
$cur_profile[\'longitude\'] = $_POST[\'longitude\'];
return true;
}
else
{
$profile_vars[\'longitude\'] = \'\';
$cur_profile[\'longitude\'] = \'\';
return true;
}
'),
'preload' => create_function('', '
global $context, $cur_profile;
$context[\'member\'][\'googleMap\'][\'latitude\'] = $cur_profile[\'latitude\'];
$context[\'member\'][\'googleMap\'][\'longitude\'] = $cur_profile[\'longitude\'];
return true;
'),
),


update: since it's a decimal(18,15) field with NULL default, SMF may actually be writing EMPTY to it, even when I try to force NULL.  When I empty the fields manually in phpMyAdmin it fills it with 0.000.....

Suggestions?  Answers?  Flames?  ;D
Title: Re: Google Member Map
Post by: 2pac on May 25, 2008, 11:33:00 AM
man! that mod rocks! cant wait for the 2.0 release B)
Title: Re: Google Member Map
Post by: Nao 尚 on May 25, 2008, 01:31:22 PM
Hey 2NTense, your question should be in my dedicated topic instead :P
Though it's no big deal that it doesn't work, really...
I guess the only solution now is to have the previous latitude/longitude coordinates, and if the new values are the same -> no change in the database. Otherwise, replace. That way, a 0.0000 will never replace a NULL value.
Title: Re: Google Member Map
Post by: 2Ntense on May 25, 2008, 07:26:02 PM
Yeah, but that's needless work to convert existing code that's expecting ISSET to != 0, and the code bases for SMF 1.1 and 2.0 will drift further.  There has GOT to be a way to write EMPTY into the database... if not, I'll just bypass whatever they've done to the new $profile_fields store function and do it directly.  We may be the first to trip over it, but there will be other mods failing the same sometime.

I have a hard time believing they'd destroy such a common value as EMPTY, but I've looked through the code that's doing the SQL and didn't see where it's going astray.  It may be buried somewhere else.  My best guess is that something is deciding it's a FLOAT and re-casting the value for us.  I've done all sorts of tests, and can't write either 'NULL' or '' to the fields.  I haven't tried any of the other numeric PROFILE fields.

Although in OUR unique case, I doubt anyone is living at 0,0.
Title: Re: Google Member Map
Post by: Nao 尚 on May 26, 2008, 01:32:25 PM
I can live with it..... At most, I can trigger an SQL query from within phpMyAdmin from time to time...

Something like UPDATE ... SET latitude=NULL, longitude=NULL WHERE latitude=0 AND longitude=0
Title: Re: Google Member Map
Post by: brianjw on May 26, 2008, 02:19:36 PM
We could put a little link in the Google Map admin to have a link that calls the query like what you posted above Nao. Kind of like the SMF Maintenance section. It could be Google Map - "Fix Map Errors".
Title: Re: Google Member Map
Post by: Nao 尚 on May 26, 2008, 02:49:35 PM
Well it's not an error... It's just a geek thing ;)
Title: Re: Google Member Map
Post by: brianjw on May 26, 2008, 04:21:49 PM
Let me fix my last post then::::

We could put a little link in the Google Map admin to have a link that calls the query like what you posted above Nao. Kind of like the SMF Maintenance section. It could be Google Map - "Fix Geek Thing".
Title: Re: Google Member Map
Post by: Nao 尚 on May 26, 2008, 04:35:56 PM
Okay then ;p
Title: Re: Google Member Map
Post by: 2Ntense on May 26, 2008, 06:56:05 PM
That's why I posted it here... if it's a bug in the SMF 2.0 code on how they're dealing with database calls for profile fields, then *someone* needs to look at it and decide whether they want to fix it in 2.0 Beta 3.2.  I can't say for sure it's a bug, or I'd list it in the Beta bug threads.

Otherwise I'd just go "harrumph!" and patch around it.

There's a few places where we'll have to check... the 'place pin' map for both the owner and admin, the profile VIEW for both owner and stalker, and either 2 or 4 places in the main MEMBER MAP where we build the XML and KML files.

EDIT: I have the PROFILE VIEW and PROFILE MODIFY patched, but I think the simplest way to patch GoogleMaps.php is to do a hard query and overwrite 0.000000000000000 with NULL on the entire member list every time the map is invoked.

Update: it'll have to be a dual level check... if 0.000000000000000 or EMPTY then it's NULL.   >:(   
I just checked, and NULL (old DB fields or new members) is reporting as EMPTY.

With that, I just upgraded it to a true BUG here:
http://www.simplemachines.org/community/index.php?topic=241520.0
(mostly 'cos I *really* hate "permanent temporary fixes" to patch around unruly behavior)
Title: Re: Google Member Map
Post by: ukcord_viper on May 28, 2008, 05:01:40 AM
Hi guys... I have just installed the google Map mod. I had to do a bit of a manual install but I followed the instruction. The Load.php was the thing that was causing problems and I used the online parser to make the mods manually.

I can see the map and I can add my location. Only problem is I can't see any pins on the map.

Any thoughts?
Title: Re: Google Member Map
Post by: 2Ntense on May 28, 2008, 08:37:37 AM
It sounds like the classical 'IE problem' that a bunch of other people were having.  If you don't see the Overview Map in the lower-right corner of the main Member Map then it's almost a sure bet.  Looks like Brian's site is down at the moment, but you can manually edit the fix into your GoogleMap.php file and then upload that one again.  I'm pretty sure that when the XML load aborts and dies that it never shows the Overview Map.

see this for the details:
http://www.simplemachines.org/community/index.php?topic=210708.msg1532995#msg1532995

Here's the Overview map:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi31.tinypic.com%2F24pvxn9.jpg&hash=1d4c253fbb65812b408b55949c2b77c56a73329b)

If that doesn't get it then you may have something else weird going on.  In that event, kindly zip up your Load.php file and *attach* it to a reply... there's NO way I want to try doing a file compare on an inline post like I've seen a couple of people do 'cos it screws up the whitespace.  ::) 
Title: Re: Google Member Map
Post by: ukcord_viper on May 28, 2008, 01:34:46 PM
I'm using Firefox and I get the overview window...just no icons. Load.php attached.

Thanks in anticipation
Title: Re: Google Member Map
Post by: 2Ntense on May 28, 2008, 03:33:30 PM
Yep, you missed one edit.  Find:
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),

after that add:
'googleMap' => array(
'latitude' => $profile['latitude'],
'longitude' => $profile['longitude'],
),


or just upload the new Load.php (already corrected)  O:)
Title: Re: Google Member Map
Post by: ukcord_viper on May 28, 2008, 04:12:35 PM
You my friend are a superstar......

Thanks you very much. :D
Title: Re: Google Member Map
Post by: celedhrim on May 31, 2008, 10:09:50 AM
Hi ,
this mod is a great mod ! thx

I integrate to my wow guild site but I have a small issue

my theme is very dark and googlemap background is very clear , but text keep my theme default (white) . So I can't see font

see screenshot , I use my mouse to highlight the begin of the name but the end still rest white on white

If someone could help me to change sidebar , bubble and bottom legend background to dark , It will very nice

ps: excuse me for my english , I'm french ^^
Title: Re: Google Member Map
Post by: brianjw on May 31, 2008, 10:37:05 AM
Try this: http://www.simplemachines.org/community/index.php?topic=210708.msg1517566#msg1517566
Title: Re: Google Member Map
Post by: Omniverse on June 01, 2008, 01:05:34 PM
Heyas... I noticed lately that the map display has disappeared in my profile (or anyone's I look at). Not sure whats causing it. Couldn't find another that had something similar... so was wondering if this is something you have heard of.
Title: Re: Google Member Map
Post by: brianjw on June 01, 2008, 01:17:19 PM
Have you done anything to your site lately?
- Change themes?
- Upgrade?
- Etc.

brianjw
Title: Re: Google Member Map
Post by: Omniverse on June 01, 2008, 01:18:55 PM
Yes I have...

but I swear it worked when I was done hehe.

I even went through any files relating to the membermap in the profile, and its all there... so wasn't sure why it's not showing now.
Title: Re: Google Member Map
Post by: brianjw on June 01, 2008, 01:25:38 PM
I don't know what to tell you. Can you PM me with ftp login information so I can see if the code is all there?
Title: Re: Google Member Map
Post by: Omniverse on June 01, 2008, 01:44:37 PM
I'm going to be occupied for the rest of the day... I'll send a PM later (sometime in the next couple days if I don't forget) and we see if you can figure it out. :P
Title: Re: Google Member Map
Post by: 2Ntense on June 01, 2008, 05:47:20 PM
The map in the PROFILE SUMMARY doesn't have *anything* in it that should give you grief.  If it's been barfing then you have some SERIOUS issues on your forum.  The 'Profile Summary' map merely pulls the LAT/LON from the profile and then drops it into the small chunk of GoogleMap API script.  The map in your 'Forum Profile Information' goes a little farther, but unless you've added the SEARCH box then it's also very simple Javascript with a short chunk that loads the LAT/LON.

If you have issues with either of those, then the main MEMBER MAP must be falling over and dying.  If it's working OK then you've installed some new mod that buggered your profiles.  In that event you'll have to look very carefully at the two insert points in the Profile.template.php.  It's far less likely that any mod could mess up what changed in Profile.php.

Brian... your forum is still hosed.  All I get after a login is a white screen (obvious PHP parse error)
Title: Re: Google Member Map
Post by: brianjw on June 01, 2008, 06:01:16 PM
2Ntense, check out my site. ;)
Title: Re: Google Member Map
Post by: 2Ntense on June 01, 2008, 09:32:38 PM
Been there several times in the last few days... same story with FF (the ONLY browser for everyday use) and IE6.  FF displays a blank page after login, and that's all I've ever seen.  IE6 does something similar, hangs and then eventually shows a broken URL and the stock "sorry, we can't connect to that page, maybe the server is experiencing difficulties, yadda, yadda, yadda."

here's the URL I get after IE login: http://www.gamerzgarage.com/index.php/action,login2.html
which looks to me like something is rewriting the URL incorrectly.  I suspect your portal, but that's a SWAG <Scientific Wild-#ssed Guess>

FF doesn't even show that... it hangs for about 20 seconds and then shows the previous URL but with a blank page.  I've tried clearing the cache repeatedly, no dice.  If I delete the cookie, all is well and the site comes back but I'm not logged in.

What I'm seeing WITHOUT logging in is that you've enabled the PHPSESSION function, which is probably crashing against the cookie for security.  Personally I'd disable the session ID, as it's easier to do some nasty hacks with that.  I backtracked and found out that one bright hacker kiddie had used that to backdoor our ADMIN login on an Invision Powerboard forum.
Title: Re: Google Member Map
Post by: brianjw on June 01, 2008, 10:15:09 PM
The page is supposed to be loading as an html page. We have search engine friendly urls enabled, but after upgrading to 1.1.5 it made it work like this all the waty. :) Where can I disable the PHPSESSION
Title: Re: Google Member Map
Post by: donato on June 01, 2008, 11:06:19 PM
Hello Thanks Brianjw for an amazing add-on to the board.
I need some help - my MemberMap is missing on my custom theme (PDX-DK)
when i switch to my default theme, the member map button/tab appears in the nav, but on my custom theme it does not.
I read over some of the posts and I confirmed that the data found in my default/index.template and my pdx/index.template are the EXACT same in regards to the button location - at least from what i can tell.

One item i noticed that differs between the PDX and default themes are the div tags surrounding the tab buttons on PDK - and, as you know,  the google membermap link, it uses TD tags - could this be why? do I have to convert the code around the div class? if so, can anyone assist me on this? My knowledge of php is low

Here is an example of the member list button with the div class as appears on my custom theme:
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '' : '' , '
<div class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</div>' , $current_action == 'mlist' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';


Here is the code around the memberlist tab on the default theme:

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Here is the code I manually added to my pdx/index.template.php file for the googlemember Map:

// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
</td>' , $current_action == 'googlemap' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Any help would be greatly appreciated!!!
Title: Re: Google Member Map
Post by: 2Ntense on June 02, 2008, 05:44:20 AM
Brian: I think the problem is in the SMF cookie itself, and may well be the SEF stuff... if I delete JUST the SMF cookie I can get your page to show again.


Donato:

The way I added it on all of my custom themes was to duplicate an existing button code FROM THE CUSTOM THEME, only replacing the bits that were specific to the GoogleMap.  I think your custom theme button code should be:

// the [member map] button
global $modSettings;
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
      echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '' : '' , '
            <div class="maintab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
            </div>' , $current_action == 'googlemap' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';


I'll bet you forgot to add $modSettings to the GLOBAL at the top of the function, too.  Without that, the button will never show.  I'd seen FlashChat Integration do as I've shown above (adding the variable into the button), and it works fine.  It's supposed to go in the GLOBAL at the top of the function, but it works perfectly well down in the code, too; it's just sloppier code that way.


However, there's another thing you need to do in index.template.php.

At the top of that function (// Show the menu up top. Something like [home] [help] [profile] [logout]...)
you'll see the section that's setting the current action.  You need to add:
if ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';

somewhere in there with the rest of the $current_action settings (they all look very similar).  It's not location-sensitive, just add it after any of the others.

All of the extra junk in the button code is how each specific theme creates the button strip, so you need to copy the method used in your custom theme as closely as possible.  Duplicating an existing button from the custom theme and just changing out the top line and then changing the CURRENT ACTION and TXT is all you normally should do.  I've changed about 15 themes to add the button.
Title: Re: Google Member Map
Post by: 2Ntense on June 02, 2008, 01:39:25 PM
celedhrim,

In themes/default/GoogleMap.template (near the top of the file),  replace that whole chunk of inline CSS with this:
/* Google Maps */
.googleMaps
{

font-size: small;
font-family: tahoma, sans-serif;
}
.googleMapsSidebar
{
   
    font-size: x-small;
    font-family: tahoma, sans-serif;
    margin: 0px;
   
    overflow: auto;
    width: 150px;
    height: 500px;
}
.googleMapsLegend
{
   
    font-size: x-small;
    font-family: tahoma, sans-serif;
    margin: 0px;
   
    overflow: auto;
}
/* Google Maps Links */
a.googleMapsLink:link, a.googleMapsLink:visited, a.googleMapsLink:hover
{

font-size: small;
font-family: tahoma, sans-serif;
}
/* Balloon text */
#map a:link{
    color: #476C8E;
}
#map a{
    color: #476C8E;
}

#map a:active{
    color: #ff0000;
}

#map a:hover{
    color: #000;
}


The older versions of the mod had color assignments for the font and background, which conflicted with whatever theme you were using.  This way the sidebar and legend font colors and background inherit from the theme.  I *think* that this has changed in the current beta version; if not then the fix above will correct it.

Note that I also did not add any of the css changes to any of my custom themes, only the changes that were done to the default theme style.css.

The /* Balloon text */ part above that Brian had pointed out only corrects the information balloon on the map itself, and for this balloon the color MUST be inside this template so that your theme does not try to override it.  I played around trying to get the balloon to inherit your theme background, and could not get it to work so this locks the text and link font colors.
Title: Re: Google Member Map
Post by: donato on June 02, 2008, 10:39:52 PM
Hey 2Ntense - awesome response and appreciate the time!
However, i tired implementing your change but to no avail.
I get the following error when I implemented your code rework:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/pdx-dk115v1/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected T_BOOLEAN_AND


To add more info, I did already have the function calls listed:

// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $forum_version, $language, $modSettings, $colorpath, $buttonpath;


and here...
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


And also listed the context call:
if ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';


I also tried what you suggested by looking at a previous buttons listed in my custom theme (using BeyondCompare) and found no real difference to what you created except for the "global $modSettings;" line. My small little edit:

// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
      echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '' : '' , '
            <div class="maintab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
                      </div>' , $current_action == 'googlemap' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';


...this too produced the same error. I really do not see a difference in your change to what the buttons already look like.
Note: If i change the membermap button to the default recommended values from the instructions, the parse error goes away - so i do believe this is the only file to edit
Again anyhelp would be much appreciated.
Thanks again mate!
Title: Re: Google Member Map
Post by: Force73 on June 04, 2008, 01:39:17 PM
Hi :-) Nice work, but a stupid problem ...

there where a installed Mapmod in my Board, some months ago. Then I installed 1.1.4 completly new, only the DB-settings of the where intact I think. Today I updated to 1.1.5 and installed the new version of this mod.

Its running fine, but I cannot re-set my PIN (new position will not be saved). Also new members cannot set their Pin, it will not be saved also.

There are 30 people on board with Pin-Settings, the Map show them all, but mh... no one new can enter and no one on the Map can change position.


What I know:

In Userprofile (if I click on a new map position) the javascript works well and set the input-type:hidden files for longitude and latitude to the new value,
but not within the

//<![CDATA[
function LoadMap() {

(there are the last actual values)

But then, after "save", it will not be written to the member-Table in the DB. :-(


Can anyone help me out with this?
Title: Re: Google Member Map
Post by: brianjw on June 04, 2008, 02:28:14 PM
Are you saying that the map is in the profile, but when you change the position it doesn't save?
Hmmm, I am not quite sure. It's definitely a db issue but I don't know how to solve it..
Title: Re: Google Member Map
Post by: Force73 on June 04, 2008, 02:39:29 PM
Quote from: brianjw on June 04, 2008, 02:28:14 PM
Are you saying that the map is in the profile, but when you change the position it doesn't save?
Hmmm, I am not quite sure. It's definitely a db issue but I don't know how to solve it..

Read again please, within the function loadMap it does'nt put the new values in.
Where is the position in the scripts, where data will be saved?
Title: Re: Google Member Map
Post by: 2Ntense on June 05, 2008, 04:52:38 PM
Donato: if the code you showed for your existing button works AND you did the other edit(s) as it appears, then you should not have the error.  The error message seems to complain about the line "if(($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))" although without seeing it personally and having both your complete template file and the entire error message then I'm at a loss to explain it.   The error message usually tells which line the parse error is on, but if not the errorlog in the root of your forum WILL have the line with the parse error.

As a quick test, remove that if(($modSettings... line and see if the error goes away.  That line does two things: IF the admin CP has the Google Map Mod disabled OR the member isn't allowed to see it, then the button won't show.  If you remove that line, the button will always show.




Force73: Did you have any error messages when you installed the map mod, AND are you sure you successfully removed all of the pieces of the previous installation before upgrading to 1.1.5?  I did something similar on my test forum and it worked perfectly using the 1.1.5 upgrade.  If you had ANY error messages at all during either the upgrade or the re-install of the Google Member Map Mod, then that is the place to start looking.

The map generation code is all in the Profile.template.php file, although the latitude and longitude are both written to the database with the code inside Profile.php.  From the sound of it, you probably have a mistake in one of these two files, although it could also be one of the other modified PHP files.  If you would ATTACH a ZIP file (see Additional Options when you post) containing both of these files from your server, I will look at them.  Please DO NOT just insert the code into a post as I can not do anything with it - putting it in a post changes tabs to spaces, and my comparison will not work.
Title: Re: Google Member Map
Post by: Force73 on June 05, 2008, 05:09:11 PM
Quote from: 2Ntense on June 05, 2008, 04:52:38 PM
Force73: Did you have any error messages when you installed the map mod, (...)

Thank you for your reply. There was an error with one of the files, but I updated. After this I checked all files by hand and edited some missing stuff from the install package of the actual map-mod. Every file should be ready now, but it also doesn't save.
I've attached the two files. Thank you for your support!
Title: Re: Google Member Map
Post by: 2Ntense on June 07, 2008, 06:14:14 PM
Force73: you have code duplicated, two places each in both files, and I strongly suspect all other modified are equally mangled.  In fact, I'm amazed your forum loads at all!  If I were you, I would go back and check everything all over again. 
The files you need to verify are:
$sourcedir/Load.php
$sourcedir/ManagePermissions.php
$sourcedir/ModSettings.php
$themedir/index.template.php
$themedir/style.css
$themedir/languages/Modifications.english.php
$themedir/languages/ModSettings.english.php
$themedir/languages/Who.english.php
(the last four will not cause any problems if the code was duplicated, it's just messy)

Don't take this too harshly, but if that's your idea of "checking by hand and adding some missing stuff" then I'm glad you're not working for me!  Since you obviously need the practice, I'm not going to make life easy on you...   O:)

It looks like the mangled code in Profile.template.php was probably messing up the SAVE function, although the PLACE PIN part shouldn't have worked at all.  You SHOULD have gotten an evil TEMPLATE PARSE ERROR on it.


In Profile.php, remove ONLY the bits in red

Quote      'googleMap' => array(
         'latitude' => !isset($user_profile[$memID]['latitude']) ? '' : $user_profile[$memID]['latitude'],
         'longitude' => !isset($user_profile[$memID]['longitude']) ? '' : $user_profile[$memID]['longitude'], ),
   );

   // Call the appropriate subaction function.
and   
Quote    if (isset($_POST['latitude']))
       $profile_vars['latitude'] = $_POST['latitude'] != '' ? $_POST['latitude'] : 'NULL';
    if (isset($_POST['longitude']))
       $profile_vars['longitude'] = $_POST['longitude'] != '' ? $_POST['longitude'] : 'NULL';

   // Make sure the MSN one is an email address, not something like 'none' :P.


and in Profile Template, also remove ONLY the bits in red:

Quotefunction 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'] . "), 13, ". $modSettings['googleMapsType'] .");
            var point = new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . ");
            var marker = new GMarker(point);
            map.addOverlay(marker);
         }

         if (GBrowserIsCompatible()) {
            window.onload=LoadMap;
         }";
   //Lets make another evil hack!
   echo '
         //' . chr(93) . chr(93) . chr(62);
   echo "
                  </script>
      </td>
   </tr>";
      }
   }

   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>
         <div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
         <input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
         <input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
         <script type="text/javascript">';

   //Evil hack on this!!!
        echo '
         //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

   echo "
         function LoadMap() {
            var map = new GMap(document.getElementById(\"map\"));
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
                map.setMapType(" . $modSettings['googleMapsType'] . ");
            map.centerAndZoom(new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . "), 4);
            var point = new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . ");
            var marker = new GMarker(point);
            map.addOverlay(marker);
         }

         if (GBrowserIsCompatible()) {
            window.onload=LoadMap;
and
Quotedocument.getElementById(\"latitude\").value = point.y;
               document.getElementById(\"longitude\").value = point.x;
            }
         });
      }

      if (GBrowserIsCompatible()) {
         window.onload=LoadMap;
      }";

       //Lets make another evil hack!
        echo '
      //' . chr(93) . chr(93) . chr(62);

   echo "
                           </script>
                        </td>
                     </tr>";
   }

   
   //Google Map Member Map
   if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_place'))) {
   echo '
                     <tr>
                        <td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
                     </tr><tr>
                        <td class="windowbg2" colspan="2" align="center">
                           <script src="http://maps.google.com/maps?file=api&v=1&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
                           <div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div>
                           <div id="message" align="center">Click to place a point or click on your point to remove it.</div>
                               <div id="disclaimer" align="center">', $txt['googleMapDisclaimer'] ,'</div>

                           <input type="hidden" name="latitude" id="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
                           <input type="hidden" name="longitude" id="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
                           <script type="text/javascript">';
   //Evil hack on this!!!
        echo '
      //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

   echo "
      function LoadMap() {
         var map = new GMap(document.getElementById(\"map\"));
         map.addControl(new GSmallMapControl());
         map.addControl(new GMapTypeControl());
            map.setMapType(" . $modSettings['googleMapsType'] . ");";
   
            if (isset($context['member']['googleMap']['longitude']) && isset($context['member']['googleMap']['latitude']) && !empty($context['member']['googleMap']['longitude']) && !empty($context['member']['googleMap']['latitude'])) {
   echo "
         map.centerAndZoom(new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . "), 4);
         var point = new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . ");
         var marker = new GMarker(point);
         map.addOverlay(marker);";
      } else {
        echo "
         map.centerAndZoom(new GPoint(0,0), 16);";
      }

   echo "
         GEvent.addListener(map, 'click', function(overlay, point) {
            if (overlay) {
               map.clearOverlays();
               document.getElementById(\"latitude\").value = \"\";
               document.getElementById(\"longitude\").value = \"\";
            } else if (point) {
               map.clearOverlays();
               map.addOverlay(new GMarker(point));
               document.getElementById(\"latitude\").value = point.y;
               document.getElementById(\"longitude\").value = point.x;
            }
         });
      }

      if (GBrowserIsCompatible()) {
         window.onload=LoadMap;
      }";

        //Lets make another evil hack!
        echo '
      //' . chr(93) . chr(93) . chr(62);

   echo "
                           </script>
                        </td>
                     </tr>";
   }

   // Show the standard "Save Settings" profile button.
Title: Re: Google Member Map
Post by: LOADING... on June 10, 2008, 03:02:51 PM
Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

How can I solve this error????
I checked file permissions and it was writable!!!
Title: Re: Google Member Map
Post by: SgtMic on June 10, 2008, 03:05:36 PM
Quote from: LB Habib on June 10, 2008, 03:02:51 PM
Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

How can I solve this error????
I checked file permissions and it was writable!!!


You need to manually install the code in that file.
Title: Re: Google Member Map
Post by: 2Ntense on June 10, 2008, 06:57:51 PM
Quote from: LB Habib on June 10, 2008, 03:02:51 PM
Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

Try the ZIP file at the bottom of this post instead:
http://www.gamerzgarage.com/index.php?topic=151.msg490#msg490

I looked at what TLW? had done when he wrote the package, and he was using too long of a code chunk for a search key.  Other mods might mess with part of what he was looking for, so the search fails (that's what the error you got means).  I modified what TLW had done to instead search for the minimum unique code string and it worked fine.  BTW, that ZIP file has all of the important patches mentioned earlier in this thread, too.  It's kind of a pre-release new beta if you have trouble with the current beta.

I'm about to get back into finishing the SMF 2.0 conversion again... it's been a busy couple of weeks for me.
Title: Re: Google Member Map
Post by: tk2012 on June 11, 2008, 01:33:38 AM
Hey guys & gals -

(RUNNING 1.1.5)

After reading a couple replies made by some people I was almost going to scrap the entire project of installing this thread since I would be considered a SUB-n00b level if there were one.  But, I am intent on getting this thing to work if it is the last thing that I do!

I've gone through each .php file to ensure that all edits were done and transferred any that didn't have the edits.  Nothing has crashed, so that's good, but...

I've done all the edits, made sure the files are in the right places, and put the add_settings.php file in the main forum directory.  I don't see anything that has changed other than having the MemberMap settings under the FEATURES & OPTIONS section.

I've entered in all the info (including the key).  I don't see anything on the top nav bar (home, calendar, admin, etc)  I've enabled the member PERMISSIONS so people can view and plot a point.

The only place that I see the map is when I go to my profile.  I can go into the FORUM PROFILE INFORMATION section of my profile and view the map at the bottom of the settings.  I can plot a point where I live and hit the CHANGE PROFILE button.  It automatically clears what I put in it and doesn't save anything.

So, I've spent upwards of three lonely hours here and I've probably missed one little thing.  Any suggestions? 

1) How do I get the pushpin to stay once I place it?
2) Where do my members go in order to view the map?



The only error that I had was:

./Themes/default/Post.template.php   Test failed

I'm going to go back and read over my edits a third time, but any help or pointers would be great!  I didn't see any edits for that particular file or I would have done them.

I apologize for my lack of understanding!  But, don't fault me for trying!

-TK




UPDATE:  I GOT IT WORKING!  I re-installed it two times with the same files as before, but now it works.  So, thanks for the help... LOL.  BTW- Maybe some of you people with more expertise won't be so harsh to us n00bs since I just proved that we CAN do things on our own, are willing to try to remedy our own situations, and can succeed !
Title: Re: Google Member Map
Post by: LOADING... on June 11, 2008, 07:45:54 AM
Thank you everyone i will now try to figure out how to implement it on my forum!
Thank you...
Title: Re: Google Member Map
Post by: christinedlrp on June 27, 2008, 05:31:36 AM
I can't seem to figure out how to get the Member Map button to show up in the Babylon theme.  ???   I've included my index.template file so you can see if I did something wrong.   Thanks!
Title: Re: Google Member Map
Post by: 2Ntense on June 27, 2008, 09:44:45 PM
All I see offhand is that you forgot the $modSettings in the GLOBAL for the menu function.  If everything else is OK, this oughta fix you up.

Don't forget to copy the googlemap.gif button to the /themes/babylon/images/english directory if you're using the GIF buttons.  I'm not sure if the installer does that already.  I think it only copies the GIF to the default theme, and you'll need it in Babylon instead.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi31.tinypic.com%2F24w63yw.gif&hash=5a6e18f82e4fb016868f10e99d46697f477ae3b0)
Title: Re: Google Member Map
Post by: saygak on June 30, 2008, 06:33:44 AM
Thank you for the great mod!

I have a problem with my theme "Dilber MC".
I installed manually the mod, but in my theme there is no such file /Themes/DilberMC/Profile.template.php and I have no clue where to insert the code. As a result, there is no button "Member map" in the top menu next to "calendar" and "Profile".
However link like 'mysite.com/forum/index.php?action=googlemap' works great. In profile there is the map where you can put a marker.

I attached all *.php files from the template's directory
Title: Re: Google Member Map
Post by: brianjw on June 30, 2008, 07:54:23 AM
Thanks for your compliments.

Go to http://www.gamerzgarage.com/package.php choose your SMF Version and choose Install and then Only Theme edits. Upload my mod, GoogleMap.zip to that page as well and submit.

It should guide you with manually installing into a theme. If a custom theme doesn't have a certain file such as Profile.template.php, you don't make the edits. The theme borrows that file from the default theme which the mod is already installed in using the package manager.

I hope that made sense!
Thanks,
brianjw
Title: Re: Google Member Map
Post by: 2Ntense on June 30, 2008, 03:45:57 PM
saygak: the theme edit for DilberMC to get it to show the button will be in the index.template.php file in Dilber's directory.  Here's what I had to do on ours:

Find:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';

After that, add:
if ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';

(anywhere in that series of IF statements is fine)

and then find:
// If the user is a guest, show [login] button.
just before that, add:
// the [map] button
global $modSettings;
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo'
<td align="center" class="menubg' , $current_action == 'googlemap' ? '2' : '' , '">
<a href="', $scripturl, '?action=googlemap">' , 'Map' , '</a>
</td>';

(note: the menu bar on our Dilber theme had so many options that I had to reduce the text string for the menu to just the 'Map' you see above for our forum.  Normally that is $txt['googleMap']  instead of the 'Map' I have shown.)

This is a sloppy way to add the $GLOBAL, but since so many people forget to add it to the function $GLOBAL it's better than nothing...
Title: Re: Google Member Map
Post by: slinouille on July 19, 2008, 02:29:34 AM
Quote from: Force73 on June 04, 2008, 02:39:29 PM
Quote from: brianjw on June 04, 2008, 02:28:14 PM
Are you saying that the map is in the profile, but when you change the position it doesn't save?
Hmmm, I am not quite sure. It's definitely a db issue but I don't know how to solve it..

Read again please, within the function loadMap it does'nt put the new values in.
Where is the position in the scripts, where data will be saved?
Hello Force73,

I have exactely the same problem as you. The new pin positions are not stored when saving the profil!
I'm struggeling to find a solution but no glory for the moment.

SliN
Title: Re: Google Member Map
Post by: slinouille on July 20, 2008, 06:16:53 AM
Hi,

I've found a solution for this problem ... doesn't know if it's optimum but it works  ;D
I've notice after some hours of debuging that the saving of google map coordonates were never stored.
So I'm only "forcing" the saving query when member is updating his profil.

In Sources/Profile.php file found:
else
        {
            $force_redirect = true;
            // Ensure we include this.
            require_once($sourcedir . '/Profile-Modify.php');
            saveProfileChanges($profile_vars, $post_errors, $memID);
        }


Just after add :


//Force updating $profile_vars for Member Map Google
saveProfileChanges($profile_vars, $post_errors, $memID);


That's all ... I hope this will serv people with same behavior as me and Force73

Bye
Title: Re: Google Member Map
Post by: 2Ntense on July 20, 2008, 09:36:30 AM
You should NOT have to do anything weird like that.  One of the installation edits didn't take (you *must* have ignored the error(s) during installation and installed anyways) and you got the manual insertion at the wrong point or missed it entirely.  The only other time I've seen that particular error so far was with a completely mangled installation (Force's).  If yours was done like that, then my previous comment applies: I'm surprised you don't get a TEMPLATE PARSE ERROR or a fatal PHP error that takes your forum down.

Neither you (nor anyone else) needs to do that edit that you show above, and NOBODY else should ever add it.  If the package doesn't install correctly, then you need to *carefully* edit in the missing changes.  You probably blew it somewhere and the strange patch you show is a work-around for a missing or mangled manual edit on one of the files.  It's remotely possible that you had some other mod installed that interferes with the GoogleMap installation and doesn't toss an installation error, but so far nobody has reported it.

It boggles my mind how many people will ignore install errors and and install anyways on a live forum.  When you see this error, STOP.  THINK.  TREAD VERY CAREFULLY unless you want to blow away your forum.  When was your last full backup?  Have you ever done a successful full restore? 

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F4h33ns.jpg&hash=9a29897753601c0b7c01aeed84866b24080f24a1)

<walks away shaking his head in amazement and wonder>  :o
Title: Re: Google Member Map
Post by: slinouille on July 21, 2008, 03:50:37 AM
humhum
Sorry to annoy you ... but when I've installed this mod, no error was reported. I've once again uninstalled the mod (with errors on language files ... normal) and I've reisntalled it with no errors.
For information, I'm never isntalling a mod when there is an error and I do never install manually a mod.
I was using this mod when I was in SMF1 and all my members want it on the SMF2 version of the forum. So I need it to work. The only manner I've seen is to force as it is shown in my previous post.
But don't be afraid this will never generate a tempalte error because function SaveProfileChanges is protected ... so nothing will happen ih $profilevars is empty.
Nevertheless I've protected this "forcing" query with a "IF" ...
I'm convinced this is temporary solution and hope to make it work a better way ... I'm sure this could help people in the same situation as me.

As it seems that you master, you could perhaps give me a tip that could help? Can you explain with the "latitude" and "longitude" hidden text boxes are well updated in the update profile page but that only those fields are not well stored in database when member is clicking on "save profile". The only possibility is that the IFs sentences starting in line392 (// Now call the sub-action function...)
I hope you could have a tip for me as you exactely know how works this mod!

By the way, nice quotation at the end ... but sincerely I hope you have not posted it specialy for me! .... M. science infuse

Bye
Title: Re: Google Member Map
Post by: wolf-x on July 22, 2008, 10:36:51 AM
Hi,

Sorry my English isn't very good but here my french translation for this mod. I had post this also here (http://www.simplemachines.org/community/index.php?topic=250965.0) on the French forum.

modification.french.php


$txt['googleMap'] = 'Carte des membres';
$txt['googleMappinned'] = 'Membre place\'s';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Marqueur indefini';
$txt['googleMapGreenPinNG'] = 'Pas de sexe';
$txt['googleMapBluePin'] = 'Homme';
$txt['googleMapRedPin'] = 'Femme';
$txt['googleMapPurplePin'] = 'Groupe de marqueur';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Cliquez ici pour placer votre (nouveau) marqueur.</a>';
$txt['googleMapDisclaimer'] = 'Placez votre marqueur comme bon vous semblera.';
$txt['cannot_googleMap_view'] = 'Desole, vous n\'avez pas acces a la carte des membres.';
$txt['permissionname_googleMap_view'] = 'Voir la carte des membres';
$txt['permissionhelp_googleMap_view'] = 'Seuls les membres inscrits et places sont autorises a voir la carte .';
$txt['cannot_googleMap_place'] = 'Desole, vous n\'avez pas l\'autorisation pour placer un marqueur sur la carte.';
$txt['permissionname_googleMap_place'] = 'Place un marqueur sur la carte';
$txt['permissionhelp_googleMap_place'] = 'Seuls les membres inscrits peuvent placer des marqueurs sur la carte.';


ModSettings.french.php


$txt['googleMapsEnable'] = 'Activer la carte des membres';
$txt['googleMapsEnableLegend'] = 'Montrer la legende';
$txt['googleSidebar'] = 'Emplacement du menu';
$txt['googleMapsKey'] = 'La cle google maps api';
$txt['googleMapsPinGender'] = 'Les marqueurs doivent ils representer le sexe?';
$txt['googleMapsPinNumber'] = 'Nombre maxi de marqueurs sur la carte';
$txt['googleMapsType'] = 'Type de carte';
$txt['googleMapsDefaultLat'] = 'Latitude par defaut';
$txt['googleMapsDefaultLong'] = 'Longitude par defaut';
$txt['googleMapsDefaultZoom'] = 'Indice zoom par defaut';
$txt['googleMapsEnableClusterer'] = 'Activer les groupes de marqueurs';
$txt['googleMapsMinMarkerCluster'] = 'Marqueurs minimum par groupe';
$txt['googleMapsMaxVisMarker'] = 'Nombre maximum de marqueurs a afficher sur la carte';
$txt['googleMapsMaxNumClusters'] = 'Nombre maximum de categories de groupes';
$txt['googleMapsMaxLinesCluster'] = 'Nombre maxi de lignes pour les infos de groupes';
$txt['googleMapFO'] = 'Carte des membres';



Who.french.php


$txt['whoall_googlemap'] = '<a href="' . $scripturl . '?action=googlemap">Carte des membres</a>. anschauen';
$txt['whoall_.kml'] = 'Voir le flux Google Earth.';

Title: Re: Google Member Map
Post by: Nao 尚 on July 22, 2008, 12:23:24 PM
Never thought about posting my translation. So here's mine (from noisen.com). Choose whichever you like best (if you choose any). Mine has actual accents, a slightly more accurate translation, but it takes a few liberties -- poetic license, shall I say. Also, I like wolf-x's use of "marqueur" instead of "épingle". I should have thought about that one. I changed my translation to reflect that.

Modifications.french.php

$txt['googleMap'] = 'Carte';
$txt['googleMappinned'] = 'Sur la carte';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Marqueur ind&eacute;fini';
$txt['googleMapGreenPinNG'] = 'Sexe non pr&eacute;cis&eacute;';
$txt['googleMapBluePin'] = 'Homme';
$txt['googleMapRedPin'] = 'Femme';
$txt['googleMapPurplePin'] = 'Groupe de membres';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Cliquez ici pour placer votre marqueur si ce n\'est pas encore fait.</a>';
$txt['googleMapPleaseClick'] = 'Cliquez sur la carte pour placer votre marqueur, et cliquez sur le marqueur pour l\'enlever.';
$txt['googleMapDisclaimer'] = 'Placez votre marqueur sur votre lieu d\'habitation, ou dans ses environs si vous voulez garder cette information secr&egrave;te.';
$txt['cannot_googleMap_view'] = 'D&eacute;sol&eacute;, vous n\'avez pas l\'autorisation de visionner la carte des membres.';
$txt['permissionname_googleMap_view'] = 'Voir la carte des membres';
$txt['permissionhelp_googleMap_view'] = 'Autoriser le visionnage de la carte des membres. D&eacute;sactivez pour l\'emp&ecirc;cher.';
$txt['cannot_googleMap_place'] = 'D&eacute;sol&eacute;, vous n\'avez pas l\'autorisation de placer un marqueur sur la carte des membres.';
$txt['permissionname_googleMap_place'] = 'Placer un marqueur sur la carte des membres';
$txt['permissionhelp_googleMap_place'] = 'Autoriser &agrave; placer un marqueur sur la carte des membres. D&eacute;sactivez pour l\'emp&ecirc;cher.';


ManageSettings.french.php

$txt['googleMapsEnable'] = 'Activer la carte des membres Google Map';
$txt['googleMapsEnableLegend'] = 'Montrer les l&eacute;gendes des marqueurs';
$txt['googleSidebar'] = 'O&ugrave; afficher la liste des membres';
$txt['googleMapsKey'] = 'Cl&eacute; API fournie par Google Maps';
$txt['googleMapsPinGender'] = 'Les marqueurs doivent-ils indiquer le sexe ?';
$txt['googleMapsPinNumber'] = 'Nombre maximal de marqueurs sur la carte';
$txt['googleMapsType'] = 'Type de carte &agrave; montrer par d&eacute;faut';
$txt['googleMapsDefaultLat'] = 'Latitude par d&eacute;faut';
$txt['googleMapsDefaultLong'] = 'Longitude par d&eacute;faut';
$txt['googleMapsDefaultZoom'] = 'Zoom par d&eacute;faut';
$txt['googleMapsEnableClusterer'] = 'Autoriser le regroupage de marqueurs';
$txt['googleMapsMinMarkerCluster'] = 'Nombre maximum de marqueurs par groupe';
$txt['googleMapsMaxVisMarker'] = 'Nombre maximal de marqueurs visibles sur la carte';
$txt['googleMapsMaxNumClusters'] = 'Nombre maximal de groupes';
$txt['googleMapsMaxLinesCluster'] = 'Nombre maximal de lignes dans la bo&icirc;te d\'information d\'un groupe';
$txt['googleMapFO'] = 'Carte des membres';


Who.french.php

$txt['whoall_googlemap'] = 'Consulte la <a href="' . $scripturl . '?action=googlemap">carte des membres</a>.';
$txt['whoall_.kml'] = 'T&eacute;l&eacute;charge un flux Google Earth.';
Title: Re: Google Member Map
Post by: DistantJ on July 23, 2008, 05:35:35 PM
I have a couple of questions about this mod, I'm considering using it (and an SMF forum) for a future site I have in the works, but I need to know a few things beforehand...

Does clicking on a pin take you to a member's profile?

Can I center the map on the UK and prevent it from being moved elsewhere?

Can I set permissions so that only a certain membergroup can enter their position on the map?

Can the pin show the user's name or any other info when hovered over or anything, or can it only be a pin on the map?
Title: Re: Google Member Map
Post by: 2Ntense on July 24, 2008, 06:05:44 PM
Does clicking on a pin take you to a member's profile?

Not directly... it pops up a standard little GoogleMap 'info balloon' with the member's name, custom title, avatar and contact links (AOL, ICQ, e-mail, etc).  If you click on the ONLINE/OFFLINE/BUDDY icon within that info balloon, it will open the PM window to send that member a message.  If you click on the member's NAME within the info balloon, THEN it takes you to their profile.  The contact links (which includes their website link) take you to the same functions you see in the profile page.

Here's the balloon:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2Fsgjxqd.gif&hash=3cfbfa870def64ca9811b5e55c5727154cc3ee8e)


Can I center the map on the UK and prevent it from being moved elsewhere?

The center and zoom are settings in the Admin panel (you haven't read the thread, I see.  ;D )  The first post in this thread (http://www.simplemachines.org/community/index.php?topic=210708.msg1340634#msg1340634) with the announcement has the Admin panel settings, which include Lat, Lon and initial zoom.  For the zoom, bigger numbers are more zoomed in, range = 1 (world) to 20 (your neighborhood).  You'd want a zoom of around 6 or 7 for the UK.  You can actually zoom to 0, but it's useless and annoying.

This is just the INITIAL display every time the map is opened.  If you want to lock it so that they can't move it, there's some variables you can add to the "create the map" part of GoogleMap.php to freeze it in place by disabling dragging.  Look back earlier in this thread (SEARCH is your friend!) for my 'privacy' variation.   You can limit the zoom range and map dragging, but you're on your own for the change.  My changes were to the profile, but they're easily applicable to the main Member Map as well if you choose.  I *think* I've seen someone's example code on the GoogleMap API forums where they only allowed dragging within a set of lat/lon boundaries, but that's beyond the current scope of released code.

edit: here's Mike's example of limiting the dragging range to ONLY within the UK
http://econym.googlepages.com/example_range.htm
and a slightly smoother variation for Deutschland here:
http://www.ios-solutions.de/files/google_api_restricted_bounds.html


Can I set permissions so that only a certain membergroup can enter their position on the map?

It's in the PERMISSIONS after it's installed.  You can deny PLACE A PIN independently of VIEW THE MEMBER MAP.  Note however that the actual map itself doesn't validate the VIEW permissions, so if they know the link to the map they can still view it.  All the VIEW permission does is remove the MAP button from the forum's menu bar.


Can the pin show the user's name or any other info when hovered over or anything, or can it only be a pin on the map?

I'm not exactly sure what you're asking about.  Hovering doesn't do much with GoogleMaps APIs unless you're using ToolTips (which I find distracting).  If there's a link on the map (the markers used here link in the HTML balloon), the HAND changes to a POINTER, but that's about it.  You have to CLICK to do anything.  Maybe I answered this in full above already...

If you want to ELIMINATE the info bubble, then the source code is open to play with... go to town!  That's buried inside the MapsXML() function in GoogleMap.php.  *I* certainly don't want to remove that feature, nor do I want to add Yet Another Freakin' Option to the Admin panel.  :P  You can go inside of the XML processing and add or remove any information that you want... it's eventually just rendered as a tiny chunk of HTML in the balloon.

You might be able to eliminate the info bubble merely by removing the ', html' part of these lines in GoogleMap.php (4 places):
var marker = createMarker(point, icon, label, html)
but I haven't tried it.... that's just a Scientific Wild-Ars3d Guess.  Again, it's nothing anyone has asked for yet, and any outside modifications to add/remove features aren't supported so you're on your own but we'll offer suggestions and such.

Check out the two GoogleMap threads on Brian's site.  There's some other variations there that I didn't want to mention here; they'd just confuse the gentle readers even more.  I haven't been able to log into his site since he updated it, but there's some handy info in those two or three threads for doing oddball or custom stuff.  One of 'em links back to my modification posts in this huge thread.
http://www.gamerzgarage.com/index.php/board,23.0.html for the separate threads.

If you have ANYONE in your group that has some basic skills with JavaScript and maybe a little PHP programming, you can modify the Member Map to do anything you want it to.  Most likely the kinds of things you're talking about above are primarily little snippets of JavaScript and a few of the stock GoogleMaps API variables that we aren't currently using.  There's truly a staggering number of different functions that you can play with, if the default function doesn't satisfy you.  That's why I love open-source code... you're allowed to play.
Title: Re: Google Member Map
Post by: DistantJ on July 27, 2008, 05:21:34 AM
Perfect. Thank you for all the answers! This is pretty much exactly what I need. I can easily view the map as well? Can I show it on a PHP page which isn't part of the forum?

I'm not bad with PHP but Google Maps have a lot of code and I don't want to break anything. XD
Title: Re: Google Member Map
Post by: 2Ntense on July 28, 2008, 03:49:47 PM
Quote from: DistantJ on July 27, 2008, 05:21:34 AM
Perfect. Thank you for all the answers! This is pretty much exactly what I need. I can easily view the map as well? Can I show it on a PHP page which isn't part of the forum?

I'm not bad with PHP but Google Maps have a lot of code and I don't want to break anything. XD

Save early, save often (gaming quote from the '70s)  ;D  Feel free to break anything you want, just keep copies of the originals around so you can un-break it again.

The main map is fully contained within 2 files: GoogleMap.php and GoogleMap.template.php  The template just handles the page formatting BUT it has the DIV that actually creates the map <div id="map"... as well as the DIV for the sidebar <div id="sidebar"... and a bit of other stuff.  To create your own stand-alone page with the map, you'd probably need to have a portal/bridge that handles the link to the forum, 'cos if you try to invoke it from the forum link you'll still get all of the forum code wrapped around it.  I haven't played with the SSI stuff yet, but I suspect you could use a custom module built using the SSI feature which will give you the links into the forum database & variables that you need, without all of the other forum overhead that you may not care about, and without the headache of a separate portal/CMS/bridge/whatever.

The template page is pretty short.  Take a look at it and get a feel for what it's doing, and you could probably base your stand-alone page off of it using SSI (again, *zero* experience here on SSI but there's some excellent tutorials on it here at SMF.)  Then you could treat GoogleMap.php as a drop-in function that does all of the hard stuff and not worry about it.

http://docs.simplemachines.org/index.php?topic=400  (Using SSI.php)
(someone, PLEASE come up with a better suggestion if I'm crocked!)

GoogleMaps APIs are actually pretty easy, if you look at some of the example pages that Mike did for Google's developer forums.  It's just a small chunk of Javascript variables for a simple map, and some calls to existing API Javascript functions for the more complex stuff.  The one TLW and Brian did looks complex mostly due to the sidebar and the KML feed, which is well over half of GoogleMap.php.

And *do* check out Brian's forum.  If you want to add some POIs (Points of Interest) to your custom map that aren't members, I had a post there where I showed how to include your own XML file with independent POIs and custom HTML for the info balloon.

There's no end to the customization you can do.  You can have your own PNGs for the marker icons, toss in all sorts of wizzy features like the SEARCH box and generally make it look nothing whatsoever like what you'd started with, still maintaining the underlying GoogleMap.php with some minor tweaks.  I encourage people to make it into whatever they want it to be, but we don't have the time or resources to include an endless list of one-off customization in the main distribution files with a huge number of IF statements that we have to maintain forever.  Hell, I'm still struggling with a (fairly simple) port to SMF 2.0.

BTW, I'm about the farthest thing from a PHP expert that you'll find.  I only started to play with it a little last year or year before, so I'm as green as any other newbie.  It's never stopped me from hacking code, though!

Title: Re: Google Member Map
Post by: talkhunting on July 30, 2008, 02:48:12 PM
I am not sure this is where I need to post so if not, please direct me to where...

I recently installed Google member Map and now posting has become incrediably slow. Is this just a part of this mod? is there anything I can do about it?

Also, my error logs are full of google map errors..
Title: Re: Google Member Map
Post by: brianjw on July 30, 2008, 05:33:32 PM
Hi talkhunting,

No, the Google Member Map doesn't make the posts on your forum become slow at all. The Google Member Map mod is only available on one page, and that page doesn't include posts.

We are working to fix the errors in the error log.
Title: Re: Google Member Map
Post by: talkhunting on July 30, 2008, 05:37:31 PM
ok......  Its a weird issue... I installed 2 mods at about the same time. members map and friend invite. After that, when you click "Post" after replying or a new topic, it takes about 20 seconds to refresh back to the new page...

Any ideas? If I uninstall the map mod to test it, will I lose the members info already there?
Title: Re: Google Member Map
Post by: tk2012 on July 30, 2008, 05:37:53 PM
This mod took me some time to get working, but it was WORTH EVERY HOUR!  My members love this add-on the best out of EVERYTHING I've installed (which is like 61 mods) 

Just wanted to say thank you for incorporating this for us!
Title: Re: Google Member Map
Post by: brianjw on July 30, 2008, 06:15:15 PM
@talkhunting:
If you uninstall the Google Member Map mod via the Package Manager, it will not effect your database of the member map. All your member's pins will remain in the database. Please do try to test it, but I extremely doubt this is the case of my mod. I haven't heard any problems like this happening from my mod, including when TWL was supporting it so like I said, I doubt it is my mod causing this.

If after uninstalling this mod and the friend invite mod, you still receive this problem. I would contact your hosting provider to ask them why this is happening.

@tk2012:
Thank you for your compliments. It is always nice hearing compliments like this.

May I ask why it took time to get it working? What problems did you experience?
Title: Re: Google Member Map
Post by: talkhunting on July 30, 2008, 06:20:35 PM
thanks!  I will try that!

I think the mod is great and the members love it! Thats why I dont want to lose the data..
Title: Re: Google Member Map
Post by: brianjw on July 30, 2008, 07:41:56 PM
talkhunting,

Ok, let me know how it goes. ;)

Thank you for your compliments as well. :)
Title: Re: Google Member Map
Post by: tk2012 on July 30, 2008, 09:24:35 PM
Quote from: brianjw on July 30, 2008, 06:15:15 PM
@talkhunting:

@tk2012:
Thank you for your compliments. It is always nice hearing compliments like this.

May I ask why it took time to get it working? What problems did you experience?

Well, I had just installed my forum about two months ago and had no idea what in the world I was doing.  I had no idea how to edit a php file, upload to a server, or pretty much anything else.  It took a long time because I am and was a n00b!  Now, I'm much better (not great, but better).  I can at least semi-figure out what is wrong when I do things. 

All I remember is trying to do it step by step, but failing along the way.  Not sure if I posted in here before, but I may have.  Just chalk it up to someone inexperienced getting their feet wet.

I wish this was available for 2.0 b3.1 !!  Anyway, the work paid off because I can't tell you how much my members love it! 

I have done a lot of things on my site now like altering the default theme to our own color palette, but the Member Map is  the most popular with about 50% taking part in it.  Guests can view the site, but I don't think the member map shows
http://www.tk2012tournaments.com/forum/index.php

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 01:53:11 PM
Google Member Map 1.0 beta IS RELEASED!
It works with SMF 2.0 and SMF 1.1.X
Huge Thanks to both Nao and 2Ntense! Without them, it would be many more months before this would be released.
Now, please note this has been tested on SMF 2.0 and SMF 1.1.X on a test site that was fresh installs. It is in BETA so report any problems you experience.

Some new features in this version are:
o Works with SMF 2.0 and SMF 1.1.X
o Fixed Internet Explorer bugs, some were experiencing.
o Added a search function to the add pin map in the profile for easier pin placing and easier finding locations.
o Added an option to display or to not display the KML feature. (For better security)
o CSS Should Be Fixed and the balloons on the map should be fixed for darker themes!
o Added the mousewheel zoom function to the map. You can now zoom using your mousewheel.
o Removed the frame view on the bottom left. (annoying and requested to be removed by many members)
o There is plenty more and you will find them.

And changes that aren't on the list above you will notice as you use the mod. In SMF 2.0, the administration Page is located in Admin>> Configuration >> Modifications..

Please enjoy this new version!
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on July 31, 2008, 02:02:07 PM
Oh nooooo... I think I just found what I'm doing tonight since the weather sucks here!  I'll let you know how it goes!  I don't think I'm going to let my members know about this until the new site goes live in September.  They need a nice surprise!

THANKS SO MUCH !!!
Title: Re: Google Member Map v1.0 beta
Post by: digit on July 31, 2008, 02:22:52 PM
Cool!  Any upgrade advice?  Are there any new tables or columns, or can we just upload the new source file, clusterer, and theme templates?


Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 02:28:00 PM
To upgrade, just uninstall the old version and install the new one. The database is all the same except for one added table which will add itself upon install via package manager.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyHorse80 on July 31, 2008, 02:53:21 PM
But if I upgrade, do all of my members have to replace their pins?
Bye,
PS
Title: Re: Google Member Map v1.0 beta
Post by: digit on July 31, 2008, 02:59:59 PM
Quote from: brianjw on July 31, 2008, 02:28:00 PM
To upgrade, just uninstall the old version and install the new one. The database is all the same except for one added table which will add itself upon install via package manager.

In other words, no?  :)

I am unable to use the Package manager because I am limited to sftp.

Can you please give me the details of this "new table"?

Thanks!

:-(
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 03:49:01 PM
@CrazyHorse80:
If you upgrade, all your members keep their pins. It's in the database.

@digit:
All I can tell you is the code that adds the database is in add_settings.php and add_settings20.php (for smf 2.0). It looks like this 'KMLoutput_enable' => '0',

However you got it set up the first time is somehow how you need to setup this new one.
Title: Re: Google Member Map v1.0 beta
Post by: casp3r on July 31, 2008, 04:17:36 PM
Just installed it and the front end seems to work fine. The problem is the back end - I can't get into it. I go to 'Features and Options' click members map, the page refreshes but just displays the same 'Features and Options' page. What's the url to the back end?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 04:21:43 PM
The URL to the administrator page for the Google Member Map mod for SMF 2.0 only is
index.php?action=admin;area=modsettings;sa=googlemap

For SMF 1.1.X:
index.php?action=featuresettings;sa=googlemap

brianjw
Title: Re: Google Member Map v1.0 beta
Post by: casp3r on July 31, 2008, 04:26:06 PM
Thanks that works (SMF 2.0)
Noticed that there's also a 'Member Map' in 'Modifications' and this works fine.
Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on July 31, 2008, 07:20:16 PM
Quote from: casp3r on July 31, 2008, 04:26:06 PM
Thanks that works (SMF 2.0)
Noticed that there's also a 'Member Map' in 'Modifications' and this works fine.

Had to use that section for all the admin stuff as well.
Thanks brianjw for getting this out for us 2.0 users.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 07:41:01 PM
I hope you all enjoy it and I know how much you guys wanted it lol. So I worked on it all day today. I almost didn't eat lunch lol. :P

There is no admin panel for the member map in features and options in 2.0. It was moved to a location where it should be in 2.0 which is under the 'Modifications' menu.
Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on July 31, 2008, 08:29:11 PM
Quote from: brianjw on July 31, 2008, 07:41:01 PM
I hope you all enjoy it and I know how much you guys wanted it lol. So I worked on it all day today. I almost didn't eat lunch lol. :P

There is no admin panel for the member map in features and options in 2.0. It was moved to a location where it should be in 2.0 which is under the 'Modifications' menu.

Will you be deleting that link in options then? It's a little misleading if you don't know to look in the mod section.

Also, where do you change the color for the sidebar? I looked in googlemap.template but did not see it.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 09:11:34 PM
@SgtMic:
Yes. I miscoded in the ManageSettings.php file. I will fix it real quick and upload it to the modsite and will post a manual fix here.

You cannot change the color for the sidebar, it is part of the page. I guess you can add a background to the div for it though. The div for it is <div id="sidebar" just add some kind of style for a background or something. ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on July 31, 2008, 09:43:01 PM
Ok, here's the fix for ManageSettings.php which will be updated on the modsite in a minute..
Open ManageSettings.php which is in ./Sources/
FIND

'googlemap' => array(
'label' => $txt['googleMapFO'],
'href' => $scripturl . '?action=admin;area=modsettings;sa=googlemap;sesc=' . $context['session_id'],
),


REMOVE IT

FIND

// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => &$txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),

ADD THE FOLLOWING AFTER THE ABOVE


'googlemap' => array(
),


That should fix it. :)
Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on July 31, 2008, 11:04:12 PM
Good to go with the fix.
Title: Re: Google Member Map v1.0 beta
Post by: cubetgio on August 03, 2008, 06:09:35 PM
Ho Great !!!!   :) :) :)

It work now with new version !! 

I have a last question, it's about uninstalling the mod :

i'had duplicate the code because installing and uninstalling the MOD seferal time.

I decided to do the cleaning of the file (duplication) and i have got this now when uinstalling:

Execute Modification ./index.php Test successful
7. Execute Modification ./Sources/Load.php Test failed  
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Execute Modification ./Sources/ModSettings.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test failed  
12. Execute Modification ./Themes/default/Profile.template.php Test failed
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed  

Can i go ahead  with uninstalling ? then installing again to get all successful test ?

The mod is operating very well...



Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 03, 2008, 07:38:41 PM
You should probably uninstall, and manually check to see if the mod is installed. Or if you have no other mods installed, then you can just uninstall and replace those files with fresh install files.
Title: Re: Google Member Map v1.0 beta
Post by: 2Ntense on August 05, 2008, 10:48:04 AM
With that many errors, yeah, I'm with Brian.  I'd revert to the SMF 'default' theme, dump your current file set and replace with a clean set of files, then re-install all the other mods and theme(s) again.  If you truly have a bunch of duplicated code then that's the only (somewhat) safe thing to do, but I'd still make a backup first.  Uninstalling at this point could quite likely break your forum.

Quote7. Execute Modification ./Sources/Load.php Test failed
11. Execute Modification ./Themes/default/index.template.php Test failed
12. Execute Modification ./Themes/default/Profile.template.php Test failed
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

The only error above that's somewhat safe to ignore is the one for Modifications.english.php as it'll probably just leave in some strings that you don't need.  Any of the others could easily make your forum fall over and *die* if you ignore errors and press the [UNINSTALL NOW] button.  I've done it myself more than once.  ;D

Most often those errors are caused by installing and uninstalling modifications out of order, which SMF 1.x exacerbates by not keeping track of what you've installed in which order.  I don't recall if 2.0 is any better in that regard.  I keep a separate list on my forum of what I've done and when, so I can reverse the changes later.


Folks, since we're now supporting both 1.x and 2.x, please let us know which forum version you're on!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 05, 2008, 10:52:59 AM
Since he has a link to his site, I believe it is 1.1.5
Title: Re: Google Member Map v1.0 beta
Post by: digit on August 05, 2008, 11:15:15 AM
Any chance we can just display who's on our buddy list?

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 05, 2008, 11:20:53 AM
On the main member map?

No, because the member map is public and everyone can add pins to it. I guess it is possible but it would be way out of my way to code something like this.
Title: Re: Google Member Map v1.0 beta
Post by: edi67 on August 07, 2008, 03:20:30 AM
i wil try it in smf 2
Title: Re: Google Member Map v1.0 beta
Post by: 2Ntense on August 07, 2008, 11:08:45 AM
Quote from: digit on August 05, 2008, 11:15:15 AM
Any chance we can just display who's on our buddy list?

There's a real handy link to each pinned member's PROFILE inside the info balloon that'll get that for ya. ;)

Otherwise you'd have to go inside GoogleMaps.php and change around the section that collects the info for the ballooon.  The code is wide open, and it's pretty easy to get any of the variables in the 'members' table.  That's the only table we're reading, and you're on your own for the change 'cos *I* sure can's see any use for it.  You'd have to explode the array for buddies and then convert the ID numbers back into names.

Changing around the info in the sidebar could get ugly, mostly because it's only so wide and the information would start to wrap or cause a horizontal scrollbar at some point.

It's not that hard to modify the info balloon... that section is mostly just HTML with a few IFs, look just under the comment that says // Lets accualy start making XML Mr. PHP

Enough people have asked about the info balloon, so here's the entire code for it:

    // Lets accualy start making XML Mr. PHP
echo '<?xml version="1.0" encoding="', $context['character_set'], '"?' . '>
<markers>';

if (isset($data)) {
// Assuming we have data to work with...
    foreach ($data as $marker) {
$datablurb = '
<table class="googleMaps" border="0">
<tr>
    <td style="white-space: nowrap;" align="left"><a href="' . $marker['online']['href'] . '"><img src="' . $marker['online']['image_href'] . '" alt="' . $marker['online']['text'] .'" class="avatar" border="0" /></a> <a href="' . $marker['href'] .'">' . $marker['name'] . '</a></td>
<td rowspan="3"><img src="' . $marker['avatar']['href'] . '" height="80" /></td>
</tr><tr>
    <td style="white-space: nowrap;"><font color="#000000">' . $marker['title'] . '</font></td>
    </tr><tr>
<td style="white-space: nowrap;" align="center">
' . $marker['icq']['link'] . '
' . $marker['aim']['link'] . '
' . $marker['yim']['link'] . '
' . $marker['msn']['link'] . '
</td>
</tr><tr>
<td style="white-space: nowrap;" colspan="2" align="left">';
if (($marker['website']['url'] != '') && ($marker['website']['title'] != ''))
$datablurb = $datablurb . '<a href="' . $marker['website']['url'] . '">' . $marker['website']['title'] . '</a>';
$datablurb = $datablurb . '</td>
</tr><tr>
    <td style="white-space: nowrap;" colspan="2" align="left"><font color="#000000">' . $marker['blurb'] . '</font></td>
</tr>
</table>';

// This is to help against those funky chars... and protect against those " errors in XML!
$datablurb = htmlspecialchars($datablurb);

// Lets bring it all together...
$markers = '<marker lat="' . $marker['googleMap']['latitude'] . '" lng="' . $marker['googleMap']['longitude'] . '" ';

if ($marker['gender']['name'] == $txt[238]) {
$markers = $markers . 'gender="1"';
} elseif ($marker['gender']['name'] == $txt[239]) {
$markers = $markers . 'gender="2"';
} else {
$markers = $markers . 'gender="0"';
}

$markers = $markers . ' label="' . $marker['name'] . '" html="'. $datablurb . '" />';

echo $markers;
}
}
    echo '
    </markers>';


The $datablurb is what's displayed as the HTML for the marker info balloon.

The section underneath // Lets bring it all together... is what sets the color of the pin.  If you can read HTML then changing this isn't rocket science... and you have access to ANY of the fields in the 'members' table:

ID_MEMBER, memberName, dateRegistered, posts, ID_GROUP, lngfile, lastLogin, realName, instantMessages, unreadMessages, pm_ignore_list, emailAddress, personalText, gender, birthdate, websiteTitle, websiteUrl, location, ICQ, AIM, YIM, MSN, hideEmail, showOnline, timeFormat, signature, timeOffset, avatar, pm_email_notify, karmaBad, karmaGood, usertitle, notifyAnnouncements, notifyOnce, ID_THEME, ID_MSG_LAST_VISIT, additionalGroups, smileySet, ID_POST_GROUP, totalTimeLoggedIn, messageLabels, buddy_list, notifySendBody, notifyTypes, longitude, latitude

I've removed the few fields that are related to security, like passwd.  You have NO business displaying that kind of data on any of your members.  Likewise, you shouldn't be displaying their IP address without their consent.  Also, if you want to display their e-mail link then you should first qualify that with the hideEmail flag.

(note to self: I think I just spotted a bug... we're not checking the 'hide online status', unless $marker['online']['image_href'] already qualifies that.)

As other mods are installed, new 'members' fields become available for use inside the info balloon.   One fun mod might be JayBachatero's 'Country Flags', although..... gee, you're ON a map, and you can SEE what country they're in....  :P
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 11, 2008, 04:22:39 PM
I'm finally able to install this today on my new forum.

I'm using v2.0 b3.1 and it failed two tests when trying to load.  The first one was Sources/Profile-Modify.php which was the 2nd edit to "replace".  The second fail was in Themes/default/languages/manageSettings.english.php which is the 1st edit to "add after"

I went ahead and installed anyway and will go back and manually edit both of these areas.  When it redirected me, I was taken to the admin section.  The only problem with that is that there were no words showing up as in your attached pic.  The checkboxes and text boxes were present, but there were no words appearing to the left.  Also, there was one extra checkbox that is not in the reference pic.  Between the API key and the max pins box, I have two checkboxes that appear instead of one.  Not sure which is gender and which is extra at this point.  Perhaps after doing the manual edits it will show?

Going to work on it now hopefully before the Comcast Tech arrives to fix my internet connection!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 11, 2008, 04:27:15 PM
This is a language file problem. Please make sure that all the language strings are in Modifications.<your_language>.php. It is possible you are using utf-8. If this is true, then make sure the edits are also in Modifications.<your_language>-utf8.php

The screenshots are outdated at the moment, I will fix them ASAP.
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 11, 2008, 04:34:18 PM
Hey there

I have the ADVANCED REPUTATION mod installed and it looks like it interferes with those two edits that failed.  I think this is what needs to be done in order to complete the install.

For the 2nd edit of the Sources/Profile-Modify.php, find this:


setupProfileContext(
array(
'avatar_choice', 'personal_text', 'hr',
'bday1', 'location', 'gender', 'hr',
'icq', 'aim', 'msn', 'yim', 'hr',
'usertitle', 'signature', 'hr',
'karma_good', 'karma_disabled', 'hr',
'website_title', 'website_url',
)


and then add the following line to it.


'latitude',


(The other edits in that file were done correctly already.)




Then, for the second test fail, you need to look for this code in your  Themes/default/languages/manageSettings.php file:


$txt['karmaLabel'] = 'Reputation label';
$txt['karmaApplaudLabel'] = 'Reputation applaud label';
$txt['karmaSmiteLabel'] = 'Reputation smite label';


and THEN put the following after it:


$txt['googleMapsEnable'] = 'Enable the Google Member Map'; $txt['googleMapsEnableLegend'] = 'Show a Pin Legend'; $txt['googleSidebar'] = 'Where to show sidebar'; $txt['googleMapsKey'] = 'The key from the Google Maps API Page'; $txt['googleMapsPinGender'] = 'Should the pins reflect users gender?'; $txt['KMLoutput_enable'] = 'Should the compressed KML output be allowed? (KML is a file that is downloadable on the Google Map page that displays all the member pins inside Google Earth)'; $txt['googleMapsPinNumber'] = 'Number of max pins to show on map'; $txt['googleMapsType'] = 'The map type to show'; $txt['googleMapsDefaultLat'] = 'The default Latitude'; $txt['googleMapsDefaultLong'] = 'The default Longitude'; $txt['googleMapsDefaultZoom'] = 'The default Zoom'; $txt['googleMapsEnableClusterer'] = 'Enable Pin Clustering'; $txt['googleMapsMinMarkerCluster'] = 'Minimum Pins Per Cluster'; $txt['googleMapsMaxVisMarker'] = 'Maximum Visible Pins On Map'; $txt['googleMapsMaxNumClusters'] = 'Max Number of Clusters'; $txt['googleMapsMaxLinesCluster'] = 'Max Number of lines in Cluster Info Box'; $txt['googleMapFO'] = 'Member Map';

Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 11, 2008, 05:20:58 PM
Quote from: brianjw on August 11, 2008, 04:27:15 PM
This is a language file problem. Please make sure that all the language strings are in Modifications.<your_language>.php. It is possible you are using utf-8. If this is true, then make sure the edits are also in Modifications.<your_language>-utf8.php

The screenshots are outdated at the moment, I will fix them ASAP.

Not sure I understand..

My default/languages directory only has the following utf8 files:  ManageAwards.english-utf8.php & UsersOnlineToday.english-utf8.php

Everything else is standard .english.php files.

I'm going to go back and check all the edits.  I'm using the default theme on v2.0 b3.1  I did the previous two edits I posted, but see no change to anything.  Also, when going to the profile section, I see the bog square where the map is to be placed, but no map or way to place your pointer. 

Also, when clicking the main MEMBER MAP tab, I see the map and that's it.  I can go in and out, but there's still no words anywhere on the page.  I can usually do edits when told where to look, but in this case I don't see any other utf8 files anywhere.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 11, 2008, 07:05:08 PM
Okay, well then try checking ManageSettings.english.php for the google map edits.
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 12, 2008, 02:00:05 AM
OK, I went back and checked ALL the edits.  Everything is done correctly.  I have the additional files put in the proper places.  I cleared out the cache, so do we want the good news or bad news?  LOL

I'll start with the good news.  In my Admin account, I am able to see the words in the admin settings page for Member Map.  I am able to see the map in the MemberMap section.

Bad News #1:  When I go to my profile on my own, I was unable to see the map.  I had a big blank square.  But, when I went directly to the MemberMap page and hit the link that said to "click here" to plot your marker... the map appears in my profile and I'm able to set my plotter.  This was all done in FF3.0 browser.

So, I went to my TESTaccount and logged on in IE7.0 and went to the MemberMap page.  I see the map, my Admin marker, and the link as expected, but the Mousewheel scroll does not work and gives me a script error for tha function.  When I go directly to my profile, I get a runtime error that says LINE 289 Error: syntax error and asks me if I want to debug.  This is what the error matches up with when I hit yes.  (I'm not clever enough to know what this means though..lol)

(curser was on the bold line below)

Quote<td class="windowbg" colspan="2">
         <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACdPZ6GV-KEy92ObxAJFTJBQ5Ef9DX6PwviOHTQD2aSbv1fIAYBSc0d_CLHNc04424-cYNYkihM_ntQ" type="text/javascript"></script>
         <div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
         <input type="hidden" name="latitude" size="50" value="" />
         <input type="hidden" name="longitude" size="50" value="" />
         <script type="text/javascript">
         //<![CDATA[
         function LoadMap()
         {
            var map = new GMap2(document.getElementById("map"));
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
            map.setCenter(new GLatLng(,), 13, G_HYBRID_MAP);
            var point = new GLatLng(,);
            var marker = new GMarker(point);
            map.addOverlay(marker);
         }

         if (GBrowserIsCompatible()) {
            window.onload=LoadMap;
         }
         //]]>
               </script>

...and the map doesn't load. 

But, if I go to the MemberMap page, and click on the "click here" to plot your marker, it goes to my profile and loads the page correctly and allows me to place my pointer.

I didn't do it in case you wanted to see it for yourself.  I tried doing a CNTRL F5 to see if it would work, but no dice.




Finally, I'm getting one error in the Error Log

If you want, I can change the permissions set for the TESTaccount if you want to check out anything else... let me know!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 12, 2008, 08:45:56 AM
tk2012,

The map will show up on the profile summary once you have posted a pin on the map. There is a blank space there if there is no pin lol (me an 2Ntense cannot figure that one out).

As for the script errors - I hope you don't mind but 2Ntense is better with solving that stuff lol. He will be back tomorrow I believe if you don't mind waiting lol.
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 12, 2008, 08:53:02 AM
Cool deal!  I'll make a note to tell people not to worry if they see a blank screen and to plot their point by going thru the link on the Map page.

I don't remember having to go thru the MemberMap page last time to plot your point.  I thought you were able to go straight to the profile and plot it.  Anyway, no big deal.  I'll make a reference post on my forum to instruct people.

Thanks again for updating this for 2.0  We really enjoy this and it actually brings our forum community together more (because of seeing how far some of us are away from each other.)  Of course, since my new site doesn't go live until September 7th, I'm pretty lonely being the only point on the map!  LOL.
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on August 12, 2008, 08:58:49 AM
Sorry for the double post, but grabbed you an updated screen-shot of the settings page.  If you want to use, go ahead.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 12, 2008, 09:04:04 AM
Thank you very much tk2012.

You don't have to go through the member map to post your pin. You go to your Profile >> Forum Profile to edit it (and it is at the bottom).
Title: Re: Google Member Map v1.0 beta
Post by: DistantJ on August 24, 2008, 05:59:32 PM
Hi, I just donated $5 today for a member map -

But for some reason the permissions are playing up. I keep getting a user who does not have permission to place pins... placing pins.

I dunno if it's related I also am getting bots posting spam as guests even though the forum forces registration and there's no "new topic" button visible for guests. Very bizarre....
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 24, 2008, 08:08:35 PM
First of all.. what SMF version are you using?

Second, if permissions or set correctly then it shouldn't allow people without permission to place pins.

And your second part is not related to this mod. ;)
Title: Re: Google Member Map v1.0 beta
Post by: DistantJ on August 25, 2008, 06:00:09 AM
It's alright, it's fixed now, I think perhaps it just took the permissions a while to update.

Now I'm going to attempt to include the map in an external PHP page :P Should I just copy the code from your pages or..?
Title: Re: Google Member Map v1.0 beta
Post by: cubetgio on August 25, 2008, 06:00:27 AM
Everythings was fine whith new upated version than i decided to clean my files with duplicate code. Now i have got thjis message:

Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /web/sites/vhbu3/0/224/52739/public/forum/Sources/ModSettings.php:367) in /web/sites/vhbu3/0/224/52739/public/forum/Sources/ModSettings.php on line 675

feature and options link in configuration panel cann't be lauched

I'm using 1.1.5

Can you help me to reset the things manually ?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 25, 2008, 05:20:12 PM
@DistantJ:
Try the following code:

<?php
require("/path/to/SSI.php");
include(
"/path/to/Sources/GoogleMap.php");
global 
$context$modSettings$scripturl$txt$settings;

if (
$modSettings['googleMapsEnable']) {
echo 
'<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;"><style type="text/css"><!--
/* Google Maps */
.googleMaps
{

font-size: small;
font-family: tahoma, sans-serif;
}
.googleMapsSidebar
{
    
    font-size: x-small;
    font-family: tahoma, sans-serif;
    margin: 0px;
    
    overflow: auto;
    width: 150px;
    height: 500px;
}
.googleMapsLegend
{
    
    font-size: x-small;
    font-family: tahoma, sans-serif;
    margin: 0px;
    
    overflow: auto;
}
/* Google Maps Links */
a.googleMapsLink:link, a.googleMapsLink:visited, a.googleMapsLink:hover
{

font-size: small;
font-family: tahoma, sans-serif;
}
/* THEME EDITS
#map a:link{
    color: #000080;
}
#map a{
    color: #00ff00;
}

#map a:active{
    color: #ff0000;
}

#map a:hover{
    color: #000;
}
*/
--></style><div class="tborder" style="margin-top: 1ex;">
<div id="googlemap" class="titlebg" style="padding: 4px;">'
$txt['googleMap'], '</div>
<div id="googlemapmain" class="windowbg2">
<table width="100%">
    <tr>
<td class="windowbg2" colspan="2" valign="middle" align="center">
            <table>
                <tr>
                    <td colspan="2" align="center">
                        <table><tr><td align="center">
                            <div id="map" onmousewheel="cancelscroll()" style="width: 675px; height: 500px; color: #000000;"></div>
                        '
$txt['googleMapc'], '</td>';
if (
$modSettings['googleSidebar'] == 1)
echo 
'
           <td align="center" style="whitespace: norwap;"><h3 ><em>'
$txt['googleMappinned'], '</em></h3><hr style="width: 94%;"  />
                            <div id="sidebar" class="googleMapsSidebar" align="left" style="padding-left: 15px;"></div>
                        </td>'
;
if (
$modSettings['googleSidebar'] == 2)
echo 
'
                        </tr><tr>
                        <td align="center">
                            <div id="sidebar" class="googleMapsLegend" align="left"></div>
                        </td>'
;
echo 
'
                        </tr></table>
                        <script src="http://maps.google.com/maps?file=api&v=2&key='
$modSettings['googleMapsKey'], '" type="text/javascript"></script>
                        <script type="text/javascript" language="JavaScript" src="'
$settings['default_theme_url'], '/Clusterer2.js"></script>
                        <script type="text/javascript" language="JavaScript" src="'
$scripturl'?action=googlemap;sa=.js"></script>
                    </td>'
;
if (
$modSettings['googleMapsEnableLegend']) {
echo 
'
                </tr><tr>
                    <td colspan="2" align="center" class="googleMapsLegend">
                        <table><tr>'
;
if (!
$modSettings['googleMapsPinGender'])
    echo 
'
                    <td><img src="http://labs.google.com/ridefinder/images/mm_20_green.png">'
$txt['googleMapGreenPinGD'], '</td>';
else
    echo 
'
                        <td><img src="http://labs.google.com/ridefinder/images/mm_20_green.png">'
$txt['googleMapGreenPinNG'], '</td>
                        <td><img src="http://labs.google.com/ridefinder/images/mm_20_blue.png">'
$txt['googleMapBluePin'], '</td>
                        <td><img src="http://labs.google.com/ridefinder/images/mm_20_red.png">'
$txt['googleMapRedPin'], '</td>';
if (
$modSettings['googleMapsEnableClusterer'])
echo 
'
                        <td><img src="http://labs.google.com/ridefinder/images/mm_20_purple.png">'
$txt['googleMapPurplePin'], '</td>';
echo 
'
                        </tr></table>
                    </td>'
;
}
echo 
'
                </tr><tr>
                    <td align="left">'
;
if (
allowedTo('googleMap_place'))
    echo 
$txt['googleMapAddPinNote'];
echo 
'
                    </td>'
;
if (!empty($modSettings['KMLoutput_enable']))
echo '<td align="right">
                        <a href="'
$scripturl'?action=.kml"><img src="'$settings['default_theme_url'], '/images/google_earth_feed.gif" border="0" /></a>
                    </td>'
;
echo '
                </tr>
            </table>
        </td>
</tr></table>
        </div>
    </div></td></tr></table>'
;
    }
?>


Just be sure to change the paths at the top of the php code to the exact path your forum is at.

@cubetgio:
I would be happy to fix it for you. Just attach your ModSettings.php file which is located in ./Sources/


Thanks,
Brian
Title: Re: Google Member Map v1.0 beta
Post by: unformatted_ on August 26, 2008, 03:09:20 AM
HI!

QuoteThis mod conflicts with the custom actions mod and custom profile field mod - we are still working to fix this.
at mod release.

Its possible in the custom profile mod, insert city and country and then show all the members on the map based on these 2 fields?

I think it's more easy to the member in this way,
Title: Re: Google Member Map v1.0 beta
Post by: cubetgio on August 26, 2008, 02:44:44 PM
@cubetgio:
I would be happy to fix it for you. Just attach your ModSettings.php file which is located in ./Sources/


Thanks,
Brian
----------------------------------------------------------
Hi Brian,

Here is my ModSettings.php attached. Thanks for you availability.

Giovanni
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 26, 2008, 05:33:03 PM
vasco,

I am having some trouble understanding what you are wanting. You want the custom profile field mod to show in the little user balloon on the map?

cubetgio,

Download the attached ModSettings.php and backup your old one before replacing it with the below one.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 26, 2008, 05:33:10 PM
vasco,

I am having some trouble understanding what you are wanting. You want the custom profile field mod to show in the little user balloon on the map?

cubetgio,

Download the attached ModSettings.php and backup your old one before replacing it with the below one.
Title: Re: Google Member Map v1.0 beta
Post by: unformatted_ on August 26, 2008, 06:54:49 PM
Using custom profile fields for city and country, after the member update their profile with this data, it's possible add a marker to the google map where the member lives based in this 2 fields information? If almost members update profile with this 2 simple fields then we wave a google map of all community members. Is that possible?

thanks!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 26, 2008, 07:00:23 PM
Unfortunately vasco it isn't possible! The only way it COULD be possible is if the Google Member Map actual system was hosted on your site which isn't possible because it is google system. ;)

You can however use the search feature which should be implemented in the latest 1.0 beta. You can find it when you go to place a pin, just have them type in a location.

Thanks,
Brian
Title: Re: Google Member Map v1.0 beta
Post by: unformatted_ on August 26, 2008, 07:41:17 PM
ohhhh  :'(

I have thought that because joomla has an extension - Gmaps Pro - that can do that (I think?!) and also can show users in 100km from me (or other distance) integrated with the Community Builder extension. This extension add the latitude and longitude to the profile member (hiden) based on country and city. Maybe could be possible in SMF?

Thanks

Link to that extension:

http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1845/Itemid,35/
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 26, 2008, 08:36:17 PM
I see what you're saying. I guess it could be possible to do something like that, but I am not exactly sure how to do this. However, you would HAVE to put a little checkbox in the profile that will allow the user to enable his/her pin on the map.
Title: Re: Google Member Map v1.0 beta
Post by: unformatted_ on August 27, 2008, 02:53:23 AM
Hi!

nice :) maybe by default that option should be activated. I have that extension working with joomla+CB not very easy to setup, but works really nice, very impressive.

Maybe someone can help us to do that :)

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: my evil twin on August 27, 2008, 05:35:33 AM
Quote from: brianjw on August 26, 2008, 05:33:10 PM
I am having some trouble understanding what you are wanting. You want the custom profile field mod to show in the little user balloon on the map?

I would love to have this feature!
Just show some custom fields content in the little user balloon...
Is this possible?

Also, is it easy or hard to make more pin-types, like, red for admin, blue for members, green for moderators etc?

if you say it's easy, i'll get a php book and try my luck :D

thanks in advance for your answer!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 27, 2008, 04:10:47 PM
@vasco:
I will have to dissect that joomla mod and see if I can find out how it works and possibly make it work. :)

@my evil twin:
Sure it is possible. I will have to do some testing around first as I have never mixed the custom profile mod and google member map so I will check it out.

As for the changing colors of the pins for membergroup it is possible. But past my knowledge yet again. When 2Ntense gets back, he might be able to help. He is the true coder lol ;)

However, I can show you how to change colors of pins for all people:
Just open up GoogleMap.php in ./Sources/ and do this:

FIND: http://labs.google.com/ridefinder/images/mm_20_red.png and change red to whatever color. Most colors work. ;)
There are a lot of similar things with the same image code just with a different color, so search for this: http://labs.google.com/ridefinder/images/ and change the color that is in the image src somewhere to whatever color you desire. iconf stands for females and iconm stands for males. ;) if you have that feature enabled. :)
Title: Re: Google Member Map v1.0 beta
Post by: cubetgio on August 27, 2008, 04:57:57 PM
Quote from: brianjw on August 26, 2008, 05:33:03 PM


cubetgio,

Download the attached ModSettings.php and backup your old one before replacing it with the below one.

the code was duplicated in modsettings. I continued the cleanning in other files. Now the mod looks fine. Nevertheless i' have some "test failed" when i try to uninstall google member map. That 'is worrying me a little bit but i can live with.

9. Execute Modification ./Sources/ModSettings.php Test failed  
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test failed
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed  

It should be somethings with  interaction between MODs .... Let's cruise fingers >:(
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 27, 2008, 05:55:40 PM
It's interfering with another mod if it's failing on those files. ;)
Title: Re: Google Member Map v1.0 beta
Post by: cubetgio on August 28, 2008, 10:51:51 AM
Hello Brian,

Now it's looking stable!

Let's push investigations:

What about creating categories (choice to be done at the top of pinned's member list) to gather populations like full members, special partners, commercial partners, friends etc ... and to create facility to make distinction inside these categories (colored legend for exemple) and to relate the map view / map list with the categories ?

The managment could take place in an google map admin panel for exemple...

8)

I'm shure that you have it in mind but do you have it in your plan for a future version ?

Waiting the happening do you have a solution to colorize the line of the list in order to make manualy distinctions?

Thanks again !
:)


Title: Re: Google Member Map v1.0 beta
Post by: vkot on August 28, 2008, 01:46:32 PM
This is the greek translation for v1.0 beta:

Add the following in the the corresponding files:

Modifications.greek.php
$txt['googleMap'] = 'Χάρτης μελών';
$txt['googleMappinned'] = 'Μέλη με πινέζα';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Πινέζα κάποιου΄μέλους';
$txt['googleMapGreenPinNG'] = 'Χωρίς φύλο';
$txt['googleMapBluePin'] = 'Άντρας';
$txt['googleMapRedPin'] = 'Γυναίκα';
$txt['googleMapPurplePin'] = 'Συστοιχία πινεζών';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Πατήστε εδώ για να πάτε να βάλετε την πινέζα σας αν δεν την έχετε βάλει ήδη.</a>';
$txt['googleMapDisclaimer'] = 'Βάλτε την πινέζα σας τόσο κοντά όσο επιθυμείτε.';
$txt['cannot_googleMap_view'] = 'Λυπούμαστε, δεν επιτρέπεται να δείτε τον Χάρτη Μελών.';
$txt['permissionname_googleMap_view'] = 'Εμφάνιση Χάρτη Μελών';
$txt['permissionhelp_googleMap_view'] = 'Επιτρέπει στους χρήστες να βλέπουν τον Χάρτη Μελών. Αν είναι απενεργοποιημένο, οι χρήστες δεν θα βλέπουν τον χάρτη.';
$txt['cannot_googleMap_place'] = 'Λυπούμαστε, δεν επιτρέπεται να βάλετε πινέζα στον Χάρτη Μελών.';
$txt['permissionname_googleMap_place'] = 'Τοποθέτηση πινέζας στον Χάρτη Μελών';
$txt['permissionhelp_googleMap_place'] = 'Επιτρέπει τους χρήστες να βάζουν την πινέζα τους στον Χάρτη Μελών. Αν είναι απενεργοποιημένο, οι χρήστες δεν θα μπορούν να τοποθετήσουν πινέζα.';


ModSettings.greek.php
$txt['googleMapsEnable'] = 'Ενεργοποίηση του Χάρτη Μελών Google';
$txt['googleMapsEnableLegend'] = 'Εμφάνιση υπομνήματος πινεζών';
$txt['googleSidebar'] = 'Που θα εμφανίζεται η λίστα μελών';
$txt['googleMapsKey'] = 'Το κλειδί (key) από την σελίδα Google Maps API Page';
$txt['googleMapsPinGender'] = 'Οι πινέζες να υποδηλώνουν το φύλο του μέλους;';
$txt['KMLoutput_enable'] = 'Να εμφανίζεται το αρχείο KML; (Το KML είναι ένα αρχείο το οποίο το κατεβάζετε από την σελίδα του Google Map και εμφανίζει τις πινέζες των μελών μέσα στο Google Earth)';
$txt['googleMapsPinNumber'] = 'Μέγιστο πλήθος πινεζών που θα εμφανίζονται στον χάρτη';
$txt['googleMapsType'] = 'Ο τύπος του χάρτη που θα εμφανίζεται';
$txt['googleMapsDefaultLat'] = 'Προκαθορισμένο γεωγραφικό πλάτος';
$txt['googleMapsDefaultLong'] = 'Προκαθορισμένο γεωγραφικό μήκος';
$txt['googleMapsDefaultZoom'] = 'Προκαθορισμένη μεγέθυνση';
$txt['googleMapsEnableClusterer'] = 'Ενεργοποίηση συστοιχίας πινεζών';
$txt['googleMapsMinMarkerCluster'] = 'Ελάχιστο πλήθος πινεζών ανά συστοιχία';
$txt['googleMapsMaxVisMarker'] = 'Μέγιστο πλήθος εμφανιζόμενων πινεζών στον χάρτη';
$txt['googleMapsMaxNumClusters'] = 'Μέγιστο πλήθος συστοιχιών';
$txt['googleMapsMaxLinesCluster'] = 'Μέγιστο πλήθος γραμμών στο πλαίσιο πληροφοριών της συστοιχίας';
$txt['googleMapFO'] = 'Χάρτης Μελών';


Who.greek.php
$txt['whoall_googlemap'] = 'Βλέπει τον <a href="' . $scripturl . '?action=googlemap">Χάρτη Μελών</a>.';
$txt['whoall_.kml'] = 'Βλέπει την τροφοδοσία Google Earth.';



(brianjw: You haven't copied all the language strings to the mod page: http://custom.simplemachines.org/mods/index.php?mod=1010)
Title: Re: Google Member Map v1.0 beta
Post by: shelzmike on August 28, 2008, 02:58:01 PM
I have installed this mod, but it is not working at all.

Here are the specs:

SMF 1.1.5
TP 1.052
* I am using the DilberMC Theme (with color change disabled for users) that was designed specifically for TP

Here are the other Mods we have installed, it is not many...
AsSense Target Marketing 1.0
Ad Management 2.3
Auto-embed Audio/Video Clips 3.1.2
Avatars at Index 1.5
cbi., 1.0
Clickable Avatars 1.0.1
Contact Page 1.1
Expand Pages Mod 1.0
Google Tagged 1.4
Google Member Map 1.0 beta
View Single PM  1.3
SMF Sitemap 1.2.2
Ultimate Profile 0.8.5


When In installed the package, I got no errors. I have checked the forum logs - no errors. I have ensured that Enable Google Member Map is checked.

So, what is the deal? Seems like it should be working, but it isn't. Can anyone help me here? Thanks.

Mike
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 28, 2008, 04:10:25 PM
@cubetgio:
I have thought over many of these different things and they have been requested. I am personally not able to do this. If anyone wants to give it a shot, they can. I just don't have the proper PHP skills at the moment to code this.

@vkot:
Thank you for posting, I am sure many will find this helpful. I have removed the code for now for the language files and just put the name of the language files. :)

@shelzmike:
None of those mods should be conflicting and it should be working if you've done all that you've said. Please PM me with an admin account to your website and I will see if I can find out what the trouble is.


Thanks,
Brian
Title: Re: Google Member Map v1.0 beta
Post by: shelzmike on August 28, 2008, 04:57:01 PM
Actually, thanks for the offer, but I decided two things: 1.) I like this mod as it is simple but 2.) I am not always a simple guy. :) The other admin and I agreed that this feature would be better implemented on a page all its own. We have our site constrained to 1000px and thus the map, I believe will not aesthetically fit anywhere decent. That being said, I think I will just build a page with a link in the header or something to that effect to get to the map. Thanks again for the offer!

By the way, if you are curious to see what I mean, check the site here: http://www.motorcyclistsunited.com/

Mike
Title: Re: Google Member Map v1.0 beta
Post by: my evil twin on August 29, 2008, 06:43:57 AM
Quote from: brianjw on August 27, 2008, 04:10:47 PM
@my evil twin:
Sure it is possible. I will have to do some testing around first as I have never mixed the custom profile mod and google member map so I will check it out.

As for the changing colors of the pins for membergroup it is possible. But past my knowledge yet again. When 2Ntense gets back, he might be able to help. He is the true coder lol ;)

However, I can show you how to change colors of pins for all people:
Just open up GoogleMap.php in ./Sources/ and do this:

FIND: http://labs.google.com/ridefinder/images/mm_20_red.png and change red to whatever color. Most colors work. ;)
There are a lot of similar things with the same image code just with a different color, so search for this: http://labs.google.com/ridefinder/images/ and change the color that is in the image src somewhere to whatever color you desire. iconf stands for females and iconm stands for males. ;) if you have that feature enabled. :)

Thanks for the info.

Just took a quick look and it doesn't seem to be THAT hard to make another pin-type...

maybe i have some spare time next week, but be warned, i suck at coding very bad :D
Title: Re: Google Member Map v1.0 beta
Post by: ChaosEnergy on August 30, 2008, 06:13:26 PM
Hi

just installed the mod, and i love it

In admin area there is a misspell for the word DEFAULT
more important, in google template php there is a NORWAP instead of NOWRAP

one little wish
if clicking on the member in the pinned member list, it would be fine, if the map will center and zoom (defined factor x) to this member,so you dont need do manually scroll and zoom, to see who lives near and so on



Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 30, 2008, 06:50:04 PM
Thank you for reporting these. I will fix these up and get an update out.

This is definitely possible :) I am not sure if I can do it, but I will try. :)
Title: Re: Google Member Map v1.0 beta
Post by: ChaosEnergy on August 30, 2008, 07:04:56 PM
If I zoom manually, the map will always center to the pin..so map scrolls from america to australia and so on
so only a configurable default values will be needed, when name is clicked to be used

how about using the original location field of smf, if filled try to use it for location, so you can first pin based on this values
that way, you can generate also a member map easy with 10000 user in older boards , also if only a few pinned themself
(btw what will happen if 1000 user make their pin...a search member name, so you enter letter and it jumps down the list
c
ch
cha
and so on...
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 30, 2008, 08:59:36 PM
Well, the location idea was already suggested. And just by my thinking, I've realized that it would not work... Because if you have a big forum, and by your forum you have about 10000 users. Google Maps cannot handle that many. So if many have the location field filled out than it will simply cause the load time on the map to be very long and would cause script errors and the pins might not even show.

Centering the map, shouldn't be too hard. But like I said, I might be able to do it.

Also, a search will not work either, because it is Google's Map and you can only put so much on it. The only kind of search feature they provide on their maps is simply a search box that only searches for locations like "New York, USA" or something. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 06:58:08 PM
For some reason our member map quit displaying. The link to the map returns you to the index page of the forum. The maps still function within the profiles.

Any clues to what could be amiss?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 01, 2008, 07:46:17 PM
Quote from: Jeff B on September 01, 2008, 06:58:08 PM
For some reason our member map quit displaying. The link to the map returns you to the index page of the forum. The maps still function within the profiles.

Any clues to what could be amiss?
Please post the following information:
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 07:58:50 PM


Hi,  I'm running version 1.1.4

No modifications in quite some time. There may or may not have been something added after the googlemap mod, but if there was something after, everything ran fine for quite some time. I can only assume that its the number of pins in the map, but that's a guess from an idiot. (me).

I did just go and try to increase the pins from 500 to 600 then 700. Both with no results.

No change to our URL. been the same for years. :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 01, 2008, 08:00:37 PM
Hmm, I am not sure... When did it last stop working?
Have you tried to get a new pin from google?
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 08:09:47 PM
If it was the pin, wouldn't the profile functions be disabled as well? You can go into a profile and see the map there, move your pin around, whatever. You just cant view the map via www.mysite/board/index.php?action=googlemap

I'm not exactly sure when it was last working. Maybe a couple weeks ago is the last I actually looked at it. Today a member posted a thread asking if it was down.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 01, 2008, 08:58:47 PM
Hmmm, I am not sure... Things usually don't just stop working all of a sudden. ;) Something happened. But did you try to get a new pin from google. It won't affect anything but it may do something. Have you tried to modify the map at all in anyway that it was not like originally through the package?
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 09:32:29 PM
Honestly, there has been nothing done. No modifications.  The only thing that could be considered as a change would be additional members putting pins on the map.

Is there a number that could trigger a shut down? A maximum amount that the map can handle?  Is there a database table that could be corrupt?
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 09:36:07 PM
Another thought, does the map use any special modules or something on the server? Perhaps some service thatmay have stopped running?  I'll go try and reboot the server just for laughs and giggles.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 01, 2008, 09:45:46 PM
Nothing on the server that is running the map, just the script that is linking to google. It's all on google.

A database could be corrupt. I am not sure. Can you please PM me with the following details:
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 10:05:19 PM
PM sent. :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 01, 2008, 10:16:18 PM
Replied. :)

Also, you probably should update your forum as well as update the Member Map. ;) It has been changed alot since 0.60. And that version was last made by TLM which was about last updated 2 years ago. Version 1.0 is now out if you feel like wanting to upgrade or I can just fix the current version. But know lots of bugs have been fixed from 1.1.4 (SMF) as well as from 0.60.
Title: Re: Google Member Map v1.0 beta
Post by: Jeff B on September 01, 2008, 10:19:27 PM
Your P.M just made a light come on.  I was editing my index.php file in my home directory and accidently uploaded itover the index.php in the forum directory a week or so ago.  I uploaded the backup I had from way back when, that did not have the maps mod installed.  I need to edit the info back into the index.php
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on September 02, 2008, 03:01:04 PM
Hey there -

Still love the mod.  But, getting a few pages of errors that seem to be repeating.  They always appear in conjunction with each other.. first line 183 and then line 25.  The information is posted below...

Running v2.0 b3.1 currently.

Thanks for any advice / help / assistance!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 02, 2008, 04:46:10 PM
Go ahead and add
global $scripturl;
right under the <?php tag. ;)

That should fix it. :)
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on September 02, 2008, 05:04:37 PM
So, open up the Modifications.english.php file and put that line right after the first line?


it would look like this...

<?php
global $scripturl;
// Version: 2.0 Beta 3 Public; Modifications

// Important! Before editing these language files please read the text at the top of index.english.php.

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 02, 2008, 07:07:04 PM
Yes, that is what it should be like. ;)
Title: Re: Google Member Map v1.0 beta
Post by: reo4ua on September 08, 2008, 05:25:34 PM
modsettings.php install failed.  where do i go from here?  smf v1.1.5 with the following mods installed:


Mod Name     Version     
1.    SMF Gallery Lite    1.8.3    [ Uninstall ]
2.    SimplePortal    2.0    [ Uninstall ]
3.    Custom Profile Field Mod    3.19    [ Uninstall ]
4.    Auto Embed Video/Audio Clips    3.1.2    [ Uninstall ]
5.    Your Button    1.1    [ Uninstall ]
6.    Custom Form Mod    1.1    [ Uninstall ]
7.    Referrals Mod    1.4    [ Uninstall ]
8.    User Email System    1.3    [ Uninstall ]



Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 08, 2008, 05:36:29 PM
The custom profile fields mod will cause the error. Please attach your ModSettings.php file from ./Sources/
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 08, 2008, 06:32:03 PM
Google Member Map 1.0 BETA 2 released!

There is nothing new in this version so if your Google Member Map is functioning fine on Version 1.0 BETA then don't mess with upgrading to this version (BETA 2)

This version now supports SMF 1.1.6 and SMF 2.0 Beta 4. We have updated the read me in the mod because for some reason I never updated that.

That is all! Enjoy the new version guys! 8)
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on September 08, 2008, 07:14:00 PM
Howdy Brian :D

You probably wont recall, but my first attempt at installing this went horrifically wrong lol
I couldnt install via the package upload, because it kept asking for the ftp details, and no matter what I added, I couldnt get the baby to install.
So when I tried to manually install, I think I lost the site.
Anyho, I ended up deletin that site, as it was a new install.

Well Im back! lol

This is just a warning, because I tried to install via the package upload, and it went straight to the ftp info page. Yep..  its chmodded to 777..
Well... Im goin back in for the manual install!
Forum is backed up, but Im guessing I'll be back with an assortment of problems.
So grab a cuppa, and lace up ya bootstraps, cause its gonna be a bumpy ride! lol
;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 08, 2008, 09:01:06 PM
Did you try entering the ftp info? Have you gone into the package manager settings and changing it to all files writable? Have you added a /temp/ directory in ./Packages/ and chmodded it to 777? Have you installed a mod on the modsite (search for keyword "temp" no quotes)?
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on September 08, 2008, 10:21:46 PM
LOL

Yes to all of the above lol
Except this
Quote from: brianjw on September 08, 2008, 09:01:06 PM
Have you installed a mod on the modsite

What modsite?
All these, besides that, I tried last time. There was somethin I didnt know ow to run at the time. I think it was installin the tables to the db or something. But Im not entirely sure.

I'll get to startin this tomorrow, as I have a few things to complete today.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 08, 2008, 10:35:22 PM
Sabre,

Try this... Check to see if there is a temp directory chmodded to 777 currently in the ./Packages/ directory. Try installing any mod... If it gives you the ftp message proceed. Now if the temp directory disappeared than you can install this mod after creating the temp directory again...
http://custom.simplemachines.org/mods/index.php?mod=724 [you may want to do this anyway]

See if it solves this... Otherwise, I will guide you through manual install.
Title: Re: Google Member Map v1.0 beta
Post by: dcmouser on September 09, 2008, 03:15:14 PM
Absolutely fantastic mod.. Thank you for keeping it updated.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyCreator on September 09, 2008, 03:19:23 PM
Hello,

my english is very bad, saoory for this. i have in my page error with the googlemap since the smf version beta 4

Link to: http://www.mywebsiteurl/index.php?action=admin;area=featuresettings
make this error

Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /var/www/html/web1361/html/omg/Sources/ManageSettings.php:1981) in /var/www/html/web1361/html/omg/Sources/ManageSettings.php on line 2067

Link to: http://www.mywebsiteurl/index.php?action=profile
Make this error:
Fatal error: Cannot redeclare template_profile_googlemap_modify() (previously declared in /var/www/html/web1361/html/omg/Sources/Load.php(1935) : eval()'d code:2883) in /var/www/html/web1361/html/omg/Sources/Load.php(1935) : eval()'d code on line 3051
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 09, 2008, 04:11:28 PM
Check ManageSettings.php and Load.php for duplicate errors. If you need help, you can attach the files and I will remove the necessary code.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyCreator on September 09, 2008, 06:09:07 PM
Ok ... i have remove the duplicates, but the error in the profile link:

Fatal error: Cannot redeclare template_profile_googlemap_modify() (previously declared in /var/www/html/web1361/html/omg/Sources/Load.php(1931) : eval()'d code:2883) in /var/www/html/web1361/html/omg/Sources/Load.php(1931) : eval()'d code on line 3051

you can find all from mod changed files in attach
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 09, 2008, 06:19:59 PM
Are you sure those are the correct updated files? There is only one instance in ALL of the files in the RAR file that was googlemap_modify and it wasn't a duplicate so... I am not sure.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyCreator on September 09, 2008, 06:22:43 PM
yes i'm sure ...
i can deinstall the mod now and then reinstall and can upload the new updated files.

you think this is good?
Title: Re: Google Member Map v1.0 beta
Post by: CrazyCreator on September 09, 2008, 07:09:40 PM
:-) ... Ok ... I have the SMF update new installed and then the map new installed, now is all fine.

great ... i like it.

thank you for your help. merci
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 09, 2008, 08:22:58 PM
Glad you got it working. :)
Title: Re: Google Member Map v1.0 beta
Post by: LOADING... on September 10, 2008, 05:53:27 PM
Hello,
I am getting a
/Sources/ModSettings.php   Test failed
when I install this mod
what should i do?


Thank you
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'affiliates' => 'ModifyAffiliatesSettings',

'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
), 'affiliates' => array(
'title' => $txt['affiliates_mod'],
'href' => $scripturl '?action=featuresettings;sa=affiliates;sesc=' $context['session_id'],
),

'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'affiliates' => 'ModifyAffiliatesSettings',

'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

// Affiliates by: www.mundo-se.com
function ModifyAffiliatesSettings()
{
global $context$txt$scripturl$modSettings$db_prefix$helptxt;

$config_vars = array(
    array('check''arrange_affiliates'),    
array('text''affiliates_title''8', &$txt['affiliates_title'], 'affiliates_title'),
array('large_text''affiliates''8', &$txt['affiliates_description'], 'affiliates'),
array('select''affiliates_marquee', array($txt['affiliates_marquee_disabled'], $txt['affiliates_marquee_enable'], $txt['affiliates_marquee_mouseover'])),
);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=featuresettings;sa=affiliates');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=affiliates';
$context['settings_title'] = $txt['affiliates_mod'];
prepareDBSettingContext($config_vars);

}

?>


Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 10, 2008, 06:38:39 PM
LB Habib:

You should use THIS PACKAGE PARSER (http://www.gamerzgarage.com/package.php) to manually install the ModSettings.php file and then install the mod with errors and upload your manual install modsettings file to ./Sources/ and you should have it working.
Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on September 10, 2008, 07:25:52 PM
Installed on beta4 with no problems. Picked up where to old one left off. :)
Title: Re: Google Member Map v1.0 beta
Post by: FreeSporePrints on September 11, 2008, 02:06:40 PM
Dear brian,
i've installed yesterday on my SMF 1.1.6 (custom theme) and it worked without problems. Today i've installed your mod on another SMF 1.1.6 (custom theme) but i cannot see any button appears on the maintab.

I tried to go to the Member Map directly digiting:
http://www.freesporeprints.org/smf/index.php?action=googlemap

..as you see it works perfectly but any button appear on the maintab as i said.

i've seen the code:

Stxt['googleMap'] = 'MemberMap';

doesn't appear in my /default/languages/index.english.php, so i added it but still anything appears.

What to do?

Thanks for your great and smart mod! It's very light respect the others around SMF!
F.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 11, 2008, 04:14:04 PM
You are using a custom theme. Use the Package Parser (http://www.gamerzgarage.com/package.php) and follow the following instructions:

1.) Upload the Google Member Map mod zip file.
2.) Select SMF 1.1.6 (or your current version of SMF)
3.) Select Install
4.) And then select Only Theme edits.
5.) Click submit.

You should now see some codes on the page...


Step 2 Instructions:
1.) Go to http://www.freesporeprints.org/smf/Themes/FSP/ or your custom theme (VIA FTP) and download the index.template.php on to your computer.
2.) Open the index.template.php file.
3.) Find the index.template.php instructions on the package parser page and apply those edits to the index.template.php you have open from http://www.freesporeprints.org/smf/Themes/FSP/
4.) SAVE IT
5.) Rename the index.template.php located ON your server (not on your computer) to index.template-back.php
6.) Upload the index.template.php you just applied edits to in the current folder. It should work now!

Help
1.) If there is no index.template.php located in http://www.freesporeprints.org/smf/Themes/FSP/ let me know.
2.) If it still doesn't work, let me know.
Title: Re: Google Member Map v1.0 beta
Post by: FreeSporePrints on September 12, 2008, 01:19:52 AM
hi brian,
thanks a lot for your support! :)

Now it works perfectly!

Just a thing: i've made the "label" of the button is "Member Map" and it's located into $txt['googleMap'] , i wondered of the file default/languages/index.english.php

I'd like to change the text from Member Map to just Map, generally i do this editing the default/languages/index.english.php..but the line:

$txt['googleMap'] = 'Member Map';

..there isn't!!

How can be possible?! From where the button take the "label"?

Thanks,
F.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 12, 2008, 06:30:33 AM
You need to edit Modifications.<your_language>.php
Title: Re: Google Member Map v1.0 beta
Post by: FreeSporePrints on September 12, 2008, 02:15:36 PM
damn, yes! thanks!

but why with others custom buttons works if i add the label into index.english.php?

F.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 12, 2008, 04:09:05 PM
Not sure. Just the way we coded this mod. :)
Title: Re: Google Member Map v1.0 beta
Post by: shumar on September 12, 2008, 05:15:54 PM
Is it possible to change pins, so it's change color according to membership ?

Thank you.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 12, 2008, 05:28:06 PM
Quote from: shumar on September 12, 2008, 05:15:54 PM
Is it possible to change pins, so it's change color according to membership ?

Thank you.
This has been requested. I am not able (with my current knowledge) to code this. I do know someone who might be able to code this.
Title: Re: Google Member Map v1.0 beta
Post by: DJHicks on September 12, 2008, 07:41:38 PM
hi there i have smf 1.1.4 with the update to 5 n then the latest 6... with no other custom mods at all the google map is the 1st to go on

ive upp'd the package and it appear to install with no errors... but upon being redirected to the settings page there is no option in the feature and options section just a black space

also if i use the link provided in this thread to goto the setting page direct i get no text labels appearing...

this is the same for both the "default" and the custom theme i have

i have been throw the paser both full install and theme only... now there are admittedly missing files that would need editing in the custom them but they are reliant i believe on using the default theme files, but as i say it doesnt appear regardless of the theme selected... all entries seem fine...

if possble could you got through it at all? let me know wat you need....

and thank you in advance for any help you can give!!!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 12, 2008, 08:11:32 PM
Make sure that the mod edits for the language strings are in the languages you are using.

Modifications.english-utf8.php might need to be modified if you are using utf-8
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on September 12, 2008, 09:28:52 PM
Sorry if this is comented yet but I cant find it.

Can someone explained me the steps to install it in spanish language?

I have the mos installed in english but I can not to make it work in spanish.

My version is  2.0 Beta 4
Thank you very much
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 12, 2008, 10:37:38 PM
Just copy the language strings in Modifications.english.php, put into new file called Modifications.spanish.php (if there already is one)
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on September 13, 2008, 12:46:05 PM
Thank you, I think now is working well But I cant see the admin area in spanish

Now I need to translate only that file?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 13, 2008, 02:35:14 PM
Ok, you also need to translate:
ModSettings.english.php into ModSettings.spanish.php
Who.english.php into Who.spanish.php

If these files already exist (they SHOULD) then just add the Google Member Map language strings into them and translate them to your language.
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on September 13, 2008, 04:36:35 PM
It is possible that I have not the ModSettings.english.php file? :-\

I have this error now:

http://www.cuatrocuatro.com/foro/index.php?action=admin;area=modsettings;sa=googlemap;sesc
8: Undefined index: googleMapFO
Archivo: /home/cuatrocuat/domains/cuatrocuatro.com/public_html/foro/Sources/ManageSettings.php
Línea: 2014

Sorry for so much trouble but I am struggling a bit with this

Thank you
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 13, 2008, 04:43:51 PM
Wait, if you are using SMF 2.0 then there should be a ManageSettings.english.php if there isn't ModSettings.english.php

One of these files should be present.
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on September 13, 2008, 05:01:24 PM
Well now is working, no errors.

If you want i can send to you my translation to spanish. If yes only tell me how.

Thank you very much. You are very very friendly

Title: Re: Google Member Map v1.0 beta
Post by: DJHicks on September 13, 2008, 05:48:36 PM
Quote from: brianjw on September 12, 2008, 08:11:32 PM
Make sure that the mod edits for the language strings are in the languages you are using.

Modifications.english-utf8.php might need to be modified if you are using utf-8

omfg... sorry! so used to smf installing with the normal language... but  recently had a server change and its picking up the utf-8 as standard now...

thank you so much!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 13, 2008, 09:46:04 PM
No problem. ;D
Title: Re: Google Member Map v1.0 beta
Post by: shumar on September 14, 2008, 05:01:28 AM
Quote from: brianjw on September 12, 2008, 05:28:06 PM
Quote from: shumar on September 12, 2008, 05:15:54 PM
Is it possible to change pins, so it's change color according to membership ?

Thank you.
This has been requested. I am not able (with my current knowledge) to code this. I do know someone who might be able to code this.
Thank you.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on September 16, 2008, 05:48:45 AM
Noticed something buggy with the 0.10 version of the Member Map I'm using, wondering if anyone ran into this.  Suddenly I am unable to see any pins in my forum.  After reading this board and combing through endless code on the site I thought I would try something, as none of the last suggestions seemed to help me show the pins.

When I set "Number of Max Pins To Show On Map" = 100 then all my pins show.  When I set it to anything higher than 160, it shows nothing.

WHY IS THAT?  :P



Also I went to uninstall this version and there are errors, so I can't install the new version until I do all the manual clean up.  Do you have instructions on how to upgrade from previous version(s) or is an uninstall required?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 16, 2008, 04:02:43 PM
http://www.gamerzgarage.com/gamerz-garage-modsite/google-member-map-v1-0-beta/msg722/#msg722 ;)
Title: Re: Google Member Map v1.0 beta
Post by: 2Ntense on September 23, 2008, 11:36:22 AM
Quote from: shumar on September 12, 2008, 05:15:54 PM
Is it possible to change pins, so it's change color according to membership ?

Thank you.

It's possible, but I don't know the SMF structure well enough to code it cleanly.  To brute-force it, you need to read the ID_GROUP member field (0 = member, 1 = Admin, 2 = Global Mod) and the ID_POST_GROUP, then assign colors to the different group combinations.  You'd need to change the section where it generates the XML file so that instead of the color being set by gender (googleMapsPinGender) it's assigned by groups (new variable). 

The proper solution would be to automatically track whatever color is assigned to the different member groups, but I don't know what that array is.  To generate the XML file we're doing a raw read of the MEMBERS table, not going through the various $context arrays.  I don't think we currently have access to the member groups array inside GoogleMap.php, and decoding what the color field is would be VERY ugly... the color variable onlineColor is a varchar(20) (HTML color string), and you would need some way to map that to the fixed set of Google pin colors, or create your own pins to match any of the 216 'web safe' colors or the 16 million possible 24-bit colors.  Here's an example of that string from one of our forums:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi38.tinypic.com%2Fqy8xsn.jpg&hash=7504643e73aaa09c4a87892fb128e4d082f10bd9)

The only way I can see to do it simply would be to add another field to the membergroups table that would contain the Google pin color.  We'd also have to an Admin panel menu to set that field / pin color for the different member groups.

It's all do-able, but takes more work than I'm up for.
Title: Re: Google Member Map v1.0 beta
Post by: 2Ntense on September 23, 2008, 11:51:16 AM
Quote from: Sabre™ on September 08, 2008, 07:14:00 PM
Howdy Brian :D

You probably wont recall, but my first attempt at installing this went horrifically wrong lol
I couldnt install via the package upload, because it kept asking for the ftp details, and no matter what I added, I couldnt get the baby to install.
So when I tried to manually install, I think I lost the site.
Anyho, I ended up deletin that site, as it was a new install.

Well Im back! lol

This is just a warning, because I tried to install via the package upload, and it went straight to the ftp info page. Yep..  its chmodded to 777..
Well... Im goin back in for the manual install!
Forum is backed up, but Im guessing I'll be back with an assortment of problems.
So grab a cuppa, and lace up ya bootstraps, cause its gonna be a bumpy ride! lol
;)

That FTP warning shouldn't happen with the current version of the MemberMap... the error was caused in earlier versions because TLM was trying to upload a button to a German language directory that didn't exist in most people's installations.  Since the button text was in English it was a bit pointless, and that entry removed.   O:)  Make sure you're using the current version and let us know how it goes, as it sounds like the Package Manager is linking to an old version of the MemberMap.
Title: Re: Google Member Map v1.0 beta
Post by: 2Ntense on September 23, 2008, 12:20:46 PM
BTW, a word of warning to people using various package parsers to add the menu bar code in for custom themes: I've twice seen the parser at a couple of different sites NOT show the edits for index.template.php when you select 'Only Theme edits', so be warned.  Nearly every custom theme I've ever seen needs the index.template.php edited to add the menu bar code for the map.  You may have to check the 'All Edits (default)' radio button to see the edits for index.template.php.

The simple way to add the new button code for custom themes is to copy and paste the code for one of the other buttons in your custom index.template.php file (like the Calendar button code, for instance) and then change all instances of 'calendar' to 'googlemap' for the new button code.  You'll also have to change $txt['calendar24'] to $txt['googleMap']. 

The next thing you need to modify is the initial IF for the map button.  In this example, replace
if ($context['allow_calendar'])
with
global $modSettings;
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))

The other change is to add another entry to show where you are, just above the button code section and underneath
// Work out where we currently are.

add the lines
   if ($context['current_action'] == 'googlemap')
      $current_action = 'googlemap';
in there with the rest of them (it's pretty easy to see when you look at that section)

Since some of the custom themes use novel methods of generating the menu bar, doing a COPY & PASTE of one of the other buttons for that theme is the only way to get it to work with all themes.
Title: Re: Google Member Map v1.0 beta
Post by: Ace1564 on September 23, 2008, 05:08:25 PM
Hi im getting this error code in logs

8: Undefined index: googleSidebar
File: /public_html/forum/Sources/GoogleMap.php
Line: 115

8: Undefined index: googleSidebar
File: /public_html/forum/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 78

8: Undefined index: googleSidebar
File: /public_html/forum/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 73



Im using SMF 1.1.6
Google Member Map 1.0 beta 
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 23, 2008, 06:03:48 PM
That is a known error. I have tried to apply the fix to make it user-friendly but it doesn't like it. You can fix it using an UN-user-friendly method which I don't recommend because you will not be able to tell the difference between sidebars unless you just know it at mind... This is the UN-Userfriendly FIX:
Quote
if you get errors like: "Undefined index: googleSidebar"
->
googleSidebar isnt right defined in ModSettings.php (might be same with ManageSettings.php)
changing
array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
to
array('select', 'googleSidebar', array('1', '2')),
solves the problem and also make the option usefull
1 = dont show sidebar
2 = show sidebar on the right side
My goal for the next version of this mod is to either apply this fix and (add a key) or come up with a user-friendly fix. I have one on my mind but takes a heavy modification of every file.

To make sure this fix still works, clear all errors out of your error log. Visit the member map page and the member map admin and check your admin panel for more errors relating to this mod.
Title: Re: Google Member Map v1.0 beta
Post by: Ace1564 on September 24, 2008, 06:57:37 AM
Quote from: brianjw on September 23, 2008, 06:03:48 PM
That is a known error. I have tried to apply the fix to make it user-friendly but it doesn't like it. You can fix it using an UN-user-friendly method which I don't recommend because you will not be able to tell the difference between sidebars unless you just know it at mind... This is the UN-Userfriendly FIX:
Quote
if you get errors like: "Undefined index: googleSidebar"
->
googleSidebar isnt right defined in ModSettings.php (might be same with ManageSettings.php)
changing
array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
to
array('select', 'googleSidebar', array('1', '2')),
solves the problem and also make the option usefull
1 = dont show sidebar
2 = show sidebar on the right side
My goal for the next version of this mod is to either apply this fix and (add a key) or come up with a user-friendly fix. I have one on my mind but takes a heavy modification of every file.

To make sure this fix still works, clear all errors out of your error log. Visit the member map page and the member map admin and check your admin panel for more errors relating to this mod.

Ok thanks brianjw
I will leave well enough alone and wait for the fix in your next update  :D
Title: Re: Google Member Map v1.0 beta
Post by: shumar on September 25, 2008, 03:12:05 PM
Quote from: 2Ntense on September 23, 2008, 11:36:22 AM
Quote from: shumar on September 12, 2008, 05:15:54 PM
Is it possible to change pins, so it's change color according to membership ?

Thank you.

It's possible, but I don't know the SMF structure well enough to code it cleanly.  To brute-force it, you need to read the ID_GROUP member field (0 = member, 1 = Admin, 2 = Global Mod) and the ID_POST_GROUP, then assign colors to the different group combinations.  You'd need to change the section where it generates the XML file so that instead of the color being set by gender (googleMapsPinGender) it's assigned by groups (new variable). 

The proper solution would be to automatically track whatever color is assigned to the different member groups, but I don't know what that array is.  To generate the XML file we're doing a raw read of the MEMBERS table, not going through the various $context arrays.  I don't think we currently have access to the member groups array inside GoogleMap.php, and decoding what the color field is would be VERY ugly... the color variable onlineColor is a varchar(20) (HTML color string), and you would need some way to map that to the fixed set of Google pin colors, or create your own pins to match any of the 216 'web safe' colors or the 16 million possible 24-bit colors.  Here's an example of that string from one of our forums:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi38.tinypic.com%2Fqy8xsn.jpg&hash=7504643e73aaa09c4a87892fb128e4d082f10bd9)

The only way I can see to do it simply would be to add another field to the membergroups table that would contain the Google pin color.  We'd also have to an Admin panel menu to set that field / pin color for the different member groups.

It's all do-able, but takes more work than I'm up for.
Thank you for your time to explain me.
For now it's too complicated for me.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on September 29, 2008, 06:32:44 PM
Those of you who are receiving these errors:
Quote
8: Undefined index: googleSidebar
File: /public_html/forum/Sources/GoogleMap.php
Line: 115

8: Undefined index: googleSidebar
File: /public_html/forum/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 78

8: Undefined index: googleSidebar
File: /public_html/forum/Themes/default/GoogleMap.template.php (map sub template - eval?)
Line: 73
Please Follow the following instructions...
1.) Open GoogleMap.template.php which is located in ./Themes/default/
2.) Find:
Code (FIND) Select

if ($modSettings['googleSidebar'] == 1)

3.) Replace With:
Code (REPLACE WITH) Select

if (isset($modSettings['googleSidebar']) && $modSettings['googleSidebar'] == 1)

4.) Find:
Code (FIND) Select

if ($modSettings['googleSidebar'] == 2)

5.) Replace With:
Code (REPLACE WITH) Select

if (isset($modSettings['googleSidebar']) && $modSettings['googleSidebar'] == 2)


That should fix the sidebar errors. I personally am NOT sure if this works because I don't receive these errors on my site. For those of you that do receive these errors, please apply this fix then clear your error logs and try browsing in the google map admin and the actual google map. If you don't receive errors it works. This will NOT break your forum. The only thing it will do is fix a possible problem and if it doesn't fix it, it's a harmless piece of code simply checking if the value of googleSidebar has been set.

Let me know guys, thanks. :) If/When you guys let me know it fixes it for sure then I will release a new package with this fix. :)
Title: Re: Google Member Map v1.0 beta
Post by: masa12 on October 01, 2008, 01:20:54 PM
Here is translation for finnish

Modifications.finnish.php



$txt['googleMap'] = 'Kartta';
$txt['googleMappinned'] = 'Merkityt Jäsenet';
$txt['googleMapc'] = 'Kartta Modin Rustaili <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Jonkun paikka';
$txt['googleMapGreenPinNG'] = 'Ei Sukupuolta';
$txt['googleMapBluePin'] = 'Mies';
$txt['googleMapRedPin'] = 'Nainen';
$txt['googleMapPurplePin'] = 'Pinni Ryhmä';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Aseta paikkasi täältä jos et ole tehnyt sitä vielä.</a>';
$txt['googleMapDisclaimer'] = 'Aseta paikkasi niin lähelle kuin haluat.';
$txt['cannot_googleMap_view'] = 'Sinulla ei ole oikeuksia katsella Karttaa.';
$txt['permissionname_googleMap_view'] = 'Näytä Kartta';
$txt['permissionhelp_googleMap_view'] = 'Näyttää kartan.  Jos ei ole valittuna, niin kartta ei ole näkyvissä.';
$txt['cannot_googleMap_place'] = 'Sinulla ei ole oikeuksia asetaa paikkaa karttaan.';
$txt['permissionname_googleMap_place'] = 'Aseta paikka karttaan.';
$txt['permissionhelp_googleMap_place'] = 'Salli karttapaikkojen lisäys karttaan.  Jos ei ole valittuna, karttapaikkoja ei voi lisätä.';


ModSettings.finnish.php

$txt['googleMapsEnable'] = 'Aseta Google Kartta Aktiiviseksi';
$txt['googleMapsEnableLegend'] = 'Näytä Paikkatieto';
$txt['googleSidebar'] = 'Vierityspalkki';
$txt['googleMapsKey'] = 'Google Kartan API Avain';
$txt['googleMapsPinGender'] = 'Paikkamerkit määritellään käyttäjän sukupuolen mukaan?';
$txt['KMLoutput_enable'] = 'Tallentaa Paikkatiedon KML Tiedostona? (KML on paikkatieto tiedosto Google Earth:ssa)';
$txt['googleMapsPinNumber'] = 'Maksimi paikkojen lukumäärä joka näytetään';
$txt['googleMapsType'] = 'Kartan Tyyli';
$txt['googleMapsDefaultLat'] = 'Oletus Leveysaste';
$txt['googleMapsDefaultLong'] = 'Oletus Pituussaste';
$txt['googleMapsDefaultZoom'] = 'Oletus Suurennos';
$txt['googleMapsEnableClusterer'] = 'Salli Paikkamerkki Ryhmät';
$txt['googleMapsMinMarkerCluster'] = 'Minimi Paikkamerkit Ryhmässä';
$txt['googleMapsMaxVisMarker'] = 'Maksimi Paikkamerkkien lukumäärä Kartalla';
$txt['googleMapsMaxNumClusters'] = 'Maksimi Lukumäärä Ryhmiä';
$txt['googleMapsMaxLinesCluster'] = 'Maksimi Lukumäärä Rivejä Ryhmän Info Laatikossa';
$txt['googleMapFO'] = 'Kartta';


Who.finnish.php

$txt['whoall_googlemap'] = 'Näytetään <a href="' . $scripturl . '?action=googlemap">Kartta</a>.';
$txt['whoall_.kml'] = 'Näytetään Google Earth Syöte.';


This Is great mod Thanks. ;D
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 01, 2008, 04:04:18 PM
I am glad you like it. And thanks for posting this, I am sure it will help others. :)
Title: Re: Google Member Map v1.0 beta
Post by: meniinem on October 01, 2008, 05:45:30 PM
Here is a translation into German. I hope it will help you in some way...

Modifications.german.php

$txt['googleMap'] = 'Usermap';
$txt['googleMappinned'] = 'Eingetragene Mitglieder';
$txt['googleMapc'] = 'Benutzerkarten Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Ortsmarke';
$txt['googleMapGreenPinNG'] = 'Kein Geschlecht angegeben';
$txt['googleMapBluePin'] = 'Männlich';
$txt['googleMapRedPin'] = 'Weiblich';
$txt['googleMapPurplePin'] = 'Ortsmarkengruppe';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Klicke hier um deine Ortsmarke zu setzten!</a>';
$txt['googleMapDisclaimer'] = 'Setzte deine Ortmarke so genau wie möglich.';
$txt['cannot_googleMap_view'] = 'Du darfst die Usermap nicht sehen.';
$txt['permissionname_googleMap_view'] = 'Benutzerkarte ansehen';
$txt['permissionhelp_googleMap_view'] = 'Erlaubnis, dass leute die Usermap sehen dürfen. Wenn nicht gesetz wird niemand die Karte sehen.';
$txt['cannot_googleMap_place'] = 'Du darfst keine Ortsmarke setzten.';
$txt['permissionname_googleMap_place'] = 'Ortsmarke setzen';
$txt['permissionhelp_googleMap_place'] = 'Erlaubnis Ortsmarken zu setzten.  Wenn nicht gewähtlt kann niemand Ortsmarken erstellen';
?>


ModSettings.german.php


$txt['googleMapsEnable'] = 'Google Usermap aktivieren';
$txt['googleMapsEnableLegend'] = 'Zeige die Ortsmarkenlegende';
$txt['googleSidebar'] = 'Position der Sidebar';
$txt['googleMapsKey'] = 'Schlüssel der Google Maps API Page';
$txt['googleMapsPinGender'] = 'Sollen die Ortsmarken das Geschlecht des Benutzers zeigen?';
$txt['KMLoutput_enable'] = 'Sollen komprimierte KMLs erlaubt werden? (KML sind in Google Earth herunterladbare Dateien, die alle Ortsmarken der registrierten Benutzer zeigen.)';
$txt['googleMapsPinNumber'] = 'Höchstzahl der Ortsmarken die angezeigt werden sollen';
$txt['googleMapsType'] = 'Angezeigter Kartentyp';
$txt['googleMapsDefaultLat'] = 'Standard Breite';
$txt['googleMapsDefaultLong'] = 'Standard Länge';
$txt['googleMapsDefaultZoom'] = 'Standard Zoom';
$txt['googleMapsEnableClusterer'] = 'Aktiviere Zusammenlegung von Ortsmarken';
$txt['googleMapsMinMarkerCluster'] = 'Minimale Ortsmarkenzahl pro Gruppe';
$txt['googleMapsMaxVisMarker'] = 'Höchstzahl der sichtbaren Ortsmarken auf der Karte';
$txt['googleMapsMaxNumClusters'] = 'Maximale Gruppenzahl';
$txt['googleMapsMaxLinesCluster'] = 'Höchstzahlen der Zeilen pro Gruppe';
$txt['googleMapFO'] = 'Usermap';


Who.german.php

$txt['whoall_googlemap'] = 'Zeige <a href="' . $scripturl . '?action=googlemap">Usermap</a>.';
$txt['whoall_.kml'] = 'Zeige den Google Earth Feed.';


Can you tell me where to find the line: 'Click to place a point or click on your point to remove it.'
I didn't find it :(

For the rest great work!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 01, 2008, 06:35:57 PM
@meniinem:

Currently that line is not in the language files, it is hard coded. I am going to release an update right now.

@Users of This Mod:
Google Member Map 1.0 Beta 3 is about to be released. In the update the following is done:
- Fixed googleSidebar undefined index errors in the error log.
- Added a few lines that should be in a language file to the language files.
- Surprise Feature.. When I release it in a few moments you will find out what this is. ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 01, 2008, 07:21:31 PM
Google Member Map 1.0 Beta 3 Released!
! Fixed googleSidebar Undefined Index Errors in the logs...
! Fixed some text that was not put as a text string...
+ Added an easy to use add a pin link. All you have to do is link to:
http://www.yoursite.com/index.php?action=profile;sa=forumProfile#googlemap and it will scroll down to the member map to place your pin.

To save you translators trouble... Update your language files by adding the following string:

$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';

right before:

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';

in Modifications.<your_language>.php

Enjoy. :)
Title: Re: Google Member Map v1.0 beta
Post by: meniinem on October 02, 2008, 07:04:18 AM
I'm sorry but it doesn't work :(
I uninstalled the old version und deleted the package, then i installed the new one.
When i checked the Modifications.english.php i could not find
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';

Have I done something wrong?

I'm sorry if my english sometimes sounds poor... ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 02, 2008, 04:31:39 PM
I tested it and it works. Hmmm, have you tried it on a test site using a fresh SMF install?
Title: Re: Google Member Map v1.0 beta
Post by: meniinem on October 03, 2008, 04:22:59 PM
I'll try it when I have free time.

I noticed, that all pins of the old version were not deleted.
Maybe some files stay even when I unistall the old Version....
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 03, 2008, 05:01:10 PM
Quote from: meniinem on October 03, 2008, 04:22:59 PM
I'll try it when I have free time.

I noticed, that all pins of the old version were not deleted.
Maybe some files stay even when I unistall the old Version....
Only the database stays. This is not a modification of the database, only the files which should be removed on uninstall.
Title: Re: Google Member Map v1.0 beta
Post by: SpectroPro on October 03, 2008, 06:32:38 PM
Just want to make sure, before I do this..   I am using 2.0b4.   I just need to uninstall the version I have working now, install this new one, and everything should be as it is now, ie, pins, names, etc...??  Pretty sure that's what I am reading..since you say DB is not touched...  Correct?

- Greg
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 03, 2008, 06:42:14 PM
The DB will NEVER be touched in a way to harm the map.

The only things ever changed in MAJOR VERSION changes like v2.0 if we ever make one will include additions to the database. It does a check to see if you already have a table with the map pins, and if you do it will not touch it.

So it is always safe, but recommended to backup your db before doing anything to your site. ;)
Title: Re: Google Member Map v1.0 beta
Post by: SpectroPro on October 03, 2008, 06:49:25 PM
OH, I learned the backup db thing years ago.. hehe  The way we all end up learning even after being told...over and over and over..  LOL

I now back up my entire site after every 5 mod installs...  This way, I don't lose everything on a major screw up, which I had last week..and had to start all over (sucks when the 43rd mod you install is the one that trashes everything.. LOL   My DB is backed up every night, and the host backs up the entire computer every night as well...

THANKS for this mod.. My users (and me) love it!!!!  We really strive to be a community, and this mod really helps...

- Greg
Title: Re: Google Member Map v1.0 beta
Post by: mr703himself on October 03, 2008, 10:10:36 PM
i get this before i install, how do i install with no errors?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 03, 2008, 10:41:50 PM
@mr703himself:

Chances are (if the ModSettings.php is failing) that you have Custom Profile Features or Actions installed on your website. In this case, you will need to use the Package Parser (http://www.gamerzgarage.com/package.php) <-- Click.

To Use Package Parser:
1.) Upload the Google Member Map mod zip file from the modsite.
2.) Select your SMF Version
3.) Select 'Install'
4.) Select 'All Edits (default)'

Then Download ./Sources/ModSettings.php and ./Themes/default/Profile.template.php off your server and manually make the edits.

Backup these two files before doing it, in case something should go wrong.

If you would rather have me do it, I'd be happy to do it but it will have to be tomorrow. I am logging off for the night now. (10:43 PM here)
Title: Re: Google Member Map v1.0 beta
Post by: SpectroPro on October 03, 2008, 11:13:29 PM
Could be other mods as well.. I have 42 mods installed currently.  My googlemap mod was the 7th installed.  This meant that on uninstall, I had to manually edit 5 files.  Then just click the uninstall, and ignore the errors cause I already fixed them.. 

Then, on install, I had the same errors you have.  It is because in the mod, he is looking for code that does NOT match exactly what you have.  This is the ONE thing I wish the mods could get around.  In other words, if you look for this:

I am pete.
See me smile.

But your code is, because of a mod added to your site:

I am pete.
See me smile.  Or Frown.

The or frown was added by another mod..  Your mod will now fail to install.  Would be nice if you could search for:

I am pete.
*See me smile.*

the * tells it you don't care what is before or after this on the same line of code..   this way, your new mod would be happy and install..

So, you will notice, in the errors you are getting, that they are just literally, one or two lines are different from what he looks for. 

Just open those files in text editor, and make the changes manually.  The code you search for and the code to add/replace, is right there for you to look at.. Took me about 5 minutes to do the fixes to uninstall, then the fixes to install. 

In one instance, on mine, the difference that caused the error was literally a blank line.

Once you manually make the edits, upload the files, back to the server, and click to install..  it will ask you to install even with errors, click yes, cause you already fixed them in those files..

Should be fine!  Good luck!
Title: Re: Google Member Map v1.0 beta
Post by: Omar Bazavilvazo on October 05, 2008, 10:04:11 AM
thanks a lot for the mod! really nice!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 05, 2008, 01:46:53 PM
Glad you like it. :)
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on October 18, 2008, 07:02:32 PM
Hi brianjw,

The mod perfectly installed in smf 2.0.4 and transfer from 1.1.6 worked perfectly with a different google map key from google page.

On every page , i get a error loaded where the language string of google map is present.

Apply Filter: Only show the errors of this type  Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://discuss.itacumens.com/index.php?action=admin;area=logs;sesc
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/languages/Modifications.english.php
Line: 216

Line 216 on Modifications.english.php file.

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Click here to go place your pin if you have not already.</a>';
Title: Re: Google Member Map v1.0 beta
Post by: Joey on October 18, 2008, 11:59:42 PM
Hi brianjw is there a way to make one spot for just one user in the map as a star and not a pin we want to put a star in for the home base of the web site??  and edit the line
No Gender  Male  Female  Cluster of pins  "add Home Base" Thanks Joeylc  8)
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on October 19, 2008, 11:18:10 AM
Did this for b4.0 and it works perfectly.  Thanks a 3rd time Brianjw
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 19, 2008, 03:58:52 PM
@asudhakar:
Add the very top of the Modifications.english.php file right under <?php type global $scripturl;
The error should go away.

@Joey:
Actually, there is a better method to use than what you're currently trying to do. Instead of creating a user for your location. Just modify the map a little.
http://www.gamerzgarage.com/gamerz-garage-modsite/future-use-for-google-map/msg505/#msg505 (<-- view that topic)

@tk2012:
Glad you're happy with it. :)
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on October 20, 2008, 09:37:42 AM
Quote from: brianjw on October 19, 2008, 03:58:52 PM
@asudhakar:
Add the very top of the Modifications.english.php file right under <?php type global $scripturl;
The error should go away.

yes, you are right, no errors and no more.

Thanks a lot and thanks for this excellent upgrade to smf 2.0.4.
Title: Re: Google Member Map v1.0 beta
Post by: rghetti on October 20, 2008, 10:40:05 PM
strange, I get a ton of errors and I have no mods installed.


is there something I need to install first ?

   Type     Action     Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings20.php    
7.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Sources/Admin.php    Test failed
9.    Execute Modification    ./Sources/Load.php    Test failed
10.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
11.    Execute Modification    ./Sources/ManageSettings.php    File not found
12.    Execute Modification    ./Sources/Profile-Modify.php    File not found
13.    Execute Modification    ./Sources/Subs.php    Test failed
14.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/ManageSettings.english.php    File not found
17.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful


thanks

-Ron

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 20, 2008, 10:47:02 PM
@rghetti:
Did you just install SMF? If you did, then you're missing alot of important files. By the looks of it, you are using SMF 2.0 right?
Title: Re: Google Member Map v1.0 beta
Post by: rghetti on October 20, 2008, 11:27:31 PM
no.
upgraded from 113 to 116 yesterday.
been running it for 5 or 6 years I think.

what important files are missing ? I haven't noticed any problems.

-Ron


Title: Re: Google Member Map v1.0 beta
Post by: rghetti on October 21, 2008, 01:20:50 PM

is the script looking for the wrong file ?
there is no    ./Sources/ManageSettings.php
nor   ./Sources/Profile-Modify.php
not in the 116 install package nor anywhere on my board.

are these critical errors, where do those files come from ?

there is a Settings.english.php
and a ModSettings.english.php
but there is no
./Themes/default/languages/ManageSettings.english.php

any suggestions ?

thanks

-Ron



Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 21, 2008, 04:29:06 PM
It seems that the installer is thinking you're running SMF 2.0. So it is trying to look for the SMF 2.0 edits and files. ManageSettings.php is for 2.0, but in SMF 1.1.6 it is the same file as ModSettings.php.

If you're running 1.1.6 you shouldn't have an issue.
Title: Re: Google Member Map v1.0 beta
Post by: Filipina on October 25, 2008, 10:07:17 PM
Quote from: Stigmartyr on September 16, 2008, 05:48:45 AM
Noticed something buggy with the 0.10 version of the Member Map I'm using, wondering if anyone ran into this.  Suddenly I am unable to see any pins in my forum.  After reading this board and combing through endless code on the site I thought I would try something, as none of the last suggestions seemed to help me show the pins.

When I set "Number of Max Pins To Show On Map" = 100 then all my pins show.  When I set it to anything higher than 160, it shows nothing.

WHY IS THAT?  :P


Maximum I can set mine is 150 pins... any more than that and the pins will no longer show. It use to work at 500 but it doesn't anymore.  Oh well 150 better than zero :)
Title: Re: Google Member Map v1.0 beta
Post by: Filipina on October 25, 2008, 11:26:37 PM
ok 150 stopped working too  :P
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 26, 2008, 12:02:38 PM
Well, then it's probably Google. This mod could provide unlimited pins on the map if set. But the real question is, can Google handle it? By this -- it is overloading their server and they cancel out further connections from the source which in this case is your site. So I guess the max is 150 pins.
Title: Re: Google Member Map v1.0 beta
Post by: AlenNS on October 28, 2008, 12:06:45 PM
I'm getting this error in error log.

http://www.baklja.com/forum/index.php?action=admin;area=logs;sa=errorlog;desc;filter=error_type;value=undefined_vars
Primeni filter: Prikaži samo poruke o grešci sa istom porukom
8: Undefined variable: scripturl
Primeni filter: Prikaži samo greške nastale u ovoj datoteci
Datoteka: /home/baklja/public_html/forum/Themes/default/languages/Modifications.english.php
Linija: 81



==>81:  $txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Click here to go place your pin if you have not already.</a>';
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on October 28, 2008, 03:49:03 PM
Hahaaaaa

After roughly 30 odd attempts at installing this mod via the Package Manager, and always being redirected to the FTP settings page, it took a corrupt backup to get it to install perfectly!! LOL

After realising my last backup hadnt completely copied the files, I thought "fu*k it, I'll give it one more try!"
You couldnt imagine the surprise when it installed!! wOOOOOt!!!
Of course there were a couple templates that needed manual conversion, but dagbbitt!!  brother I now have this mod up!! LOL

Cheers for the great mod, and cheers to my site for crashing!! lol  ;D

Now I have 33 pages to sift through for edits, and many lines of code to get my site back on its feet lol
Im now building my site around this mod incase it doesnt install next time! lol
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 28, 2008, 04:59:03 PM
@AlenNS:
I knew what error it was in my head but in the future please transfer it to a language such as english so I can help you, but here's the fix about one page back. ;)
QuoteAdd the very top of the Modifications.english.php file right under <?php type global $scripturl;
The error should go away.

@Sabre™:
Lol, glad you finally got it. :P
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on October 29, 2008, 09:18:05 AM
Hello.  I'm getting the following:
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test failed
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test failed
13.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful

These are the packages I have installed now.  (which I probably need to remove all and then install Google)
QuoteMod Name     Version     
1.    Gender On Registration    1.0    [ Uninstall ]
2.    PaypalDonations    1.7    [ Uninstall ]
3.    XXX    1.0    [ Uninstall ]
4.    SMF Trader System    1.0.1    [ Uninstall ]
5.    Search Topic    1.0    [ Uninstall ]
6.    Attachments Mod    1.1    [ Uninstall ]
7.    nwsw.nwswAdminAttachAnything    1.1 RC3    [ Uninstall ]
8.    Monthly Statistics on Profile    1.0    [ Uninstall ]
9.    Custom Profile Field Mod    3.16    [ Uninstall ]
10.    Board Viewers Mod    1.1    [ Uninstall ]
11.    FlashChat Integration    0.1 Beta    [ Uninstall ]
12.    Enhanced Calendar    1.0    [ Uninstall ]
13.    Reg Bar    1.0    [ Uninstall ]
14.    Increase/Decrease Postbox Size    1.0    [ Uninstall ]
15.    SMF 1.1.2 Update Package    1.1.2    [ Uninstall ]
16.    ShowTopics    1.1    [ Uninstall ]
17.    SMF 1.0.11 / 1.1.3 Update    1.1    [ Uninstall ]
18.    Default Membergroup on Registration    1.1    [ Uninstall ]
19.    Additional Membergroups on Profile    1.0    [ Uninstall ]
20.    Ad Managment    2.3    [ Uninstall ]
21.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ]
22.    Image Zoom Tag Package    1.1    [ Uninstall ]
23.    Member List Position Filter    1.0.2    [ Uninstall ]
24.    GoogleTagged    1.0    [ Uninstall ]
25.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ]
26.    SMF 1.0.14 / 1.1.6 Update    1.0    [ Uninstall ]
27.    Irritate lurkers with 0 posts    0.1    [ Uninstall ]
28.    Message for your guests    0.1    [ Uninstall ]
29.    last login in post    1.0    [ Uninstall ]
30.    Date_Registerd on post    1.0    [ Uninstall ]
31.    Display Location on posts    1.0    [ Uninstall ]
32.    Prettier_Quotes    1.1    [ Uninstall ]
Title: Re: Google Member Map v1.0 beta
Post by: AlenNS on October 29, 2008, 09:24:38 AM
Quote from: brianjw on October 28, 2008, 04:59:03 PM
@AlenNS:
I knew what error it was in my head but in the future please transfer it to a language such as english so I can help you, but here's the fix about one page back. ;)
QuoteAdd the very top of the Modifications.english.php file right under <?php type global $scripturl;
The error should go away.
Thanks, that did the job. :)
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on October 29, 2008, 09:33:06 AM
Quote from: fasterthanyours on October 29, 2008, 09:18:05 AM
Hello.  I'm getting the following:
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test failed
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test failed
13.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful

These are the packages I have installed now.  (which I probably need to remove all and then install Google)
QuoteMod Name     Version     
1.    Gender On Registration    1.0    [ Uninstall ]
2.    PaypalDonations    1.7    [ Uninstall ]
3.    XXX    1.0    [ Uninstall ]
4.    SMF Trader System    1.0.1    [ Uninstall ]
5.    Search Topic    1.0    [ Uninstall ]
6.    Attachments Mod    1.1    [ Uninstall ]
7.    nwsw.nwswAdminAttachAnything    1.1 RC3    [ Uninstall ]
8.    Monthly Statistics on Profile    1.0    [ Uninstall ]
9.    Custom Profile Field Mod    3.16    [ Uninstall ]
10.    Board Viewers Mod    1.1    [ Uninstall ]
11.    FlashChat Integration    0.1 Beta    [ Uninstall ]
12.    Enhanced Calendar    1.0    [ Uninstall ]
13.    Reg Bar    1.0    [ Uninstall ]
14.    Increase/Decrease Postbox Size    1.0    [ Uninstall ]
15.    SMF 1.1.2 Update Package    1.1.2    [ Uninstall ]
16.    ShowTopics    1.1    [ Uninstall ]
17.    SMF 1.0.11 / 1.1.3 Update    1.1    [ Uninstall ]
18.    Default Membergroup on Registration    1.1    [ Uninstall ]
19.    Additional Membergroups on Profile    1.0    [ Uninstall ]
20.    Ad Managment    2.3    [ Uninstall ]
21.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ]
22.    Image Zoom Tag Package    1.1    [ Uninstall ]
23.    Member List Position Filter    1.0.2    [ Uninstall ]
24.    GoogleTagged    1.0    [ Uninstall ]
25.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ]
26.    SMF 1.0.14 / 1.1.6 Update    1.0    [ Uninstall ]
27.    Irritate lurkers with 0 posts    0.1    [ Uninstall ]
28.    Message for your guests    0.1    [ Uninstall ]
29.    last login in post    1.0    [ Uninstall ]
30.    Date_Registerd on post    1.0    [ Uninstall ]
31.    Display Location on posts    1.0    [ Uninstall ]
32.    Prettier_Quotes    1.1    [ Uninstall ]

It has failed on:

./Sources/ModSettings.php    Test failed
./Sources/ModSettings.php    Test failed
./Themes/default/index.template.php    Test failed

Now you can still go ahead and install, all that means is that it will skip those files because it cannot find the information it is looking for.

So to solve this just install via package manager as normal and then manually make the edits to those files above.

To manually edit all you need to do is go to: http://custom.simplemachines.org/mods/index.php?mod=1010 and select your SMF version and click submit and it will tell you what edits you need to do in those files.

If you are using a custom theme you need to make edits there aswell.

then once you done that of course you upload the three files above that you manually had to add the code to.

Make sure you backup, your database and forum, a complete backup should always be made when installing any mods.

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on October 29, 2008, 09:42:59 AM
Yeah I'm manually going through it now.  I heavily modded an old version of the member map and it didn't remove all the entries in the the php files on uninstall.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on October 29, 2008, 10:15:24 AM
Quote from: fasterthanyours on October 29, 2008, 09:42:59 AM
Yeah I'm manually going through it now.  I heavily modded an old version of the member map and it didn't remove all the entries in the the php files on uninstall.

If that is the case, you could select the older version of google map if it still available and choose your SMF version and hit submit then go to each file and manually find the code that was added and remove.

Basically the same but in reverse order.

or if the older version of google map not available any more but you have it on your computer, use package parser basically you upload the mod file and it tells you the edits, same thing in reverse order.

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on October 29, 2008, 10:23:59 AM
Well I figured out why it's failing on Modsettings.php even after removing all of the entries reference in the modification.xml

In the Modification.xml it performs the following:
<operation>
<search position="after"><![CDATA[
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),]]></search>
<add><![CDATA[
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
),]]></add>
</operation>

Which is wrong because you're not adding the "'is_last' => true," statement at the end of the googlemap insertion and you should be.  In fact you should be looking for "'is_last' => true," removing it and insert the Google Tab with "'is_last' => true," at the end.  (See last code entry below)

The problem is if you've got the Paypal Mod or any other mod that adds a tab to Features and Options installed that section changes to:
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'paypal' => array(
'title' => $txt['payPalFO'],
'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
'is_last' => true,
),

This moves the following code to the end of the Paypal entry or to the end of any other Mod that adds a tab to Features and Options.
'is_last' => true,

Changing the code to below in the modification.xml will fix this.  Not sure about the modification20.xml because I don't have a SMF 2.0 site to test.
<operation>
<search position="replace"><![CDATA[;sesc=' . $context['session_id'],
'is_last' => true,
),]]></search>
<add><![CDATA[;sesc=' . $context['session_id'],
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
'is_last' => true,
),]]></add>
</operation>

Where the Googlemaps tab is in Features and Options doesn't really matter as long as it works.
I've tested it on my site www.charlestonreefers.org and the install went fine after I remove all previous references to the old Google Membermaps Mod.

The uninstall worked perfectly too.  And the reinstall went fine.

See Attachment.
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on October 29, 2008, 10:25:30 AM
Quote from: genieuk on October 29, 2008, 10:15:24 AM
If that is the case, you could select the older version of google map if it still available and choose your SMF version and hit submit then go to each file and manually find the code that was added and remove.

Basically the same but in reverse order.

or if the older version of google map not available any more but you have it on your computer, use package parser basically you upload the mod file and it tells you the edits, same thing in reverse order.

Mathew
I figured it out, see above.  The install code for the Google Member Map 1.0 beta3 Mod isn't correct.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 29, 2008, 03:57:44 PM
Actually, the code for the install mod is correct.

The package system provided by SMF which makes the installing of mods so easy has after and before mixed up.

after = before
before = after

If you use a package parser like mine: http://www.gamerzgarage.com/package.php, then you would see that on the same line of code it will say add before as apposed to after. ;)
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on October 31, 2008, 01:48:08 PM
So then by your definition the code is messed up, the modification.xml was compiled wrong for whatever reason, so it's incorrect regardless.

I simply swapped out the after statement for the replace statement which essentially is doing the same thing as place it before the 'karma' => array( entry.

Based on what you said:
      <operation>
         <search position="after"><![CDATA[
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),]]></search>
         <add><![CDATA[
         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),]]></add>
      </operation>


Should be:
      <operation>
         <search position="before"><![CDATA[
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),]]></search>
         <add><![CDATA[
         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),]]></add>
      </operation>


Thus the code is incorrect.


Also by doing the <add> like this:
         <add><![CDATA[
         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),]]></add>


Instead of this:
         <add><![CDATA[         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),]]></add>


It's is inserting an extra line in the code that's not needed.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on October 31, 2008, 04:05:00 PM
NOTHING is incorrect in my mod in the packaging. The packaging is done correctly and it is why it appears and operates correctly.

No, that code is meant to be added before, by having it say after it will add before as I explained.

In my package, it is connected to http://www.simplemachines.org/xml/package-info which is where the XML File knows how to do with each thing specified. It is backwards because SMF Coded it that way.
Title: Re: Google Member Map v1.0 beta
Post by: NDFF on November 01, 2008, 06:05:50 AM
Quote from: brianjw on October 01, 2008, 07:21:31 PM
Google Member Map 1.0 Beta 3 Released!
! Fixed some text that was not put as a text string...
To save you translators trouble... Update your language files by adding the following string:

$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';

right before:

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';

in Modifications.<your_language>.php
In the GoogleMap_1.0beta3.zip I just downloaded, there is still hardcoded text in Profile.template.php, no $txt['googleMapPleaseClick'] in modification.xml (but in modification20.xml)


Great mod anyhow.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 08:23:13 AM
I will try to get an updated mod out with all the changes I need to make. :) Thanks for notifying me.
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on November 01, 2008, 01:39:01 PM
Brian,

I'm not trying to be an a$$ about this but, like I said above if you have the Paypal Donations mod installed the modification.xml doesn't work on Modsettings.php.  I just tested it again on my one of my sites and the only mod that fails in ModSettings.php, because I have the Paypal Donations Mod Installed.

ModSettings.php without Google Member Maps installed and Paypal Donations installed.
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'paypal' => array(
'title' => $txt['payPalFO'],
'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
'is_last' => true,
),


As you can see above the following no longer exists in the ModSettings.php:
(Which is what your commands in the modification.xml are looking for)
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),


So therefore making it impossible for the modification.xml to install the code before or after the Karma array entry.

Chaning the modification.xml to replace the 'is_last' => true, with the Google Array would be more effective, since 'is_last' => true, only exists once in ModSettings.php
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 02:26:02 PM
The problem about that is most mods don't put their link the very last. They put it before karma. So if I modify it for that, it will not work for the majority of the mods.
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on November 01, 2008, 02:39:15 PM
Yeah I realized that after muddling through the paypal install.

Isn't there a setting of instructions or SOPs somewhere that everyone should be following?
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on November 01, 2008, 03:10:33 PM
Wouldn't it be eaiser to take the 'is_last' => true, out of modifications?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 03:13:44 PM
Just use my Package Parser to install the mod. (manually)

Link in sig -->
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on November 01, 2008, 03:31:42 PM
lol I'll stick with my modded modification.xml  I hate manual edits.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 01, 2008, 03:36:01 PM
Would like this mod but wanted to know is there a new version coming out soon and better to wait for a newer version or shall i install?

is there any major known problems i should be aware of etc, obviously it still in beta but still wanted to ask before i consider installing?

thank you,
Mathew
Title: Re: Google Member Map v1.0 beta
Post by: fasterthanyours on November 01, 2008, 03:53:17 PM
Nothing I specifically saw on my sites I installed it on.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 03:57:44 PM
genieuk,

No major bugs.

There are a couple things I am going to release soon that will:
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on November 01, 2008, 04:02:52 PM
Using beta for many days.

No errors so far. Thanks brianjw for an excellent and a very very different mod.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 01, 2008, 04:10:31 PM
Quote from: brianjw on November 01, 2008, 03:57:44 PM
genieuk,

No major bugs.

There are a couple things I am going to release soon that will:
  • Force profile to use Google Member Map Language Strings
  • Fix Undefined Index ScriptUrl error in Modifications.english.php

    I am going to try to get one out within the next hour if I can. :)
Perfect! :) look forward to it.

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 04:36:04 PM
Ok, new version released.

It's encouraged to update if you want an error-free error log (at least from this mod).

Title: Re: Google Member Map v1.0 beta
Post by: sgandtg on November 01, 2008, 04:40:30 PM
Looking forward to having this on the site.

Before installing, can someone give advice as to whether I can install this automatically or whether I'll have to do something more difficult as one of the actions (13) fails on test install.

1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Execute Code add_settings.php 
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/ModSettings.php Test successful
11. Execute Modification ./Sources/Profile.php Test successful
12. Execute Modification ./Themes/default/index.template.php Test successful
13. Execute Modification ./Themes/default/Profile.template.php Test failed
14. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
16. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
17. Execute Modification ./Themes/default/languages/Who.english.php Test successful

Great mod, btw.
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on November 01, 2008, 04:41:08 PM
Thanks for the error free version brainjw.

I have tried to uninstall my old version say 1.0.3 beta from 2.0.4 beta smf.

I got all small fixes,


10.  Execute Modification  ./Sources/ManageSettings.php  Test failed
1. Replace ./Sources/ManageSettings.php Test successful
2. Replace ./Sources/ManageSettings.php Test failed
3. Replace ./Sources/ManageSettings.php Test failed
* 11. Execute Modification ./Sources/Profile-Modify.php Test failed
1. Replace ./Sources/Profile-Modify.php Test successful
2. Replace ./Sources/Profile-Modify.php Test failed
3. Replace ./Sources/Profile-Modify.php Test successful
* 12. Execute Modification ./Sources/Subs.php Test successful
1. Replace ./Sources/Subs.php Test successful
2. Replace ./Sources/Subs.php Test successful
* 13. Execute Modification ./Themes/default/Profile.template.php Test successful
1. Replace ./Themes/default/Profile.template.php Test successful
2. Replace ./Themes/default/Profile.template.php Test successful
* 14. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
1. Replace ./Themes/default/languages/Modifications.english.php Test failed
* 15. Execute Modification ./Themes/default/languages/ManageSettings.english.php Test failed
1. Replace ./Themes/default/languages/ManageSettings.english.php Test failed


So if you give me some upgrade edit, i will be doing it manually to complete the upgraded version.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 04:47:34 PM
Manual Edits:

Modifications.english.php
Add the following above the Google Member Map language strings
global $scripturl;

FIND

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Click here to go place your pin if you have not already.</a>';

ADD AFTER (one line after):

$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';


FIND

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';

REPLACE WITH

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Click here to go place your pin if you have not already.</a>';


Profile.template.php

<div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div>

REPLACE WITH

<a name="googlemap"><div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div></a>


FIND
<div id="message" align="center">Click to place a point or click on your point to remove it.</div>
REPLACE

<div id="message" align="center">', $txt['googleMapPleaseClick'], '</div>


That's everything. :) All the manual edits for the beta 4 ;)
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on November 01, 2008, 04:49:07 PM
Thank you brianjw,

I will be doing it now , and will leave the status. Thanks in Advance.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 01, 2008, 05:52:20 PM
Hi,

I have custom actions installed, see they have conflicts so manual install required, do i just need to just install manually as on your first post you say to check "comments on this mod" page and it the same page.  ???
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on November 01, 2008, 05:57:40 PM
Quote from: brianjw on November 01, 2008, 04:47:34 PM
That's everything. :) All the manual edits for the beta 4 ;)

I have Tried BrianJW all the edits and found all the edits were already updated in my forum.

So is that mean am using a stable version or 1.0.4.


Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 01, 2008, 07:16:49 PM
Had to manually install due to mod conflict with custom actions, WOW! i love it thanks ever so much, clean, tidy and works great!

My members will love this,

Cheers!

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 01, 2008, 09:33:18 PM
A.SK, if all the edits are there then you are using the latest version. There is new code to it so...

But I do recall you manually adding global $scripturl; to the file.
Title: Re: Google Member Map v1.0 beta
Post by: Sudhakar Arjunan on November 01, 2008, 09:36:04 PM
Quote from: brianjw on November 01, 2008, 09:33:18 PM
A.SK, if all the edits are there then you are using the latest version. There is new code to it so...

But I do recall you manually adding global $scripturl; to the file.

Yes you have helped me to avoid the error .
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 02, 2008, 03:12:24 PM
BUG

A member of mine who is female is not good with computers so i pinned her on the map. Using my admin account i go to her profile and pin her to the post code she gave me, when i checked on the google map she shows as male now not female because i edited it for her, i am male just so you know. So basically if admin goes to the users profile and does it for them they change from female to male or  vice versa, she still has in her profile female selected but member map thinks different.

so i told her to do it herself giving her instructions thinking it would change the pin back to a pink one but it does not and she still showing a blue pin. ???

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 02, 2008, 03:27:41 PM
hmmm...
Just for a test, and quick solution until Brian looks into this, have you tried changing your sex to female for a sec, and re~adding her pin? Does that work?
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 02, 2008, 03:37:14 PM
Quote from: Sabre™ on November 02, 2008, 03:27:41 PM
hmmm...
Just for a test, and quick solution until Brian looks into this, have you tried changing your sex to female for a sec, and re~adding her pin? Does that work?

Hi i done what you suggested and she still a male, i changed myself to female and then changed her pin to see if it do anything and it did not.

Also how do i please change the width of the google map page as on 1024 x 600 resolution it slightly goes outside my theme ???

Thank you,
Mathew

I am glad it updated me back to male after testing what you said, my members would have been confused otherwise lol  :o
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 02, 2008, 04:58:18 PM
@genieuk:

I just did a test on a fresh SMF 1.1.6 install and that bug does not happen. So it seems to be a problem with your site, not the mod.

Also, to change the map size, open GoogleMap.template.php and find:
<div id="map" onmousewheel="cancelscroll()" style="width: 675px; height: 500px; color: #000000;"></div>
and edit the part where it says style="width: 675px; to your own width. ;)

If you looked on the first page you would've found that lol. :P
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 02, 2008, 05:03:09 PM
Quote from: genieuk on November 02, 2008, 03:37:14 PM
I am glad it updated me back to male after testing what you said, my members would have been confused otherwise lol  :o
LOL

Hey Brian,
in a future release, will the  "street view"  option be implemented?
Im not sure how this all works, but thats a pretty cool option to have also.

Cheers
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 02, 2008, 05:08:31 PM
Quote from: brianjw on November 02, 2008, 04:58:18 PM
@genieuk:

I just did a test on a fresh SMF 1.1.6 install and that bug does not happen. So it seems to be a problem with your site, not the mod.

Also, to change the map size, open GoogleMap.template.php and find:
<div id="map" onmousewheel="cancelscroll()" style="width: 675px; height: 500px; color: #000000;"></div>
and edit the part where it says style="width: 675px; to your own width. ;)

If you looked on the first page you would've found that lol. :P

I can't understand that, as male/female shows fine on member profiles etc it only happens if admin adds pin for another member which if they different gender.

Not sure how i would check such problem.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 02, 2008, 05:12:55 PM
No Sabre.

1.) It would be too hard to code.

2.) It wouldn't work anyway. You can't input any sort of API codes on the Street View portions. Why? Because Google doesn't offer it yet.

I tried to get the Google Earth view to work on this but that is also not an option.

genieuk, not sure. :o
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 02, 2008, 05:15:28 PM
Yeah cool. Thanks for the explanation Brian :)

I just tried adding a female members pin via my Admin account genieuk.
Brian is right, it would have to be something with your site, as it worked ok for me.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 02, 2008, 05:27:57 PM
OH,

I am very sorry, i zoomed in and it is ok, my fault, i just noticed a pin in front of it.

My head sometimes

Sorry,

Thank you,
Mathew
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 02, 2008, 05:42:16 PM
AHAHAHAHAAAAA

Glad you sorted that out mate lol
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 02, 2008, 07:39:56 PM
Lol :) Yep, glad you got it as well.
Title: Re: Google Member Map v1.0 beta
Post by: genieuk on November 02, 2008, 08:36:40 PM
Quote from: brianjw on November 02, 2008, 07:39:56 PM
Lol :) Yep, glad you got it as well.

I dreaded the manual install of this mod and was rather suprised how easy it actually was. Thanks for a great mod i love it.  :D

Mathew
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 06, 2008, 02:12:04 AM
Hello

i have a Problem.
i changed nothing on my Forum but since bout 3 Weeks there are no more the Membermap online. There only a grey field and nothing else. Have anyone a Sugestion??

thanks for your Help.

I tried also to but a newer Version on ther but there comes a Fatal error Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /home/....../Sources/ModSettings.php:396) in /home/....../Sources/ModSettings.php on line 438
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 06, 2008, 04:04:54 PM
The redeclare error means that the same code is in that file more than once. This usually happens when installing and uninstalling issues occur. Just open up the ModSettings.php file and look for the duplicate codes around line 438. ;)

Have you raised the amount of pins allowed in admin? It could be you're allowing too many. Google can only support so many pins on one map.
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 08, 2008, 01:50:46 AM
Hello

The Problem with the Error is solved but there is still the same with no Google Map ! I did no change on it!



Title: Re: Google Member Map v1.0 beta
Post by: LOADING... on November 09, 2008, 07:01:11 PM
 :( you must be having a bad day
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 09, 2008, 07:09:28 PM
Quote from: LOADING... on November 09, 2008, 07:01:11 PM
:( you must be having a bad day

That was helpful.

@ hadi100
Have you tried grabbing another api key?
Dont forget to add the direct line to your forum.

Did you add a new mod before your issue occurred?
Have you tried viewing through another browser?


Which brings me to my issue lol
Ive installed this on a forum that is 2 days old, with a few mods(none of which should interfere).
In FF, I see the map perfect.

In IE my test account(user) cannot see the map or those that have added pins, in the  action=googlemap  section.
In the profile area, you can see it fine.

In FF this is all working by design for my user account, just not in IE.
I have tested this on another site, and this rings true for that also.
Have you come across this before?

I checked using 2ntense's old code to fix a similar issue, but that code has already been implemented.

smf 1.1.7
googlemap 1.0beta4

All assistance is greatly appreciated.  Thank You :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 09, 2008, 08:14:31 PM
@hadi100 and Sabre™:
Can I have a link to your website? I need to see the map. Also check that the Google Member Map is enabled for viewing from guests or provide me with a temporary test account.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 09, 2008, 08:30:32 PM
Yep awesome brian!!  thanks mate.
I'll pm you the test account details and link to my site.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 09, 2008, 09:00:44 PM
Sabre,

I took a look and I can't see it in IE as you mentioned but can see it in FF.

This is a strange problem but sounds to be a problem with Google this time. In the past, there was script errors in IE, but this was a problem with the map and was fixed. This time it's the map just refusing to display. So, my only guess could be google.

It works in Firefox, but not IE.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 09, 2008, 09:07:20 PM
Yeah..  I was gonna try n roll back another site to smf 1.1.6 and see if that occurs.
But I dont have enough time at hand to test it.

Hopefully they pull their finger out, and realise that IE dominates the majority of browsing, and fix this friggen thing!! lol
I only just got this mod workin in my forums, and now they pull the ole switcharoo!! lol

Oh hey...  is this happening in YOUR forum aswell, or is it just mine?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 09, 2008, 09:55:08 PM
It isn't happening on my forum which is why it baffles me. So maybe it is the mod, but I am not sure where to start. Browsers were never really my niche of coding.

I am hoping to see IE turn itself around. I hear that IE8 is supposed to be a Mozilla based browser of some kind.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 09, 2008, 09:59:11 PM
Ahh dang!!! lol

Ok bud, I'll have a link at my login stating the site is best viewed with ff etc..
No biggie :)

Thanks for checking it out, and if by chance the alarm bells go off regarding this,
then do feel free to post the fix. lol

Cheers
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 09, 2008, 10:34:38 PM
Lol, I will. Now if only 2Ntense would come back. He was a pro at this browser fixing stuff. ;) He fixed the 'ol script error this mod used to make in IE.

He had a family member death about 3 months ago and it's probably been hard on him.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 09, 2008, 10:59:12 PM
Hell yeah, it always is.
Thats one of the hard knocks life gives ya, and we are all guaranteed to experience it.

My best wishes go out to you and your family 2Ntense.
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 10, 2008, 02:05:22 AM
Hello Brian

yes i did grap another API Key and it still does not work. I did not but another or a new Mod on there. I didn´t changed anything! From one Day to the other ist was gone. When i look as a Member what has no Pin on the Map i can see it in the Profile but on the Map not! When i put a Pin on the MAp in the Profile and save it the i can´t see it !

Strange!

the Link to my Side is http://www.agrarweb.at/index.php?action=googlemap

i changed it so a Guest can look at it.

best regards
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 10, 2008, 03:47:17 AM
hmmm    at first I thought it was cause your zoom was at maximum, but even when I zoomed out, it remained blank.
Can you try setting your longitude and latitude to  0.00000000000
Also try using a different map.  eg. try map, satellite, hybrid

These are just things to try until Brian gets back to you :)

Both FF and IE are reading  G_SATELLITE_TYPE undefined   error if that helps Brian.
Title: Re: Google Member Map v1.0 beta
Post by: TechPrince on November 10, 2008, 04:01:14 AM
really wonderful mod but member needs to place pin, this necessity is really not that appealing. 
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 10, 2008, 12:53:15 PM
Hi Brian, quick question mate.
Where would I look to change the background of the bubble, or add my own designed bubble, and where to look at adding more into it?

Thanks champ :)
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 10, 2008, 01:00:46 PM
Hello Sabr

i tried to change the longitude and latitude to 0.00000000000
and changed the Map but it does not help anything!

Best regards

Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 10, 2008, 01:07:08 PM
Yeah, it was just a shot in the dark buddy.
Sorry I dont have enough knowledge to assist you, or I surely would help Brian figure this one out.

I am experiencing almost that exact problem, but only in IE. In FF it displays as normal.
Hopefully yours gets sorted out soon.
Good luck :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 10, 2008, 04:41:33 PM
@hadi100:
From what I can see the map isn't even loading. Something is wrong... How many pins are set in admin to be allowed?

@Sabre:
The bubble cannot be change. This is Google's API.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 10, 2008, 05:00:16 PM
Ahh ok.
Thanks mate :)
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 11, 2008, 09:45:46 AM
Hello

i have allowed 500 Pins but i can change it to any other amount it still would not work!

I dont know either why it does not load! I did not chane anything! From one day to another ist was not working anymore

best regards
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 11, 2008, 01:52:00 PM
We've recently found out that Google sets a limit of about 150 pins. Try setting it to that. I believe that is the maximum.
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 11, 2008, 04:02:13 PM
Hello

i just set it up to 150 but it stills does not work! i dont konow anymore what the Problem is or what i should do!

When i want to deinstall it then there is still the version 060 on ther and when i will delete this i can´t because the file is missing. When i would like to install a new version then i have allways two buttons on there. In wich file i find the Map in the Profile because i have allways two map windows in the Profile when i Look!

thanks
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 11, 2008, 04:06:41 PM
hadi100,

From the sound of things, you're using an old version. Version 060 is a long time ago, before I took this job.

Now, you're having mod challenges so here is what I suggest:

1.) Upload the Large Upgrade (SMF package) over your current forum.
2.) Make sure it is up to date (the forum)
3.) Reinstall Mods/Themes

Install the latest version of GMP.
Title: Re: Google Member Map v1.0 beta
Post by: Dejv on November 12, 2008, 12:17:58 PM
Hi,
my pins werent showing as well so I disabled clustering and deleted the code responsible for clustering. Now it works like before.
Title: Re: Google Member Map v1.0 beta
Post by: hadi100 on November 12, 2008, 02:54:35 PM
@ Djev  can you tell me how you did this becaus all what i can do is enable or disable PIN Clustering.

@Brijan i have the version 1.7 from the Forum! What you mean with the large upgrade Package?

Thanks for your help
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 12, 2008, 04:06:51 PM
hadi100,

http://www.smfhelper.info/forum/index.php?topic=3686.0
READ THAT


Dejv,

Can you post this publicly for everyone to see? Thank you
Title: Re: Google Member Map v1.0 beta
Post by: Chris@houseofgreybook on November 12, 2008, 11:27:58 PM
Not sure what these errors are, but the following files failed:

1.     Add After     ./Sources/Profile-Modify.php     Test successful
2.    Replace            ./Sources/Profile-Modify.php    Test failed
3.    Add Before    ./Sources/Profile-Modify.php    Test successful

and

1.     Add After     ./Themes/default/languages/ManageSettings.english.php

forum is at http://houseofgreybook.com/forum

not sure if it's conflicting with another mod, but I would love to be able to load it...looks like a sweet app.
Title: Re: Google Member Map v1.0 beta
Post by: sAce on November 13, 2008, 03:06:18 AM
Installing this package will perform the following actions:
Type Action Description
1. Extract File ./Sources/GoogleMap.php
2. Extract File ./Themes/default/Clusterer2.js
3. Extract File ./Themes/default/GoogleMap.template.php
4. Extract File ./Themes/default/images/google_earth_feed.gif
5. Extract File ./Themes/default/images/english/googlemap.gif
6. Execute Code add_settings.php
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test failed
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/ModSettings.php Test failed
11. Execute Modification ./Sources/Profile.php Test successful
12. Execute Modification ./Themes/default/index.template

i get this plzz help

cant install in 1.1.7
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 13, 2008, 04:01:47 PM
@Chris:
What mods do you have installed? I suggest doing a manual install of this mod by using the SMF Package Parser (http://www.gamerzgarage.com/package.php).

@sbmcos:
Simply do a manual install as well using the Package Parser (http://www.gamerzgarage.com/package.php).
Title: Re: Google Member Map v1.0 beta
Post by: Chris@houseofgreybook on November 13, 2008, 05:00:20 PM
Hey brianjw...thanks for the parser. I uploaded allthe files, and modified all the others as insrtructed.  I don't see any options in Configuration -> Features and Options. I did notice when I was in a few of the php files, my Advanced Reputation System mod had changed a lot fo the karma coding. Not sure if that is what is conflicting with it. Any advice? List of Mods:

1. Bookmarks 2.2.1   
2. Bakers Dozen Pages 1.01 
3. RSS Feed Icon 1.1   
4. Hide SMF Version 1.0.3a   
5. Karma Buttons 1.1   
6. Manage Membergroups Permission 1   
7. Mark Personal Messages as Read 1.0   
8. Pm_Informer 2.0   
9. Prettier_Quotes 1.1   
10. User Control Panel By Alan S 2.2   
11. Remove SMF Logo 1.2   
12. Advanced Reputation System 1.5.2   
13. Social Bookmarks for SMF 2 1.1   
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 13, 2008, 05:06:26 PM
Well, the karma likes to be added at the end of the ModSettings.php which is stupid, but if you need assistance with it. Attach what you've edited so far and I'll finish it up.
Title: Re: Google Member Map v1.0 beta
Post by: Chris@houseofgreybook on November 13, 2008, 09:05:45 PM
Thanks for the help!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 13, 2008, 10:21:15 PM
You attached many files in that zip. Do you want me to manually edit all of them?
Title: Re: Google Member Map v1.0 beta
Post by: Chris@houseofgreybook on November 14, 2008, 12:05:44 AM
Sorry, all the files that I attached are the ones I already edited based on the parser instructions.  If you could edit the one you mentioned above, and perhaps just glance over the others to see if I edited them correctly that would be much appreciated. If not, just let me know how I should edit the ModSetting.php file.  Thanks again!
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 04:33:15 AM
How to get second memeber map button removed from SMF button row, when try to reinstall GoogleMap there come double MEMBER MAP buttons? Where to put button when use a second language, like swedish for Member Map? Thanks....

I'm using SMF 117 and mod is the google map beta4.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 14, 2008, 06:23:27 AM
Use the SMF package parser (http://www.gamerzgarage.com/package.php) to manually uninstall ModSettings.php
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 10:41:56 AM
How to do this, should i download some parser software? I try something at the given link but didn't suucceed to eget anything happen :(

Quote from: brianjw on November 14, 2008, 06:23:27 AM
Use the SMF package parser (http://www.gamerzgarage.com/package.php) to manually uninstall ModSettings.php
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 04:07:53 PM
Hey...can someone help me with this parser thing?
I aint understan this parsing thing at all...what to do and what to not do  ::)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 14, 2008, 04:08:57 PM
Please don't bump topics like this, especially in a 3 minute time span. It does no good. ;)

Just upload my mod, select your SMF version, choose uninstall. Then find ModSettings.php edits on that page and make them happen. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 04:12:32 PM
Sorry for hurry things...version 117 isn't supported there?

Quote from: brianjw on November 14, 2008, 04:08:57 PM
Please don't bump topics like this, especially in a 3 minute time span. It does no good. ;)

Just upload my mod, select your SMF version, choose uninstall. Then find ModSettings.php edits on that page and make them happen. ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 14, 2008, 04:24:25 PM
Sorry about that, try 1.1.6... I won't make a difference. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 05:47:29 PM
It worked, but next time i hade two "Member Map" menu choices again, where to remove this damn other second
Member Map button ?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 14, 2008, 05:53:52 PM
ModSettings.php
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 06:03:56 PM
It dissapered but why is it show double in first place...is it some bug or what? Does this deleting of Member Map
effect something else in SMF?



Why is it 3 time shown
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 14, 2008, 06:10:52 PM
Forgedet...i'll Delete whole thing, thanks for helping me :(
Title: Re: Google Member Map v1.0 beta
Post by: SergeantAsh on November 16, 2008, 09:58:12 AM
Guys - I'm using this mod but the first version that worked with 1.1 RC2 - all of a sudden, having worked fine for years, this mod is just giving a blank grey map, you can't zoom anywhere nor scroll, there are also no pins showing?

I know its an old mod, as is my SMF version, but has anyone any ideas to resolve this?
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 16, 2008, 10:45:50 AM
It work, but i hade to start whole smf install over and then install it as new mod, i cant tell why but it working now ;)
If you uninstall it, and try to reinstall you're in troubles?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 16, 2008, 02:14:08 PM
@sh: We seem to have found that only 250 pins can fit on this page. It may take time to load so if you're going out somewhere, browse to that page and when you get back see if it finally shows pins. We have no control over this, it is Google's ways. After all, it is free and we're using their space so you can guess they have a limit of some kind. ;)

@Surferbird: Glad you got it. :)
Title: Re: Google Member Map v1.0 beta
Post by: Surferbird on November 16, 2008, 05:55:02 PM
OukiDouki..many thanks :)
Title: Re: Google Member Map v1.0 beta
Post by: swtdivalove on November 18, 2008, 10:13:26 PM
I enter the API key, and everything is working on it with the following exception.  When I enter the lattitude/longitude, the map doesn't center.
Title: Re: Google Member Map v1.0 beta
Post by: swtdivalove on November 20, 2008, 11:20:26 PM
I've searched through this thread, but no joy in finding the answer.

I entered the lattitude/longitude, and the map still does not center.  When I go to the member map, it shows it centered over SE Asia, not Oregon, USA.
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on November 25, 2008, 05:30:24 PM
smf v2.0 b 4.0
Default Theme (w/ color changes)

Hey there,

Have always loved this mod, but I'm getting some errors after upgrading to b4.0.  It seems to be happening in pairs with another error that is from the Member Awards mod possibly...

I'm attaching some pics to see if you may understand why... In the third picture, you can see how it appears at the exact same time as the other error.  I have two pages of errors with these appearing back to back.

Any help would be great.

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on November 25, 2008, 08:10:55 PM
Please read the past 3 pages or so. This problem has been answered numerous times. ;)
Title: Re: Google Member Map v1.0 beta
Post by: tk2012 on November 25, 2008, 08:39:16 PM
Ok

People haven't had problems putting their pins down, so I didn't think it had anything to do with it since it is the Modifications.English file and not the ModSettings file.
Title: Re: Google Member Map v1.0 beta
Post by: darkon on December 01, 2008, 11:04:59 AM
A few weeks ago it was announcend, that the option to force users to place a pin would be included.

Is it allready done? If so, where can i set this option?

Generaly, i don´t find any place to limit access to the map to guests etc..
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 01, 2008, 04:13:39 PM
That option was never announced by me therefor it is unofficial. I will not be adding that option to this mod because users should be able to choose whether they want to place a pin, or not and it could involve you in court at some point.. Best idea is to keep your self not liable for anything that happens.

Guests are not allowed to view the map by default, but these permissions can be set in Permissions >> Guests.
Title: Re: Google Member Map v1.0 beta
Post by: Casa Grande on December 01, 2008, 06:30:56 PM
Brian,
I love this mod and it is a great start to what I am ultimately after.  I don't really use it for the member's location, I use it as a way for a user to enter his/her favorite waypoint.  My question is, how hard would it be to a) allow members to enter more than one location and b) an easy way for users to enter coordinates and a brief title or description of the waypoint.

Great mod, it works great as is.  I just am very interested in these two features.

thanks
david
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 01, 2008, 10:14:32 PM
http://www.gamerzgarage.com/index.php?topic=163.msg505#msg505 sounds alot like what you're looking for however it doesn't have a user interface.

I do not think I have the knowledge to help you make these two features. Again, I have taken over this mod some time ago and some features you guys may request may not be easy for me to do. My goals during taking over this mod were adding features (where possible for my knowledge), keeping up to date with smf, and fixing bugs.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 01, 2008, 11:07:18 PM
Hey Brian,

I have v1.0 installed and working.

I updated some of my forum files and so installed v1.0b4
now I have three issues. :(

1- not all of the existing pins seem to be displayed.   My pin is visible in my profile, but if I go to the action=googlemap page, I can't find my pin and I don't showup in the "users who have placed pins" list, along with a BUNCH of others who I KNOW have placed pins.

2- The action=googlemap map starts almost off the screen down into the map-box. (starting lat/long is set to 79/43, zoom set to 1)

3- we can't edit our pins... I click on the map in my profile, but nothing happens.

Possibly related to 3... the two text strings that are supposed to display under the map in the profile don't display...

I notice that the javascrip function loadmap() is built twice...
and
the php function template_profile_googlemap_modify() is never actually called...

because my profile.template.php does not use tables to display the profile, I changed the two sections of code as follows...

if ($modSettings['googleMapsEnable'] && allowedTo('googleMap_view'))
{
if (isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude']))
{
echo '
<br /><a name="googlemap"><hr /></a>
<div>
<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
<div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
<input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
<script type="text/javascript">';

// Evil hack on this!!!
echo '
//' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo '
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'] . '), 13, '. $modSettings['googleMapsType'] . ');
var point = new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . ');
var marker = new GMarker(point);
map.addOverlay(marker);
}

if (GBrowserIsCompatible()) {
window.onload=LoadMap;
}';

// Let's make another evil hack!
echo '
//' . chr(93) . chr(93) . chr(62);

echo '
</script>
</div>';
}
}


// Google Map Member Map
function template_profile_googlemap_modify()
{
global $txt, $modSettings, $context;

echo '
<hr width="100%" size="1" class="hrcolor" />
<div align="center">
    <style type="text/css">
      @import url("http://www.google.com/uds/css/gsearch.css");
      @import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
     #map input, textarea {background-color: #ffffff;}
    </style>
<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0" type="text/javascript"></script>
<script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>
<div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div>
<div id="message" align="center">', $txt['googleMapPleaseClick'], '</div>
<div id="disclaimer" align="center">', $txt['googleMapDisclaimer'], '</div>

<input type="hidden" name="latitude" id="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" id="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
<script type="text/javascript">';

// Evil hack on this!!!
echo '
//' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo '
function LoadMap()
{
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var options = {suppressInitialResultSelection : true, resultList : google.maps.LocalSearch.RESULT_LIST_SUPPRESS};
map.addControl(new google.maps.LocalSearch(options), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));';

if (isset($context['member']['googleMap']['longitude']) && isset($context['member']['googleMap']['latitude']) && !empty($context['member']['googleMap']['longitude']) && !empty($context['member']['googleMap']['latitude']))
{
echo '
map.setCenter(new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . '), 13, ' . $modSettings['googleMapsType'] . ');
var point = new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . ');
var marker = new GMarker(point);
map.addOverlay(marker);';
}
else
{
echo '
map.setCenter(new GLatLng(0,0), 1, G_NORMAL_MAP);';
}

echo '
GEvent.addListener(map, "click", function(overlay, point) {
if (overlay)
{
map.clearOverlays();
document.getElementById("latitude").value = "";
document.getElementById("longitude").value = "";
}
else if (point)
{
map.clearOverlays();
map.addOverlay(new GMarker(point));
map.panTo(point);
document.getElementById("latitude").value = point.y;
document.getElementById("longitude").value = point.x;
}
});
}

if (GBrowserIsCompatible()) {
window.onload=LoadMap;
}';

// Let's make another evil hack!
echo '
//' . chr(93) . chr(93) . chr(62);

echo '
</script>
</div>';
}
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 01, 2008, 11:26:52 PM
naughty double-post... but rather than remove everything I just said...


I discovered a fix for my problem with not being able to edit my pin..   remove the first occurence of the loadmap function and call for the template_profile_googlemap_modify();

i.e.

if ($modSettings['googleMapsEnable'] && allowedTo('googleMap_view'))
{
if (isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude']))
{
echo '
<br /><a name="googlemap"><hr width="100%" size="1" class="hrcolor" /></a>
<div>
<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
<div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
<input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />';
template_profile_googlemap_modify();

echo'
</div>';
}
}
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 02, 2008, 04:58:25 PM
Kindred, so your problems are solved?

Quote1- not all of the existing pins seem to be displayed.   My pin is visible in my profile, but if I go to the action=googlemap page, I can't find my pin and I don't showup in the "users who have placed pins" list, along with a BUNCH of others who I KNOW have placed pins.
This one stumps me. I've never seen this happen on any site.

Quote2- The action=googlemap map starts almost off the screen down into the map-box. (starting lat/long is set to 79/43, zoom set to 1)
Do you have a screenshot so I can see what you're talking about?

Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 02, 2008, 09:16:26 PM
problem #3 was solved by removing the duplicate javascript function and calling the php function in it's place.

issues 1 and 2 still remain.

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 02, 2008, 10:18:09 PM
Kindred,

1 is just a glitch with Google Maps. It will happen occasionally. I do not know the exact reason why though.

2 I am not sure about. Are the users displayed on the actual sidebar? If so, then a zoom in may show the pins.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 03, 2008, 08:33:31 AM
hmmm....

#1 has been happenining since the installation of the new version. :(

#2, that's the thing, they users are NOT listed in the list, as far as I can tell...    from what I recall before uninstalling and upgrading, there were over a thousand pins placed....   not nearly that many now...    but the key point for my tracking the issue is that MY pin is not visible and  my username is not listed....  despite the fact that I just re-placed my pin in my profile.
Title: Re: Google Member Map v1.0 beta
Post by: Legrand on December 03, 2008, 09:29:30 AM
I'm getting an error message when I try to install the mod:

Quote*     11.     Execute Modification     ./Sources/ManageSettings.php     Test failed
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test failed
      3.    Add Before    ./Sources/ManageSettings.php    Test successful

I assume it's a conflict with another mod maybe?

I have the simplemp and Auto Embed Video/Audio Clips  modifications currently installed.

Can I just proceed and fix the one problem? or do I have to install the whole thing manually (which I'm not sure if I'm comfortable doing)...?

Thanks for the mod and the help.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 03, 2008, 04:07:41 PM
Kindred, I really wish I could help. I am not cut out to provide support on a complex issue like that but I do know some people who could if you just provide me one more bit of information.

Did you use the versions before the latest version?
If so, did #1 and #2 occur in the previous versions?

Legrand
Continue the installation. Then using the package parser which is in my signature, manually install Google Member Map mod to ManageSettings.php Those mods are interfering as you stated.
Title: Re: Google Member Map v1.0 beta
Post by: Legrand on December 04, 2008, 07:10:24 AM
Thanks brian. I installed the mod and manually fixed the one file, however I cannot find the options menu for this mod. If I look under packages, it says that the mod is there and it seems to be active, but there is no menu in either the "Modifications" or the "Features and Options" sections.

Any ideas?

Thanks.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 04, 2008, 08:44:07 AM
Hi Brian,

Yes, I had the 1.0 beta (no number after the beta) version installed and working for a few months with no errors.   This started when I uninstalled and updated to 1.0beta4.

I can give you access to the system that has rhe problem... :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 04, 2008, 04:04:44 PM
Kindred, please PM me with your site. I want to take a look at it real quick. ;)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 04, 2008, 04:48:20 PM
Hi Brian,

thanks for your cool Mod!

I installed it on my SMF 1.1.7 with custom profile fields mod, having NO problems with ModSettings.php (just FYI)

On the other hand, there is another hardcoded string in GoogleMap.php. Maybe you want to change that in the next version. Here is my fixed code for this:

function Map() {
    global $db_prefix, $context, $txt;

...

   $context['page_title'] = $txt['googleMap'];
}
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 04, 2008, 05:34:38 PM
Thank you digitaldream. I will apply that fix to the next release. :)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 04, 2008, 06:26:27 PM
One more thing,

if I point on a marker, shouldn't there show up a tooltip with the member's name? I checked the code and there's "label" defined in the XML with the member's name. Also, the marker objects are instanciated with this label. However, the map doesn't show a tooltip, at least on my IE7. Any ideas?

EDIT: Found it in GoogleMap.php!

Find:
            var marker = new GMarker(point, icon);

Replace with:
            var marker = new GMarker(point, {icon: icon, title: name});
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 04, 2008, 07:48:04 PM
Wow, got to it before I could respond. It should work without that fix, but I will dig into it and if it needs to be added to the next release it will. Thank you. ;)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 04, 2008, 08:08:07 PM
The fast and the furious...  ;)  8)
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 04, 2008, 08:17:45 PM
I didnt even notice it had that lol
Im using FF and never had the tooltip.

Thanks for that fix digitaldream :)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 04, 2008, 08:34:06 PM
You're welcome  :)

I'm digging through the Google Maps API at the moment. That thing has evolved a lot, it seems. Maybe I come up with some more funny ideas the next days.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 04, 2008, 10:25:09 PM
That would be neat. You have alot more knowledge about Google maps api than i do. ;)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 05, 2008, 02:06:35 PM
Well, I'm not that deep into the Google Maps API - yet. But I do a lot of programming in general, PHP as well as JavaScript (and some other).

Regarding the needs of my forum, I will concentrate on two issues with your MOD: I will give a try on replacing the InfoWindow with the ExtInfoWindow. This should give full CSS control over the bubble, including colors and fonts and such. Next, I'll try on a DB-based solution for custom pins on the map.

However, I'm not into MOD-packaging and have no ambitions to learn it actually. I can give you the resulting code of what I've done then and a list of the changes on SMF files. Also, I'll do it for SMF 1.1.7, not for 2.0. That means, I will develop for my personal needs and publish my code if somebody wants it. If you're going to like it, take whatever you want from it. But I will not package it to a MOD myself. I just don't have the time to maintain and support a MOD like this. Umm, that's your job I think ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 05, 2008, 04:42:15 PM
Yeah, I will support it. That sounds great too. :)

So, people can now customize the bubble. By DB-based solution for custom pins, what do you mean?
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 05, 2008, 04:53:38 PM
Customise that bubble??
wOOt!!
To have an image in them would be nice :D    Maybe even make the whole bubble the users avatar :D (transparent of course)
Just throwing ideas out there :D
Whether its possible or not, is entirely a different matter.

But I agree, that plain white colour could use a lil tint ;)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 05, 2008, 05:05:23 PM
I definetly need some POI pins on my map. So, custom pins = everything else but member pins :)

I think I will add a special database table for lng/lat pairs with some description etc. and an action to SMF to manage these pins. At the moment, I have a few ideas in my head but no bulletproof concept. This will take some time.

Basically, this would be "the hard way" to do additional pins on the map, as mentioned in your forums on gamers garage :)

However, I don't want to do too much big promises here at the moment. If I have something that works, I'll let you know.

@Sabre: Yes, the ExtInfoWindow gives full control over the bubble via CSS. You can do almost everything with it just by changing the CSS classes.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 05, 2008, 05:12:04 PM
Youre a breath of fresh air mate.
Thanks for sharing your edits.

Now if you can locate my right sock, I would worship your genius! lol ;)

Great job mate!
Cheers :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 05, 2008, 07:02:18 PM
Here are some examples of the ExtInfoWindow code and what it can look like
http://gmaps-utility-library.googlecode.com/svn/trunk/extinfowindow/release/examples/simpleExample.html
http://gmaps-utility-library.googlecode.com/svn/trunk/extinfowindow/release/examples/snowExample.html


MORE: http://gmaps-utility-library.googlecode.com/svn/trunk/extinfowindow/release/examples/
Title: Re: Google Member Map v1.0 beta
Post by: LOADING... on December 06, 2008, 05:47:15 AM
Thankx ;D
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 06, 2008, 06:11:12 AM
Yep, Brian. That's the source, I found too. Shouldn't be that complicated to exchange the bubble, but we will need to add a bunch of images for a "default" bubble to the MOD package.

At the moment, I have to release a version of the MOD as is to my live production forums, before I can do more changes on it on my development forum...

Anyway, for a start, here's a little gimmick I added. That's probably nothing to add to the standard MOD, but maybe someone's interested:

One of the requirements for my forum was to have a link out of the bubble directly to Google Maps for a route calculation. To do so, the marker needs to know the position of the logged-in user as well, so the link can pass two lng/lat pairs to Google. My solution adds up to two links under the website link in the bubble. One passes the marker's position to Google, so the user can benefit from all the cool new Google Maps features (say, like street view). The second link only shows up, if the logged-in member (the one, who actually looks at the map) has an own pin on the map himself. It then passes the member's location and the marker's location directly to Google's route calculation. Thanks to Google's Reverse Geocoding, the lng/lat pairs are backwards translated to addresses. Pretty cool...

Here's the code for GoogleMap.php:

function MapsXML() {
   global $db_prefix, $settings, $options, $context, $scripturl, $txt, $modSettings, $user_info, $themeUser, $memberContext, $ID_MEMBER;

...

            $datablurb = $datablurb . '</td>
               </tr><tr>
                  <td style="white-space: nowrap;" colspan="2" align="left">';
            $datablurb = $datablurb . '<a target="_blank" href="http://maps.google.com/maps?q=' . $marker['googleMap']['latitude'] . ',' . $marker['googleMap']['longitude'] . '">' . $txt['googleMapGoogleMaps'] . '</a>';
            if((isset($data[$ID_MEMBER]['googleMap']['latitude'])) && (isset($data[$ID_MEMBER]['googleMap']['longitude'])))
               $datablurb = $datablurb . '&nbsp;|&nbsp;<a target="_blank" href="http://maps.google.com/maps?saddr=' . $data[$ID_MEMBER]['googleMap']['latitude'] . ',' . $data[$ID_MEMBER]['googleMap']['longitude'] . '&daddr=' . $marker['googleMap']['latitude'] . ',' . $marker['googleMap']['longitude'] . '">' . $txt['googleMapRoute'] . '</a>';
            $datablurb = $datablurb . '</td>
               </tr><tr>


And two more strings for Themes/default/languages/Modifications.english.php:

$txt['googleMapGoogleMaps'] = 'Google Maps';
$txt['googleMapRoute'] = 'Route';
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 06, 2008, 12:50:19 PM
Thanks again Digital Dream! Your stuff sounds good and it all will be present on the next version. :)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 06, 2008, 01:30:53 PM
Umm, now I have a problem.

Just as I have brought the MOD live, I notice, that the map doesn't show ANY markers in FF or Opera, but only in IE.

EDIT:

Well, well, well... actually, the XML file is corrupt! There's an empty line at the beginning of the file, the XML declaration starts at line 2. IE doesn't mind, but FF and Opera report an XML error if you call the .xml subaction directly.

The question is now, where is that empty line produced?

EDIT II:

Hm, obviously, ob_end_clean() doesn't clean the buffer clean enough. Maybe, this has to do with my theme, but there's a blank line produced somewhere before the first buffer initialisation. This results in a invalid XML file for the markers, which cancels XML processing in FF and Opera. Btw, any ONE character, that is not valid in the XML file will do so as well. This could be the reason for the occasional bug reports of people having no markers on the map.

To get rid of the leading empty line, I added a callback function to ob_start, that does a trim on the buffer content,  before it is sent to the browser. Unfortunatly, that does only work for uncompressed content. I couldn't get it to work with ob_gzhandler so far.

function trimxml($buffer) {
   return trim($buffer);
}

function MapsXML() {
   global $db_prefix, $settings, $options, $context, $scripturl, $txt, $modSettings, $user_info, $themeUser, $memberContext, $ID_MEMBER;

   // Lets dump everything in the buffer and start clean and new and fresh
   ob_end_clean();
   if (!empty($modSettings['enableCompressedOutput']))
      @ob_start('ob_gzhandler');
   else
      ob_start('trimxml');

Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 06, 2008, 04:36:58 PM
That street view accessibility is what Ive wanted since they implemented it.
Good stuff!
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 06, 2008, 06:38:32 PM
Quote from: Sabre™ on December 06, 2008, 04:36:58 PM
That street view accessibility is what Ive wanted since they implemented it.
Good stuff!

Well, don't expect too much. This is just a link, that takes you to Google. There, you can use Street View, if it's available at that position.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 06, 2008, 06:40:36 PM
Have you found the xml file yet?
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 06, 2008, 07:07:04 PM
Quote from: brianjw on December 06, 2008, 06:40:36 PM
Have you found the xml file yet?

Sorry, I don't understand. I speak of the XML file (ok, actually it's a stream) that is generated by the MapXML function.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 06, 2008, 08:03:39 PM
Quote from: digitaldream on December 06, 2008, 06:38:32 PM
Well, don't expect too much. This is just a link, that takes you to Google. There, you can use Street View, if it's available at that position.

Yeah of course, I already added the code before I commented, so I know what it does.
Since we cannot have the street view on our map in our site, this is just as good.
Does the same thing I wanted, just not at my site.
Its cool, as I have mine centered at my local pub a few doors down lol
Its basically where I live :D  ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 06, 2008, 10:06:43 PM
If there were a street view on a "per pin" basis, then I would put an option in the profile to allow the user to enable or disable the street view. The street view may show more than the user really wants to show.
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 07, 2008, 07:02:23 AM
Regarding the custom pins: would you like to have them on an extra map or on the same map as the member pins?

For an extra map, I would make the page tabbed ("Members" / "Custom").

For a custom pin, I plan for the following database fields:
Any other suggestions?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 07, 2008, 03:03:17 PM
I think on the same map would be good. Maybe use (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.google.com%2Fmapfiles%2Fmarker.png&hash=1a106f31bc38d0c6603203cc79edf265c6481171) (that pin) as the one for custom pins.

No other suggestions as of yet.
Title: Re: Google Member Map v1.0 beta
Post by: Legrand on December 11, 2008, 08:17:21 AM
I can't find the menu for the mod after I installed it. I don't know if I didn't post enough information before, or if you just didn't believe me, but I'll add some images for more effect.

Image showing mod is installed:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.meche.net%2Ffiles%2F1.jpg&hash=a8eaf4477262105915b943ad7c426187e7df6fde)

Image of features and options page
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.meche.net%2Ffiles%2F2.jpg&hash=e0ffe6a54d485d257fccbad34799380c607b4776)

Image of Modifications page
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.meche.net%2Ffiles%2F3.jpg&hash=8cd2d876709913a6e89dcfeeba3482e946aea63a)
Title: Re: Google Member Map v1.0 beta
Post by: Hot Rides on December 11, 2008, 11:06:17 AM
Quote from: digitaldream on December 07, 2008, 07:02:23 AM
Regarding the custom pins: would you like to have them on an extra map or on the same map as the member pins?

For an extra map, I would make the page tabbed ("Members" / "Custom").

For a custom pin, I plan for the following database fields:

  • ID_PIN (autoincrement)
  • lattitude
  • longitude
  • ID_MEMBER (who set the pin)
  • label
  • description
  • url
Any other suggestions?
I think the pages option would be cool a way to turn it on/off for those that want them all on one map or diferent maps
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 11, 2008, 04:01:46 PM
Legrand, I can see you're using SMF 2.0. It seems either you're using english utf-8, another language, or the theme has its own language files and it is not pulling from the default theme language files which is where the Google Member Map strings are located.

Just use the SMF Package Parser (link in signature) to make the modifications needed to the language files in whatever theme you're using. If you still have trouble, let me know.

If you want, PM me with an admin account and FTP Access and I will see what I can do.
Title: Re: Google Member Map v1.0 beta
Post by: Ordogg on December 16, 2008, 10:22:16 PM
Love this mod, great stuff.  I have a problem with the eaither the color of the name in the ballon pop up or the white color of the pop up itself for the pins.

If someone could help me change the background color of the Pin pop up bubble that would be great.

I don't want to change my text color from white.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 16, 2008, 10:29:00 PM
Ordogg, currently you cannot change the color of the bubble. In future versions, I hope to implement something where it's more customizable with the help of  digitaldream ;)

There is some kind of CSS fix that 2Ntense presented to us. Here it is: http://www.simplemachines.org/community/index.php?topic=210708.msg1517566#msg1517566
Title: Re: Google Member Map v1.0 beta
Post by: Ordogg on December 17, 2008, 12:00:58 AM
I'm not so good at this I have to admit, but I opened the GoogleMap.template.php and the information that he has on his post was already in there:

/* THEME MODIFICATIONS
#map a:link{
color: #000080;
}
#map a{
color: #00ff00;
}

#map a:active{
color: #ff0000;
}

#map a:hover{
color: #000;
}

Could you give me more of a clue as i'm clueless?
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 17, 2008, 12:29:52 AM
Hey Brian....

Thank for taking the time to look at the profile files...   I finally had a chance to sit down and puzzle it out and I got it. :)
I put the display code back in on the summary screen and called the modify template from within the forum profile info screen...
I still don't know why some pins didn't make it through the upgrade of the membermap, but everything is working great now!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 17, 2008, 07:02:57 AM
Hmmm, not sure. But glad you got it anyway. :)
Title: Re: Google Member Map v1.0 beta
Post by: Legrand on December 17, 2008, 07:33:26 AM
Brian,

Did you get a chance to look at my forum?

Thanks,

Scott
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 17, 2008, 08:08:13 PM
Yeah, I tried. I sent you a pm back saying that you only provided me with FTP information but I also need SMF admin logins too.
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 19, 2008, 04:07:20 AM
Just wanted to leave a note, that I'm still working on the enhancements :)

So far, I revised the whole code: factored out a few things like building up the HTML content for the bubble, added some CSS and put all to a stylesheet file, changed a bit here and there and did a lot of code beautifying  8)

The custom locations are already working. There's a new database table ({db_prefix}locations) now and a second sidebar on the map. I'm now working on a new page, where you can manage those pins and some more options on the admin panel to make everything more configurable.

As for the Extended Info Window, I'm still having some problems. I put everything in as documented in the docs but for some reason, the class doesn't overload and the new window isn't recognized by the map object. It's a bit weird...

So, be patient...  ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 19, 2008, 01:04:22 PM
I am just glad you know how to do this. This google api is getting more and more over the top everyday. So thank you for doing this and take your time. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 19, 2008, 04:43:23 PM
*combs smf for a link to digitaldreams site

I love new toys, and youve now got me drooling.
I know Brian says take your time, but what he really means is..
"C'mon bro, gives me a look at ya code, as my 'take ya time' meds are runnin out!!"
lol

Good work digitaldream :)
Title: Re: Google Member Map v1.0 beta
Post by: digitaldream on December 20, 2008, 03:58:19 AM
Hehehe  :D

Well, you could take a look at www.digitaldream.de, but you won't find the forums there ;) My forums is totally closed to guests - members only! And my development site is on a secure domain.

I will be working on this over xmas at evenings. Believe me, the wait will be worth it :)

Latest changes:

1. Location pin feature can be enabled/disabled on the admin panel.

2. The color of all pins is now freely configurable on the admin panel. Ten colors to choose from. I completely abstracted the pin color from the gender/cluster/location context.

3. All data bits in the bubble now have span elements with CSS class hooks, so they can be styled directly in the GoogleMap.css file (as far as the standard info window CAN be styled).

4. New Javascript function to center/zoom the map to a given position. Examples are in the template to jump to different countries like US or Germany.

Next, I will implement a new permission for managing location pins and the necessary page...

I attached a screenshot of my current map with an open location pin.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 20, 2008, 08:49:39 AM
That looks really neat. Can't wait to see the final result. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 20, 2008, 04:22:37 PM
Heck yeah that looks cool!!
But I noticed you don't have the search function there.
Have you placed this somewhere else, or removed it altogether?
I liked that feature, as it allowed members to search for an area/address much easily, and widened the use of the member map.

Good job thus far mate :)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 20, 2008, 04:36:11 PM
The search only existed in the edit profile section, not the actual viewing map which is what the screenshot is of above.
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on December 20, 2008, 04:40:51 PM
Ahh yep, cheers brian.
I didnt check as Ive disabled the mod for the mean time.
It was taking ages for peoples profile pages to load.
I made the assumption google was chuckin a shhh.... ;)

Will re enable it when digital has provided his changes.
Title: Re: Google Member Map v1.0 beta
Post by: JungleBunny on December 27, 2008, 08:53:10 AM
Hi all,

have installed the mod and it works fine :D :D :D :D
SMF 1.1.4 / Map 1.0beta

Now my question: How can I add more genders ? Not only male/female. I need couple, too.

Some ideas ?

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 27, 2008, 09:19:17 AM
that would requirew mods of the CMLF code completely separate froim this mod... and then modifying this mods code to match.


But the primary changes would be unrelated to this mod, since SMF does not support anything other than male/female to begin with.
Title: Re: Google Member Map v1.0 beta
Post by: JungleBunny on December 27, 2008, 10:32:34 AM
Hi Kindred,

I modified it, so that you can choose at the registration what gender you have. 8)
Works OK and it will be shown at the mamber information side, when you have posted.

I tried to modify the googleMap.php, but got the error
Parse error: syntax error, unexpected T_VAR in /*/*/*/*/*/Sources/GoogleMap.php on line 93

var iconf = new GIcon();
    iconf.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
    iconf.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    iconf.iconSize = new GSize(12, 20);
    iconf.shadowSize = new GSize(22, 20);
    iconf.iconAnchor = new GPoint(6, 20);
    iconf.infoWindowAnchor = new GPoint(5, 1);';
    var iconc = new GIcon();
    iconc.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png"; // Line 93 //
    iconc.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    iconc.iconSize = new GSize(12, 20);
    iconc.shadowSize = new GSize(22, 20);
    iconc.iconAnchor = new GPoint(6, 20);
    iconc.infoWindowAnchor = new GPoint(5, 1);

Copied the iconf stuff and changed it to iconc.

Same problems when editing the googlemap.template.php

Hmmmmmmmmmmmm, nobody a got idea ????????????????
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 27, 2008, 11:45:06 AM
JungleBunny, it looks like you're getting into the complex parts of the gender modifications you would like to make to SMF and your mod.

First, make sure that you've modified SMF correctly:
Title: Re: Google Member Map v1.0 beta
Post by: JungleBunny on December 27, 2008, 04:31:13 PM
Salve Brian,

I tried both of your snips. The first one caused the same error like my snip.
The second one caused an error
Parse error: syntax error, unexpected T_VAR in /*/*/*/*/*/Sources/GoogleMap.php on line 177

Hohoooo, let´s take a look at line 177 :D

if ($modSettings['googleMapsPinGender'])
echo '
                        if (parseFloat(markers.getAttribute("gender")) == 0)
                            var marker = createMarker(point, icon, label, html);
                        if (parseFloat(markers.getAttribute("gender")) == 1)
                            var marker = createMarker(point, iconm, label, html);
                        if (parseFloat(markers.getAttribute("gender")) == 2)
                            var marker = createMarker(point, iconf, label, html);';
                        if (parseFloat(markers.getAttribute("gender")) == 3)     //That´s line 177//
                            var marker = createMarker(point, iconc, label, html);';

I called the new gender ( for couple ) gender 3

I will try this night some other variations, but I am shure the problem will blow away in some days :) :) :)

Greetings

JungleBunny
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 27, 2008, 05:08:01 PM
JungleBunny, this is getting real complex. Go through all the Google Member Map files looking for gender and see if you can add the number 3 to each one and see what result that gives you.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on December 27, 2008, 06:10:48 PM
Junglebunny,

this is why randonly adding code is not recommended.
You need to know what you are doing to add code.

Again, you have added information after the '; closing the previously declared echo statement (in php, which includes the entire javascript function.)
(see the ; at the end of the javascript line followed by the '; which closes the php echo.)
Also, please use code tags in your posts.


it needs to be

                           var marker = createMarker(point, iconm, label, html);
                        if (parseFloat(markers.getAttribute("gender")) == 2)
                            var marker = createMarker(point, iconf, label, html);
                        if (parseFloat(markers.getAttribute("gender")) == 3)     /*That´s line 177*/
                            var marker = createMarker(point, iconc, label, html);';
[/coe]
Title: Re: Google Member Map v1.0 beta
Post by: el_bola on December 29, 2008, 04:43:09 PM
Hi!, I tried translate the mod to spanish languaje:

Modifications.english.php:
    <file name="$themedir/languages/Modifications.english.php">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
global $scripturl;
$txt['googleMap'] = 'Mapa de Miembros';
$txt['googleMappinned'] = 'Miembros situados';
$txt['googleMapc'] = 'Member Map Mod por <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Algunas chinchetas';
$txt['googleMapGreenPinNG'] = 'Sin Género';
$txt['googleMapBluePin'] = 'Masculino';
$txt['googleMapRedPin'] = 'Femenino';
$txt['googleMapPurplePin'] = 'Grupo de chinchetas';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Haz click aquí para situar tu chicheta si no lo has hecho aún.</a>';
$txt['googleMapPleaseClick'] = 'Haz click en un punto o haz click en tu punto para quitarlo';
$txt['googleMapDisclaimer'] = 'Situa tu chicheta tan cerca o tan lejos de tu casa como tú quieras para proteger tu privacidad.';
$txt['cannot_googleMap_view'] = 'Lo siento, no tienes permitido ver el Mapa de Miembros.';
$txt['permissionname_googleMap_view'] = 'Ver Mapa de Miembros';
$txt['permissionhelp_googleMap_view'] = 'Permitir a la gente ver el Mapa de Miembros. Si no se configura, la gente no podrá verlo.';
$txt['cannot_googleMap_place'] = 'Lo siento, no tienes permitido situar una chincheta en el Mapa de Miembros.';
$txt['permissionname_googleMap_place'] = 'Situa una chincheta en el Mapa de Miembros';
$txt['permissionhelp_googleMap_place'] = 'Permitir a la gente situar una chincheta en el Mapa de Miembros. Si no se configura, la gente no tendrá disponible el poner chinchetas.';
]]></add>
        </operation>
    </file>
   


Modifications.english-utf8.php:

    <file name="$themedir/languages/Modifications.english-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
global $scripturl;
$txt['googleMap'] = 'Mapa de Miembros';
$txt['googleMappinned'] = 'Miembros definidos';
$txt['googleMapc'] = 'Member Map Mod por <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Algunas chinchetas';
$txt['googleMapGreenPinNG'] = 'Sin Género';
$txt['googleMapBluePin'] = 'Masculino';
$txt['googleMapRedPin'] = 'Femenino';
$txt['googleMapPurplePin'] = 'Grupo de chinchetas';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Haz click aquí para situar tu chicheta si no lo has hecho aún.</a>';
$txt['googleMapPleaseClick'] = 'Haz click en un punto o haz click en tu punto para quitarlo.';
$txt['googleMapDisclaimer'] = 'Situa tu chicheta tan cerca o tan lejos de tu casa como tú quieras para proteger tu privacidad.';
$txt['cannot_googleMap_view'] = 'Lo siento, no tienes permitido ver el Mapa de Miembros.';
$txt['permissionname_googleMap_view'] = 'Ver Mapa de Miembros';
$txt['permissionhelp_googleMap_view'] = 'Permitir a la gente ver el Mapa de Miembros. Si no se configura, la gente no podrá verlo.';
$txt['cannot_googleMap_place'] = 'Lo siento, no tienes permitido situar una chincheta en el Mapa de Miembros.';
$txt['permissionname_googleMap_place'] = 'Situa una chincheta en el Mapa de Miembros';
$txt['permissionhelp_googleMap_place'] = 'Permitir a la gente situar una chincheta en el Mapa de Miembros. Si no se configura, la gente no tendrá disponible el poner chinchetas.';
]]></add>
        </operation>
    </file>
   


ModSettings.english.php:

    <file name="$themedir/languages/ModSettings.english.php">
        <operation>
            <search position="before"><![CDATA[
$txt['karmaLabel'] = 'Etiqueta de Karma';
$txt['karmaApplaudLabel'] = 'Etiqueta de aplaudir en Karma';
$txt['karmaSmiteLabel'] = 'Etiqueta de abuchear en Karma';
]]></search>
            <add><![CDATA[
$txt['googleMapsEnable'] = 'Activar el Google Member Map';
$txt['googleMapsEnableLegend'] = 'Mostrar leyenda de chinchetas';
$txt['googleSidebar'] = 'Dónde mostrar el sidebar';
$txt['googleMapsKey'] = 'La clave para la página API de Google Maps';
$txt['googleMapsPinGender'] = '¿Quieres que se refleje el género de los usuarios?';
$txt['KMLoutput_enable'] = '¿Debe activarse el comprensor KML? (El KML es un archvo que es descargado desde la página de Google Maps que mostrará todos los miembros dentro de Google Earth)';
$txt['googleMapsPinNumber'] = 'Número máximo de chinchetas que se mostrarán en el mapa';
$txt['googleMapsType'] = 'Tipo de mapa que se mostrará';
$txt['googleMapsDefaultLat'] = 'Latitud por defecto';
$txt['googleMapsDefaultLong'] = 'Longitud por defecto';
$txt['googleMapsDefaultZoom'] = 'Zoom por defecto';
$txt['googleMapsEnableClusterer'] = 'Activar Grupos de Chinchetas';
$txt['googleMapsMinMarkerCluster'] = 'Chinchetas mínimas por grupo';
$txt['googleMapsMaxVisMarker'] = 'Chinchetas máximas visibles en el mapa';
$txt['googleMapsMaxNumClusters'] = 'Número máximo de grupos';
$txt['googleMapsMaxLinesCluster'] = 'Número máximo de lineas en la caja de información de Grupos';
$txt['googleMapFO'] = 'Mapa de miembros';
]]></add>
        </operation>
    </file>
   


Who.english.php:

    <file name="$themedir/languages/Who.english.php">
        <operation>
            <search position="before"><![CDATA[
$txt['whoall_.xml'] = 'Viendo un feed XML.';
]]></search>
            <add><![CDATA[
$txt['whoall_googlemap'] = 'Viendo el <a href="' . $scripturl . '?action=googlemap">Mapa de Miembros</a>.';
$txt['whoall_.kml'] = 'Viendo el Feed de Google Earth.';
]]></add>
        </operation>
    </file>


But I can't test the mod, because when I am installing it in my forum, the system say that the test failled in ./Source/ModSettings.php, ./themes/default/index.template.php, ./themes/default/languages/Modsettings.english.php and ./themes/default/languajes/Who.english.php.

I don't find the mistake....

Bye!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on December 29, 2008, 05:02:34 PM
Thank you for translating. The problem is probably a conflict with another mod. Use the package parser which is linked in my signature to attempt to manually install those files.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 07, 2009, 06:33:47 PM
THIS IS A REMINDER

I know that sometimes I do not like to include the names of the scripts I use. So Google, might be a name I'd like to leave out to make it look part of my website.

If you'd rather have a different action than ?action=googlemap, then all current versions of the Google Member Map mod have a  ?action=membermap
All you need to do is open up ./Themes/<your_theme>/index.template.php and search for googlemap. Replace with membermap. Make sure googlemap is the correct googlemap. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 08, 2009, 05:46:06 AM
How about ?action=map? I don't think any other mod uses that one so far, so it can also be used for shorter URLs. (No?)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 08, 2009, 05:22:11 PM
Quote from: Nao 尚 on January 08, 2009, 05:46:06 AM
How about ?action=map? I don't think any other mod uses that one so far, so it can also be used for shorter URLs. (No?)
I can do that. I was going to say Globalopper's was using that but its using mm.

Next release it'll be there. I'll change the links in the menu as well by default to map.
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 09, 2009, 02:15:05 AM
Oh well that could be an incentive for me to upgrade, lol ;)
(Yeah I know, modifying these myself is easy... I just need to find a reason to update some of my mods ;))
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 09, 2009, 03:56:24 PM
Lol. Why do you want to update your mods so bad?
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 09, 2009, 04:08:18 PM
Well, last time I updated GM, I got the address search bar. I thought it was quite neat. So I figured there must be other new things under the hood now ;)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 09, 2009, 04:36:17 PM
I am not sure. 2Ntense gave the Member Map alot of those features.

But there are a few other things can be done. I am not sure which ones though. Look here and let me know what you think... http://code.google.com/apis/maps/documentation/reference.html
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 09, 2009, 05:51:19 PM
I would love to do it, but I know how it works... I start getting into the API, and then one thing leads to another and I'm taking over the mod ;)
I'm already close enough to making a "personal membergroups" mod as well as a "Facebook crap API" mod ;) Oh my, it gives me nightmares already...
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 09, 2009, 06:18:52 PM
Lol, all I asked was for you to give me the name of the one your interested in. Not the one you do. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 10, 2009, 05:24:32 AM
Yes, I realize that! But it's just as I said -- once I get too involved in something (such as suggesting new features), I end up doing them myself etc etc...
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 10, 2009, 08:48:34 AM
LMAO, can't you just tell me what feature you want to see on the map. I'll do my best to make sure you're not involved in the creation of it. :)

I just don't know what feature(s) people want to see on the map, that are possible. All the possible features are listed in that reference.
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 10, 2009, 10:06:30 AM
Well for now I'm not into the Google Map stuff, my users aren't using it a lot (well actually they're not very active on the website I'm using GM on), so I have other priorities. Which is why I'm not reading that api page ;)
Title: Re: Google Member Map v1.0 beta
Post by: mllott on January 10, 2009, 09:46:14 PM
Hello, I have installed this mod for v1.1.7, and these are the mods that I have installed:
   Mod Name     Version     
3.    YouTube BBCode    2.4    [ Uninstall ] [ List Files ] [ Delete ]
5.    Twitter Field    1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Display Location on posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    Topic Solved    1.22    [ Uninstall ] [ List Files ] [ Delete ]
8.    Pages Managment    1.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    nneonneo's AJAX ShoutBox    1.21    [ Uninstall ] [ List Files ] [ Delete ]
11.    Chatroom Button    1.01    [ Uninstall ] [ List Files ] [ Delete ]
12.    Logo redirect    0.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Location on Member List    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
15.    Default Membergroup on Registration    1.1    [ Uninstall ] [ List Files ] [ Delete ]
18.    Repeating Calendar Events v1.2.6    1.2.6    [ Uninstall ] [ List Files ] [ Delete ]
19.    Additional Membergroups on Profile    1.0    [ Uninstall ] [ List Files ] [ Delete ]
20.    Logo redirect    0.1    [ Uninstall ] [ List Files ] [ Delete ]

I have noticed a problem, which I was able to temporarily correct.

In "./Themes/default/index.template.php", I had to replace
"if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))"
with "if ($modSettings['googleMapsEnable']) to get the MEMEBER MAP tab to show up.  I did everything as directed, but for some reason, "allowedTo('googleMap_view')" won't return true for any member that you'd expect it to.

I have this mod working fine, so no urgency, but if you find any reason why this won't work, let me know.  Hopefully, this helps you, as well.  If I screwed something up, I apologize.

Thanks for the great work, love this mod.

Mark
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 10, 2009, 09:54:39 PM
mllot,

Did you set the permissions for each membergroup?

Go to Permissions and for each membergroup, you have to allow them to view the map and then place a pin.

Thanks,
Brian
Title: Re: Google Member Map v1.0 beta
Post by: mllott on January 10, 2009, 10:18:14 PM
Sorry, I messed up in my post, bigtime.  This is what I meant to say:

In "./Themes/default/index.template.php", I had to replace
"if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))"
with "if allowedTo('googleMap_view')" to get the MEMEBER MAP tab to show up.

It's the "$modSettings['googleMapsEnable']" that isn't returning true, even though I have the option checked in the admin panel.

It's late, I didn't double check my source code before posting.  Sorry again.

Mark
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 10, 2009, 10:59:28 PM
Alright well...
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
Has an extra ) at the end. Try adding that full line back in and removing the ending ) because there should only be two at the end.

Let me know how it goes.
Title: Re: Google Member Map v1.0 beta
Post by: mllott on January 11, 2009, 12:29:54 AM
I studied that line quite a bit.  I use Notepad++, also, which will help match parenthesis.  That was exactly the same code provided in the package, and the number of parentheses is correct.  I think it is OK.  I removed the parenthesis as suggested, and an error occurred.  I would guess that the problem is elsewhere.

Is there anything else that I can give you that might help?

Thanks again.

Mark
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 11, 2009, 12:18:48 PM
I just saw, yep the code is correct.

I thought of ('googleMap_view') as ['googleMap_view']

I am not sure what else to try. It might be best to leave it as it is. But it should be working if you have it enabled. It works correctly on all my SMF Test Sites (2.0 + 1.1.x) using the Default Theme.
Title: Re: Google Member Map v1.0 beta
Post by: mllott on January 11, 2009, 03:02:40 PM
Thanks for looking into it.  I can live with the hack to make it work, since I don't plan to disable or remove the Google Map mod at all.  I'll revisit if/when I upgrade SMF, and it may fix itself.  I would imagine something weird is happening from one of the other installed mods.

I don't know PHP at all (just SQL, Perl and C), so I am pretty useless in troubleshooting.  I may end up learning PHP over time, which is usually what happens when I mess around long enough.

Thanks again, and thanks for a great mod.

Mark
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 12, 2009, 02:56:11 AM
Sorry if this is old topic or something but I can't find anything.

But I have 0.1 Beta  Should I uninstall that before going forward?

If I try to uninstall it I get:

./Themes/default/languages/Modifications.english.php     Test failed

Does that matter?
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on January 12, 2009, 08:26:25 AM
yes, you MUST uninstall pervious versions before installing the newer versions.

Yes, that matters. It means you will have to manually remove the mod changes (in your case, the language strings for the mod) form that file.
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 12, 2009, 08:57:36 AM
Well in the case of the Modifications english file, it's generally easy to edit and spot the problem. :)
I think it's safe to say you can proceed with the uninstall process. Then do the manual uninstall process on this file.
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 12, 2009, 10:00:16 AM
Ok so go ahead and uninstall and not worry about that file then do that one manually.   But what do I edit?
Title: Re: Google Member Map v1.0 beta
Post by: Nao 尚 on January 12, 2009, 10:18:20 AM
Look at the mod's install files... Never done any manual edits, eh?
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 12, 2009, 10:23:28 AM
No not many~
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 12, 2009, 04:28:38 PM
Use the SMF Package Parser (http://www.gamerzgarage.com/package.php) to help you with these edits. ;)
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 12, 2009, 07:34:31 PM
OK I will try it soon!  lol
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 13, 2009, 02:06:11 AM
i dont have the 0.1 file still.  lol of course~
Title: Re: Google Member Map v1.0 beta
Post by: ctl_dog on January 13, 2009, 12:37:19 PM
I had one error, and add on the managesettings.php file. I just added it manually and everything seems to be working!
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 13, 2009, 04:30:48 PM
Quote from: `Z0mB|e` on January 13, 2009, 02:06:11 AM
i dont have the 0.1 file still.  lol of course~
Maybe you should upgrade then. ;)

Quote from: ctl_dog on January 13, 2009, 12:37:19 PM
I had one error, and add on the managesettings.php file. I just added it manually and everything seems to be working!
That's pretty normal if you have other mods installed as well. I am glad you got it working. :)
Title: Re: Google Member Map v1.0 beta
Post by: RoCKeT-88 on January 13, 2009, 04:48:24 PM
Yes that is what I am doing is upgrading.  But I can't put the file in the parser to see the edits if I don't have the file now can I. lol
Title: Re: Google Member Map v1.0 beta
Post by: bullbreedluverz on January 15, 2009, 07:03:42 PM
On 1.1.7 everytime a member looks at the map i get the following 2 errors - anyone got some ideas to rectify this

http://www.bullbreedluverz.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/******/public_html/smf/Sources/GoogleMap.php
Line: 115


http://www.bullbreedluverz.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/******/public_html/smf/Sources/GoogleMap.php
Line: 112
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 15, 2009, 08:29:10 PM
bullbreedluverz, please provide the following details:
Title: Re: Google Member Map v1.0 beta
Post by: bullbreedluverz on January 15, 2009, 10:53:34 PM
Quote from: brianjw on January 15, 2009, 08:29:10 PM
bullbreedluverz, please provide the following details:
  • SMF Version
  • Google Member Map Version
  • Other Modifications
1.1.7 (i did say  ;) ) on default theme with some modifications to header area
GMM v1.0beta

1.     Registration redirection      0.1      
2.    PM On Registration    1.0.2    
3.    E-Arcade    2.5.6    
4.    Your Button    1.1    
5.    MCLegendII.2    3.0    
6.    Are You Human? Anti-Bot Registration Check    1.3    
7.    Global Headers Footers    1.4.1    
8.    FlashChat Integration    1.0    
9.    AvatarOnBoard    2.1    
10.    Auto Embed Video/Audio Clips    3.1.2    
12.    Date_Registerd on post    1.0    
13.    Stop Forum Spam    0.3    
14.    Welcome Topic Mod    1.1    
15.    Tagging System    1.1.1    
16.    Forum Epoch    1.0    
17.    Auto Email Inactive Users    1.7    
18.    Floating Bar Mod    1.0    
19.    Recent Topics On "Recent Posts" Page    1    
20.    SMF Links    1.7.1    
21.    Todays Birthday    1.2    
22.    Ultimate Profile    0.8.5    
23.    Google Member Map    1.0 beta 4    
24.    Thank-O-Matic    1.2.5    
25.    Global Announcements    1.0    
26.    Latest Members
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 16, 2009, 10:08:25 AM
Thanks. And sorry I didn't see your SMF version. It was late then lol.

But what beta are you using of GMM v1.0beta...
1, 2, 3, 4?
Title: Re: Google Member Map v1.0 beta
Post by: bullbreedluverz on January 16, 2009, 01:22:59 PM
ooops soz beta 4
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 16, 2009, 01:52:23 PM
Ok, well then that error should be fixed.
Can you post the codes that are on the lines that the errors say...?

Thanks.
Title: Re: Google Member Map v1.0 beta
Post by: bullbreedluverz on January 16, 2009, 01:58:54 PM
this is the section of code returning errors

// add a line to the sidebar html';
if ($modSettings['googleSidebar'] == 1)
echo '
            sidebar_html += \'<a href="javascript:myclick(\' + i + \')">\' + name + \'</a><br /> \';';
if ($modSettings['googleSidebar'] == 2)
echo '
            sidebar_html += \'<a href="javascript:myclick(\' + i + \')">\' + name + \'</a>, \';';
echo '


with;

line 112 being error 1

if ($modSettings['googleSidebar'] == 1)

line 115 being error 2

if ($modSettings['googleSidebar'] == 2)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on January 16, 2009, 02:42:02 PM
Oh yes. I apologize. This is currently a known error. Just ignore it for now.
Title: Re: Google Member Map v1.0 beta
Post by: bullbreedluverz on January 16, 2009, 02:57:30 PM
lol ill ignore if you come round and do my forum housework and clean up the errors for me  :D :D :D
Title: Re: Google Member Map v1.0 beta
Post by: ke4obt on February 04, 2009, 11:12:29 AM
I may have missed it, but what I'd like is to be able to have some code to put into a block for EZportal. Specifically, I'd like it so that it would kind of do a slide show of the different pins/members on the map. Kind of like Frappr Map does. I had tried Frappr and that's the ONLY thing I liked about their maps. :)
Since Flip can't see the map, this is Mickey asking the question.

Thanks in advance,
Mickey

ps - running SMF 1.1.7, EZPortal 2.4 (I think), GMM 1.0 Beta 4.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on February 04, 2009, 04:01:43 PM
Hi,

Your only option is to use Frappr. Frappr is flash that CONTAINS the Google Member Map within it. You will need to either develop your own flash based system that do this. Otherwise, it's not possible with Google's api on html.
Title: Re: Google Member Map v1.0 beta
Post by: assam_siddibapa on February 06, 2009, 11:41:14 AM
One suggestion :
It will be great if we have a function like .... Wen we(admins) go to members profile it zoom to there location using there ip .
Title: Re: Google Member Map v1.0 beta
Post by: oOo--STAR--oOo on February 07, 2009, 11:06:24 PM
hi i have alittle problem in admin features and options it doesnt show the options for google map..

its not there the language pack is english utf8.. i have tried getting then options to come up in ther ebut it wont work..

anyone know what i can do to get it to show me the options.. i have tried everything.. there is nothing there
Title: Re: Google Member Map v1.0 beta
Post by: oOo--STAR--oOo on February 07, 2009, 11:13:34 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg5.imageshack.us%2Fimg5%2F9388%2F78472609by5.jpg&hash=faf280143826e846ea6bd002cdcc2d9e3b6b2ad1) (http://imageshack.us)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg5.imageshack.us%2Fimg5%2F78472609by5.jpg%2F1%2Fw1440.png&hash=dc8d173507adfc02a98de621f2df7a1756e12232) (http://g.imageshack.us/img5/78472609by5.jpg/1/)

this is what i see as u see there is no google tab and no writing on anything either help would be mostly appreciated
Title: Re: Google Member Map v1.0 beta
Post by: ke4obt on February 08, 2009, 12:24:43 AM
Quote from: aljo1985 on February 07, 2009, 11:06:24 PM
hi i have alittle problem in admin features and options it doesnt show the options for google map..

its not there the language pack is english utf8.. i have tried getting then options to come up in ther ebut it wont work..

anyone know what i can do to get it to show me the options.. i have tried everything.. there is nothing there

Do you know how to edit the UTF-8 language files? If so, you just add the edit for the language files that the package parser shows you. Make sure if you edit them, before you save them to ensure the save is set to UTF-8 NOT ansi/plain text!!!
If you don't know how to edit the language files, post them here and I will try to edit them for you. Only post the language files that the mod says it edits - just the UTF-8 files, not the "regular" English files.

Hope this helps.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on February 08, 2009, 11:30:05 AM
You can do that or change your "Sever Settings" language to just "English" instead of UTF-8 English.
Title: Re: Google Member Map v1.0 beta
Post by: TW1ST3D on February 11, 2009, 06:50:18 PM
Any Hope of getting  this Mod updated for 2.0 RC 1 ?

It seems close except for profile.template.php , where I can't find the proper strings to edit.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 11, 2009, 07:46:59 PM
RC1 changed the way the profile.template is built....  it replaces most of the TR/TD with DT/DL/DR

I placed mine in the summary screen, just below the custom fields and then lower down in the file, where the forum profile section is.  It only take a little tweaking to remove the table calls and use a div.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on February 11, 2009, 10:11:33 PM
This mod will be updated this month.
Title: Re: Google Member Map v1.0 beta
Post by: carbonize on February 13, 2009, 03:15:26 PM
Thank you for keeping us informed Brian.
Title: Re: Google Member Map v1.0 beta
Post by: TW1ST3D on February 13, 2009, 05:53:49 PM
Awesome !!  Thanks !!!
Title: Re: Google Member Map v1.0 beta
Post by: Manu.G on February 16, 2009, 02:52:27 PM
Hi,

I'm not sure if it was asked before, but I searched the half topic for it, without any success.

We're using in our forum the Location Mod of Gobalopper http://custom.simplemachines.org/mods/index.php?mod=56 (http://custom.simplemachines.org/mods/index.php?mod=56)
Since 2 years we gather pins and have atm more than 400 pins, it was a hard work to get all those pins and won't loose it.
Is there a way to convert our old member map into Google Member Map?
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 16, 2009, 03:11:57 PM
not that I am aware of...

I had the same issue with several thousand users registered on the globalopper mod, but I could not find a way to transfer the data (the mods use very different notations for location) so I bit the bullet and switched anyway.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on February 16, 2009, 05:01:52 PM
Yeah, there isn't really a possible way to do the convert between these two mods.

Globalopper's mod uses it's own scripting, while this mod is through Google creating a completely different process for each map and how each maps pins are stored.
Title: Re: Google Member Map v1.0 beta
Post by: ke4obt on February 21, 2009, 05:03:30 PM
All of a sudden, I'm getting these errors in my admin error log.
Quote8: Undefined index: googleMap
File: /test2/Themes/default/Profile.template.php
Line: 2054

The site works fine otherwise, no errors on the page - just in the error log.
GRRR - *pulling at hair*
Note - this started after I upgraded the site to 1.1.8. Then had an error that told me to update my database. Updated that and these started. I'm sure there's a connection, just don't know how to fix it. :(

Thanks in advance,
Flip
Title: Re: Google Member Map v1.0 beta
Post by: 67Marine on February 24, 2009, 12:43:23 PM
Any closer to updating this for SMF 2.0 RC 1...?  Tries the beta 4 - too many errors to install...
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 25, 2009, 06:46:13 AM
actually, I installed this into 2.0RC1 with only one error... it had to be manually applied into the profile.template.php file.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on February 25, 2009, 04:00:22 PM
Yes, 2.0 RC1 will be updated as soon as I have time. I will TRY to get it done within the next 2 weeks.
Title: Re: Google Member Map v1.0 beta
Post by: 67Marine on February 26, 2009, 07:45:56 PM
Quote from: brianjw on February 25, 2009, 04:00:22 PM
Yes, 2.0 RC1 will be updated as soon as I have time. I will TRY to get it done within the next 2 weeks.

8)  Thanks - Looking forward to it...
Title: Re: Google Member Map v1.0 beta
Post by: Dejv on February 28, 2009, 01:22:21 PM
Hi,

is anybody using googlemap in smf multisite?
Has anybody managed to place all variables (api, zoom, lat, long) in settings.php and settings.bak.php?

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: TW1ST3D on March 01, 2009, 04:00:31 PM
You don't have to edit the settings.bak.php template, it is a backup file that you may need to refer to if things don't work out.
Title: Re: Google Member Map v1.0 beta
Post by: forummaker on March 08, 2009, 02:10:53 PM
Google Member Map with Ultimate Profile question.
I installed the Google Member Map a few weeks ago... and it works great!
I recently installed the Ultimate Profile mod (manual install). It too works great!
The problem is... while viewing a members profile, the map does not show at the bottom of a members profile. I've searched for a solution to this, but couldn't find anything.
What file would I change to add the google map to the bottom of a members profile? Thanks in advance for any help with this.

smf 1.1.8
tp 1.0.5
googlmap 1.0 beta 4
ult profile 0.8.5
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on March 08, 2009, 03:31:38 PM
It would need to be Profile.template.php
Title: Re: Google Member Map v1.0 beta
Post by: forummaker on March 08, 2009, 04:15:21 PM
brianjw,
Thanks for such a fast response. I've browsed through the files to ensure I wasn't missing any of the code, and everything seems to be in order. I don't understand why the map isn't showing up....hmmmm.
All the code seems to be present for the google member map in profile.template.php.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on March 08, 2009, 04:48:25 PM
It might be because I haven't updated the mod for SMF 1.1.8 and 2.0 RC1. I will try to get at this as soon as I can. I believe spring break I will get a chance to update this stuff for you. And thanks to everyone for being patient!
Title: Re: Google Member Map v1.0 beta
Post by: forummaker on March 08, 2009, 05:09:24 PM
Everything else works... it just won't show while viewing a members profile. And all the permissions are set accordingly.
When a member goes to "forum profile information" they can set their location. And again. everything else is working with the map.
I wish I knew enough about coding to help you with this mod.
Anyhow. Thanks for your help. Still love the mod. I'll check back later for updates.

Edit:
Ok. Here's what I did to add the Google Map with the Ultimate Profile Mod.
In UltimateProfile.template.php

Find:
if (($modSettings['profile_allow_mediabox'] == 1) && (!empty($context['member']['options']['media'])))

echo '

<br />



<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="media">

<tr>
<td class="titlebg" height="26" align="center">
', $txt['profile_media'] ,'
</td>
</tr>

<tr>

<td class="windowbg">

', un_htmlspecialchars ($context['member']['options']['media']) ,'

</td>

</tr>

</table>';


Add after:
// this is the start of the googlemap code


if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) {
if(isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude'])) {
echo '

<br />
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="googleMap">
<tr>
<td class="titlebg" height="26" align="center">My Location
</td>
</tr>

<tr>
<td class="windowbg" colspan="2">
<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
<div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
<input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
<script type="text/javascript">';

//Evil hack on this!!!
        echo '
//' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo "
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'] . "), 13, ". $modSettings['googleMapsType'] .");
var point = new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . ");
var marker = new GMarker(point);
map.addOverlay(marker);
}

if (GBrowserIsCompatible()) {
window.onload=LoadMap;
}";

//Lets make another evil hack!
echo '
//' . chr(93) . chr(93) . chr(62);
echo "
            </script>
</td>
</tr>";
}
}

//this is the end of the googlemap code


Doing this also moves the comments section over to the right side in the profile, instead of showing across the bottom of the profile. Not sure what to change to correct that part.
Title: Re: Google Member Map v1.0 beta
Post by: kyinhi on March 14, 2009, 07:41:15 AM
Could someone please help with the following errors? Everything appears to be working fine but they are clogging up my error log.

Thanks!

Quote8: Undefined index: MemberMap
/independentmamas.com/redux/Themes/default/Admin.template.php (eval?)
Line: 575


8: Undefined index: MemberMap
/independentmamas.com/redux/Themes/girlyman/BoardIndex.template.php (eval?)
Line: 575


8: Undefined index: MemberMap
/independentmamas.com/redux/Themes/default/Search.template.php (eval?)
Line: 575


8: Undefined index: MemberMap
/independentmamas.com/redux/Themes/default/Errors.template.php (eval?)
Line: 575
Title: Re: Google Member Map v1.0 beta
Post by: kyinhi on March 18, 2009, 06:27:20 PM
Bump. Anyone? I'm deleting a thosand or so pages of errors a day and they are all like that. I gather that something is missing from my themes. But I have no idea what.
Title: Re: Google Member Map v1.0 beta
Post by: Dejv on March 19, 2009, 12:27:19 PM
Quote from: Dejv on February 28, 2009, 01:22:21 PM
Hi,

is anybody using googlemap in smf multisite?
Has anybody managed to place all variables (api, zoom, lat, long) in settings.php and settings.bak.php?

Thanks


Hi,
so, for multisite purpouse, I changed all

$modSettings['googleMapsKey']
$modSettings['googleMapsDefaultZoom']
$modSettings['googleMapsDefaultLat']
$modSettings['googleMapsDefaultLong']

to

$googleMapsKey
$googleMapsDefaultZoom
$googleMapsDefaultLat
$googleMapsDefaultLong

and created those new variables in Settings.php

$googleMapsKey = 'xxxxxxxxxxxxxx';
$googleMapsDefaultZoom = 5;
$googleMapsDefaultLat = 50.1111;
$googleMapsDefaultLong = 10.11;

But I am still missing something, maybe to define a global?
I am getting this error message in all browsers:
Sorry, the Google Maps API is not compatible with this browser

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: BuzzBoy on March 20, 2009, 06:35:30 PM
Hi I am getting an error on the Profile.template.php when installing thru the package parser...

I tried to do the suggested edits manually but the find snippet of code was not there...how can I make it work as I was getting a template error on the two spots that I tried I am running RC1 and PortaMx

FIND
  // Now print the second column where the members avatar/text is shown. echo ' <td class="windowbg" valign="middle" align="center" width="150">  ', $context['member']['avatar']['image'], '<br /><br />  ', $context['member']['blurb'], ' </td>  </tr>'; 

ADD AFTER
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=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script> <div id="map" style="width: 600px; height: 350px; color: #000000;"></div> <input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" /> <input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" /> <script type="text/javascript">'; // Evil hack on this!!! echo ' //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91); echo ' 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'] . '), 13, '. $modSettings['googleMapsType'] . '); var point = new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . '); var marker = new GMarker(point); map.addOverlay(marker); } if (GBrowserIsCompatible()) { window.onload=LoadMap; }'; // Let's make another evil hack! echo ' //' . chr(93) . chr(93) . chr(62); echo ' </script> </td> </tr>'; } } 


Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on March 20, 2009, 06:51:34 PM
Mod is not ready for RC1 yet.
Title: Re: Google Member Map v1.0 beta
Post by: BuzzBoy on March 20, 2009, 07:12:37 PM
I did get everything installed accept that part "Profile"  :'(

...any ideas to make the profile work? The error on the template was "unexpected close" I tried to place the code in two different spots. Unsuccessful both times... :-[

Thanks,

BB

Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on March 20, 2009, 07:14:01 PM
No idea. I'm waiting for the updated version.
Title: Re: Google Member Map v1.0 beta
Post by: endiZ on March 21, 2009, 02:28:39 AM
Great mod. Can't wait for google latitude support XD
Title: Re: Google Member Map v1.0 beta
Post by: TheDel on March 31, 2009, 07:32:52 AM
OK I cant get my map to show pins any longer-
The only thing I believe I did was upgrade to 1.1.8

BUT the map still works in Profiles- just not the main one.
Any ideas?
Title: Re: Google Member Map v1.0 beta
Post by: 9210 on April 07, 2009, 03:39:49 PM
How can I get the 'Member Map'-link to show up when using a different language than English?

Which files need to be edited (using Dutch)?

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on April 07, 2009, 04:11:18 PM
I would guess that Modifications.dutch.php needs to be edited for the Dutch language.
Title: Re: Google Member Map v1.0 beta
Post by: 9210 on April 07, 2009, 04:18:32 PM
Did that...copied the entire 'googleMaps' section and converted it to Dutch....Still don't see it in the menu-bar 9see a little extra space ther, though..)
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on April 13, 2009, 10:32:40 PM
Any word on 2.0 RC 1 update?

It is a good mod BTW, and works with 2.0 RC 1, but it does not show in the profile summery screen with the 2.0 RC 1 profile being different.

I see one has fixed this, can you pass on the changes we need to do, it would help.

Title: Re: Google Member Map v1.0 beta
Post by: brianjw on April 14, 2009, 04:37:04 PM
Not sure when I can get this to you guys. I have limited time right now. None of my mods are up to date. I have alot of WORK in real life to deal with right now. When I get a free spot, the first thing I will try to do is this.

I really cannot promise anything at this point. I will still manage this mod and others but I will need a little more time. I am sorry to keep you all waiting!
Title: Re: Google Member Map v1.0 beta
Post by: oludimuni on April 15, 2009, 07:14:52 AM
Can anyone lead me into how i can add my google adsense code to my smf forum
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on April 15, 2009, 09:02:39 AM
???   This mod is for google MAPS!  It has nothing to do with adsense.

There are several ad mods, including the "Ad Management Mod" that work with adsense.
Title: Re: Google Member Map v1.0 beta
Post by: QQP on April 21, 2009, 03:21:34 AM
Hello,

I try to install this mod (I think I will like it  :D). But it gives me an error:

Execute Modification                ./Sources/ModSettings.php                 Test failed

Someone else having the same problem or find/knows a solution?

p.s. I use SMF 1.18

thnx
Title: Re: Google Member Map v1.0 beta
Post by: C4G-TK on April 21, 2009, 01:52:26 PM
Quote from: QQP on April 21, 2009, 03:21:34 AM
Hello,

I try to install this mod (I think I will like it  :D). But it gives me an error:

Execute Modification                ./Sources/ModSettings.php                 Test failed

Someone else having the same problem or find/knows a solution?

p.s. I use SMF 1.18

thnx

You will have to manually perform this edit yourself once the mod is installed
Title: Re: Google Member Map v1.0 beta
Post by: QQP on April 22, 2009, 05:52:36 AM
Quote from: C4G-TK on April 21, 2009, 01:52:26 PM
You will have to manually perform this edit yourself once the mod is installed
Ok, thnx.... gonna try....
Title: Re: Google Member Map v1.0 beta
Post by: C4G-TK on April 22, 2009, 10:24:27 AM
Are you using the default theme? or a custom theme?
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on April 24, 2009, 02:01:14 AM
Quote from: brianjw on April 14, 2009, 04:37:04 PM
Not sure when I can get this to you guys. I have limited time right now. None of my mods are up to date. I have allot of WORK in real life to deal with right now. When I get a free spot, the first thing I will try to do is this.

I really cannot promise anything at this point. I will still manage this mod and others but I will need a little more time. I am sorry to keep you all waiting!

We do understand the time issues.

May by Kindred can help us all out, as it seems he might have the profile correct for 2.0rc1. If I read his past reply right.

I do like the mod and it works but the new members are having a hard time finding out how to put their pins on.

If we could get the link to place your pin on the member map page, point to the forum page that is used to change the map. Instead of how it now is to just the main forum page, that would help too.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on April 24, 2009, 07:46:00 PM
I had it sort-of working, but have since backed it out with the newer dev version that I am running.

So, unfortunately, I do not have a working version of this on rc1 at this time.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on April 24, 2009, 10:28:34 PM
I will get to work guys as soon as I can. I might have some time to work on it this weekend but I doubt it will be ready to release at the end of that time. It might take a few weekends but I might be able to pull it off in a few weeks.
Title: Re: Google Member Map v1.0 beta
Post by: Mike_S on April 25, 2009, 02:47:27 AM
Installed it on SMF 2 RC1.  After a few quick mods to get it in the user profile it works GREAT.  However this evening the 111th person marked themselves on the map.  Now someone shows up in the water off Africa west of Libreville.  Maybe this was happening before, but I just noticed it tonight. When I reset there location in their Forum Profile, someone else pops off and into the water off Africa.  Is there a limit of how many people it will track?  How do I get my members to stop drowning?   

And NO...  My board is not the Titanic.    :D

Thanks In Advance.
-Mike
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on April 25, 2009, 05:53:40 PM
Not sure. What is your maximum pins set as in the settings for the Google Map mod?
If it isn't that, I do not know the cause. I know Google can support each map with up to 500 pins, but since you only have 111 then it should be fine.

Also, if you wouldn't mind posting the edits you made to the profile for other users until I can get one packaged up.

Thank you very much! :)
Title: Re: Google Member Map v1.0 beta
Post by: probinson77 on April 25, 2009, 09:32:38 PM
Quote from: Mike_S on April 25, 2009, 02:47:27 AM
Installed it on SMF 2 RC1.  After a few quick mods to get it in the user profile it works GREAT.  However this evening the 111th person marked themselves on the map.  Now someone shows up in the water off Africa west of Libreville.  Maybe this was happening before, but I just noticed it tonight. When I reset there location in their Forum Profile, someone else pops off and into the water off Africa.  Is there a limit of how many people it will track?  How do I get my members to stop drowning?   

And NO...  My board is not the Titanic.    :D

Thanks In Advance.
-Mike

I'm not sure where it's set, but when a new member registers on my forum, it enters the latitude and longitude in the database as 0,0.  This is why people appear drowning just off the coast of Africa.   :D

It should enter NULL for the latitude and longitude instead of 0.  Then, there will be no pin on the map until the member specifies where they live.  My database structure says the default value for the latitude and longitude fields is NULL, but everytime a new member registers, they end up off the coast of Africa with a longitude and latitude of 0.

Does anyone know where to fix this?
Title: Re: Google Member Map v1.0 beta
Post by: Mike_S on April 25, 2009, 09:54:53 PM
0-0 sounds about right, but that's not my issue.  I went through 5 people and as soon as I would put the correct zip code in for them, someone else who had already been set to the right location would go into the water.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyHorse80 on April 27, 2009, 02:00:37 PM
Could someone modify the pin color by gender function to be pin color by member group? I think it's lot more useful that way!
By the way I've got another question: is there anyone that upgraded this from 0.1beta to 1.0? Do members have to reset their pins after upgrade? Should I completely uninstal previous version before update?
Bye,
PS
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on April 27, 2009, 04:48:21 PM
Members do not have to reset their pins.  Yes, completely uninstall to install the new version. I do not create upgrade packages.

It could be listed by member group, but right now I am in the midst of upgrading the mod so when I get the chance, I might try and implement such a feature.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyHorse80 on April 28, 2009, 11:37:50 AM
Quote from: brianjw on April 27, 2009, 04:48:21 PM
Members do not have to reset their pins.  Yes, completely uninstall to install the new version. I do not create upgrade packages.

It could be listed by member group, but right now I am in the midst of upgrading the mod so when I get the chance, I might try and implement such a feature.

Thank you very much!
Title: Re: Google Member Map v1.0 beta
Post by: matstone on April 29, 2009, 05:58:57 PM
I installed this mod a couple of weeks ago on SMF 1.1.8 running the dilbermc theme. I have made all the manual edits listed for a custom theme and while everything works fine; my error log is getting loaded up daily with two distinct errors.

Error #1:
8: Undefined variable: first
File: /home/XXXXXXX/Themes/default/GoogleMap.template.php (main_above sub template - eval?)
Line: 1317

Error #2:
8: Undefined variable: last
File: /home/XXXXXX/Themes/default/GoogleMap.template.php (main_above sub template - eval?)
Line: 1320

Any ideas? I saw someone else had posted these same errors early in this mods release but, nothing was ever replied to it or concerning it. It is also very difficult to find a problem with lines 1317 & 1320 when the GoogleMap.template.php stops at line 261. I'm in need of some help or direction concerning this because the members find it useful. Thanks in advance.
Title: Re: Google Member Map v1.0 beta
Post by: matstone on April 29, 2009, 07:25:54 PM
I have narrowed down my issue just need a little coding help.

I had to make a small adjustment to the button code on the index.template in the custom theme and here lies my problem:

// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
<td valign="center" class="menubg' , $current_action == 'googlemap' ? '2' : '' , '">
<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
</td>' , $current_action == 'googlemap' ? '<td class="menubg' . $last . '">&nbsp;</td>' : '';


I have tried to remove the lines with the "first" & "last" undifined variables but get a parse error. I am far from a php coder abit more of try this and hope to get by kind of learner. Can anyone help me get this code right so it doesn't keep producing errors?  ;)

UPDATE!!
I figured it out and have it fixed. Thanks anyway.
Title: Re: Google Member Map v1.0 beta
Post by: CrazyHorse80 on April 30, 2009, 12:33:26 PM
Quote from: matstone on April 29, 2009, 07:25:54 PM

UPDATE!!
I figured it out and have it fixed. Thanks anyway.


Could you tell us how you did it?
Bye,
PS
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on May 01, 2009, 01:19:48 PM
This mod would suit my forum perfect except:

.     Execute Modification     ./Sources/Load.php     Test failed
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful

The mod failed on the two phps above.

I haven't installed the mod.

Title: Re: Google Member Map v1.0 beta
Post by: Kindred on May 01, 2009, 05:47:52 PM
that just means that another mod has already modified to sections of code that this one is looking for. You will have to manually install the mod in those two files.
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on May 01, 2009, 05:50:12 PM
If I knew how I would.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on May 01, 2009, 07:26:04 PM
there is a link to the manual install instructions for the various versions of SMF supported by each mod on eahc mod's download page.
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on May 01, 2009, 07:31:11 PM
the problem is we don't know how to manual install the mods.
Title: Re: Google Member Map v1.0 beta
Post by: Bigguy on May 01, 2009, 09:19:21 PM
Kindred has just told you where the instructions are to do it. All you need now is a good editor and some patience. Trial and error are your friends most of the time. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Babyloniia on May 05, 2009, 06:51:26 AM
Hello, This look like a great mod,

Questions :
Is it Compitable With SMF 2.0 RC1 - Default Theme Core?
If Yes - Do every member need to register somwhere to show up their location on the map? / or it is automatically retrieved by forexample IP adress, so member dont need to do anything. :-)

Thanks.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on May 05, 2009, 07:44:57 AM
it is not compatible without edits.
no... members must enter their pin at their location, it does not automatically determine location.
Title: Re: Google Member Map v1.0 beta
Post by: allisondk on May 06, 2009, 03:35:50 AM
listening in...there might be a 2.0 RC1 version of the mod ;-)
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on May 06, 2009, 01:15:44 PM
Quote from: allisondk on May 06, 2009, 03:35:50 AM
listening in...there might be a 2.0 RC1 version of the mod ;-)
Coming soon...
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on May 06, 2009, 01:24:37 PM
Would it be possible to ask if someone could add this to our site for me.

Unfortunately the package had some errors when I went to install the mod.

We are on smf 1.1.8 with simpleportal 2.2 and plan to move to a new theme soon.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on May 07, 2009, 12:04:13 AM
Quote from: Kindred on April 24, 2009, 07:46:00 PM
I had it sort-of working, but have since backed it out with the newer dev version that I am running.

So, unfortunately, I do not have a working version of this on rc1 at this time.

Thanks for your answer

Quote from: brianjw on April 24, 2009, 10:28:34 PM
I will get to work guys as soon as I can. I might have some time to work on it this weekend but I doubt it will be ready to release at the end of that time. It might take a few weekends but I might be able to pull it off in a few weeks.

Brian,

Do you know how I can change the link on the main map page, the one to place a pin. I want  to have it go to profile page where they can add their pin instead of the summary page.

What URL would I use for this, and where do I go to put it.

That would work for me and my new members for now.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on May 07, 2009, 01:10:20 AM
I found what I needed

For 2rc1 you need to go into the default theme language file directory

Look for Modifications.english.php or Modifications.english-utf8.php ,if using the English language.

look for:

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile#googlemap">Click here to go place your pin if you have not already.</a>';

Replace with :

$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;area=forumprofile#googlemap">Click here to go place your pin if you have not already.</a>';

That will fix the link to place your pin on the Member Map page.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on May 07, 2009, 04:01:16 PM
Yes, I never knew SMF 1.1 and 2.0 had different urls in the profile. Glad you caught that for me. Thank you.
Not sure what the point was for SMF to change that though...
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on May 07, 2009, 04:24:27 PM
I believe a number of changes were made to avoid interference and overlap between other systems that may be bridges with SMF.
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on May 07, 2009, 06:05:09 PM
Ahh, okay. Well then I have some changes needing to be made in the 2.0 version as well.
Title: Re: Google Member Map v1.0 beta
Post by: oops on May 13, 2009, 10:19:03 PM
This is a great mod 8), we are really enjoying it on our site.  It adds alot to the community feel knowing where each member is.  Thankyou for your efforts  :)

I'm wondering if it is possibble to give members more than one pin.  It would be great if each member could mark the map with several pins with pin colors chosen by admin to denote types of loactions.  Only the main pin need be displayed until the member's name is clicked.

We have a hobby site for remote control vehichles and would like for members to be able to mark locations for events and favorite running spots etc.

Title: Re: Google Member Map v1.0 beta
Post by: K3TK3TK3T on May 16, 2009, 09:05:05 PM
any ETA for when it'll be ready for RC1 brian?
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on May 16, 2009, 09:11:20 PM
Would someone be willing to install this on my forum?

The theme we use is black rain v2 on 1.1.8
with sp 2.2.1
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on May 16, 2009, 09:27:14 PM
Quote from: The_Abhorred on May 16, 2009, 09:05:05 PM
any ETA for when it'll be ready for RC1 brian?
I can't give a firm date, but I can say I have spent quite a few hours on it today and Friday and it is almost done. The reason I can't give a date is because I might get caught up with life not able to finish it.
Title: Re: Google Member Map v1.0 beta
Post by: dfelix on May 20, 2009, 09:17:52 PM
This mod is nice...

But... every new forum member appears automaticaly in Nigeria gulf...

:)
Title: Re: Google Member Map v1.0 beta
Post by: Chit-Chat ChatterBox Boss on May 26, 2009, 09:25:52 PM
Can't wait for a 2.0 RC1-1 release.
Title: Re: Google Member Map v1.0 beta
Post by: Phoenixauto on May 28, 2009, 06:52:24 AM
Thanks for a great mod I wanted an opinion about:
I have not installed the mod in the default template and I have a problem with Internet explorer map not seen in the profile. Button from the menu map you can see perfect.
With firefox and safari it works perfectly.
The problem is only in the profile with Explorer

Can someone help me?
What file can be the problem?
Title: Re: Google Member Map v1.0 beta
Post by: mrbones on June 04, 2009, 11:55:18 AM
When will 2.0 RC1-1 be available?
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on June 05, 2009, 10:38:26 PM
Quote from: Chit-Chat ChatterBox Boss on May 26, 2009, 09:25:52 PM
Can't wait for a 2.0 RC1-1 release.

Quote from: mrbones on June 04, 2009, 11:55:18 AM
When will 2.0 RC1-1 be available?

It does for the most part already work for smf 2.0 RC1.

They only thing is, it will not show a map on the profile summary screen yet. This is no big deal to me as most users don't seem to mind this missing.

You will still see the map page and users can still set and change their location from the profile.

One other change you will also need to change the link on the main map page.

Look at this post for how to do that.

http://www.simplemachines.org/community/index.php?topic=210708.msg2047525#msg2047525 (http://www.simplemachines.org/community/index.php?topic=210708.msg2047525#msg2047525)

Unless that was fixed already, as of the post link above it was not.
Title: Re: Google Member Map v1.0 beta
Post by: mrbones on June 06, 2009, 07:35:20 AM
Hey thanks. I'll give it a try.
Title: Re: Google Member Map v1.0 beta
Post by: Eclipse16V on June 09, 2009, 07:08:29 AM
Nice MOD.

Work good on the SMF 2.0 RC1-1

If someone need it for the SMF 2.0 RC1-1 in German.

Her the german lang.

Modifications.german.php
$txt['googleMap'] = 'Mitglieder Karte';
$txt['googleMappinned'] = 'Mitglieder Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Aktives Mitglied';
$txt['googleMapGreenPinNG'] = 'Kein Geschlecht';
$txt['googleMapBluePin'] = 'Mann';
$txt['googleMapRedPin'] = 'Frau';
$txt['googleMapPurplePin'] = 'Gesperrtes Mitglied';
$txt['googleMapAddPinNote'] = '<a href="index.php?action=profile;area=forumprofile#googlemap">Klicke hier um deinen Pin zu setzen wenn Du es noch nicht gemacht hast.</a>';
$txt['googleMapPleaseClick'] = 'Klicke auf die Karte um dort deinen Pin zu setzen oder auf den Pin um ihn zu entfernen.';
$txt['googleMapDisclaimer'] = 'Setze deinen Pin so nah wie m&ouml;glich. Einfach in der Karte zoomen.';
$txt['cannot_googleMap_view'] = 'Sorry, aber Du hast nicht die Berechtigung die Mitglieder Karte zu sehen.';
$txt['permissionname_googleMap_view'] = 'Mitglieder Karte anzeigen';
$txt['permissionhelp_googleMap_view'] = 'Erlaube den Usern die Mitglieder Karte zu sehen. Wenn nicht ausgew&auml;hlt, wird die Karte auch nicht angezeigt.';
$txt['cannot_googleMap_place'] = 'Sorry, aber Du hast nicht die Berechtigung einen Pin auf die Mitglieder Karte zu setzen.';
$txt['permissionname_googleMap_place'] = 'Pin auf Mitglieder Karte setzen';
$txt['permissionhelp_googleMap_place'] = 'Erlaub den Usern ihren Pin auf die Mitglieder Karte zu setzen. Wenn nicht ausgew&auml;hlt, kann auch kein Pin gesetzt werden.';


ManageSettings.german.php
$txt['googleMapsEnable'] = 'Google Mitglieder Karte anzeigen';
$txt['googleMapsEnableLegend'] = 'Pin Legende anzeigen';
$txt['googleSidebar'] = 'Sidebar anzeigen';
$txt['googleMapsKey'] = 'Google Maps API Key für diese Seite';
$txt['googleMapsPinGender'] = 'Pins nach Geschlecht aufteilen?';
$txt['KMLoutput_enable'] = 'Soll das komprimierte KML ausgegeben werden? (KML ist eine Datei welche zum Download steht, mit der man die Google Map in Google Earth importieren kann.)';
$txt['googleMapsPinNumber'] = 'Max. Pins in der Karte anzeigen';
$txt['googleMapsType'] = 'Standard Kartentyp anzeigen';
$txt['googleMapsDefaultLat'] = 'Standard Breitengrad';
$txt['googleMapsDefaultLong'] = 'Standard L&auml;ngengrad';
$txt['googleMapsDefaultZoom'] = 'Standard Zoom';
$txt['googleMapsEnableClusterer'] = 'Pins zusammenfassen';
$txt['googleMapsMinMarkerCluster'] = 'Min. Pins pro Zusammenfassung';
$txt['googleMapsMaxVisMarker'] = 'Max. aufrufbare Pins auf der Karte';
$txt['googleMapsMaxNumClusters'] = 'Max. Anzahl an Zusammenfassungen';
$txt['googleMapsMaxLinesCluster'] = 'Max. Anzahl an Zeilen in der Zusammenfassungs-Info-Box';
$txt['googleMapFO'] = 'Mitglieder Karte';


Who.german.php
$txt['whoall_googlemap'] = 'Schaut sich die <a href="' . $scripturl . '?action=googlemap">Mitglieder Karte</a> an.';
$txt['whoall_.kml'] = 'Schaut sich die Google Earth Feed Seite an.';
Title: Re: Google Member Map v1.0 beta
Post by: navin.p on June 09, 2009, 08:12:21 PM
Can anyone confirm, if it worked on 1.1.9?
I'm getting:
10.     Execute Modification     ./Sources/ModSettings.php     Test failed
Title: Re: Google Member Map v1.0 beta
Post by: TheListener on June 09, 2009, 08:45:33 PM
Yes it does. The members on my forum love it.

Title: Re: Google Member Map v1.0 beta
Post by: GenghisChris on June 10, 2009, 08:00:03 AM
Quote from: navin.p on June 09, 2009, 08:12:21 PM
Can anyone confirm, if it worked on 1.1.9?
I'm getting:
10.     Execute Modification     ./Sources/ModSettings.php     Test failed

I have the same problem, in my admin cp the google member map button in features and options redirects to the basic options tab... I'm stumped!
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on June 10, 2009, 05:51:43 PM
as with any other "test failed", you will have to manually apply the changes required for the mod to that file
Title: Re: Google Member Map v1.0 beta
Post by: Legrand on June 12, 2009, 07:17:44 AM
Brian,

Some time ago you said you could assist with the installation of the mod on my site. Are you still up for this? I've installed it and can see parts of it but don't see the admin "portal" for the mod.

Thanks.

Scott
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on June 12, 2009, 10:56:26 AM
I am very busy updating this mod and a few others, but I'd be willing to install it for $5 USD. (or at least fix it to function how it should)
Read this for more info: http://www.simplemachines.org/community/index.php?topic=311611.0
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on July 09, 2009, 01:43:02 PM
will you include the translations in the next versions? it would be fine, so nobody should search in the files and can damage them :)


it doesnt work under 1.1.9 how to edit it?
Title: Google Member Map v1.0 beta error
Post by: More-to-life on August 04, 2009, 08:49:41 AM
Hi guys,

First time poster but have been lurking for a while now & have to say smf is great even goes are far as the best forum software out there 

Anyway i have a little problem ive installed google member maps & have 2 problems

1: i have this error off every member in my error log
8: Undefined variable: modSettings
File: /var/www/html/forum/Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 584

2: I think im supposed to have a button "member map" or some button on the top nav bar but have nothing

Sorry if there's a really easy way of solving this but im new to this & i know nuffink   
Title: Re: Google Member Map v1.0 beta
Post by: Bobn on August 09, 2009, 02:48:51 PM
Ok,

I have it working now but when someone try's to add their pin it shows a wordl map and is hard to zoom into the correct location.

I have the default lat and long set but something is wrong. Thanks!
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on August 24, 2009, 09:44:24 AM
no more supported by the author?
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 24, 2009, 04:11:52 PM
No, not by ME. I have however gotten someone to take it over. It is actually a SMF Team member (customizer) so I feel the mod will be in better hands then it was with me. :) I do apologize the time it has taken to get the mod to a better state but I'm sure the new mod supporter: Nas (http://www.simplemachines.org/community/index.php?action=profile;u=143954) will take care of everything.
Title: Re: Google Member Map v1.0 beta
Post by: edi67 on August 25, 2009, 01:20:44 PM
how i can insert one defatult point in profile map where user add their location ?
because now for default i have one point in ocean pacific sea
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on August 26, 2009, 09:11:35 AM
I have taken over this mod. Thank's to brianjw! :)
I have to go through the mod and get to know it before I can give any detailed support or make any updates :)
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on August 27, 2009, 04:34:16 AM
Good on ya mate, and congrats :)
Title: Re: Google Member Map v1.0 beta
Post by: dimdom on August 27, 2009, 09:58:43 AM
Excellent mod and everything in working fine...

Except from this template (?) error in the members map page:


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg34.imageshack.us%2Fimg34%2F2706%2F278200944338.jpg&hash=70e06baec0b31ca22d67b12792791702e7bd8b58)

Any ideas?

Watch this (tiny) error at:

http://www.authorway.com/SMF/index.php?action=googlemap
Title: Re: Google Member Map v1.0 beta
Post by: CrazyCreator on August 27, 2009, 05:12:53 PM
Hello,
when install the memper map mod, i become a white side in the modificationsarea.

i mean this link: /admin/?area=modsettings


SMF Version: SMF 2.0 RC1.2
and i have installed the pretty urls mod
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 27, 2009, 05:14:41 PM
Hi dimdom,

While Nas has taken over this mod, I can still answer some questions.

This is a problem with the overflow.

If you want to fix it yourself, you can try to use the following URL:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/48f1bd3a7f4eaece

You would have to apply that fix to the GoogleMap.template.php in ./Themes/default/
Title: Re: Google Member Map v1.0 beta
Post by: C4G-TK on August 27, 2009, 09:25:12 PM
@brianjw

Just wanted to say thanks for all your work you've given to this in the past.  I've used it on two of my forums and my members (and I) have really enjoyed using it.  We appreciate your time and effort!

Thank you!
Title: Re: Google Member Map v1.0 beta
Post by: Özgür on August 28, 2009, 01:28:31 AM
Is this mod compatible with smf 2.0 rc1?
Title: Re: Google Member Map v1.0 beta
Post by: ardhie on August 28, 2009, 05:00:11 AM
i confused ???
Title: Re: Google Member Map v1.0 beta
Post by: brianjw on August 28, 2009, 05:30:51 PM
Quote from: [Daydreamer] on August 28, 2009, 01:28:31 AM
Is this mod compatible with smf 2.0 rc1?
It is not compatible.

Quote from: ardhie on August 28, 2009, 05:00:11 AM
i confused ???
About? I was the former supporter of this mod. Nas has taken over the mod. So for now, all support will be directed (in a sense) towards him. Of course, this does not mean you should PM him, because most people do not answer support PM's.

You may see me come in and answer some simple questions. But I will not in anyway be maintaining this mod.
Title: Re: Google Member Map v1.0 beta
Post by: November on August 28, 2009, 05:39:14 PM
Looking forward to port for RC version :)
Title: Re: Google Member Map v1.0 beta
Post by: dimdom on August 29, 2009, 03:15:11 AM
Quote from: brianjw on August 27, 2009, 05:14:41 PM
Hi dimdom,

While Nas has taken over this mod, I can still answer some questions.

This is a problem with the overflow.

If you want to fix it yourself, you can try to use the following URL:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/48f1bd3a7f4eaece

You would have to apply that fix to the GoogleMap.template.php in ./Themes/default/

Thank you for the hint, brianjw.
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on August 29, 2009, 06:06:55 AM
i hope smf 2.xx will release as soon as possible, so i can use google maps without install problem ;)
Title: Re: Google Member Map v1.0 beta
Post by: clubbernz on September 14, 2009, 07:32:44 PM
I've had this installed for awhile and love it.  However I'm using an older version, to update the mod, do we use the package installer?

Just worried about double ups of code and or losing member locations that are already on the map.
Title: Re: Google Member Map v1.0 beta
Post by: Darthemis on September 16, 2009, 04:45:26 AM
Hello everyone!

Well... I've installed the mod in my forum and almost everything is perfect ^^

I have a template different from the default, SMF 1.1.8, theme SoftWhite.

My index.template.php is attached. I would like to know how can I modify this file to introduce what the mod needs...

Can anybody help me?

Than you very much indeed :)
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on September 16, 2009, 02:45:07 PM
1- upgrade to smf 1.1.10 ASAP! you are two revisions back and there are known (and since then, patched) security issues.

2- look at the coding for the other buttons on your theme...    (I typically pick the calendar are a baseline).   Copy it into the correct location in the button list and then apply changes to target the map mod...
Title: Re: Google Member Map v1.0 beta
Post by: SilverKnight on September 25, 2009, 08:56:27 PM
eek...10.     Execute Modification     ./Sources/ModSettings.php     Test failed

on 1.1.10... needs update XD
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on September 25, 2009, 10:44:04 PM
It is not the mod which is the problem.
If you have other mods installed, it is most likely that they have altered the code that this mod searches for, which means you will need to install this mod manually into that template.
So it is your ModSettings.php which requires the update XD
Title: Re: Google Member Map v1.0 beta
Post by: 12footer on September 30, 2009, 06:44:05 PM
I got this when I tried to add this mod to my site
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv156%2Fbritishcanuk%2Fmaperrors.jpg&hash=7b7e4914c0bb2796b31c162dc8773b2018d38371)

What is required for me to make this work?  Any help would be great.

Thanks!
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on October 01, 2009, 12:21:56 AM
well, it would help if people read other messages or used search.  This question is asked in every single mod thread and is answered at least 20 times in said threads.

It means that some other mod has modified your code so the mod can not automatically install in those files. you will have to read the mod manual instructions and manually change the code in those files.
Title: Re: Google Member Map v1.0 beta
Post by: 12footer on October 01, 2009, 10:35:32 AM
Kindred,
Thanks for your reply.  I will look back over the thread as I should have done prior to posting.  I am not a computer whiz so if I can't find how to manually install it I will likely have to ask again.  Thanks again, this looks like a wicked mod that will enhance my site greatly!

Cheers

R~
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on October 02, 2009, 05:15:25 AM
Just add the code for Modifications.english-utf8.php to the end of that file before  ?>

If you have trouble editing your ModSettings.php due to the edits the other mods have made, then attach that template to your next post, and somebody will do it for you.
Title: Re: Google Member Map v1.0 beta
Post by: mattchewone on October 05, 2009, 01:43:03 PM
Got these errors when trying to install

1.   Extract File   ./Sources/GoogleMap.php   
2.   Extract File   ./Themes/default/Clusterer2.js   
3.   Extract File   ./Themes/default/GoogleMap.template.php   
4.   Extract File   ./Themes/default/images/google_earth_feed.gif   
5.   Extract File   ./Themes/default/images/english/googlemap.gif   
6.   Execute Code   add_settings20.php   
   7.   Execute Modification   ./index.php   Test failed
   1.   Add Before   ./index.php   Test failed
   2.   Add Before   ./index.php   Test failed
   8.   Execute Modification   ./Sources/Admin.php   Test successful
   9.   Execute Modification   ./Sources/Load.php   Test successful
   10.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
   11.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   12.   Execute Modification   ./Sources/Profile-Modify.php   Test failed
   1.   Add After   ./Sources/Profile-Modify.php   Test successful
   2.   Replace   ./Sources/Profile-Modify.php   Test failed
   3.   Add Before   ./Sources/Profile-Modify.php   Test successful
   13.   Execute Modification   ./Sources/Subs.php   Test failed
   1.   Add After   ./Sources/Subs.php   Test failed
   2.   Add After   ./Sources/Subs.php   Test failed
   14.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
   1.   Add After   ./Themes/default/Profile.template.php   Test failed
   2.   Add After   ./Themes/default/Profile.template.php   Test successful
   15.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
16.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
   17.   Execute Modification   ./Themes/default/languages/ManageSettings.english.php   Test failed
   1.   Add After   ./Themes/default/languages/ManageSettings.english.php   Test failed
   18.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on October 05, 2009, 05:12:16 PM
You will need to manually install the code on each of the failed templates, and then upload the completed templates, After you have installed the mod.
I alter the install.xml on any mod that fails instead of touching the templates. That way you can uninstall them normally.

Good luck :)
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on October 07, 2009, 10:24:30 AM
Quote from: November on August 28, 2009, 05:39:14 PMLooking forward to port for RC version :)

... me too, me too, me too  ;D
Title: Re: Google Member Map v1.0 beta
Post by: Dejv on October 18, 2009, 02:30:57 PM
Hello,

I've been using it for quite a few monts without a problem (except not always all pins are displayed)

My map is hidden for guests. I dont have this field in guests permissions - permission to view the map for guests.
No solution here in this topic yet, so probably nobody posted this before.
Does anybody have an Idea what do I need to change? Probably in sources/googlemap.php?

Thanks a lot for any hints
Title: Re: Google Member Map v1.0 beta
Post by: huxor on October 22, 2009, 01:03:56 PM
Has anyone tried this mod on 1.1.10? I would love to have a go, but am not that kind of code fixer if something breaks.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on October 22, 2009, 01:14:10 PM
huxor, this mod will work without problems on SMF 1.1.10.
Title: Re: Google Member Map v1.0 beta
Post by: huxor on October 22, 2009, 02:12:03 PM
Oh, didn't find it listed in the mods section as compatible. Thanks mate, will install your mod very soon.
Title: Re: Google Member Map v1.0 beta
Post by: 12footer on November 03, 2009, 07:36:36 PM
Well I tried, a searched for ways to fix my "test failed" issues and I am beginning to think all of this is over my head... I don't get it.  Is there a step by step or something even the most computer illiterate can understand?  I just want this mod on my site :(

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: Sabre™ on November 03, 2009, 08:45:50 PM
You will need to manually install the code for the failed templates.
Look on the mod download page, select your smf version, and click parse.
It will show you the edits to make for those templates.
OR
Attach the templates that have failed, to your next post.
Title: Re: Google Member Map v1.0 beta
Post by: SAFAD on November 09, 2009, 11:32:31 AM
Update THis Please
Title: Re: Google Member Map v1.0 beta
Post by: TurtleKicker on November 12, 2009, 03:15:06 PM
Can we have an update for SMF2 RC2? My users love this mod and I'd like to move to SMF2. Thanks!
Title: Re: Google Member Map v1.0 beta
Post by: Eclipse16V on November 13, 2009, 12:37:43 AM
Yes please update.
It runs fine on my RC1.2 und now i will update at RC2.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 14, 2009, 03:20:14 PM
OK Here is a fix for 2.0 RC2 Hope it help others.....


Fixed the code and removed the tables see new post here (http://www.simplemachines.org/community/index.php?topic=210708.msg2363078#msg2363078)

Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 14, 2009, 05:52:18 PM
Thanks for sharing this.
I installed it and I have these errors and neither appears "member map" on the menu but if you click in the area works.
The map not appear in the profile

QuoteApply Filter: Only show the error messages of this URL
http://www.vibanio.net/foro/index.php?action=admin;area=logs;sa=errorlog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: googleMap
Apply Filter: Only show the errors from this file
File: /homepages/24/d278389249/htdocs/vibanio/foro/Sources/Admin.php
Line: 218

Quotehttp://www.vibanio.net/foro/index.php?action=login2
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /homepages/24/d278389249/htdocs/vibanio/foro/Themes/default/languages/Modifications.english.php
Line: 6

Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on November 14, 2009, 05:53:27 PM
Quotebut I don't think it is supported as much anymore.
Yepp, looks like this way  :-\

I will try your fix the next few days and report here. Maybe I get more errors... I have'nt the original Styles anymore and also using german utf8 as default... we will see if and who I can find them ;)

Good N8 for now and thx a lot for your work

Micha
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on November 14, 2009, 08:42:24 PM
I have issues with your hack.

In 2.0 we got rid of the use of many tables, including in the profiles section.

Your paste of code without editing does not take that into account and just puts table code in where it does not belong and will prevent the site from validating...  and may cause issues with some browsers.


I thought I posted that hack using the DTD code back with rc1.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 14, 2009, 08:56:37 PM
Quote from: Juan Carlos on November 14, 2009, 05:52:18 PM
Thanks for sharing this.
I installed it and I have these errors and neither appears "member map" on the menu but if you click in the area works.
The map not appear in the profile

QuoteApply Filter: Only show the error messages of this URL
http://www.vibanio.net/foro/index.php?action=admin;area=logs;sa=errorlog;desc (http://www.vibanio.net/foro/index.php?action=admin;area=logs;sa=errorlog;desc)
Apply Filter: Only show the errors with the same message
8: Undefined index: googleMap
Apply Filter: Only show the errors from this file
File: /homepages/24/d278389249/htdocs/vibanio/foro/Sources/Admin.php
Line: 218

Quotehttp://www.vibanio.net/foro/index.php?action=login2
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /homepages/24/d278389249/htdocs/vibanio/foro/Themes/default/languages/Modifications.english.php
Line: 6



If you are using a different language file then the English one, you need to add the google map items from the English file. I think that might be why you can click on it but not see the word.

The other error might not be google map mod. It looks to be when you are logging in? But appears to be in the Lang file for English? Are you using Pretty URLs mod? I think they had this error reported on smf forum. It could be another mod too.

Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 14, 2009, 09:04:39 PM
Quote from: Kindred on November 14, 2009, 08:42:24 PM
I have issues with your hack.

In 2.0 we got rid of the use of many tables, including in the profiles section.

Your paste of code without editing does not take that into account and just puts table code in where it does not belong and will prevent the site from validating...  and may cause issues with some browsers.


I thought I posted that hack using the DTD code back with rc1.

I didnot see the hack before if you did post it or I would have done that. I might have missed it though as this topic is large.

I don't quite have the new format of not using tables figured out. It was just a quick way of fixing it for my forum. I only posted it to help others. I have used it in IE8.0 and firefox 3.0, k-melon  and seamonkey OK but havenot tested it in IE6 or IE7 yet.

I do think if you can clean it up for the new format and re post it that would be great.

If you know of where I could learn the new way of this format that might help too. There are a few more mods I could help out on if I had some help on converting tables. :)
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 16, 2009, 12:30:52 PM
Quote

If you are using a different language file then the English one, you need to add the google map items from the English file. I think that might be why you can click on it but not see the word.

The other error might not be google map mod. It looks to be when you are logging in? But appears to be in the Lang file for English? Are you using Pretty URLs mod? I think they had this error reported on smf forum. It could be another mod too.

Sorry but what you mean with "google maps items"?

I install the mod and then the changes like you explain here (profile.template, modifications.english and modifications.spanish) files.


The other error only appear when install this mod, the only mod I use is AEVA.


Sorry, forget all this.
I had not changed some language files.

Now it seems that all is going quite well


Thank you very much for your answer
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 16, 2009, 05:08:56 PM
I only found this small issue
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on November 16, 2009, 05:34:43 PM
and what is the issue?  You have 2 bits circled. but you have not explained what you see as a problem.
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 16, 2009, 05:57:25 PM
Above you can see that there are two hidden fields in the "forum profile" by the map, and below the scroll bar appears, but if you move it to the right everything is empty.

I hope I have explained because my English is very very bad.

Thank you
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 17, 2009, 08:17:09 PM
OK

I see your problem, I also had this on my system. I think the table issue was messing up the code.

I have redone the code. It works on my system, see if it works on yours.


fix for 2.0 RC2 .....


I installed this in the  defult theme if you have another one this might not work.

The program went in fine for me except for the profile areas and the link on the member map to place your pin.

It should error out on install in the Profile Template file ( Profile.template.php) . This error is OK, just continue with install. If another file errors out then it probably is conflicting with another mod.

First please backup the files you are going to modify.

Then look for the Profile.template.php file in the defult theme directory.

To have the map show on the summery page.




Search For:


<dt>', $txt['location'], ':</dt>
    <dd>', $context['member']['location'], '</dd>';



Add after"


            if ($modSettings['googleMapsEnable'] && allowedTo('googleMap_view'))
{
  if (isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude']))
  {
   echo '

<dd>

   <script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
   <div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
   <input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
   <input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
   <script type="text/javascript">';
   // Evil hack on this!!!
   echo '
   //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);
   echo '
   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'] . '), 13, '. $modSettings['googleMapsType'] . ');
    var point = new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . ');
    var marker = new GMarker(point);
    map.addOverlay(marker);
   }
   if (GBrowserIsCompatible()) {
    window.onload=LoadMap;
   }';
   // Let's make another evil hack!
   echo '
   //' . chr(93) . chr(93) . chr(62);
   echo '
     </script>
</dd>';
  }
}




Next you want to add this code so you can add/change your pin in the profile.

In the same file as above...

Search for:

(', $txt['total'], ': <span id="karmaTotal">', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '</span>)
       </dd>';
}


Add after:




// Google Map Member Map
function template_profile_googlemap_modify()
{
global $txt, $modSettings, $context;
echo '
<dd><style type="text/css">
      @import url("http://www.google.com/uds/css/gsearch.css");
      @import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
     #map input, textarea {background-color: #ffffff;}
    </style>
         <script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
         <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0" type="text/javascript"></script>
         <script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>
         <a name="googlemap"><div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div></a>
         <div id="message" align="center">', $txt['googleMapPleaseClick'], '</div>
         <div id="disclaimer" align="center">', $txt['googleMapDisclaimer'], '</div>
         <input type="hidden" name="latitude" id="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
         <input type="hidden" name="longitude" id="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
         <script type="text/javascript">';
// Evil hack on this!!!
echo '
  //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);
echo '
  function LoadMap()
  {
   var map = new GMap2(document.getElementById("map"));
   map.addControl(new GSmallMapControl());
   map.addControl(new GMapTypeControl());
   var options = {suppressInitialResultSelection : true, resultList : google.maps.LocalSearch.RESULT_LIST_SUPPRESS};
   map.addControl(new google.maps.LocalSearch(options), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));';

if (isset($context['member']['googleMap']['longitude']) && isset($context['member']['googleMap']['latitude']) && !empty($context['member']['googleMap']['longitude']) && !empty($context['member']['googleMap']['latitude']))
{
  echo '
   map.setCenter(new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . '), 13, ' . $modSettings['googleMapsType'] . ');
   var point = new GLatLng(' . $context['member']['googleMap']['latitude'] . ',' . $context['member']['googleMap']['longitude'] . ');
   var marker = new GMarker(point);
   map.addOverlay(marker);';
}
else
{
  echo '
   map.setCenter(new GLatLng(0,0), 1, G_NORMAL_MAP);';
}
echo '
   GEvent.addListener(map, "click", function(overlay, point) {
    if (overlay)
    {
     map.clearOverlays();
     document.getElementById("latitude").value = "";
     document.getElementById("longitude").value = "";
    }
    else if (point)
    {
     map.clearOverlays();
     map.addOverlay(new GMarker(point));
     map.panTo(point);
     document.getElementById("latitude").value = point.y;
     document.getElementById("longitude").value = point.x;
    }
   });
  }
  if (GBrowserIsCompatible()) {
   window.onload=LoadMap;
  }';
// Let's make another evil hack!
echo '
  //' . chr(93) . chr(93) . chr(62);
echo '
         </script>

</dd>';

}



I think that will be better with out the tables. I still don't quite get the new format but will learn over time. :)



Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 17, 2009, 08:40:29 PM
It is now much better, almost perfect :) I am putting the new image.

Thank you very much for sharing.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 17, 2009, 08:46:28 PM
OK That is good!

I fixed the first part on the summery screen too.

Please replace the code I gave you before for it.

The one after


<dt>', $txt['location'], ':</dt>
    <dd>', $context['member']['location'], '</dd>';



It is in the corrected post above your last one.

It should work OK now. :)

Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 17, 2009, 08:57:00 PM
Quote from: Juan Carlos on November 17, 2009, 08:40:29 PM
It is now much better, almost perfect :)....

The only thing different from yours and mine is the scroll bar. Mine is not showing that. Please try clearing your cache on your browser to see if it goes away.

I do see it when I zoom in the page to 120% but on 100% I do not see it in my browser.
Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 17, 2009, 09:28:16 PM
Well, all is ok I think, only the scroll bar remains. I already clean the cache, etc. but continues there, also appears in Explorer and Firefox but I do not believe that this is a big problem.

Thank you Redryder
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 17, 2009, 09:37:31 PM
Is that IE8? Also firefox 3.0?

I tried IE8 and it was fine on my end no scrolls at any zoom.  :-\ I also use Seamonkey 2.0 and it works at 100%. It shows a scroll at 125% and above. But still works OK.

Any way at least it is functional for smf 2.0-RC2 now!  :)

Thanks for reporting on test this Juan Carlos

Title: Re: Google Member Map v1.0 beta
Post by: Juan Carlos on November 17, 2009, 10:09:10 PM
IE 8.0 and firefox 3.5.5.

As you say it is functional for smf 2.0-RC2. Great

Thanks again
Title: Re: Google Member Map v1.0 beta
Post by: peps1 on November 18, 2009, 03:47:52 AM
Can someone help, I cant get this to work for toffee!

If i try and install though package manager i get the following errors

10.     Execute Modification     ./Sources/ModSettings.php             Test failed
11.    Execute Modification    ./Sources/Profile.php                            Test failed
12.    Execute Modification    ./Themes/default/index.template.php    Test failed

(have attached copies if that helps?)

And I have given the manual approach a go changing all the code as advised on my Forum version: SMF 1.1.10, but nothing....not even a Google Member Map tab in the Features and Options!?

Would really love to have this Mod in the forum, so if anyone can help it will be sincerely apprechiated!
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on November 18, 2009, 02:38:22 PM
Sorry for the lack of updates and support.
I'll look at RC2 support as soon as I can get around to.
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 19, 2009, 09:12:59 PM
Quote from: Nas on November 18, 2009, 02:38:22 PM
Sorry for the lack of updates and support.
I'll look at RC2 support as soon as I can get around to.

It seems to work fine with the fix for 2.0 RC2 as posted. The changes just need to fixed in the install, then it would be good for 2.0 RC2.

It is a good mod I have used it for a number of years now. I used to know some of the cool hints and tips for it, but lost the website they were posted on.  I hope to rediscover them again!

Thanks again

Title: Re: Google Member Map v1.0 beta
Post by: SgtMic on November 20, 2009, 01:40:32 AM
Made the 2 manual edits described above and the mod works great so far.
Title: Re: Google Member Map v1.0 beta
Post by: peps1 on November 22, 2009, 02:17:33 AM
Have installed the package with now errors showing up in packet manager BUT......
Why do I have
QuoteClick to place a point or click on your point to remove it.
Place your pin as close as you feel comfortable doing so.
twice?????

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.photobucket.com%2Falbums%2Fg146%2Ficecreamterror%2FPicture-1.gif&hash=7d2292898caf21e52b86c69353d1005305ee130d)

And non of my members pins are showing up on the map?  :'(
Title: Re: Google Member Map v1.0 beta
Post by: Redryder on November 28, 2009, 02:27:50 PM
Quote from: peps1 on November 22, 2009, 02:17:33 AM
Have installed the package with now errors showing up in packet manager BUT......
Why do I have
QuoteClick to place a point or click on your point to remove it.
Place your pin as close as you feel comfortable doing so.
twice?????

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.photobucket.com%2Falbums%2Fg146%2Ficecreamterror%2FPicture-1.gif&hash=7d2292898caf21e52b86c69353d1005305ee130d)

And non of my members pins are showing up on the map?  :'(

It looks like you have it installed twice. Did you try to install it a couple of times?

Some of the old code might not have been removed before. You will need to uninstall it and look for old code in the files using the package parser. Here is a link to one that may help you:

http://resourcez.biz/PackageParser/

But before you do that look if it shows like this in the default smf theme. If not then it is your theme template files, if so then look under the default themes template files.

It may take a little time to do this but it should fix the problem of two maps showing.

I think once you get the program removed and reinstalled right it should show the pins.


Title: Re: Google Member Map v1.0 beta
Post by: InsaneMustang on December 12, 2009, 06:06:24 PM
Can anyone confirm / deny that this will work in SMF 1.1.11
Title: Re: Google Member Map v1.0 beta
Post by: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php
Title: Re: Google Member Map v1.0 beta
Post by: GunDude on December 14, 2009, 10:55:45 AM
Quote from: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php

x2... hoping to move forward with an install but don't want to mess things up. Any help would be appreciated.

Title: Re: Google Member Map v1.0 beta
Post by: Redryder on December 17, 2009, 04:16:42 AM
Quote from: GunDude on December 14, 2009, 10:55:45 AM
Quote from: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php

x2... hoping to move forward with an install but don't want to mess things up. Any help would be appreciated.


Quote from: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php

What versions of smf are you using?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on December 23, 2009, 10:25:58 AM
Will this mod be update to RC2 sometime?
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on December 23, 2009, 10:29:03 AM
Yes, around new year it will. Probably between Christmas and New years eve.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on December 23, 2009, 10:33:18 AM
Quote from: Yule Goat on December 23, 2009, 10:29:03 AM
Yes, around new year it will. Probably between Christmas and New years eve.

Very cool.  Thanx.

Nas, is that you?   lol
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on December 23, 2009, 10:34:39 AM
Sure is. :D
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on December 23, 2009, 10:36:32 AM
Quote from: Yule Goat on December 23, 2009, 10:34:39 AM
Sure is. :D

lol..... Happy Holidays dude.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on December 23, 2009, 10:49:34 AM
Happy holidays, BlueDevil. And everyone else :)
Title: Re: Google Member Map v1.0 beta
Post by: GunDude on December 29, 2009, 12:40:49 PM
Quote from: Redryder on December 17, 2009, 04:16:42 AM
Quote from: GunDude on December 14, 2009, 10:55:45 AM
Quote from: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php

x2... hoping to move forward with an install but don't want to mess things up. Any help would be appreciated.


Quote from: InsaneMustang on December 12, 2009, 09:50:10 PM
Tried and it got errors on the modsettings.php and the index.template.php

What versions of smf are you using?

1.1.11
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on January 01, 2010, 11:09:37 AM
Awaiting this mod for 2.0 RC2.  :)
Title: Re: Google Member Map v1.0 beta
Post by: Eclipse16V on January 06, 2010, 02:10:33 AM
New Year
Any news for RC2?
Title: Re: Google Member Map v1.0 beta
Post by: dsanchez on January 11, 2010, 08:29:24 AM
From today I'm getting this error message :(


Template Parse Error!
There was a problem loading the /Themes/default/GoogleMap.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected ']', expecting ',' or ';'


http://curefans.com/index.php?action=googlemap

Any idea of what could be wrong?
Title: Re: Google Member Map v1.0 beta
Post by: coyoteboy on January 11, 2010, 12:56:37 PM
I'm on 1.1.11 and get:
1.     Extract File     ./Sources/GoogleMap.php     
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test failed
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
16.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on January 11, 2010, 01:23:29 PM
This isn't compatible with 2.0 RC2 yet.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on January 16, 2010, 02:11:56 PM
eagerly awaiting the arrival of this to 2.0 RC2 :)
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on January 16, 2010, 11:54:21 PM
Me too!!
Title: Re: Google Member Map v1.0 beta
Post by: Eclipse16V on January 17, 2010, 05:07:13 AM
me too

Have anyone the package how works with RC1.2?
Anyone send me the package at pm but i doesn´t have it.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 17, 2010, 11:15:02 AM
It installs on RC2 just fine but with warnings.

The profile template needs to be reworked as it changed from RC1 and 1.1.x

-When viewing the profile
-When editing the profile

Everything else seems to work just fine.


Ill try later this afternoon to accommodate the map in the profile.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 20, 2010, 05:12:27 AM
Quote from: BlueDevil on January 17, 2010, 11:15:02 AM
It installs on RC2 just fine but with warnings.

The profile template needs to be reworked as it changed from RC1 and 1.1.x

-When viewing the profile
-When editing the profile

Everything else seems to work just fine.


Ill try later this afternoon to accommodate the map in the profile.

I got it working technically on SMF 2 RC2 but it was difficult sorting out the edits in Profile.template.php.  When I did get it working the display is all jumbled, pushing tables around and such.

Using Redryder's edits and deleted my cache, but the profile page is pushed to the side.  I've attached a screenshot to show what I mean. 

Edit: I had to go back to thinking just what the issue could be, and discovered that if I used Opera to copy the provided code this works like a charm, all the table issues I was having went away.  What happened with IE and Chrome was that the copied code had no regard for spaces and such and the code just got all lumped together.  Granted I took out and fixed commented lines and such but it was not as was provided.  Opera came through for me.  There's value in having many different browsers!
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 24, 2010, 02:12:35 AM
So if I understand correctly there is no way to convert my old SMF googlemembermap to this new one?

I figured now that I have this new one installed on my SMF2 sandbox all I needed to do was copy over the lat/long data to the member table.  Will that not work?
Title: Re: Google Member Map v1.0 beta
Post by: el_pablo on January 26, 2010, 11:47:48 PM
Hi,

SMF newbie and Brand new installation (SMF 2.0 RC2) + Google Member Map.

Problem description :
I cannot see where the user adds his pin.  Went under Profile Info, nothing there.  Any idea?  The GMM is enable.

Thanks
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 26, 2010, 11:58:42 PM
Quote from: el_pablo on January 26, 2010, 11:47:48 PM
Hi,

SMF newbie and Brand new installation (SMF 2.0 RC2) + Google Member Map.

Problem description :
I cannot see where the user adds his pin.  Went under Profile Info, nothing there.  Any idea?  The GMM is enable.

Thanks

This mod is not for RC2 as of yet.   Thats why you cant see it in the profiles.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on January 27, 2010, 03:12:34 AM
All of my mods are pending a RC2 update.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 27, 2010, 12:46:59 PM
So far no issues with SMF 2.0 RC2 since what I've reported last.  I'm using a curve based theme as well, so perhaps that tends to help.  I'll report back any issues.  I will be moving it into a production based sited shortly.  So there'll be about 6,000 or so visitors for UAT lol


Title: Re: Google Member Map v1.0 beta
Post by: David Starr on January 28, 2010, 12:42:22 PM

I wanted to try this mod on my site, but I see that several people have posted that it won't work in SMF 1.1.11, which is what I am running.
Has that been addressed yet?  Hope so, as this seems to be what I've been looking for. :)

Title: Re: Google Member Map v1.0 beta
Post by: More-to-life on January 28, 2010, 12:49:33 PM
Any updates on RC2?

Need this mod

Please please please update

*Ill get off my knees now then*
Title: Re: Google Member Map v1.0 beta
Post by: Eclipse16V on January 28, 2010, 04:25:50 PM
Run nice on my SMF 2.0RC2
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on January 28, 2010, 04:43:48 PM
It does?
Ill check it out tomorrow...
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 28, 2010, 04:49:59 PM
Quote from: Eclipse16V on January 28, 2010, 04:25:50 PM
Run nice on my SMF 2.0RC2

Do you mind sharing the profile edits for RC2?
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 28, 2010, 07:16:48 PM
Quote from: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Its stays the same.    I loadeded ti my RC2 and in admin, i didnt have to do anything.   I just need to know on how to edit the profile.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 28, 2010, 07:36:31 PM
Quote from: BlueDevil on January 28, 2010, 07:16:48 PM
Quote from: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Its stays the same.    I loadeded ti my RC2 and in admin, i didnt have to do anything.   I just need to know on how to edit the profile.

Thanks - in RC2 its under Forum Profile, not the ultimate profile.  I found it at the bottom of the page.  You'll have to update the link that's on the member map page to take you there since it doesn't expect to have this mod.

Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 28, 2010, 07:43:21 PM
Quote from: Stigmartyr on January 28, 2010, 07:36:31 PM
Quote from: BlueDevil on January 28, 2010, 07:16:48 PM
Quote from: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Its stays the same.    I loadeded ti my RC2 and in admin, i didnt have to do anything.   I just need to know on how to edit the profile.

Thanks - in RC2 its under Forum Profile, not the ultimate profile.  I found it at the bottom of the page.  You'll have to update the link that's on the member map page to take you there since it doesn't expect to have this mod.



I get that,...but what about when users look at your profile, do they see the map?   The template is not the same like 1.1.x
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 28, 2010, 07:46:45 PM
Quote from: BlueDevil on January 28, 2010, 07:43:21 PM
Quote from: Stigmartyr on January 28, 2010, 07:36:31 PM
Quote from: BlueDevil on January 28, 2010, 07:16:48 PM
Quote from: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Its stays the same.    I loadeded ti my RC2 and in admin, i didnt have to do anything.   I just need to know on how to edit the profile.

Thanks - in RC2 its under Forum Profile, not the ultimate profile.  I found it at the bottom of the page.  You'll have to update the link that's on the member map page to take you there since it doesn't expect to have this mod.



I get that,...but what about when users look at your profile, do they see the map?   The template is not the same like 1.1.x

No there is no map in the Ultimate Profile page itself.  They have to go to the main map to see it...  I guess an option for a display would be nice. 
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 28, 2010, 07:50:04 PM
Quote from: Stigmartyr on January 28, 2010, 07:46:45 PM
Quote from: BlueDevil on January 28, 2010, 07:43:21 PM
Quote from: Stigmartyr on January 28, 2010, 07:36:31 PM
Quote from: BlueDevil on January 28, 2010, 07:16:48 PM
Quote from: Stigmartyr on January 28, 2010, 06:57:16 PM
Does latitude and logitude data stored in previous version of google member map get coverted over when you upgrade to this version?  I want to know how to retain all the valuable member data
Its stays the same.    I loadeded ti my RC2 and in admin, i didnt have to do anything.   I just need to know on how to edit the profile.

Thanks - in RC2 its under Forum Profile, not the ultimate profile.  I found it at the bottom of the page.  You'll have to update the link that's on the member map page to take you there since it doesn't expect to have this mod.



I get that,...but what about when users look at your profile, do they see the map?   The template is not the same like 1.1.x

No there is no map in the Ultimate Profile page itself.  They have to go to the main map to see it...  I guess an option for a display would be nice. 

Umm,  why are we talking about ultimate profile?  I dont use it.             Nevermind.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on January 30, 2010, 06:29:07 PM
Ran into an issue with upgrading the new google map from the old one.  I have well over 500 member pins.  I took my SMF 1.1.x databsae and converted it ever so carefully to SMF 2.0 RC2 and then installed the googlemap beta mod.  It seems to work well with one major flaw:  the member map itself will not display any member pins, although I can successfully pin one on the map from my profile.

Can you tell me why this is?  I have hundreds of member pin data that I want to be migrated over, and though it seems that the data was stored in the member profiles and copied over, it will not display on the main map.

It seems like it knew where my pin was in my forum profile edit page, but wont display anything on the main member map.  I even got a new google map API for my test forum, too.
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on January 31, 2010, 12:11:08 AM
so this mod will show itself on mainpage? is it possible to showit only in a custom page/ url ???

thanks!
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 31, 2010, 12:20:01 AM
Quote from: luismanson on January 31, 2010, 12:11:08 AM
so this mod will show itself on mainpage? is it possible to showit only in a custom page/ url ???

thanks!

It has its own page with a button in the nav bar.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 31, 2010, 12:21:21 AM
Quote from: Stigmartyr on January 30, 2010, 06:29:07 PM
Ran into an issue with upgrading the new google map from the old one.  I have well over 500 member pins.  I took my SMF 1.1.x databsae and converted it ever so carefully to SMF 2.0 RC2 and then installed the googlemap beta mod.  It seems to work well with one major flaw:  the member map itself will not display any member pins, although I can successfully pin one on the map from my profile.

Can you tell me why this is?  I have hundreds of member pin data that I want to be migrated over, and though it seems that the data was stored in the member profiles and copied over, it will not display on the main map.

It seems like it knew where my pin was in my forum profile edit page, but wont display anything on the main member map.  I even got a new google map API for my test forum, too.

Dunno man,  i didnt have to mess with the database.  I used the map in 1.1.11 but now i use RC2

http://www.chevyavalancheclub.com/index.php?action=membermap
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on January 31, 2010, 01:59:54 AM
i made some edits for RC2 but i was not able to see the map in its own page :(
Title: Re: Google Member Map v1.0 beta
Post by: digit on January 31, 2010, 06:56:48 AM
I'd STILL LOVE to see a variation of this mod where pins can be placed within posts!   8) (for example -  if we want to show the location of our favorite restaurant)
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on January 31, 2010, 12:08:51 PM
Quote from: BlueDevil on January 31, 2010, 12:21:21 AM
Quote from: Stigmartyr on January 30, 2010, 06:29:07 PM
Ran into an issue with upgrading the new google map from the old one.  I have well over 500 member pins.  I took my SMF 1.1.x databsae and converted it ever so carefully to SMF 2.0 RC2 and then installed the googlemap beta mod.  It seems to work well with one major flaw:  the member map itself will not display any member pins, although I can successfully pin one on the map from my profile.

Can you tell me why this is?  I have hundreds of member pin data that I want to be migrated over, and though it seems that the data was stored in the member profiles and copied over, it will not display on the main map.

It seems like it knew where my pin was in my forum profile edit page, but wont display anything on the main member map.  I even got a new google map API for my test forum, too.

Dunno man,  i didnt have to mess with the database.  I used the map in 1.1.11 but now i use RC2

http://www.chevyavalancheclub.com/index.php?action=membermap


Does it work in a user's profile?   I installed the mod, then attempted to edit profile.template, but haven't been able to make it work in the profile.  So....the main map page works fine, but no way to add pins if it doesn't work in the profile.    :-\

If your profile section works properly in RC2....how did you do it...or would you mind sharing your profile.template file?   :)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on January 31, 2010, 12:18:12 PM
Quote from: lc62003 on January 31, 2010, 12:08:51 PM
Quote from: BlueDevil on January 31, 2010, 12:21:21 AM
Quote from: Stigmartyr on January 30, 2010, 06:29:07 PM
Ran into an issue with upgrading the new google map from the old one.  I have well over 500 member pins.  I took my SMF 1.1.x databsae and converted it ever so carefully to SMF 2.0 RC2 and then installed the googlemap beta mod.  It seems to work well with one major flaw:  the member map itself will not display any member pins, although I can successfully pin one on the map from my profile.

Can you tell me why this is?  I have hundreds of member pin data that I want to be migrated over, and though it seems that the data was stored in the member profiles and copied over, it will not display on the main map.

It seems like it knew where my pin was in my forum profile edit page, but wont display anything on the main member map.  I even got a new google map API for my test forum, too.

Dunno man,  i didnt have to mess with the database.  I used the map in 1.1.11 but now i use RC2

http://www.chevyavalancheclub.com/index.php?action=membermap


Does it work in a user's profile?   I installed the mod, then attempted to edit profile.template, but haven't been able to make it work in the profile.  So....the main map page works fine, but no way to add pins if it doesn't work in the profile.    :-\

If your profile section works properly in RC2....how did you do it...or would you mind sharing your profile.template file?   :)

So far i edited the profile to fit the map for viewing. I got it right beneath the signature.   Im still trying to figure out on placing the map in the edit side of the profile. 

Both codes for the map need the removal of a few code lines to make it fit.  If left alone, it breaks the page.  I removed the part for the tables at the beginning.

Trial and error ;)   The profile.template.php is a mile long.
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on January 31, 2010, 02:52:16 PM
Perhaps I could propose this:

Can you post your edits in a similar fashion to parsing the edits performed by the mod (meaning find: code and add after/replace: code)  If there are other people all at the same point in the puzzle everyone can share their info.  Someone in the ranks will fix one bug at a time until they've all been squashed.   ;)
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 01, 2010, 06:37:55 PM
Update: whatever issue I was having is gone.  I was experiencing the issue on my pre-production website I was using to make changes and test before applying them to my public site.  When the databse was applied to the public site, it was working there without issues.  The only thing I can think of, was the Pre-prod map API hadn't propagated yet and it wasn't recognizing the site?

@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 01, 2010, 07:18:23 PM
Quote from: Stigmartyr on February 01, 2010, 06:37:55 PM
@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.

Did you get it to work in the edit side in profiles? 
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on February 01, 2010, 09:30:26 PM
No..as of yet.  The truth is I haven't had the opportunity to pursue it over the past couple of days.  But I think I understand what you guys are saying....and I'll give it a shot.  Thanks!   :)
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 02, 2010, 05:35:36 AM
Quote from: BlueDevil on February 01, 2010, 07:18:23 PM
Quote from: Stigmartyr on February 01, 2010, 06:37:55 PM
@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.

Did you get it to work in the edit side in profiles? 

If you mean, can members edit/place a pin from forum profile, then yes :)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 02, 2010, 11:20:19 AM
Quote from: Stigmartyr on February 02, 2010, 05:35:36 AM
Quote from: BlueDevil on February 01, 2010, 07:18:23 PM
Quote from: Stigmartyr on February 01, 2010, 06:37:55 PM
@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.

Did you get it to work in the edit side in profiles? 

If you mean, can members edit/place a pin from forum profile, then yes :)

Thats where im stuck.   Do you mind sharing after what string of codes you placed it?
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 02, 2010, 11:47:25 AM
... brandnew installed SMF 2.0 RC2 and directly after that the MapMod ...

It realy don't work. Ok, the Map is there and also the Menuentry, but no entry for the User in both the standard themes and also no entrys on the Map himselfe. It can't work. The newer SMF have'nt the Profile.template.php where much code must be in...

That's the fact at my side ever...

Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 02, 2010, 11:51:42 AM
Quote from: M*I*B on February 02, 2010, 11:47:25 AM
... brandnew installed SMF 2.0 RC2 and directly after that the MapMod ...

It realy don't work. Ok, the Map is there and also the Menuentry, but no entry for the User in both the standard themes and also no entrys on the Map himselfe.

That's the fact at my side ever...




The map is not compatible with RC2 yet per developer.  ......but,thats what we're discussing on here on how to make it work.
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on February 02, 2010, 12:02:41 PM
Worked on this some last night.  The best I can get is a blank area where the map should be in the profile, but no map and no icons.   :-\  Anyone have ideas?   :)  FWIW I can follow what the code is doing no prob, but I'm no coder either.    :-\ ;D
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 02, 2010, 12:21:25 PM
Quote from: BlueDevil on February 02, 2010, 11:51:42 AM
The map is not compatible with RC2 yet per developer.  ......but,thats what we're discussing on here on how to make it work.
Yep, I know but I wonder that some folkz obviously/allegedly have a Profile.template.php thatrealy not exist in a new installation ::)
This thread now have 100 of 100 entrys and I follow up this thread since over a year but it looks like that nobody realy have an idea or (much better) a patched MOD for the RC1/RC2. It also looks like that the original developer have no more time/interest to work on the MOD.
At the Moment I have two SMF2 running productive and both realy need this great MOD but I don't see a light at the end of the dark tunnel...
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 02, 2010, 08:52:04 PM
Quote from: BlueDevil on February 02, 2010, 11:20:19 AM
Quote from: Stigmartyr on February 02, 2010, 05:35:36 AM
Quote from: BlueDevil on February 01, 2010, 07:18:23 PM
Quote from: Stigmartyr on February 01, 2010, 06:37:55 PM
@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.

Did you get it to work in the edit side in profiles? 

If you mean, can members edit/place a pin from forum profile, then yes :)

Thats where im stuck.   Do you mind sharing after what string of codes you placed it?

I followed the directions for making this work with RC2 by using the edits/code shown in this post: http://www.simplemachines.org/community/index.php?topic=210708.msg2363078#msg2363078

Bear in mind though, that I am using a curved based theme, which has minimal custom theme files, maybe some similar edits would be required for your own theme, I don't know.

I found that when I copied the code using IE or Chrome that for some reason, the code was not getting copied over properly, it must be really sensitive to specific line breaks or spaces, I don't know, but I tried copying the code using my Opera browser, and it copied it as it was written, without compressing all the code together.  When I did the edits using Opera the code got pasted clean, and it started working just fine.

Where you find an edit in Themes/default you will want to make sure that your custom theme does or does not have a similar file, as you may want to edit those files just as you would for default.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 02, 2010, 10:40:28 PM
Quote from: Stigmartyr on February 02, 2010, 08:52:04 PM
Quote from: BlueDevil on February 02, 2010, 11:20:19 AM
Quote from: Stigmartyr on February 02, 2010, 05:35:36 AM
Quote from: BlueDevil on February 01, 2010, 07:18:23 PM
Quote from: Stigmartyr on February 01, 2010, 06:37:55 PM
@ lc6 - I am using a curve based theme for SMF 2.0 RC2, and it uses the default theme files.  I only have to make a small change to shrink the map size in profiles so there wasn't a scroll bar, but otherwise I made no specific theme changes, it just worked.

Did you get it to work in the edit side in profiles? 

If you mean, can members edit/place a pin from forum profile, then yes :)

Thats where im stuck.   Do you mind sharing after what string of codes you placed it?

I followed the directions for making this work with RC2 by using the edits/code shown in this post: http://www.simplemachines.org/community/index.php?topic=210708.msg2363078#msg2363078

Bear in mind though, that I am using a curved based theme, which has minimal custom theme files, maybe some similar edits would be required for your own theme, I don't know.

I found that when I copied the code using IE or Chrome that for some reason, the code was not getting copied over properly, it must be really sensitive to specific line breaks or spaces, I don't know, but I tried copying the code using my Opera browser, and it copied it as it was written, without compressing all the code together.  When I did the edits using Opera the code got pasted clean, and it started working just fine.

Where you find an edit in Themes/default you will want to make sure that your custom theme does or does not have a similar file, as you may want to edit those files just as you would for default.

Cool, thanx.   My custom theme doent have a profile.template so im good there.  It uses it from default.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 03, 2010, 03:14:47 AM
Quote from: BlueDevil on February 02, 2010, 10:40:28 PM

Cool, thanx.   My custom theme doent have a profile.template so im good there.  It uses it from default.

Any luck getting it going?
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 04, 2010, 06:55:11 AM
I have installed with the code on page 52 (i think) and the map will not show in the user profile, just a big gap.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 04, 2010, 06:58:05 AM
Quote from: HorTs on February 04, 2010, 06:55:11 AM
I have installed with the code on page 52 (i think) and the map will not show in the user profile, just a big gap.

Couple things you may want to double check:

1) Did you clear the file cache?

2) Did it extract all the files like it should have?  Also if you're using a custom theme, that theme needs to be edited also.

I sometimes notice that package manager doesn't extract all the files consistently, but might just be me.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 04, 2010, 07:01:24 AM
Do you mean the cache on my local PC?
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 04, 2010, 07:02:53 AM
Quote from: HorTs on February 04, 2010, 07:01:24 AM
Do you mean the cache on my local PC?

Nope - assuming you're running SMF 2 theres a file cache under Admin > Maintenance

There should be a button or link to delete the site's cache.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 04, 2010, 07:13:13 AM
I have cleared cache but no luck. Shame, so near yet so far.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 04, 2010, 07:17:27 AM
Quote from: HorTs on February 04, 2010, 07:13:13 AM
I have cleared cache but no luck. Shame, so near yet so far.

And you also checked to see that the files were extracted as they should have been.  I usually go over the mod using the package parser to see what theme edits are done, and if it should be copying files to default/Themes/ then I'll make sure they all got extracted and if my custom theme has a similar file to default I'll make sure it's been edited too.

Also very important for me: when I copied the code from pg. 52 with IE8 or Chrome I notice the code copied to my buffer was all squeezed together.  I had to copy it using Opera browser.
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on February 04, 2010, 08:52:18 AM
This may be the wrong place to ask this question.  It's mainly intended to inquire of another way of approaching the issue....

But would it be possible to place some code in a php block for those who use portals (like Simple Portal), and have it visible only in the profile?   :)  Then the editing map would appear within the block, and no editing required in the forum files.  Maybe?   :)
Title: Re: Google Member Map v1.0 beta
Post by: shaiss on February 04, 2010, 03:35:50 PM
Hopefully this doesn't get buried.
I've setup the mod and everything works except the admin side.  On the Features and options there is no tab for the member map, theres a space for it, but its blank.
If you manage to get to the settings the text boxes are there, but the lables are blank.

I've run the tough the parse for 1.1.11 manual setup and verified everything, any ideas?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 04, 2010, 03:42:05 PM
You didnt add the language strings in Themes/default/languages/ModSettings.english.php

$txt['googleMapsEnable'] = 'Enable the Google Member Map';
$txt['googleMapsEnableLegend'] = 'Show a Pin Legend';
$txt['googleSidebar'] = 'Where to show sidebar';
$txt['googleMapsKey'] = 'The key from the Google Maps API Page';
$txt['googleMapsPinGender'] = 'Should the pins reflect users gender?';
$txt['KMLoutput_enable'] = 'Should the compressed KML output be allowed? (KML is a file that is downloadable on the Google Map page that displays all the member pins inside Google Earth)';
$txt['googleMapsPinNumber'] = 'Number of max pins to show on map';
$txt['googleMapsType'] = 'The map type to show';
$txt['googleMapsDefaultLat'] = 'The default Latitude';
$txt['googleMapsDefaultLong'] = 'The default Longitude';
$txt['googleMapsDefaultZoom'] = 'The defualt Zoom';
$txt['googleMapsEnableClusterer'] = 'Enable Pin Clustering';
$txt['googleMapsMinMarkerCluster'] = 'Minimum Pins Per Cluster';
$txt['googleMapsMaxVisMarker'] = 'Maximum Visable Pins On Map';
$txt['googleMapsMaxNumClusters'] = 'Max Number of Clusters';
$txt['googleMapsMaxLinesCluster'] = 'Max Number of lines in Cluster Info Box';
$txt['googleMapFO'] = 'Member Map'


before the ?> at the end of the file.
Title: Re: Google Member Map v1.0 beta
Post by: shaiss on February 04, 2010, 03:44:57 PM
It's there:
http://pastie.org/809913
Line 85-101
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on February 04, 2010, 03:58:39 PM
Quote from: shaiss on February 04, 2010, 03:35:50 PM
Hopefully this doesn't get buried.
I've setup the mod and everything works except the admin side.  On the Features and options there is no tab for the member map, theres a space for it, but its blank.
If you manage to get to the settings the text boxes are there, but the lables are blank.

I've run the tough the parse for 1.1.11 manual setup and verified everything, any ideas?

Yes, I get this for the simpleSEF and a few other mods, and I run 2.0RC2!
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 04, 2010, 04:46:49 PM
Quote from: Stigmartyr on February 03, 2010, 03:14:47 AM
Quote from: BlueDevil on February 02, 2010, 10:40:28 PM

Cool, thanx.   My custom theme doent have a profile.template so im good there.  It uses it from default.

Any luck getting it going?

Ooops, yes i did.    I cant believe i missed that post.  Usually i read this thread.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 04, 2010, 06:37:18 PM
Quote from: shaiss on February 04, 2010, 03:35:50 PM
Hopefully this doesn't get buried.
I've setup the mod and everything works except the admin side.  On the Features and options there is no tab for the member map, theres a space for it, but its blank.
If you manage to get to the settings the text boxes are there, but the lables are blank.

I've run the tough the parse for 1.1.11 manual setup and verified everything, any ideas?

Well if you're not using SMF2 then I wouldn't blame it on the file cache.  Did you make sure that all the edits were made to the themes/default language files?  You said you went through it, but Im just asking cause that appears to be what the issue is.  Also make sure that any files that were suppossed to be extracted to the site, indeed got copied there.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 04, 2010, 08:47:14 PM
either you are not running your board in English (english utf-8 is different from english) or your custom theme has it's own modifications.english.php (and you would have to manually add the language strings)
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on February 10, 2010, 11:46:55 AM
Thanks to everyone who are trying to update this mod to SMF 2.0 RC2. If you get something done, feel free to send it to me and I'll either upload it here or transfer the mod into your ownership.

I have marked this modification as Archived for now, as I don't have the time or interest to actively support or develop it on this very moment.
Once SimpleDesk and my other mods and projects come further along, I will update this modification for the latest version and start to support it again, unless someone else wishes to.

Sorry for the inconvenience.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 10, 2010, 11:55:42 AM
That's a real shame. I hope someone will take this over.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 10, 2010, 02:11:13 PM
I got it working in my RC2 manually..... i can go ahead and pack it for RC2 sometime.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on February 10, 2010, 02:32:02 PM
BlueDevil: That'd be great. I really want to see someone supporting this mod, as it is a great piece of work.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 10, 2010, 02:35:26 PM
Quote from: Nas on February 10, 2010, 02:32:02 PM
BlueDevil: That'd be great. I really want to see someone supporting this mod, as it is a great piece of work.

Im converting it right now for RC2.  Almost done...and testing.

The thing is,....  i dont know anything about 1.1.x series event tho' i do have a copy for testing purposes.

lol..
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 10, 2010, 02:56:31 PM
Ok i packed it and loaded without errors to RC2 ;)

Just working some minor stuff in the readme file.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on February 10, 2010, 03:20:44 PM
Thanks. If you post it here/send it to me via PM I will look at it tomorrow, and edit the mod settings to make you the owner. :)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 10, 2010, 04:48:27 PM
Oooops, i didnt know you posted.  Must be cuz i had 10 browsers opened :P


Here it is for RC2 attached.


Demo: http://www.bluedevilcustoms.com/index.php?action=googlemap
Title: Re: Google Member Map v1.0 beta
Post by: More-to-life on February 10, 2010, 06:10:15 PM
You've an old man very happy

Thank you ;D
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 10, 2010, 06:11:53 PM
Quote from: welshbikers on February 10, 2010, 06:10:15 PM
You've an old man very happy

Thank you ;D

lol....glad you verified it works.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 05:06:34 AM
For me it still only leaves a blank space in the users profile where the map should be. Any ideas?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 09:50:15 AM
Quote from: HorTs on February 11, 2010, 05:06:34 AM
For me it still only leaves a blank space in the users profile where the map should be. Any ideas?

Do you see the map at all in the profile?  Did you get the key from google maps?
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 10:06:43 AM
In the profile there is no map at all, just a map sized space. In the menu item the map is present.

I have aquired and entered an API key.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 10:15:51 AM
Quote from: HorTs on February 11, 2010, 10:06:43 AM
In the profile there is no map at all, just a map sized space. In the menu item the map is present.

I have aquired and entered an API key.

Did you pinned yourself in the map?  Did you "checked" membergroups in permissions?

I am moving the map at the moment to a lower position right above the signature......but anyways, show should be able to see the map regardless where it is in the profile.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 10:28:50 AM
Updated is attached for RC2 ONLY!

I repositioned the map to show right above the signature in members profiles.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 10:34:29 AM
I can't place myself on the map because I can't see the map.

All permissions are checked.

I can see this text - Click to place a point or click on your point to remove it.
Place your pin as close as you feel comfortable doing so.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 10:38:15 AM
Quote from: HorTs on February 11, 2010, 10:34:29 AM
I can't place myself on the map because I can't see the map.

All permissions are checked.

I can see this text - Click to place a point or click on your point to remove it.
Place your pin as close as you feel comfortable doing so.

do you have a link to the map?
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 10:48:45 AM
Sorry, what do you mean by that?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 10:50:14 AM
Quote from: HorTs on February 11, 2010, 10:48:45 AM
Sorry, what do you mean by that?

a link to your website.  You can PM me if you dont want to post it here.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 11:26:49 AM
http://www.thelatebay.com
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 11:33:29 AM
Quote from: HorTs on February 11, 2010, 11:26:49 AM
http://www.thelatebay.com

Oh yeah, i remember seeing your website from the showcase, very nice.

...but i didnt see the google map.  Is it installed?
Title: Re: Google Member Map v1.0 beta
Post by: chadon on February 11, 2010, 03:04:50 PM
I installed your version of the map BlueDevil and everything works perfectly. Thank you very much for sharing your work. ;)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 03:11:23 PM
Quote from: chadon on February 11, 2010, 03:04:50 PM
I installed your version of the map BlueDevil and everything works perfectly. Thank you very much for sharing your work. ;)

Youre most welcome.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 11, 2010, 03:12:23 PM
Wonderful work Bluedevil. Had to uninstall Ultimate Profile which won't show the map and also conflit with iPhone theme. Thanks for sharing and keeping this mod alive.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 03:16:41 PM
Quote from: Dismal Shadow on February 11, 2010, 03:12:23 PM
Wonderful work Bluedevil. Had to uninstall Ultimate Profile which won't show the map and also conflit with iPhone theme. Thanks for sharing and keeping this mod alive.

This is one of my favorite mods, i never thought of converting it until NAS wanted to take a break.   Since, i've converted a few mods.


On that note,  am i worthy of putting "On Hiatus" above my avatar?  :)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 03:18:22 PM
Quote from: Dismal Shadow on February 11, 2010, 03:12:23 PM
Wonderful work Bluedevil. Had to uninstall Ultimate Profile which won't show the map and also conflit with iPhone theme. Thanks for sharing and keeping this mod alive.

I used UP in 1.1.x series with membermap.  On rc2, the table needs to be removed from the map.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 11, 2010, 04:52:54 PM
Quote from: BlueDevil on February 11, 2010, 11:33:29 AM
Quote from: HorTs on February 11, 2010, 11:26:49 AM
http://www.thelatebay.com

Oh yeah, i remember seeing your website from the showcase, very nice.

...but i didnt see the google map.  Is it installed?

Yup, def installed.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 11, 2010, 04:57:58 PM
Quote from: HorTs on February 11, 2010, 04:52:54 PM
Quote from: BlueDevil on February 11, 2010, 11:33:29 AM
Quote from: HorTs on February 11, 2010, 11:26:49 AM
http://www.thelatebay.com

Oh yeah, i remember seeing your website from the showcase, very nice.

...but i didnt see the google map.  Is it installed?

Yup, def installed.

I cant see the tab in the navigational bar as a guest.   
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on February 11, 2010, 05:20:58 PM
I will download this tomorrow, as I don't have school because of pres' day!
Title: Re: Google Member Map v1.0 beta
Post by: Snogmarr on February 11, 2010, 11:28:40 PM
Wonder if I can ask a quick question........
I got everything working except when I clicked on the map to get my pin, it took me to my profile and there was nothing there,,,, so I checked the edits and they were missing some code,,,  and as suggested I took up UP out so I could get the map on the profile page.

I added the missing code and now get the following

Parse error: syntax error, unexpected $end in / Themes/default/Profile.template.php on line 3173
I was a nats wisker away at 10pm and its now 4 20 am and I am stumped.
I cannot see what I have done wrong?
Any advice would be welcome!

Btw

What a fantastic job you have done on this it is amazing.

and you are exceptionally clever

Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:05:04 AM
Wow thats a lot of mods in there!  :P


Try this..
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 03:41:11 AM
Quote from: BlueDevil on February 11, 2010, 04:57:58 PM
Quote from: HorTs on February 11, 2010, 04:52:54 PM
Quote from: BlueDevil on February 11, 2010, 11:33:29 AM
Quote from: HorTs on February 11, 2010, 11:26:49 AM
http://www.thelatebay.com

Oh yeah, i remember seeing your website from the showcase, very nice.

...but i didnt see the google map.  Is it installed?

Yup, def installed.

I cant see the tab in the navigational bar as a guest.   

Sorry, I only had it set for members. It should be available to guests now.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 12, 2010, 08:39:07 AM
sweet installation.

Clean install and it's working nicely, even kept all my old users' pins.
Title: Re: Google Member Map v1.0 beta
Post by: Snogmarr on February 12, 2010, 08:48:45 AM
Top Notch

can't thank you enough!
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 10:57:21 AM
Thanx guys ;)



@HorTs,   do you mind posting your profiletemplate.php so i can take a look?
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 11:19:08 AM
Of course not - I appreciate your efforts.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 11:49:55 AM
@HoRts,


Lets try this one...
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 11:55:24 AM
I've up'd it but still not showing :(
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 12, 2010, 11:59:00 AM
on SMF 2.0, you will have to clear your template cache...
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.


Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 12:07:56 PM
Quote from: HorTs on February 12, 2010, 11:55:24 AM
I've up'd it but still not showing :(

I have cleared the cache.
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 12, 2010, 12:09:23 PM
Dismal,

Not sure what you are seeing, but that looks COMPLETELY different from mine...
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:16:36 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




I bet is that facebook field.   I dont use that mod so i dont have that gap.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:17:50 PM
Quote from: HorTs on February 12, 2010, 11:55:24 AM
I've up'd it but still not showing :(

Im still trying to figure out why is not showing.   I joined your website i saw its blank.

What mods do you have installed that are profile related?
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 12, 2010, 12:33:44 PM
Quote from: Kindred on February 12, 2010, 12:09:23 PM
Dismal,

Not sure what you are seeing, but that looks COMPLETELY different from mine...
I have the same as your...that is if you edit the profile.

Just go to the profile without editing it it will show the same image as mine.  ;)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:36:16 PM
Quote from: HorTs on February 12, 2010, 12:07:56 PM
Quote from: HorTs on February 12, 2010, 11:55:24 AM
I've up'd it but still not showing :(

I have cleared the cache.

Just for giggles,... turn OFF the "Site sponsors" block on the right and try again. 

It just a thought.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:39:35 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




Oh i think you have the old one.   I repositioned the map in a new Zip on page 56 reply #1100
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 12, 2010, 12:50:48 PM
Quote from: BlueDevil on February 12, 2010, 12:39:35 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




Oh i think you have the old one.   I repositioned the map in a new Zip on page 56 reply #1100

No...I downloaded the new one on your post the day you released....or maybe you replace the zip that is.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 12:54:44 PM
Quote from: Dismal Shadow on February 12, 2010, 12:50:48 PM
Quote from: BlueDevil on February 12, 2010, 12:39:35 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




Oh i think you have the old one.   I repositioned the map in a new Zip on page 56 reply #1100

No...I downloaded the new one on your post the day you released....or maybe you replace the zip that is.

I believe i replaced it.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 12, 2010, 01:01:34 PM
Quote from: BlueDevil on February 12, 2010, 12:54:44 PM
Quote from: Dismal Shadow on February 12, 2010, 12:50:48 PM
Quote from: BlueDevil on February 12, 2010, 12:39:35 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




Oh i think you have the old one.   I repositioned the map in a new Zip on page 56 reply #1100

No...I downloaded the new one on your post the day you released....or maybe you replace the zip that is.

I believe i replaced it.

Oh yeah? I will download it again....if you replaced it...it should have say "last modified"  :P
So this fix the issue with the space no?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 01:04:00 PM
Quote from: Dismal Shadow on February 12, 2010, 01:01:34 PM
Quote from: BlueDevil on February 12, 2010, 12:54:44 PM
Quote from: Dismal Shadow on February 12, 2010, 12:50:48 PM
Quote from: BlueDevil on February 12, 2010, 12:39:35 PM
Quote from: Dismal Shadow on February 12, 2010, 11:59:13 AM
BlueDevil...In the profile area the map left a big space.




Oh i think you have the old one.   I repositioned the map in a new Zip on page 56 reply #1100

No...I downloaded the new one on your post the day you released....or maybe you replace the zip that is.

I believe i replaced it.

Oh yeah? I will download it again....if you replaced it...it should have say "last modified"  :P
So this fix the issue with the space no?

Yes it should.  Before, the map appeared between the custom profile fields.  Now it doesnt. 

...and yes, i also noticed that it didnt add "last modified" in another post i made. 
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 12, 2010, 01:14:18 PM
Si, si, si. That fixed it. Great job. I must have used your old zip in #1093 post.

I am a happy man now. Thanks.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 01:16:16 PM
Quote from: Dismal Shadow on February 12, 2010, 01:14:18 PM
Si, si, si. That fixed it. Great job. I must have used your old zip in #1093 post.

I am a happy man now. Thanks.

lol..... very cool.   

Ill keep on top of this thread as the RC2 mod is not loaded in the mod site.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 01:21:53 PM
Quote from: BlueDevil on February 12, 2010, 12:36:16 PM
Quote from: HorTs on February 12, 2010, 12:07:56 PM
Quote from: HorTs on February 12, 2010, 11:55:24 AM
I've up'd it but still not showing :(

I have cleared the cache.

Just for giggles,... turn OFF the "Site sponsors" block on the right and try again. 

It just a thought.

I've disabled the portal, and the map shows :), but I really need the portal :(.
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on February 12, 2010, 01:24:49 PM
is there any issue with prettyURLs ? i can set my location on profile, but im not able to see the map as user or admin clicking in the tab button....

if i go to http://www.foromilestone.com.ar/index.php?action=googlemap;sa=.js i see a login prompt, but no javascript :S

http://www.foromilestone.com.ar
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 01:25:17 PM
Quote from: HorTs on February 12, 2010, 01:21:53 PM
I've disabled the portal, and the map shows :), but I really need the portal :(.

Thats a start.  We now know the map works.  I suggest that you turn the portal back ON, and turn OFF the blocks one by one to find the culprit.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 01:28:10 PM
Quote from: luismanson on February 12, 2010, 01:24:49 PM
is there any issue with prettyURLs ? i can set my location on profile, but im not able to see the map as user or admin clicking in the tab button....

if i go to http://www.foromilestone.com.ar/index.php?action=googlemap;sa=.js i see a login prompt, but no javascript :S

http://www.foromilestone.com.ar

Attached is the latest map for RC2,    i really cant say if pretty URls is an issue as i dont use the mod.
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on February 12, 2010, 01:30:39 PM
So, what I've done as a work around is to hide the portal on the profile page.

Thanks for the help.
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on February 12, 2010, 01:35:52 PM
Quote from: BlueDevil on February 12, 2010, 01:28:10 PM
Quote from: luismanson on February 12, 2010, 01:24:49 PM
is there any issue with prettyURLs ? i can set my location on profile, but im not able to see the map as user or admin clicking in the tab button....

if i go to http://www.foromilestone.com.ar/index.php?action=googlemap;sa=.js i see a login prompt, but no javascript :S

http://www.foromilestone.com.ar

Attached is the latest map for RC2,    i really cant say if pretty URls is an issue as i dont use the mod.

thanks! but is this the same as the others you attached? because im using your updated version

thanks 4 the help and upgrading this mod!
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 01:37:27 PM
Quote from: luismanson on February 12, 2010, 01:35:52 PM

thanks! but is this the same as the others you attached? because im using your updated version

thanks 4 the help and upgrading this mod!

Yes.  also know, i couldnt view your map as a guest in the link you provided.
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on February 12, 2010, 02:06:23 PM
try now, i had guest permission disabled
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 02:10:12 PM
Quote from: luismanson on February 12, 2010, 02:06:23 PM
try now, i had guest permission disabled

Whats wrong with it?  I see its working.
Title: Re: Google Member Map v1.0 beta
Post by: luismanson on February 12, 2010, 02:26:46 PM
it has to be magic...it wasnt working :|

thanks and sorry
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 12, 2010, 02:28:39 PM
Quote from: luismanson on February 12, 2010, 02:26:46 PM
it has to be magic...it wasnt working :|

thanks and sorry

No problem man.
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on February 16, 2010, 11:07:51 AM
in the next day i translate it into german und upload the file. so you can integrate it into the current version.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 16, 2010, 11:08:32 AM
Quote from: Kellerassel on February 16, 2010, 11:07:51 AM
in the next day i translate it into german und upload the file. so you can integrate it into the current version.

That'll be cool.
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 16, 2010, 11:49:02 AM
... at 1st MANY THANX to all hold GMM alive and support it for RC2  ;D

@Kellerassel: Wenn du Hilfe beim Übersetzen brauchst, sach Bescheid...

Now I have uninstalled the not working original, cleared the cache- Folder and installed the new one.

I can set a needle and I also can see it via TopMenu. But if I try to go to the settings inside admincenter I get a blank page and an serverside php- Error:

[Tue Feb 16 17:34:02 2010] [error] [client 188.96.227.83] PHP Fatal error:  Cannot redeclare modifygooglemapsettings() (previously declared in [pfad]\\Sources\\ManageSettings.php:2025) in [pfad]\\Sources\\ManageSettings.php on line 2141, referer: http://bikerhilfe.de/index.php?action=admin;area=packages;sa=options;d7967f9e3f28=73dbe022793094bc2a77ee3a16eacfc1

At 2025 is...
global $txt, $scripturl, $context, $settings, $sc;

at 2141 is the last } in that file. I belive there is one to much or less but I have'nt find it yet


Any idea?
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on February 16, 2010, 12:04:18 PM
@M*I*B habe es jetzt übersetzt ;) is ja nich viel. kannst ja noch nach verbeserungen schauen

translated version in attachment
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 16, 2010, 12:11:53 PM
... da hast du aber ne Menge übersehen ;) Oder hast du zufällig ne Vorversion gesendet?

Komma über einen der Messis, wenn du hast...
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on February 16, 2010, 12:28:11 PM
ich habe die version genommen, die im installationspacket war.

an idea to the developers: is it possible to use v3 of the google api, because it doesn't need and key

link  http://code.google.com/intl/de-DE/apis/maps/documentation/v3/basics.html
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 16, 2010, 02:22:14 PM
... ok, I grab your version and overwork it a little. I hope that's work right and name it 20e2 (for "edit") to prevent trouble with same namend filez.

I have insert the missing UTF8 for english and german and also add german.
I also have change the strings for searching to a language- independent version and hope that works ... :o
Title: Re: Google Member Map v1.0 beta
Post by: Kellerassel on February 18, 2010, 10:00:22 AM
funzt nich. wenn ich es installieren will kommt bloß ein weißes fenster und das war es dann

it doesnt work, i get only a white window -.-
Title: Re: Google Member Map v1.0 beta
Post by: M*I*B on February 18, 2010, 10:13:44 AM
... hmm ... at my side it work's fine  ??? Any idea what's wrong? I have used "Altona XMLspy" for editing...
Title: Re: Google Member Map v1.0 beta
Post by: C4G-TK on February 21, 2010, 02:05:50 AM
Had to clear my cache in order for me to see the text strings, but it worked on RC2 w/ just a few manual edits due to other Mods conflicting.  Great job!  Thanks for the update!
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 22, 2010, 12:33:25 AM
8) Can we use this mod, or a PHP script derived from it to show specified membergroups or maybe even member ID's?

I'd like to make a special map
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on February 22, 2010, 01:26:00 AM
Installed one blueDevil uploaded for 2.0RC2, error in profile.template.php!
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 22, 2010, 07:44:07 AM
you must have another profile mod installed....   because it installed cleanly on my forum.

All that he "failure" means is that you will have to manually apply the changes to that file.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 09:38:12 AM
Quote from: Kcmartz on February 22, 2010, 01:26:00 AM
Installed one blueDevil uploaded for 2.0RC2, error in profile.template.php!

Like Kindred said.

If you have other profile mods installed, chances are, google mod will fail.   In that case, manually is the way to go.


There are only 2 instances in the profile.template.php.
Title: Re: Google Member Map v1.0 beta
Post by: Marcus Forsberg on February 22, 2010, 10:02:33 AM
This mod has been taken over by BlueDevil who will most likely be around to support it more than I have. :)
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 10:18:31 AM
Devil, I am trying to figure why there's a big gap in the profile in the bottom. The google map look nicely done at top but at the bottom there's a gap. Uninstalling will return it to normal. So it's this mod.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 10:26:11 AM
DS, i believe that was corrected earlier.  Did you dload the latest one?
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on February 22, 2010, 10:31:44 AM
Nope, no other profile mod!
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 10:34:20 AM
Quote from: Kcmartz on February 22, 2010, 10:31:44 AM
Nope, no other profile mod!
When installing the mod and error occurs,  view on the left what edits needs to be done and get a snapshot of that pop up window.  Post it here.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 10:37:58 AM
Quote from: BlueDevil on February 22, 2010, 10:26:11 AM
DS, i believe that was corrected earlier.  Did you dload the latest one?
Yes, the one in your post #1142. The gap is still there. Even the one in the mod site. Same.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 10:42:29 AM
Quote from: Dismal Shadow on February 22, 2010, 10:37:58 AM
Quote from: BlueDevil on February 22, 2010, 10:26:11 AM
DS, i believe that was corrected earlier.  Did you dload the latest one?
Yes, the one in your post #1142. The gap is still there. Even the one in the mod site. Same.

Ok....im looking.
Title: Re: Google Member Map v1.0 beta
Post by: oleson92 on February 22, 2010, 10:54:28 AM
Quote from: Kcmartz on February 22, 2010, 10:31:44 AM
Nope, no other profile mod!

I am having the same problem. I looked in the code for the lookup and its not in Profile.template.php. I then downloaded the latest SMF build and that to doesn't have  // Now print the second column where the members avatar/text is shown.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 10:57:39 AM
Quote from: BlueDevil on February 22, 2010, 10:42:29 AM
Quote from: Dismal Shadow on February 22, 2010, 10:37:58 AM
Quote from: BlueDevil on February 22, 2010, 10:26:11 AM
DS, i believe that was corrected earlier.  Did you dload the latest one?
Yes, the one in your post #1142. The gap is still there. Even the one in the mod site. Same.

Ok....im looking.
I have enable it to guests so you can view the source.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 10:58:47 AM
Quote from: oleson92 on February 22, 2010, 10:54:28 AM
Quote from: Kcmartz on February 22, 2010, 10:31:44 AM
Nope, no other profile mod!

I am having the same problem. I looked in the code for the lookup and its not in Profile.template.php. I then downloaded the latest SMF build and that to doesn't have  // Now print the second column where the members avatar/text is shown.

This part:
// Now print the second column where the members avatar/text is shown.

Is in 1.1.x series.  Not RC2
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 10:59:30 AM
Quote from: Dismal Shadow on February 22, 2010, 10:57:39 AM
I have enable it to guests so you can view the source.

What is your link?
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 11:08:43 AM
Quote from: BlueDevil on February 22, 2010, 10:59:30 AM
Quote from: Dismal Shadow on February 22, 2010, 10:57:39 AM
I have enable it to guests so you can view the source.

What is your link?
Ha, thought you would have use the earth icon which link to my forum.  :P

Here it is: thetwoworldsforum.com/
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 11:16:08 AM
You have the old installed right?

The map should show below:
Last Active:    Today at 12:11:18 PM

and not below age


Anyways,  i see what youre saying.   Ill fix this in a while.  I also found the frame_repeat.png is not wrapping the map in which i laready fix that.  Next update today.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 11:19:35 AM
Quote from: BlueDevil on February 22, 2010, 11:16:08 AM
You have the old installed right?

The map should show below:
Last Active:    Today at 12:11:18 PM

and not below age


Anyways,  i see what youre saying.   Ill fix this in a while.  I also found the frame_repeat.png is not wrapping the map in which i laready fix that.  Next update today.
Cool, glad you found the problem. I am using the lasest, not the old one.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 11:58:54 AM
I updated the package.   Remove previous mod ( RC2 version only)

I fixed the map not being wrapped tidy in the profile.

For the gap you mentioned.  It appears that it shows only when the user have not pinned themselves yet. 

I dont use 1.1.x.  Does that happens on 1.1.x series too?   I dont remember.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 12:10:44 PM
Quote from: BlueDevil on February 22, 2010, 11:58:54 AM
I updated the package.   Remove previous mod ( RC2 version only)

I fixed the map not being wrapped tidy in the profile.

For the gap you mentioned.  It appears that it shows only when the user have not pinned themselves yet. 

I dont use 1.1.x.  Does that happens on 1.1.x series too?   I dont remember.
Ummm, i downloaded from the mod site...still the same issue. Something's not right.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 12:14:35 PM
Are you sure?  The only download (1) was me just now.

Anywho... try this.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 12:16:20 PM
What i dont understand is,

why your map still shows under "age" and not under "last active"?


Map is supposed to be under "last active".
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 12:27:41 PM
 ???  Weird same issue, it look like the there's a duplicate code somewhere in my files...
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 12:31:31 PM
That answers my question.  It seems tho, the facebook mod was in the way but is more than likely you have the google code twice.

When removing the mod, make sure no google chunk of code resides in profile.template.php in which it shouldnt be an issue when removing the mod.

I go by the parser to look what needs to be replaced.






Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 12:32:32 PM
DS, go to my "other" site and checkout my profile.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 12:54:44 PM
Whoa, there are some of them. I don't know which lines to comment out.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 12:55:37 PM
Quote from: Dismal Shadow on February 22, 2010, 12:54:44 PM
Whoa, there are some of them. I don't know which lines to comment out.

Hang on.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 01:13:31 PM
I removed it.

I also renamed it with a "22" in front for just in case.
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 22, 2010, 01:20:28 PM
Quote from: BlueDevil on February 22, 2010, 01:13:31 PM
I removed it.

I also renamed it with a "22" in front for just in case.
That fixed it. Thanks. What do you see in the codes? No idea why the google map leftover was still there when I have uninstalled few times with no errors.  ???
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 22, 2010, 01:22:58 PM
Quote from: Dismal Shadow on February 22, 2010, 01:20:28 PM
Quote from: BlueDevil on February 22, 2010, 01:13:31 PM
I removed it.

I also renamed it with a "22" in front for just in case.
That fixed it. Thanks. What do you see in the codes? No idea why the google map leftover was still there when I have uninstalled few times with no errors.  ???

not sure...  The file you gave me looked garbled on notepad.  I had to load it to my server to read it better and found the instance right away.

Glad is working for you.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 22, 2010, 02:40:45 PM
Quote from: Stigmartyr on February 22, 2010, 12:33:25 AM
8) Can we use this mod, or a PHP script derived from it to show specified membergroups or maybe even member ID's?

I'd like to make a special map

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages.starpulse.com%2FPhotos%2FPreviews%2FOffice-Space-4.jpg&hash=e05f7598f1e31af76fbdc834a132bcf536e9d029)
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on February 22, 2010, 03:09:37 PM
Stigmartyr:  just about *ANYTHING* is possible... but it would require some coding on your part.
Title: Re: Google Member Map v1.0 beta
Post by: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 23, 2010, 05:09:05 PM
Quote from: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?

Sorry, the map mod is not setup for it. 

I believe Google maps has a script for that for you website.
Title: Re: Google Member Map v1.0 beta
Post by: Stigmartyr on February 23, 2010, 05:21:26 PM
Quote from: BlueDevil on February 23, 2010, 05:09:05 PM
Quote from: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?

Sorry, the map mod is not setup for it. 

I believe Google maps has a script for that for you website.

Thanks - I did try some preliminary searches but got lost.
Title: Re: Google Member Map v1.0 beta
Post by: H4N5 on February 23, 2010, 05:59:26 PM
I have been searching all the time before.
But I found nothing.

Anyway, thanks ;)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 23, 2010, 08:06:00 PM
Quote from: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?

Will something like this work for you? 
Google directions in my site
http://www.chevyavalancheclub.com/maps.php
Title: Re: Google Member Map v1.0 beta
Post by: ~DS~ on February 23, 2010, 10:21:25 PM
Quote from: BlueDevil on February 23, 2010, 08:06:00 PM
Quote from: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?

Will something like this work for you? 
Google directions in my site
http://www.chevyavalancheclub.com/maps.php
Wicked. Yeah, that's what he meant.
Title: Re: Google Member Map v1.0 beta
Post by: H4N5 on February 24, 2010, 04:10:11 AM
Quote from: BlueDevil on February 23, 2010, 08:06:00 PM
Quote from: H4N5 on February 23, 2010, 04:13:25 PM
Hello,

would like to use this map for Couchsurfing.
How can I enable route planning options, mousewheel zoom an so on.
Is this possible?

Will something like this work for you? 
Google directions in my site
http://www.chevyavalancheclub.com/maps.php


Looks great.
How did you do this?
I would like to try it.
Title: Re: Google Member Map v1.0 beta
Post by: H4N5 on February 24, 2010, 04:22:02 AM
http://maps.google.com/help/maps/gadgets/directions/ (http://maps.google.com/help/maps/gadgets/directions/)

I think I found it.

I will have a look what's possible with it.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 24, 2010, 08:31:25 AM
Quote from: H4N5 on February 24, 2010, 04:22:02 AM
http://maps.google.com/help/maps/gadgets/directions/ (http://maps.google.com/help/maps/gadgets/directions/)

I think I found it.

I will have a look what's possible with it.

I posted a how-to last night here: http://www.simplemachines.org/community/index.php?topic=367498.0
lets follow up there so we dont high jack this thread.
Title: Re: Google Member Map v1.0 beta
Post by: KensonPlays on February 24, 2010, 10:42:46 AM
Is this problem with RC2 fixed?
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on February 24, 2010, 10:56:06 AM
Quote from: Kcmartz on February 24, 2010, 10:42:46 AM
Is this problem with RC2 fixed?

What problem?   Sure is. ;)
Title: Re: Google Member Map v1.0 beta
Post by: HorTs on March 01, 2010, 07:33:33 AM
This may not be connected to the mod but can you add non-member markers to the map?

For example, is it possible to add a show location to the members map? Without adding the show as a member?
Title: Re: Google Member Map v1.0 beta
Post by: Kindred on March 01, 2010, 09:04:01 AM
not as written...   As the mod is right now, the map coordinates are stored and mapped to a user's ID.
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on March 01, 2010, 07:48:41 PM
For those looking to add business & event markers....

http://www.mapbuilder.net/index.php

Pretty cool,...i added the demo in my site.

http://www.chevyavalancheclub.com/index.php?page=page4622
Title: Re: Google Member Map v1.0 beta
Post by: lc62003 on March 04, 2010, 10:26:31 AM
Quote from: BlueDevil on February 11, 2010, 03:18:22 PM

I used UP in 1.1.x series with membermap.  On rc2, the table needs to be removed from the map.


Could you be more specific?  In other words, exactly how do you get it to work with Ultimate Profile in RC2?   :)
Title: Re: Google Member Map v1.0 beta
Post by: Mick. on March 04, 2010, 10:30:33 AM
Quote from: lc62003 on March 04, 2010, 10:26:31 AM
Quote from: BlueDevil on February 11, 2010, 03:18:22 PM

I used UP in 1.1.x series with membermap.  On rc2, the table needs to be removed from the map.


Could you be more specific?  In other words, exactly how do you get it to work with Ultimate Profile in RC2?   :)


I don't use ultimate profile mod and the question should be posted in their thread.
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 09, 2010, 12:08:05 AM
Updated for RC3 ;)


Changes made in:

/Sources/Profile-Modify.php
/Sources/Subs.php
Title: Re: Google Member Map RC2, RC3
Post by: Eddy Matthews on March 11, 2010, 12:12:44 PM
A number of my users didn't realise they had to click on "Change Profile" to save their pin location, so I modified the language string so it's more obvious that they need to do that.

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';

Perhaps it may be worth adding it to the code for future releases?

Regards
Eddy
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 11, 2010, 12:50:59 PM
Quote from: Eddy Matthews on March 11, 2010, 12:12:44 PM
A number of my users didn't realise they had to click on "Change Profile" to save their pin location, so I modified the language string so it's more obvious that they need to do that.

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';

Perhaps it may be worth adding it to the code for future releases?

Regards
Eddy

Thanx Eddy, thats a great feedback.  I did noticed this myself.    Will add this.
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 11, 2010, 01:01:36 PM
Quote from: Eddy Matthews on March 11, 2010, 12:12:44 PM
A number of my users didn't realise they had to click on "Change Profile" to save their pin location, so I modified the language string so it's more obvious that they need to do that.

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';

Perhaps it may be worth adding it to the code for future releases?

Regards
Eddy

Updated.

Or simply open:
Themes/default/languages/Modifications.english.php

Find:
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';

and replace with:
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';
Title: Re: Google Member Map RC2, RC3
Post by: Eddy Matthews on March 11, 2010, 01:05:10 PM
I'm glad you think it was worthwhile BlueDevil.... It seems to have helped for my users, they all seem to be able to place their pins okay now :)

Regards
Eddy
Title: Re: Google Member Map RC2, RC3
Post by: Shades. on March 11, 2010, 06:42:21 PM
Quote from: BlueDevil on March 11, 2010, 01:01:36 PM
Quote from: Eddy Matthews on March 11, 2010, 12:12:44 PM
A number of my users didn't realise they had to click on "Change Profile" to save their pin location, so I modified the language string so it's more obvious that they need to do that.

$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';

Perhaps it may be worth adding it to the code for future releases?

Regards
Eddy

Updated.

Or simply open:
Themes/default/languages/Modifications.english.php

Find:
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';

and replace with:
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';

And for anyone who doesn't know, after doing the edits above and the edits do not appear as you edited it, you may have to clear your forums cache by going to Admin>Maintenance>Forum Maintenance>Routine>Empty the file cache and click on "Run Task Now". ;)
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 11, 2010, 07:31:29 PM
This may interest some of you..... but lets not use this thread for it.

Google Route Map

http://www.simplemachines.org/community/index.php?topic=370298.msg2534879#msg2534879
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 12, 2010, 10:36:11 PM
Quote from: HorTs on March 01, 2010, 07:33:33 AM
This may not be connected to the mod but can you add non-member markers to the map?

For example, is it possible to add a show location to the members map? Without adding the show as a member?

You asked, you shall receive...   this may interest you.

http://www.bluedevilcustoms.com/index.php?page=page1409
Title: Re: Google Member Map RC2, RC3
Post by: powaserv on March 14, 2010, 07:08:25 AM
Hi , I have a problem with the mod.
In the admin I have checkboxes, but I know what it-responds.
I put a screen to be more inclusive.

By cons sorry for my English, I pass by a translator, because I'm no English.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fstockageimage.free.fr%2Fimages%2Fplugmap.jpg&hash=f84bc8dee014a5cf57bfc908e453457b9a890e9e)

Thanks.
Title: Re: Google Member Map RC2, RC3
Post by: Eclipse16V on March 14, 2010, 08:03:11 AM
look at your lang files.
there is the error.
Title: Re: Google Member Map RC2, RC3
Post by: powaserv on March 14, 2010, 04:04:44 PM
thanks, where ?
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 14, 2010, 05:58:10 PM
Quote from: powaserv on March 14, 2010, 07:08:25 AM
Hi , I have a problem with the mod.
In the admin I have checkboxes, but I know what it-responds.
I put a screen to be more inclusive.

By cons sorry for my English, I pass by a translator, because I'm no English.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fstockageimage.free.fr%2Fimages%2Fplugmap.jpg&hash=f84bc8dee014a5cf57bfc908e453457b9a890e9e)

Thanks.


See if you have this part installed in:

/Themes/default/languages/ManageSettings.english.php


$txt['googleMapsEnable'] = 'Enable the Google Member Map';
$txt['googleMapsEnableLegend'] = 'Show a Pin Legend';
$txt['googleSidebar'] = 'Where to show sidebar';
$txt['googleMapsKey'] = 'The key from the Google Maps API Page';
$txt['googleMapsPinGender'] = 'Should the pins reflect users gender?';
$txt['KMLoutput_enable'] = 'Should the compressed KML output be allowed? (KML is a file that is downloadable on the Google Map page that displays all the member pins inside Google Earth)';
$txt['googleMapsPinNumber'] = 'Number of max pins to show on map';
$txt['googleMapsType'] = 'The map type to show';
$txt['googleMapsDefaultLat'] = 'The default Latitude';
$txt['googleMapsDefaultLong'] = 'The default Longitude';
$txt['googleMapsDefaultZoom'] = 'The default Zoom';
$txt['googleMapsEnableClusterer'] = 'Enable Pin Clustering';
$txt['googleMapsMinMarkerCluster'] = 'Minimum Pins Per Cluster';
$txt['googleMapsMaxVisMarker'] = 'Maximum Visible Pins On Map';
$txt['googleMapsMaxNumClusters'] = 'Max Number of Clusters';
$txt['googleMapsMaxLinesCluster'] = 'Max Number of lines in Cluster Info Box';
$txt['googleMapFO'] = 'Member Map';


Title: Re: Google Member Map RC2, RC3
Post by: Kindred on March 14, 2010, 09:06:47 PM
actually... I think the issue is that he is not using English.  Most mods install in English only, which means that you would need to copy/translate the mod strings into the modifications file for that langauge
Title: Re: Google Member Map RC2, RC3
Post by: LondonDragon on March 16, 2010, 07:50:04 AM
Can I use this as an admin to pin point locations on a map and not allow users to post their?

For example I run a fish keeping club and wanted to pin point all the stores in London.

Thanks
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on March 16, 2010, 10:06:03 AM
Quote from: LondonDragon on March 16, 2010, 07:50:04 AM
Can I use this as an admin to pin point locations on a map and not allow users to post their?

For example I run a fish keeping club and wanted to pin point all the stores in London.

Thanks

This is your best bet...
http://mapmaker.donkeymagic.co.uk/
Title: Re: Google Member Map RC2, RC3
Post by: Princess_Bear on March 18, 2010, 02:16:42 PM
Will this mod work with SMF 2.0 RC1.2?
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on March 18, 2010, 03:05:40 PM
if you are running RC1.2, upgrade ASAP...   there are known issues with that version which have been patched in RC3
Title: Re: Google Member Map RC2, RC3
Post by: Princess_Bear on March 19, 2010, 02:21:07 PM
We haven't had any issues with RC1.2 so we're staying put for the time being.

So... I ask again.  Does this mod work with SMF 2.0 RC1.2?
Title: Re: Google Member Map RC2, RC3
Post by: TurtleKicker on March 19, 2010, 02:35:27 PM
Quote from: Princess_Bear on March 19, 2010, 02:21:07 PM
We haven't had any issues with RC1.2 so we're staying put for the time being.
That's a very dangerous stance to take. By virtue of running beta software you assume the responsibility of the fact that what you're using isn't as well-tested as a release, and may have many known problems from the start. It is also assumed that because you're on an unreleased development build, that you will make a reasonable effort to stay current and that support will only be fleeting.

QuoteSo... I ask again.  Does this mod work with SMF 2.0 RC1.2?
Apparently not and I wouldn't ever expect it to be. RC3 is the current pre-release teaser preview for SMF2... SMF2 has not even been officially released yet. I would not ever expect any mod author to support anything other than the latest development preview, if they support anything beyond official releases at all (many are waiting for SMF2-final to offer any SMF2 support).

Considering how many known security issues are present in RC1.2 you are putting your site and users at risk. If you're going to gamble with your site by running pre-release software before official release, the least you can do is stay current on the latest pre-release. RC2 has been out since October and now RC3 is out. Part of being a responsible site admin is keeping up-to-date.
Title: Re: Google Member Map RC2, RC3
Post by: Dejv on March 28, 2010, 08:21:06 AM
Hi,

I have too many pins, many of them aren't dispayed at all. If I allow to display more then 400, it takes s few seconds until the pins show up.

A pity the clustering is not working. I havent seen a site with a working clustering so far.

Would be great if it had a working clustering like this one: http://www.toursprung.com/products/maptoolkit/

or this one: http://tai-dev.blog.co.uk/2009/05/11/google-maps-pin-aggregation-a-neat-solution-6097485/

My favourite:
http://googlemapsapi.martinpearman.co.uk/downloads.php?cat_id=1
and especially this type: http://googlemapsapi.martinpearman.co.uk/infusions/google_maps_api/google_maps_api.php?map_id=5

Thanks a lot

-- some very useful stuff --
http://econym.org.uk/gmap/index.htm
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 09:28:54 AM
Parse error: syntax error, unexpected T_STRING in /home/cellbri1/public_html/forum/Sources/ManageSettings.php  on line 2152



2152= array('check', 'googleMapsEnable'),

any help chaps
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 09:42:22 AM
Quote from: xnathansxdadx on April 19, 2010, 09:28:54 AM
Parse error: syntax error, unexpected T_STRING in /home/cellbri1/public_html/forum/Sources/ManageSettings.php  on line 2152



2152= array('check', 'googleMapsEnable'),

any help chaps

Is this error during installation?   If so,....

Use the parser for rc3 in the downloads page and make sure the edits in /Sources/ManageSettings.php are correct.
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 10:05:17 AM
ok will try this thanks
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 11:43:43 AM
Just manually parsed this and it still does not work,,,,, It shows in modifications the button for google membe rmap but does not go anywhere and feeds back to  misc,,,, therefore I cannot get to put my API key.
Also there is no button for the member map on the home page...

other than that it works lol...
Any Advice!


Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 11:51:46 AM
Quote from: xnathansxdadx on April 19, 2010, 11:43:43 AM
Just manually parsed this and it still does not work,,,,, It shows in modifications the button for google membe rmap but does not go anywhere and feeds back to  misc,,,, therefore I cannot get to put my API key.
Also there is no button for the member map on the home page...

other than that it works lol...
Any Advice!




Is that pink theme a custom one or did you modified the default curve to look like that?

If its custom, you need to add the language to it.

If this is your home page, http://www.fancya-chat.com/Forum/index.php  i see the button just fine.   It looks like you had this mod at some point as it shows pins in the map.
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 11:58:35 AM
no its ukeye.org/forum
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 12:05:12 PM
Quote from: xnathansxdadx on April 19, 2010, 11:58:35 AM
no its ukeye.org/forum

Not many mods installed eh?  Only SimpleDesk?

Have you tried uninstalling simpledesk and then installing the map first?

When uploading a mod and you encounter an error, it is adviced not to continue unless you know how to use a parser to make edits.

This mod installs flawlessly on a new smf installation.
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on April 19, 2010, 12:08:41 PM
That ain't SimpleDesk installed there, btw.
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 12:12:55 PM
Quote from: Arantor on April 19, 2010, 12:08:41 PM
That ain't SimpleDesk installed there, btw.

Oh ok.   I thought it was since the button is called "helpdesk".   lol,..... excure my ignorance Arantor. 

Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 12:13:34 PM
no its a button to a help desk software package also there are only media installed on this,,, i have done the correct edits so whats making it not appear.
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on April 19, 2010, 12:14:08 PM
No worries - our normal button is "Helpdesk" not "Help Desk" but we use action=helpdesk, not a separate PHP file ;)

There's other stuff messed up in the forum theme and code by the looks of it...



What edits *exactly* have you done?
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 12:15:08 PM
Quote from: xnathansxdadx on April 19, 2010, 12:13:34 PM
no its a button to a help desk software package also there are only media installed on this,,, i have done the correct edits so whats making it not appear.

In admin it needs checkmarked to activate the button.   For users and guests, need activated in permissions.
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 12:17:24 PM
Yes, the template looks broken at the footer.

ukeye.org/forum


I would also look at on how you added the help desk button in subs.php
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 12:21:08 PM
The edits I did were from the parser.

and I cannot activate the mod in admin, the button will not let me in to membermap so i can put api in

the helpdesk button is just a button that adds a link
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 12:24:10 PM

Using the parser make sure these edits are correct in:

/Sources/Admin.php
/Sources/ManageSettings.php
/Themes/default/languages/Modifications.english.php
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 12:34:40 PM
Just going to install the forum again as it was new to see and set google map as first mod,,, and see!!
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 02:25:13 PM
Tell you what if I put the right edits in the right php files it might work eh!

So you can now officially call me a Muppet!
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 06:41:09 PM
Quote from: xnathansxdadx on April 19, 2010, 02:25:13 PM
Tell you what if I put the right edits in the right php files it might work eh!

So you can now officially call me a Muppet!


Did you get it sorted out?   Where you editing the wrong path of files?
Title: Re: Google Member Map RC2, RC3
Post by: Snogmarr on April 19, 2010, 06:52:24 PM
was working on 2 forums and sent the wrong files to the wrong forum,,,
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on April 19, 2010, 06:56:27 PM
Quote from: xnathansxdadx on April 19, 2010, 06:52:24 PM
was working on 2 forums and sent the wrong files to the wrong forum,,,

Ooops. ;)
Title: Re: Google Member Map RC2, RC3
Post by: skyliner2 on April 20, 2010, 05:30:21 AM
Hello Guys,

i tried to install Google Member Map 2.0 beta 1 on my SMF 2.0 RC2. Installation didn't show any errors, all Files have been modified.

The Member Map works, the Pins from an earlier version show up correctly. But I'm not able to access the user profile page. I get this error:

Fatal error: Cannot redeclare template_profile_googlemap_modify() (previously declared in /home/www/web303/html/_cb500/Sources/Load.php(2087) : eval()'d code:2760) in /home/www/web303/html/_cb500/Sources/Load.php(2087) : eval()'d code on line 2908

Could anybody help me, please?

Thanks, Chris
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on April 20, 2010, 07:40:49 AM
you have installed twice.  you will have to manually go through the code and remove any duplicated coding.
Title: Re: Google Member Map RC2, RC3
Post by: skyliner2 on April 20, 2010, 09:06:19 AM
Thanks for your reply - i'll check this out. Strange - i uninstalled GMM before installing the new version. Hmmm.
Title: Re: Google Member Map RC2, RC3
Post by: Siirist on May 17, 2010, 06:41:24 PM
Hi,  :)

I am running SMF ver2.0 RC 3, with these

Themes

Core Theme
SMF Default Theme - Curve
MysticJade

and these
mods

       Title                                                   Ver                          Date and Time Installed

1) Sortable Packages (and Installed Time)   1.3                           May 16, 2010, 08:30:45 PM
2) Karma Buttons                                      1.1                           Today at 12:38:08 PM
3) Menu Buttons                                        1.1                           Today at 01:32:32 PM
4) AvatarSelect                                         1.2.1                         Today at 02:30:07 PM
5) Google Member Map   3.0                       2.0 beta 2                 Today at 02:43:48 PM

The words are not present.  This occurred previously and I ended up deleting the forum and rebuilding I still have to add 40 Reserved Member User Names, but will wait til this is resolved.

I have attached a Screen Shot

Is this a .css thing?

Cloud
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on May 17, 2010, 06:49:06 PM
That's a language thing.

First up, Admin > Maintenance > Routine > Empty the file cache

I'd also wonder if you're using a language other than English but even then it should... oh wait, you're using something that isn't English ISO, probably English UTF-8 or English-British.

If you look in Themes/default/languages, what files are there that begin with "ManageSettings" in the name?
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on May 17, 2010, 07:04:15 PM
Thanx Arantor.

That sure is a language thing.  The mod was written for english and english utf-8.
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on May 17, 2010, 07:09:05 PM
Quote from: bluedevil on May 17, 2010, 07:04:15 PM
That sure is a language thing.  The mod was written for english and english utf-8.

Not even that. The mod doesn't appear to do any changes to ManageSettings.english-utf8.php, which isn't auto loaded by SMF the way Modifications.english.php is.


@KeyWestHank: This mod and thread is nothing to do with Google Analytics and is about integrating the Google map into SMF for members.

If you're after support on the Google Analytics Code mod, please see Google Analytics code (http://www.simplemachines.org/community/index.php?topic=342504.0) for support, along with the version of SMF you're trying to use. Quick guide - you use Admin > Packages to install it for you. But if you're using 1.1.x it might be a bit more difficult.
Title: Re: Google Member Map RC2, RC3
Post by: Siirist on May 17, 2010, 07:22:28 PM
Quote from: Arantor on May 17, 2010, 06:49:06 PM
That's a language thing.

First up, Admin > Maintenance > Routine > Empty the file cache

I'd also wonder if you're using a language other than English but even then it should... oh wait, you're using something that isn't English ISO, probably English UTF-8 or English-British.

If you look in Themes/default/languages, what files are there that begin with "ManageSettings" in the name?

Hi Arantor!! :D

Thanks for the help!!

First up, Admin > Maintenance > Routine > Empty the file cache
The maintenance task 'Empty the file cache' was executed successfully.

Didn't work.  :(

If you look in Themes/default/languages, what files are there that begin with "ManageSettings" in the name?

:o  *Rolls on the floor laughing* Are you serious?  :D How about all of them?  ;D *head begins spinning*
Chinese-simplified     UTF-8
Chinese-simplified     
Chinese-traditional     UTF-8
Chinese-traditional     
Danish                    UTF-8
Danish                   
Dutch                    UTF-8
Dutch                   
English                    UTF-8
English                   
Finnish                    UTF-8
Finnish                   
French                    UTF-8
French                   
German                    UTF-8
German                   
German Informal    UTF-8
German Informal    
Italian                    UTF-8
Italian                   
Japanese                    UTF-8
Japanese                   
Korean                    UTF-8
Korean                   
Norwegian            UTF-8
Norwegian           
Spanish                    UTF-8
Spanish                   
Swedish                    UTF-8
Swedish                   

Um.. It's an international forum so....yeah added a lot of them.

English - UTF-8 is set as default

So does this mean tear it down again and re-install?

Cloud :'(
BTW - This is the Roller Derby Forum
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on May 17, 2010, 07:24:24 PM
Quote from: A Cloud Walker on May 17, 2010, 07:22:28 PM
English - UTF-8 is set as default

So does this mean tear it down again and re-install?

No! All it means is, go to the mod's page, select RC3 from the dropdown, select Parse, you'll see a list of stuff. The stuff under "ManageSettings.english.php" needs to be added to ManageSettings.english_utf8.php as well, then clear the cache again.
Title: Re: Google Member Map RC2, RC3
Post by: Siirist on May 17, 2010, 07:27:45 PM
Quote from: Arantor on May 17, 2010, 07:24:24 PM
Quote from: A Cloud Walker on May 17, 2010, 07:22:28 PM
English - UTF-8 is set as default

So does this mean tear it down again and re-install?

No! All it means is, go to the mod's page, select RC3 from the dropdown, select Parse, you'll see a list of stuff. The stuff under "ManageSettings.english.php" needs to be added to ManageSettings.english_utf8.php as well, then clear the cache again.

That I can do.   ;D

Thanks,
Cloud :)

BRB
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on May 17, 2010, 07:29:02 PM
Add this in your /Themes/default/languages/Modifications.english-utf8.php

Find:
?>

Add before:
global $scripturl;
$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.bluedevilcustoms.com/">BlueDevil</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;area=forumprofile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you are not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you are not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';



Dont forget to clear cache again!
Title: Re: Google Member Map RC2, RC3
Post by: Siirist on May 17, 2010, 08:32:46 PM
Arantor AND bluedevil,


THAT WORKED!!!  Thanks!!!  You Rock!!!


Thanks,  ;)
Cloud  ;D ;D ;D
Title: Re: Google Member Map RC2, RC3
Post by: kaib0rg on May 18, 2010, 10:51:02 PM
I recently installed a new forum and transferred the database from my old forum into my new forum.  The old member map broke somehow, and i figured...at least reinstalling the forum would probably fix it.  Unfortunately, i think the thing that broke it was in the backend portion that doesnt get uninstalled (according ot the uninstall.txt file).

My members all have points setup in their profiles, but when we view the member map, none of them show up.  Is there a known fix for this?  If not, how do i clear out that backend data so we can at least restart?
Title: Re: Google Member Map RC2, RC3
Post by: danielcberman on May 31, 2010, 06:25:28 PM
SMF 2.0 RC3 Forum on http://christianfamilyplanning.net

Plugins:

EzPortal      0.3.9b
Google Member Map 3.0    2.0 beta 2
Users Online Today    1.5.6
NoFollow All Links    1.2.1
AjaxChat Integration    3.2.1
YouTube BBCode    2.6
Display Signatures Only Once Per Page    1.0.3

I picked up the Google Maps API Key, I can see the map on the forum at the address its supposed to be, and I have enabled its visibility for myself. However, despite placing my street address in the location field of my profile, I am not seeing a pin for myself. Any hints as to what I am missing?
Title: Re: Google Member Map RC2, RC3
Post by: Wh1teLeopard on June 08, 2010, 03:57:18 PM
Just spent ages manually installing this mod on 1.1.11 and most of it works, but it's not saving the settings. So a little investigation reveals I'm missing the database side of things. I ran the install anyway and got:

Fatal error: Call to undefined function: () in /Packages/temp/add_settings20.php  on line 71, which is "$result = $smcFunc['db_query']('', 'SHOW COLUMNS FROM {db_prefix}members');"

I clicked parse for various versions of 1.1..... but none of them seemed to contain anything that match with the files I have. E.g. "Find x" and there would be no trace of it, just a different variation of it somewhere else in the code, sometimes in a slightly different file name.

Website: http://www.keikarsinthepark.co.uk

Packages;
3.     Aeva Media      1.0      
4.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0
5.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0
6.    YouTube BBCode    2.3
7.    Treasury    2.30    
8.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0
9.    TinyPortal    1.083    
10.    SMF 1.0.16 / 1.1.8 Update    1.0    
11.    Favicon    1.2    
12.    SMF Arcade    2.0.12    
13.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    
14.    SMF 1.0.14 / 1.1.6 Update    1.0
15.    Custom Profile Field Mod    3.19    
16.    SMF 1.0.15 / 1.1.7 Update    1.0
17.    SMF Media Gallery    1.5 RC 2
18.    AddThis Social Bookmarks    1.0    
19.    Ad Managment    2.3
20.    PM On Registration    1.0.2
21.    SMF Garage    0.6.0b2

Version SMF 1.1.11
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on June 08, 2010, 04:01:19 PM
It won't work on 1.1 since $smcFunc is a 2.0 only construct.
Title: Re: Google Member Map RC2, RC3
Post by: Wh1teLeopard on June 08, 2010, 04:03:17 PM
So can this mod no longer be used on 1.1?
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on June 08, 2010, 04:09:02 PM
GoogleMap_1.0beta4.zip looks like it can.

Goole Member Map 2.zip and GoogleMemberMap 3.zip are both 2.0 only.
Title: Re: Google Member Map RC2, RC3
Post by: Wh1teLeopard on June 08, 2010, 04:14:12 PM
Ah the one I didn't try! Typical haha!

Thanks for that, seems to be a bit more proactive, looks like I need to un-do some stuff I did though:

Fatal error: Cannot redeclare modifygooglemapsettings() (previously declared in keikarsinthepark.co.uk/Sources/ModSettings.php:354) in keikarsinthepark.co.uk/Sources/ModSettings.php  on line 398

Thanks for the help :)

*edit - working perfectly now! Many many thanks :)
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on June 08, 2010, 04:55:29 PM
Quote from: Arantor on June 08, 2010, 04:09:02 PM
GoogleMap_1.0beta4.zip looks like it can.

Goole Member Map 2.zip and GoogleMemberMap 3.zip are both 2.0 only.

Correct.   Thanx Arantor.
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on June 08, 2010, 04:56:29 PM
Just a thought - might be worth including the versions in the file name and/or including a version string in the package-info.xml file.
Title: Re: Google Member Map RC2, RC3
Post by: Eddy Matthews on June 08, 2010, 05:02:27 PM
Been using this mod for a while, and a few weeks ago it suddenly started to have a small problem....

When I click on the link and view the mod, most of the members pins aren't being displayed in the default zoom setting - Only a few from Australia and New Zealand are visible. But if I zoom in then others start to appear.... There are only about 30 member locations in it at the moment, so is this a known problem? Is there a solution?

It's not a major issue, but I'd love to find out why it's doing it..... It worked perfectly until about 3 weeks ago, and I haven't installed any new mods recently.

Regards
Eddy
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on June 08, 2010, 05:04:55 PM
Quote from: Arantor on June 08, 2010, 04:56:29 PM
Just a thought - might be worth including the versions in the file name and/or including a version string in the package-info.xml file.

Yeah i thought of adding 1.1.x and rc3 in the same Zip.  Less confusing for most.   I didnt write any of these vesions, only i updated it for rc3.  I guess i could squeeze them in 1 zip since im taking care of them.
Title: Re: Google Member Map RC2, RC3
Post by: Arantor on June 08, 2010, 05:06:57 PM
It'd certainly cut down confusion, though can also hike maintenance too. In the Zip you could put each version in a separate folder though.
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on June 08, 2010, 05:13:21 PM
Quote from: Arantor on June 08, 2010, 05:06:57 PM
It'd certainly cut down confusion, though can also hike maintenance too. In the Zip you could put each version in a separate folder though.

Yes, i've seen how both co-exist.  Ill work on it soon;)
Title: Re: Google Member Map RC2, RC3
Post by: qubbah on June 12, 2010, 12:13:54 PM
i cant see map in the users profile... help...
Title: Re: Google Member Map RC2, RC3
Post by: Eddy Matthews on June 12, 2010, 12:16:36 PM
Quote from: Eddy Matthews on June 08, 2010, 05:02:27 PM
Been using this mod for a while, and a few weeks ago it suddenly started to have a small problem....

When I click on the link and view the mod, most of the members pins aren't being displayed in the default zoom setting - Only a few from Australia and New Zealand are visible. But if I zoom in then others start to appear.... There are only about 30 member locations in it at the moment, so is this a known problem? Is there a solution?

It's not a major issue, but I'd love to find out why it's doing it..... It worked perfectly until about 3 weeks ago, and I haven't installed any new mods recently.

Regards
Eddy

I thought I'd bump this one up as I never got a reply and I can only assume my original posting was missed..... Can anyone help with the above problem?

Regards
Eddy
Title: Re: Google Member Map RC2, RC3
Post by: 4b11l on June 23, 2010, 12:19:20 AM
Is there a way to... instead of the gender listing, make it pertain the the different member groups? Such as Admin (red), mod (blue), etc..
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on June 23, 2010, 06:59:44 AM
yes... if you modify the code... :P


As designed, no.
Title: Re: Google Member Map RC2, RC3
Post by: 4b11l on June 23, 2010, 04:08:50 PM
Quote from: Kindred on June 23, 2010, 06:59:44 AM
yes... if you modify the code... :P


As designed, no.

Will you be able to show me where to modify?
Title: Re: Google Member Map RC2, RC3
Post by: Wh1teLeopard on June 26, 2010, 05:20:56 AM
Sorry if this has already been asked or answered, but I couldn't find it using the search. Is there a way to add generic locations? For example we have events that members can attend and it would be nice to add the locations of these events to the map?

I am referring to GoogleMap_1.0beta4.zip, as I am using SMF 1.1.11. Many thanks in advance! :)
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on June 26, 2010, 05:14:26 PM
I do not believe so.
Title: Re: Google Member Map RC2, RC3
Post by: Wh1teLeopard on June 28, 2010, 02:21:26 PM
oh  :( thank you for the reply though  :)
Title: Re: Google Member Map RC2, RC3
Post by: Jack_the_ripper on July 02, 2010, 07:19:21 AM
Hi !

In the first post wrote Bluedevil:
The files you will need to edit with your language are:
- Modifications.english.php
- ModSettings.english.php
- Who.english.php

But i have not got:
ModSettings.english.php

Where is this file?

Title: Re: Google Member Map RC2, RC3
Post by: divecall on July 02, 2010, 09:11:12 PM
Im using SMF 2 RC2 and i have problems to delete the location from other members with the ACP.

No changing was saving.

can you help me ?
Title: Re: Google Member Map RC2, RC3
Post by: C4G-TK on July 03, 2010, 01:19:44 PM
Small problem since I use a dark theme.  After installing this mod, my signature input box in my ModifyProfile area decides to go white.  It is the only textbox that changes.  I have this problem now on both of my sites because they use dark themes.  The problem being that since my theme is dark, my font color is light, and with a light color textbox... you can't see what you type in it.  For more information, you can go to this thread as I've been trying to figure out the problem for a bit.

http://www.simplemachines.org/community/index.php?topic=387416.msg2674811#msg2674811


I'm going to look at the code to see what it changes in this area, but I'm sure I'm not the only person that has this problem as most people who use dark themes should be experiencing the same thing.

BINGO!!!!!!!!!!!!

Find:
  #map input, textarea {background-color: #ffffff;}

and change the #ffffff to a suitable color!

Finally fixed! BOOYAH!
Title: Re: Google Member Map RC2, RC3
Post by: Captain_FLAM on July 20, 2010, 11:53:29 AM

I've corrected some errors ...

MP me if you want it  :)
Title: Re: Google Member Map RC2, RC3
Post by: Fabhino22Elz on July 22, 2010, 10:19:59 AM
hey, i installed the google map, but i have a problem in the navigation. it shows the button of google map beside the menu...

someone an idea to fix this?

greetings
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on July 22, 2010, 10:32:16 AM
Quote from: Fabhino22Elz on July 22, 2010, 10:19:59 AM
hey, i installed the google map, but i have a problem in the navigation. it shows the button of google map beside the menu...

someone an idea to fix this?

greetings

Have a link?   Im asuming tyoure using a custom theme?
Title: Re: Google Member Map RC2, RC3
Post by: Fabhino22Elz on July 22, 2010, 11:35:36 AM
yes, we are using a custome theme, but on default theme it happens also :-( i only have a screen, becuase page is running on my local space only...

here is the link:

http://yfrog.com/i362367763j

you see the error in the red circle
Title: Re: Google Member Map RC2, RC3
Post by: Mick. on July 22, 2010, 11:44:13 AM
Assuming you downloaded GoogleMemberMap 3.zip


See if in /Sources/Subs.php you have these edits.

elseif ($context['current_action'] == 'search2')
$current_action = 'search';


This should be after:

elseif ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';



and.....

'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
'is_last' => true,
),
),
),



This should be after:

// Google Maps Mod
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => $modSettings['googleMapsEnable'] && allowedTo('googleMap_view'),
'sub_buttons' => array(
),
),





If you have these in your /Sources/Subs.php this may be a language issue?


Title: Re: Google Member Map
Post by: Midnitelove on July 22, 2010, 11:49:52 AM
Quote from: brianjw on December 23, 2007, 04:59:27 PM
Please don't post multiple times on the same matter. Simply use the edit function on this site. ;)

To answer your problem, you have Custom Actions and/or Profile Field Mods installed, which conflicts with this mod. You will need to do a manual install on that by going to http://www.gamerzgarage.com/package.php and uploading GoogleMap.zip.

Before doing all that, install it even with the file error. Then do the manual install on ModSettings.php by opening it up in your favorite editor (be it notepad, dreamweaver, frontpage) and using ftp.

You have to enter your ftp information to allow the mod to install in some files that might not be writable. If you have problems with this, go to Package Manager>>Options and select All files are writable just during the installation of this mod and others you may install when this pops up.


When I tried this I got a fatal error message.
Title: Re: Google Member Map RC2, RC3
Post by: Fabhino22Elz on July 22, 2010, 03:19:15 PM
Quote from: bluedevil on July 22, 2010, 11:44:13 AM
Assuming you downloaded GoogleMemberMap 3.zip


See if in /Sources/Subs.php you have these edits.

elseif ($context['current_action'] == 'search2')
$current_action = 'search';


This should be after:

elseif ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';



and.....

'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
'is_last' => true,
),
),
),



This should be after:

// Google Maps Mod
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => $modSettings['googleMapsEnable'] && allowedTo('googleMap_view'),
'sub_buttons' => array(
),
),





If you have these in your /Sources/Subs.php this may be a language issue?

If you mean me with this - thoose codes are in my file.


Greetings
Title: Re: Google Member Map RC2, RC3
Post by: Midnitelove on July 28, 2010, 02:03:34 PM
My map is working. Now I'm wondering if there is a way to auto add members. Without them having to do it?


ETA: I'm also wonder if there is a way for guest to show as well. In my old forum when a member clicked on "who online"
they automatically saw themselves as well as the guests. There was no option for them to manually add themselves in the profile.
Title: Re: Google Member Map RC2, RC3
Post by: Masterd on July 28, 2010, 02:37:15 PM
Nice mod.
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on July 28, 2010, 05:03:44 PM
Quote from: Midnitelove on July 28, 2010, 02:03:34 PM
My map is working. Now I'm wondering if there is a way to auto add members. Without them having to do it?


ETA: I'm also wonder if there is a way for guest to show as well. In my old forum when a member clicked on "who online"
they automatically saw themselves as well as the guests. There was no option for them to manually add themselves in the profile.

no and no
Title: Re: Google Member Map RC2, RC3
Post by: zoula on August 01, 2010, 06:55:11 AM
Hi there,

Very interesting MOD I would say, reaon why I did not hesitate to download it. Upon installation I received the following errors:

I am using Forum version: SMF 1.1.11

Install Actions
Installations actions for "Google Member Map 3.0":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap.php    
2.    Extract File    ./Themes/default/Clusterer2.js    
3.    Extract File    ./Themes/default/GoogleMap.template.php    
4.    Extract File    ./Themes/default/images/google_earth_feed.gif    
5.    Extract File    ./Themes/default/images/english/googlemap.gif    
6.    Execute Code    add_settings20.php    
7.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Sources/Admin.php    Test failed
9.    Execute Modification    ./Sources/Load.php    Test failed
10.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
11.    Execute Modification    ./Sources/ManageSettings.php    File not found
12.    Execute Modification    ./Sources/Profile-Modify.php    File not found
13.    Execute Modification    ./Sources/Subs.php    Test failed
14.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
17.    Execute Modification    ./Themes/default/languages/ManageSettings.english.php    File not found
18.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful

Did this happen to anyone before?

Cheers.
Title: Re: Google Member Map RC2, RC3
Post by: Kindred on August 01, 2010, 08:34:10 AM
once again, I have to ask:  Doesn't anyone bother to READ or SEARCH?

This question has been asked (and answered) in nearly every mod thread (several times in most).

it means that something else (another mod) has changed the target code so the auto installer won't work in that file/location. You will have to manually make the changes to that/those files(s).
Title: Re: Google Member Map RC2, RC3
Post by: zoula on August 02, 2010, 01:11:12 AM
Dear Kindered,

Thank you for the positive reply.

You are my hero.

Cheers.
Title: Re: Google Member Map RC2, RC3
Post by: nuTTTz on August 20, 2010, 03:47:50 PM
Apologies if this has been asked/answered, my search inquiries came back with nothing specifically related to my issue.

SMF 2.0 rc3, releative new install,, few days, default theme only at this time.

The google member map seems to work fine for the most part, the members are able to see the maps in thier profiles, and pin thier location.
The only thing that does not work is the main "member map" option. When clicked it simply brings up a blank page, no map, no members list on the right(yes the option is selected).
My error log shows this "Unable to load the 'main' template." and links specifically to the index.php, however all code has been double checked to be correct.
(added), just noticed it is logging 2 errors at each occurance, 2nd error reads "call_user_func(Map): First argument is expected to be a valid callback"

I am stumped.
TY in advance to anyone who chooses to be helpful in this matter. :)
Title: Re: Google Member Map RC2, RC3
Post by: Spuds on August 22, 2010, 04:16:08 PM
First, very cool mod.  I installed it for RC3/Default theme and am very happy with it.  I did notice several items with RC3 that I fixed thought I would mention them here, well at least the ones I can remember.  These are just my observations and are not intended as a complaint by any means!

1) First the big one ... The mod likes to check for null values on lat/lon, both in php if's and in the database where's.  The problem is that adding and then removing a pin will result in a 0.00 value in the database for both lat/lon not NULL so you get bogus hits on maps and in user profile views.   

2) In one area of the code you have a check with not NULL and not empty but that is wrong as a 0.0 will pass through empty since its a float and not an integer.  You need to check that's it not zero not empty

3) A nice admin function would be allow the choice of which nav bar you want over layed, right now its coded for the Gsmall but Glarge or the 3D ones are nice options for the site admin

4) In both areas of the profile the mod adds in the dd but not a dt so the page looks strange, I added in a dt and appropriate text for it in both the summary and forum profile areas.  In one case I just shifted the pleaseclick and mapdisclaimer txt in to a dt instead of a div in the dd.

5) The mod added a global $scripturl to the modification language file which seems odd to me.  The text that used it was only used once in the member map view (googleMapAddPinNote)  I removed the need for adding a global in the language file and did the link build in the googlemap.template which is exacly what is done with another one of $txt strings for this mod

6) More of a question, why is there a writeLog(); used in Map function, I just could not figure out what that was used for.

7) Added some rounded stuff to the template so it looked like curve ... not much, just a touch

8) Added in some more info to the map member bubble, namely webpage, email, pm ... tried to make it look more like what you see in a message view with the avatar and related info ...

Thats all that I can remember of the top of my head

Thanks again for the mod!
Title: Re: Google Member Map RC2, RC3
Post by: jay28 on August 26, 2010, 02:16:39 PM
Hi Guys,

On trying to install this mod on v1.1.11 but I get test failed with modsettings.php

Please could somebody help me make the manual changes for this?

File attached

Many thanks

Jay.

Edit: I have now sorted this out myself by modifying the installation file.
Title: Re: Google Member Map RC2, RC3
Post by: Leonne on August 26, 2010, 11:35:29 PM
Hi all, my site had a problem with Google Member Map, the page said: "This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/."  and "Sorry, the Google Maps API is not compatible with this browser" when I click to it. I'm using Mozilla Forefox 3.6.8 and SMF 2.0 RC3. I was go to google map and get a API key, then paste it to API field in Google Member Map admin, but it not make the problem stop, it's countinue when I use Google Member Map. How I fix it? anyone help me, please. Thanks alot.
Title: Re: Google Member Map RC2, RC3
Post by: LHW on August 27, 2010, 03:40:26 AM
Nice Mod, bluedevil!  I installed in on RC3, and it seems to work fine under Curve, Argentum, and Krilliun.  ;D

My only suggestion would be the option to place the "Member Map" button under the existing "Members" menu button.  This way all member-related links could be in one place, and not increase the width of the Main Menu Bar any more than need be.

Thanks!
Title: Re: Google Member Map RC2, RC3
Post by: Eclipse16V on September 18, 2010, 04:40:06 PM
Rear one, does not give it a possibility if a user data for the map enters it also not on the map is then indicated. At present it is in such a way always gotten with me this user the data 0,0000000 and 0,0000000. Then they land always left beside Africa.
Title: Re: Google Member Map RC2, RC3
Post by: Dummbock on September 30, 2010, 04:39:37 AM
Hallo und danke für die tolle MOD.

Gibt es eine Möglichkeit, die Anzeige zu ändern?
So wird es angezeigt:

Pinned Member's

Und so sollte es aus sehen:

356 Pinned Member's
New: max45

Was muss ich ändern, um das zu erreichen?

Danke, Manni

Google Translation:

Hello and thank you for the great MOD.

Is there a way to change the display?
So it appears:

Pinned Member's

And so should see it:

356 Member's Pinned
New: max45

What I need to change in order to achieve this?

Thanks, Manny
Title: Re: Google Member Map RC2, RC3
Post by: nemwar on October 15, 2010, 02:41:46 PM
Hello all,

i have some problems with this Mod,

once it works everything fine, but had to recover the forum after an crash.

Now everythings messed up a little bit.

First off all i do all the installation by hand again and deleted double entrys.
The Google Map is there, everybody can look at it, but i can't access the Admin-Panel to set it up.
Also it isn't possible to set Pins.

Please help... it would be a nice feature (again)

Thanks
NemWar

edit:
Forgot all infos  ???

SMF 1.1.11
following mods:
1.     Deutsche Kalender Tage!     1.00
2.    Favicon    1.3
3.    Load Standard Language    1.0.2
4.    Custom Action Mod    2.04
5.    reCAPTCHA for SMF    0.9.8
6.    SMF Links    2.3
7.    Downloads System    1.3.4
8.    Guild Wars BBCODE for SMF    1.834
9.    SMF Gallery Lite    3.0.1
10.    Add Favicon.ico Support    1.101
11.    TinyPortal    1.100
12.    Google Member Map    1.0 beta 4
Title: Re: Google Member Map RC2, RC3
Post by: sdkid on October 17, 2010, 01:13:15 PM
I got an error warning saying one file failed.  I manually did the edit for that file (modsettings.english.php)
running 1.1.11 with simple css color changes on Basic_Grunge theme

Here's what I get after the install:

Title: Re: Google Member Map RC2, RC3
Post by: Kindred on October 17, 2010, 05:41:14 PM
english is different form english utf-8
Title: Re: Google Member Map RC2, RC3
Post by: Jack_the_ripper on October 20, 2010, 08:16:14 AM
Nice mod!

I've got a little problem:
1 - Somewhy it's creating a default pin for all member.
     This pin cordinate: Lat.:0 long:0   Why?
2 - If someone only delete pin(only click pin to remove and click to "change profil").After go the      profil or to the membe rmap from menu button his pin in the lat:0 long:0 why?
3 - If this mod is the last installed i can able to uninstall it without any problem.But if i install an other mode after this and i try to uninstall this mode there is always an error. Most in the Themes/default/languages/Modifications.english.php becouse the newer mode modifiled this and the uninstaller can not find this code
global $scripturl;
$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.bluedevilcustoms.com/">BlueDevil</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;area=forumprofile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so. <br />Click on "Change Profile" to save your location.';
$txt['cannot_googleMap_view'] = 'Sorry, you are not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you are not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';
?>

So i must edit the modification.english.php manually for it to be at the bottom.

Errorlog:

http://www.XXX,com/forum/index.php?action=helpadmin;help=register_openid
8: Undefined index: googleMap
File: /home/XXX/public_html/forum/Sources/Subs.php
Line: 4036



http://www.XXX.com/forum/index.php?action=jseditor;view=0;ff59398d7d=0354a99699f7b358840e38e4eca21678;xml
8: Undefined index: googleMap
File: /home/XXX/public_html/forum/Sources/Subs.php
Line: 4036



http://www.XXX.com/forum/index.php?action=admin;area=modsettings;sa=googlemap;ff59398d7d=0354a99699f7b358840e38e4eca21678
8: Undefined index: googleMapFO
File: /home/XXX/public_html/forum/Sources/ManageSettings.php
Line: 2124


I uninstall it som thime but the problem is persist.
2.0rc3

Solution?

Thanks
Jack
Title: Re: Google Member Map RC2, RC3
Post by: roonekoos on October 23, 2010, 10:32:32 PM
Quote from: Eclipse16V on September 18, 2010, 04:40:06 PM
Rear one, does not give it a possibility if a user data for the map enters it also not on the map is then indicated. At present it is in such a way always gotten with me this user the data 0,0000000 and 0,0000000. Then they land always left beside Africa.

same problem, anybody who know how to fix this?
Title: Re: Google Member Map RC2, RC3
Post by: TheDel on October 28, 2010, 01:22:05 AM
Hey Blue Devil- quick question
The pins arent showing up on the main map anymore.
The mod worked when I installed it on 1.1- stopped working and then I upgraded to 2 and it was working again.
Then suddenly, it stopped. Everything else on the mod works but its not displaying the pins on the map page. I do have several mods but doubt its that because I dont think any of my mods affect the map page- which is the only issue. Any help would be HUGE

Thanks
Title: Re: Google Member Map RC2, RC3
Post by: kanaka on November 06, 2010, 03:17:29 PM
Hi I am Italian and I do not speak a word of English, as I apply the mod, I have the API key but I can not do it work, are on the server and use aruba SMF 1.1.11.
Thanks
Title: Re: Google Member Map RC2, RC3
Post by: interzis on November 12, 2010, 02:44:18 AM
Quote from: Leonne on August 26, 2010, 11:35:29 PM
Hi all, my site had a problem with Google Member Map, the page said: "This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/."  and "Sorry, the Google Maps API is not compatible with this browser" when I click to it. I'm using Mozilla Forefox 3.6.8 and SMF 2.0 RC3. I was go to google map and get a API key, then paste it to API field in Google Member Map admin, but it not make the problem stop, it's countinue when I use Google Member Map. How I fix it? anyone help me, please. Thanks alot.

I have the same problem which appeared after upgrading from 2.0 RC3 to RC4 and changing the SMF folder from ".httpdocs/board/" to "./httpdocs/".
API key was updated.

Any hint? Thank you!
Title: Re: Google Member Map RC2, RC3
Post by: TW1ST3D on November 14, 2010, 10:24:59 PM
Quote from: TheDel on October 28, 2010, 01:22:05 AM
Hey Blue Devil- quick question
The pins arent showing up on the main map anymore.
The mod worked when I installed it on 1.1- stopped working and then I upgraded to 2 and it was working again.
Then suddenly, it stopped. Everything else on the mod works but its not displaying the pins on the map page. I do have several mods but doubt its that because I dont think any of my mods affect the map page- which is the only issue. Any help would be HUGE

Thanks

I'm having the same Problem........any word on a fix?
Title: Re: Google Member Map RC2, RC3
Post by: GJSchaller on November 17, 2010, 10:15:21 PM
Quote from: stikkki on January 15, 2009, 07:03:42 PM
On 1.1.7 everytime a member looks at the map i get the following 2 errors - anyone got some ideas to rectify this

http://www.bullbreedluverz.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/******/public_html/smf/Sources/GoogleMap.php
Line: 115


http://www.bullbreedluverz.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/******/public_html/smf/Sources/GoogleMap.php
Line: 112


I was able to fix this by enabling the Side Bar feature - it was off by default, but once I turned it on, the errors vanished.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 24, 2010, 05:31:06 PM
Bluedevil was kind enough to transfer ownership of this mod to me so with that I've uploaded a new version.  If you go to the mod site you will only see one file now, I've attempted to make a consolidated install package so folks don't have to figure out which package to download.  I added in support for 2.0 RC4 as well.

For the 2.0 branch only I've added in several new features and fixed several bugs, they are listed below ... well at least all of the ones that I could remember.  There were changes in most of the files, plus in where the files installed / structured so there could be some bugs that I introduced, so as you find them please report them so I can try to duplicate and fix.

2.0.5
These changes are ONLY for the 2.0 branch, the 1.1x branch has not been updated
! Fixed 0,0 issue where members could not remove a pin they had set
+ Map control (pan / zoom) style is now selectable
! Moved map pin graphic source from defunct goggle service to goggle charts
+ Admin controls for Pin size, Pin color, Plain, Text and icon pins & Drop Shadows (member and cluster pins)
+ Option to see the latest pin adds/moves in the sidebar
! Fixed template layouts to use curve style in more places
! Member Map location will appear under profile summary if they have set a pin and disappear if they remove their pin
+ Added additional information to the map pin info pop-up, webpage, email, pm
+ updated the install to use proper 2.0 database code, separate language files.
+ separated the style sheet to its own file vs in line
+ Improved integration with profile pages so it matches the page style (dd/dt)
+ Added total count of pins to the map page
- Removed global requirements from language file
- Removed defunct package server from install
+ Consolidated the 1.1x & 2.0 installs into a single package.
Title: Re: Google Member Map RC2, RC3
Post by: interzis on November 24, 2010, 05:58:22 PM
Hello,

just installed 2.0.5 version on SMF 2.0 RC4.
the installation was done without errors, the administration backend seems to be OK but when I click on the Member Map link I've got the following error:

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

clicking OK then next error:

Sorry, the Google Maps API is not compatible with this browser

I have to tell you the full path of the SMF was modified in the mean time from /var/..../httpdocs/board" to "/var/.../httpdocs/" (domain root for html files)

Any help will be appreciated,
Thank you



LATER EDIT:

Solved, don't know how, maybe because I've tried to change some settings (sidebar position, type of displayed map, activating pin clustering)

Thank you for your attention
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 24, 2010, 06:37:36 PM
Sounds strange but glad its fixed ... Was this an upgrade of the mod or a new install ?
Title: Re: Google Member Map RC2, RC3
Post by: Garry1953 on November 24, 2010, 06:39:45 PM
SMF 2.0 RC4 -    Google Member Map 2.0.5

I'm getting these error's
http://www.artists-online-australia.com/art-forum/index.php?action=googlemap;sa=.xml
8: Undefined index: googleMapsPinrForeground
File: /home/xxxxxx/public_html/art-forum/Sources/GoogleMap.php
Line: 566


http://www.artists-online-australia.com/art-forum/index.php?action=googlemap;sa=.xml
8: Undefined index: googleMapsPinrForeground
File: /home/xxxxx/public_html/art-forum/Sources/GoogleMap.php
Line: 562
Title: Re: Google Member Map RC2, RC3
Post by: interzis on November 24, 2010, 06:41:45 PM
upgrade, after SMF upgrading (RC3 to RC4)
the previous version drop same errors, but no "auto-fixed" :)


best regards and thanks for your fast reply
Title: Re: Google Member Map RC2, RC3
Post by: Juan Carlos on November 24, 2010, 07:06:24 PM
Quote from: Garry1953 on November 24, 2010, 06:39:45 PM
SMF 2.0 RC4 -    Google Member Map 2.0.5

I'm getting these error's
http://www.artists-online-australia.com/art-forum/index.php?action=googlemap;sa=.xml
8: Undefined index: googleMapsPinrForeground
File: /home/xxxxxx/public_html/art-forum/Sources/GoogleMap.php
Line: 566


http://www.artists-online-australia.com/art-forum/index.php?action=googlemap;sa=.xml
8: Undefined index: googleMapsPinrForeground
File: /home/xxxxx/public_html/art-forum/Sources/GoogleMap.php
Line: 562


The same for me and thanks for the new version
Title: Re: Google Member Map RC3, RC4
Post by: Garry1953 on November 24, 2010, 07:43:17 PM
Spuds

Thanks for the update.

Now works with no Errors :)
Title: Re: Google Member Map RC3, RC4
Post by: scottd34 on November 25, 2010, 01:42:50 AM
Quote from: TW1ST3D on November 14, 2010, 10:24:59 PM
Quote from: TheDel on October 28, 2010, 01:22:05 AM
Hey Blue Devil- quick question
The pins arent showing up on the main map anymore.
The mod worked when I installed it on 1.1- stopped working and then I upgraded to 2 and it was working again.
Then suddenly, it stopped. Everything else on the mod works but its not displaying the pins on the map page. I do have several mods but doubt its that because I dont think any of my mods affect the map page- which is the only issue. Any help would be HUGE

Thanks

I'm having the same Problem........any word on a fix?

I was able to fix by manually inputting the code from the parse into load.php. For whatever reason it was never put in when I upgraded last.
Title: Re: Google Member Map RC3, RC4
Post by: Bugo on November 25, 2010, 05:09:50 AM
Mr. Spuds, what about hardcoded text in modification20.xml?

Example:
array('none' => 'No Sidebar', 'right' => 'Sidebar Right')
array('G_NORMAL_MAP' => 'Map', 'G_SATELLITE_MAP' => 'Satellite', 'G_HYBRID_MAP' => 'Hybrid')
array('GLargeMapControl3D' => 'Large 3D pan/zoom control', 'GLargeMapControl' => 'Simpler large pan/zoom control', 'GSmallMapControl' => 'Smaller pan/zoom control', 'GSmallZoomControl3D' => 'Small 3D zoom control', 'GSmallZoomControl' => 'Small zoom control')

It's not good.

Have you read this? => http://www.simplemachines.org/community/index.php?topic=357757.0
Quote from: SlammedDime
- No Hardcoded Text
"Hardcoded text" refers to words that are typed directly into the template and source files and displayed to members using the theme. This makes translating the mod for use with different languages much more difficult, so it is for this reason we require that all language strings be placed into language files. This applies even for English!  Modifications.english.php  is loaded on every page load and should be used for all mods unless your mod is large enough that it would require it's own language file.  You may add to other language files to your install file using the error="skip" attribute, but you must at least add them to Modifications.english.php if not creating your own language file.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 25, 2010, 10:34:27 AM
QuoteIt's not good.

Have you read this? => http://www.simplemachines.org/community/index.php?topic=357757.0
Most of that was as it was when I took ownership, I concentrated on fixing the real issues in the program and the database installer as well as new features .... did you notice that there are now separate language.xml files now so obviously I'm working on making things "compliant" ....

QuoteI was able to fix by manually inputting the code from the parse into load.php. For whatever reason it was never put in when I upgraded last.
That was the old version of the program, so not sure what to do about that, have you uninstalled the old version and installed the new one?  Pins not showing up on the map (but the map appearing) is generally an indication of a Javascript problem, I'd have to see the page where its occurring to tell for sure.
Title: Re: Google Member Map RC3, RC4
Post by: Eddy Matthews on November 27, 2010, 02:26:12 AM
A great update to the Member Map mod, thankyou...

However, there is one small problem, the mod is adding all the txt strings twice to each file!

Regards
Eddy
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 27, 2010, 11:04:13 AM
Quote from: Eddy Matthews on November 27, 2010, 02:26:12 AM
A great update to the Member Map mod, thankyou...

However, there is one small problem, the mod is adding all the txt strings twice to each file!

Regards
Eddy

Eddy,

Thanks for finding that, when I created the utf8 language file I neglected to change the file names in it to the utf8 files :-[ ...  which leads to V2.06c
Title: Re: Google Member Map RC3, RC4
Post by: powaserv on November 28, 2010, 04:22:36 AM
HI

I'm on the RC4 version and I have the same worries that certain.
To know this problem:

Quotethe installation was done without errors, the administration backend seems to be OK but when I click on the Member Map link I've got the following error:

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

Have a solution to this problem?

Thank's






Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 28, 2010, 10:00:36 AM
Quote from: powaserv on November 28, 2010, 04:22:36 AM
HI

I'm on the RC4 version and I have the same worries that certain.
To know this problem:

Quotethe installation was done without errors, the administration backend seems to be OK but when I click on the Member Map link I've got the following error:

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

Have a solution to this problem?

Thank's
Do you have an API key entered in the modifications admin panel?  If not you need to get an API key for your site and enter it in the mod settings.  Follow the supplied link to get your key.
Title: Re: Google Member Map RC3, RC4
Post by: powaserv on November 28, 2010, 03:46:33 PM
Quote from: Spuds on November 28, 2010, 10:00:36 AM
Quote from: powaserv on November 28, 2010, 04:22:36 AM
HI

I'm on the RC4 version and I have the same worries that certain.
To know this problem:

Quotethe installation was done without errors, the administration backend seems to be OK but when I click on the Member Map link I've got the following error:

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

Have a solution to this problem?

Thank's
Do you have an API key entered in the modifications admin panel?  If not you need to get an API key for your site and enter it in the mod settings.  Follow the supplied link to get your key.

Hi,

Yes well I put the key in the administration.
However I have come to see where my problem.
I misstated the address of my website.

My problem is resolved thank you.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on November 28, 2010, 06:05:11 PM
QuoteHi,

Yes well I put the key in the administration.
However I have come to see where my problem.
I misstated the address of my website.

My problem is resolved thank you.
Had to ask the first question ... you would be surprised  :D   

Yeah the site address needs to be correct for the API key to work ... Currently the mod runs on the v2 maps api which requires the key, the v3 api does not require the key so I've been toying with changing the mod over to the new api ... the downside is that the map search function (that search box on the add pin map screen) is not part of the v3 api and I have yet to find an acceptable solution.
Title: Re: Google Member Map RC3, RC4
Post by: Casa Grande on December 05, 2010, 08:32:51 AM
I have had the mod for some time and it has worked great.  However, I have recently moved to a new server, upgraded to RC4 and basically rebuilt the forum from the ground up.  I have imported all the old data to the new database.  Now, I'm getting this error with this app: 

Quote
Apply Filter: Only show the error messages of this URL
/forum/index.php?action=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined index: googleMapPinsOnMap
Apply Filter: Only show the errors from this file
File: /forum/Sources/GoogleMap.php
Line: 68

Any ideas?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on December 05, 2010, 10:05:31 AM
Check your Modifications.english.php file (or your utf8 equivalent) to make sure you added in all of the $txt strings for the mod.  The googleMapPinsOnMap index is a txt string, so the only way it could be tossing that error would be that it was the string was missing in the language file.
Title: Re: Google Member Map RC3, RC4
Post by: Casa Grande on December 05, 2010, 10:28:31 AM
thanks, Spud, I'll check that out.
Title: Re: Google Member Map RC3, RC4
Post by: belgium-gravure on December 28, 2010, 04:13:20 AM
Quote from: belgium-gravure on December 23, 2010, 03:30:29 PM
Traduction (français > anglais)
Hello sorry if my English is crap but I did with google translation

here I have updated the google map version (1.0 beta -> 2.0.6c) on my forum ensemble.eu-talking, no worries the (primary domain-hosting)

But as soon as I installed the wants on these forums

http://www.i-gamer.fr/forum/ (subdomain)
and
http://www.i-gamer.eu (+ subdomain alias redirect)

I have this error message in the error log of forum (version 1.1.12) in French (garnçais pack installed)
But the same thing if I put forum in English

Quote from: belgium-gravure on December 23, 2010, 03:31:57 PM
.............
http://www.i-gamer.eu/index.php?action=googlemap;sa=.js 
8: Undefined index: googleSidebar
Fichier: /var/www/virtual/belgium-gravure.net/i-gamer.eu/htdocs/Sources/GoogleMap.php
Ligne: 115

.........
http://www.i-gamer.eu/index.php?action=googlemap;sa=.js 
8: Undefined index: googleSidebar
Fichier: /var/www/virtual/belgium-gravure.net/i-gamer.eu/htdocs/Sources/GoogleMap.php
Ligne: 112

http://www.simplemachines.org/community/index.php?board=14.0

Quote from: bluedevil on December 27, 2010, 06:57:33 PM
You'll get better support here http://www.simplemachines.org/community/index.php?topic=210708.0
as i no longer support this mod.  There have been changes and updates.  ;)
http://www.bluedevilcustoms.com/index.php/topic,114.0.html
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on December 29, 2010, 12:28:34 PM
I'll take a look and see what might be happening.

Note that the 1.x branch of this mod has not changed since I took ownership.

If you are installing in a 1.1.12 forum it would have installed the 1.0 beta4 version (its included in the consolidated package)

Title: Re: Google Member Map RC3, RC4
Post by: belgium-gravure on December 29, 2010, 01:43:55 PM
hello and thank you
I tested the beta version 1.04 and have the same error but said only forums set subdomain
Title: Re: Google Member Map RC3, RC4
Post by: belgium-gravure on December 30, 2010, 02:45:27 PM
dank u , is test ;)

edite

is perfect  ;)
Title: Re: Google Member Map RC3, RC4
Post by: belgium-gravure on December 31, 2010, 04:19:44 AM
Hello

when a menber had to finish it this spot to create this error?

But if errors do occur before most of that side is fine



Sass
http://www.i-gamer.fr/forum/index.php?action=profile;sa=forumProfile 
8: Undefined index: googleMapPleaseClick
Fichier: /web/igamer/www/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Ligne: 1650

Title: Re: Google Member Map RC3, RC4
Post by: PatrickPriest on December 31, 2010, 03:51:49 PM
I am having a problem with the map being updated when I make changes to the settings, or someone adds a pin.

I have it to default zoom into a location... however... it doesn't.  I have also updated my profile to tell my location... but there are no pins on the map.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on December 31, 2010, 08:04:32 PM
Quote from: belgium-gravure on December 31, 2010, 04:19:44 AM
Hello

when a menber had to finish it this spot to create this error?

But if errors do occur before most of that side is fine



Sass
http://www.i-gamer.fr/forum/index.php?action=profile;sa=forumProfile 
8: Undefined index: googleMapPleaseClick
Fichier: /web/igamer/www/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Ligne: 1650



Thats a txt string that is missing ... I'm assuming that you created your own translation for the mod?  You should have a line like:

$txt['googleMapPleaseClick'] = 'Click to place your pin on the map or click on your pin to remove it.';

in your Modifications.YOURLANGUAGE-utf8.php or Modifications.YOURLANGUAGE.php in your themes/default/languages directory.  The mod only has the english translations at this time.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on December 31, 2010, 08:10:01 PM
Quote from: PatrickPriest on December 31, 2010, 03:51:49 PM
I am having a problem with the map being updated when I make changes to the settings, or someone adds a pin.

I have it to default zoom into a location... however... it doesn't.  I have also updated my profile to tell my location... but there are no pins on the map.
I don't think its going to like that zoom level of zero, you should make that something like 4 ... when you are at max zoom out (0) the map repeats and pins may not show since they are so tiny at that point. 
Title: Re: Google Member Map RC3, RC4
Post by: belgium-gravure on January 01, 2011, 05:14:13 AM
Dank u  ;)
Title: Re: Google Member Map RC3, RC4
Post by: PatrickPriest on January 03, 2011, 04:28:56 PM
Quote from: Spuds on December 31, 2010, 08:10:01 PM
Quote from: PatrickPriest on December 31, 2010, 03:51:49 PM
I am having a problem with the map being updated when I make changes to the settings, or someone adds a pin.

I have it to default zoom into a location... however... it doesn't.  I have also updated my profile to tell my location... but there are no pins on the map.
I don't think its going to like that zoom level of zero, you should make that something like 4 ... when you are at max zoom out (0) the map repeats and pins may not show since they are so tiny at that point. 
Alright... I have fixed that now.  But still... no pins showing up.  And I have updated my profile and placed my pin.  Shouldn't it be showing up?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 03, 2011, 04:46:59 PM
QuoteAlright... I have fixed that now.  But still... no pins showing up.  And I have updated my profile and placed my pin.  Shouldn't it be showing up?

What? actually have the pins show up ... that's a great idea  :laugh:  Yeah it should be showing the pins, I just noticed an error in the code that I'll fix shortly ... for now change the number of max pins from 0 to something like 250 ... that zero is supposed to be unlimited but is in fact ummm zero !
Title: Re: Google Member Map RC3, RC4
Post by: PatrickPriest on January 03, 2011, 05:00:04 PM
Quote from: Spuds on January 03, 2011, 04:46:59 PM
QuoteAlright... I have fixed that now.  But still... no pins showing up.  And I have updated my profile and placed my pin.  Shouldn't it be showing up?

What? actually have the pins show up ... that's a great idea  :laugh:  Yeah it should be showing the pins, I just noticed an error in the code that I'll fix shortly ... for now change the number of max pins from 0 to something like 250 ... that zero is supposed to be unlimited but is in fact ummm zero !
That fixed it and pins are actually showing up now. :)
Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 04, 2011, 06:06:29 PM
Hi Guys just installed GMM in R4 Sunshine theme and all seemed ok but the setting page only has boxes (see attached) and no text, how can I fix this?  :o

Kenso
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 04, 2011, 07:38:17 PM
That is an indication that the text strings were not written to your ManageSettings.english.php and you will need to add them. 

If you are using utf8 then the files are language-utf8.xml and ManageSettings.english-utf8.php

Get the $txt strings from the correct language.xml file, they will be under the section that says <file name="$themedir/languages/ManageSettings.english-utf8.php" error="skip">  you will need to get all of the lines (there are a lot) that start with $txt between the <add><![CDATA[  and ]]></add> lines for just that file.

If you are unsure how to do this upload your managesettings.english file and I'll update it for you

Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 04, 2011, 07:52:04 PM
Thanks Spud If you could have a look at it would be great!

Kenso
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 04, 2011, 11:33:13 PM
Yup that file did not get updated ... it looks fine (ie no other mod interfered) so I would guess that it had a permissions issue with accessing the file from the package manager.

In any case here is the file with the correct strings ... lets hope there were not any other files that had the same issue.

Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 04, 2011, 11:49:25 PM
Thanks  Spud, but allas still the same... oh well back to the drawing board ;)
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 05, 2011, 12:12:41 AM
utf8 ?
Title: Re: Google Member Map RC3, RC4
Post by: digit on January 13, 2011, 06:54:54 AM
I am attaching 3 posts since there is no way to reply to all three...

(SO see attachment!  8))

I too am using gobalopper's Location Mod, and am bummed about this.

What would you do if you had over 5000 pins in Gobalopper's Location mod...

Just tell your members that we need to start over?  :P

The reason I am asking is, I recently had a member report that our Member Map was no longer working.  I looked into it, and noticed I had the number of pins to show on the map set at 6000.  To test it, I reduced that number to 200 and it worked...  so I bumped it to 5000 and it still worked...   so I am wondering if Google has a 5000 pin limit, and if so, does it affect this mod as well?

Thanks in advance.

Title: Re: Google Member Map RC3, RC4
Post by: TheDel on January 13, 2011, 09:34:50 AM
I cannot get any pins to show.
It worked before now doesnt.
It does display OK in the profile but on the actual member map link, I got no pins (but it does say how many pins I have showing)

any ideas?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 13, 2011, 12:48:13 PM
QuoteThe reason I am asking is, I recently had a member report that our Member Map was no longer working.  I looked into it, and noticed I had the number of pins to show on the map set at 6000.  To test it, I reduced that number to 200 and it worked...  so I bumped it to 5000 and it still worked...   so I am wondering if Google has a 5000 pin limit, and if so, does it affect this mod as well?
To be honest I don't know if Google has a maximum number of markers, but displaying 5000+ markers on a map at once seems like a lot of visual clutter to me, you can't possibly see all those at once.   Additionally displaying that many would be slow and really impact the performance of the site.

This mod uses clustering of pins, so as you zoom out and the pins would just overlay on top of one another it displays a cluster pin to show there are a lot of pins in that location.  The cluster expands out when you zoom in to a proper level where you could actually distinguish the individual pins.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 13, 2011, 12:52:13 PM
QuoteI cannot get any pins to show.
It worked before now doesnt.
It does display OK in the profile but on the actual member map link, I got no pins (but it does say how many pins I have showing)

any ideas?
What settings do you have in your admin panel?  Do you have a example we can see?  All browsers or just one?  What version of SMF?
Title: Re: Google Member Map RC3, RC4
Post by: digit on January 13, 2011, 06:11:32 PM
Quote from: Spuds on January 13, 2011, 12:48:13 PM
QuoteThe reason I am asking is, I recently had a member report that our Member Map was no longer working.  I looked into it, and noticed I had the number of pins to show on the map set at 6000.  To test it, I reduced that number to 200 and it worked...  so I bumped it to 5000 and it still worked...   so I am wondering if Google has a 5000 pin limit, and if so, does it affect this mod as well?
To be honest I don't know if Google has a maximum number of markers, but displaying 5000+ markers on a map at once seems like a lot of visual clutter to me, you can't possibly see all those at once.   Additionally displaying that many would be slow and really impact the performance of the site.

This mod uses clustering of pins, so as you zoom out and the pins would just overlay on top of one another it displays a cluster pin to show there are a lot of pins in that location.  The cluster expands out when you zoom in to a proper level where you could actually distinguish the individual pins.

Yeah, it appears the clustering feature isn't working on gobalopper's version...   too bad there is no way to convert to this mod....   

sigh.

Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 13, 2011, 06:37:51 PM
Ok I had to do a re-install and got the mod going in Admin and profile, this might be a dumb question but where do I find the member map?  ??? (RC4 Sunshine) ozfarmer.com
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 13, 2011, 08:42:33 PM
Assuming you enabled it in the admin panel then it should show up menu bar somewhere after My Messages or Calendar.  Remember that you will need to go in to user permissions to give the view and add permissions to other groups.
Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 13, 2011, 09:07:28 PM
Hi Spuds, no nothing there...

Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 13, 2011, 10:30:58 PM
Please confirm that under Admin -> configuration -> modification settings -> member map that you have "Enable the Member Map Modification" checked, if you don't it will not show up anywhere.

If you do then in subs.php check for:
// Google Maps Mod
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => $modSettings['googleMapsEnable'] && allowedTo('googleMap_view'),
'sub_buttons' => array(
),
),


it should be immediately after the calendar block, if its not then there you will have to add it, use the package parser to make sure you place it after the correct line.  If you have to do this I would guess that the contact tab changed that area such that this mod can't find where to install.
Title: Re: Google Member Map RC3, RC4
Post by: kenso on January 13, 2011, 11:54:52 PM
Thanks Spud, that did the trick it was missing the:
// Google Maps Mod
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => $modSettings['googleMapsEnable'] && allowedTo('googleMap_view'),
'sub_buttons' => array(
),
),

Solved! thanks again.  ;)
Title: Re: Google Member Map RC3, RC4
Post by: TheDel on January 14, 2011, 12:07:11 AM
Quote from: Spuds on January 13, 2011, 12:52:13 PM
QuoteI cannot get any pins to show.
It worked before now doesnt.
It does display OK in the profile but on the actual member map link, I got no pins (but it does say how many pins I have showing)

any ideas?
What settings do you have in your admin panel?  Do you have a example we can see?  All browsers or just one?  What version of SMF?
Lets see-
Enabled- check
Legend check
no sidebar
api entered
KML unchecked (was checked bfore)
max 500
map
pan zoom large 3d
def lat 0
def long 250
show recent  check
def zoom 2
gender uncheck
cluster uncheck
min cluster  2
max pins  150
max cluster  7 
cluster info box  10

at least Chrome/Firefox

RC4
http://www.type1parents.org/index.php?action=googlemap
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 14, 2011, 10:14:52 AM
Thanks ... nothing obvious in those settings, I went to your site and also did not see the pins either.  Did you recently add any other mods?  There are several javascript things going on and knowing what you might have recently added would help.  I see you have:

Tapatalk
Enotify
Facebook connect
Parts of an image re-sizer function with missing scripts
2siChat (installed twice)
Google analytics (loaded at least 5 times)
Title: Re: Google Member Map RC3, RC4
Post by: Kindred on January 14, 2011, 10:24:55 AM
depending on which version of tapatalk you have installed, it may actually be causing some major conflicts with other mods.
Title: Re: Google Member Map RC3, RC4
Post by: TheDel on January 14, 2011, 01:48:20 PM
Quote from: Spuds on January 14, 2011, 10:14:52 AM
Thanks ... nothing obvious in those settings, I went to your site and also did not see the pins either.  Did you recently add any other mods?  There are several javascript things going on and knowing what you might have recently added would help.  I see you have:

Tapatalk
Enotify
Facebook connect
Parts of an image re-sizer function with missing scripts
2siChat (installed twice)
Google analytics (loaded at least 5 times)
Its been going on for awhile-and Ive installed many mods since then. But Im leaning towards one the older ones since this happened while I was still using SMF1. Started working when I upgraded and then recently went kaput.

But at least it reminds me I need to go in and do some clean up.
Title: Re: Google Member Map RC3, RC4
Post by: TheDel on January 15, 2011, 04:45:53 AM
Its Tiny Portal
WTF

Went and put fresh files in- installed the Map and it worked- then did TinyPortal and bam- map gone.
Anyway around this one?
Title: Re: Google Member Map RC3, RC4
Post by: Nuttcaze on January 23, 2011, 03:53:40 PM
I get 2 errors when installing this on my 1.1.12 forum, how would I fix this?

TIA  ;)

my forum - myrcguide.com



1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Execute Code add_settings11.php 
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/ModSettings.php Test failed
11. Execute Modification ./Sources/Profile.php Test successful
12. Execute Modification ./Themes/default/index.template.php Test failed  
13. Execute Modification ./Themes/default/Profile.template.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
17. Execute Modification ./Themes/default/languages/Who.english.php Test successful
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on January 23, 2011, 08:19:09 PM
Hi...

Thanks for a great mod. Will try it out in my forum.

It would be nice to have an indication wether or not the address is a price address or just an indication.

It was a little confusing to use the mod. If you type in the precise address and google finds it on the map, you still have to point the map to indicate your location. If google finds the addresse it would be much easier if you could just push save.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 23, 2011, 11:49:54 PM
Quote10. Execute Modification ./Sources/ModSettings.php Test failed
11. Execute Modification ./Sources/Profile.php Test successful
12. Execute Modification ./Themes/default/index.template.php Test failed
Thats a general indication that another mod you installed changed those files and now this mod can't find where to install itself.  Sadly that's not uncommon and the only solution is to manually make the edits in those files, which also means when you go to remove this mod (say for an update) you will need to manually undo those edits as well. 

What other mods do you have installed?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on January 23, 2011, 11:58:34 PM
Quote from: henrik1782 on January 23, 2011, 08:19:09 PM
Hi...

Thanks for a great mod. Will try it out in my forum.

It would be nice to have an indication wether or not the address is a price address or just an indication.

It was a little confusing to use the mod. If you type in the precise address and google finds it on the map, you still have to point the map to indicate your location. If google finds the addresse it would be much easier if you could just push save.
I agree 100%, especially the part about it being a great mod  :P

Seriously though the issue you are seeing is when you use the search function available in the profile section.  Google returns a pin to show you the search result on the map but the mod still requires that you click on the map to set the pin.

I agree that its confusing and it would be ideal if it just used the pin that google returned.  Sadly I have not been able to figure out how to do that so if anyone has some ideas how to do that please let me know!

As an FYI that search box is the only reason I never updated the api to maps v3 and still use v2.  Its not part of the v3 api and the workarounds are awkward at best.
Title: Re: Google Member Map RC3, RC4
Post by: Nuttcaze on January 24, 2011, 03:26:45 AM
Quote from: Spuds on January 23, 2011, 11:49:54 PM
Thats a general indication that another mod you installed changed those files and now this mod can't find where to install itself.  Sadly that's not uncommon and the only solution is to manually make the edits in those files, which also means when you go to remove this mod (say for an update) you will need to manually undo those edits as well. 

What other mods do you have installed?

Ugh, That doesn't sound fun, are there directions somewhere that discuss manually editing this? I don"t fully understand the whole process. I'm pretty sure I know where the files are but don't know what to edit.  ???

the other mods I currently have installed are

1. Ad Managment 2.3.6.1     
2. Aeva ~ Auto-Embed Video & Audio 7.1     
3. Highlight Unread Topics 1.0     
4. Member Awards 1.1.2     
5. SMF 1.0.20 / 1.1.12 Update 1.0   
6. AjaxChat Integration 3.2.1   
7. Country Flags 1.1.2
8. Share This Topic 2.6   
Title: Re: Google Member Map RC3, RC4
Post by: Kindred on January 24, 2011, 10:02:37 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Google Member Map RC3, RC4
Post by: Nuttcaze on January 25, 2011, 05:04:40 AM
thanks for the link  ;)
Title: Re: Google Member Map RC3, RC4
Post by: ranseyer on February 12, 2011, 08:16:38 AM
Hi,

is Support for RC5 expected in the next time ?

CU
Title: Re: Google Member Map RC3, RC4
Post by: MCK on February 13, 2011, 02:06:35 PM
Hi I have been running this mod on an SMF RC4 forum since RC3. My members love it. Now I installed it on another forum which I took over. This forum I upgraded to RC4 recently from 1.1.12 and today I installed the Member Map. I can capture my pin in the Profile page but it will not show when I go to the Member Map. Can you kindly help? Thanks much!
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 13, 2011, 03:34:49 PM
Quoteis Support for RC5 expected in the next time ?
Very soon ;)

QuoteHi I have been running this mod on an SMF RC4 forum since RC3. My members love it. Now I installed it on another forum which I took over. This forum I upgraded to RC4 recently from 1.1.12 and today I installed the Member Map. I can capture my pin in the Profile page but it will not show when I go to the Member Map. Can you kindly help? Thanks much!
Do you have any other mods installed?  Also a link to your site where I could see the problem would be helpful as well.
Title: Re: Google Member Map RC3, RC4
Post by: MCK on February 13, 2011, 03:41:07 PM
Hi Spuds, thanks for your help.

Here's the site I have that works with many pins! Great job!
http://www.futureguitarnow.com/forum/index.php?action=googlemap

Here's the one I just installed where the pins don't seem to want to cooperate. If you lookup member MCK (yours truly) you should be able to see the pin in the profile page but it does not show up on the map. Thanks for your help.
http://www.vguitarforums.com/smf/index.php?action=googlemap
Title: Re: Google Member Map RC3, RC4
Post by: MCK on February 14, 2011, 12:32:19 AM
Hi Spuds,

A quick update. No change on the site that don't work. As for the site that I thought was working someone alerted me to the fact that their icon placed new is not showing up. The icons showing up are apparently those that were placed earlier when I had this mod running for quite some time. Hope this helps in the troubleshooting process somehow.

Please let me know what I can check to resolve this issue. Thanks much for your help.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 16, 2011, 08:06:17 PM
Could you post your admin settings for the mod ... make sure you have not limited the number of pins to low, ie you have more user pins then you are allowing on the map.  You can show more but when the count gets high make sure you turn on clustering or the performance will drop as Google places all those pins.
Title: Re: Google Member Map RC3, RC4, RC5
Post by: Spuds on February 16, 2011, 08:07:21 PM
Posted the update for 1.1.13 and 2.0 RC5 ... let me know if anyone has any problems ! (with the mod of course :) )
Title: Re: Google Member Map RC3, RC4
Post by: MCK on February 17, 2011, 10:44:19 AM
Quote from: Spuds on February 16, 2011, 08:06:17 PM
Could you post your admin settings for the mod ... make sure you have not limited the number of pins to low, ie you have more user pins then you are allowing on the map.  You can show more but when the count gets high make sure you turn on clustering or the performance will drop as Google places all those pins.

Installed 2.0.7 and all is good now. Its working! Thanks for your continued support for this mod.
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 22, 2011, 08:57:38 AM
Hi Spuds...

I get some errors in my log... can you help me out here. SMF 2.0 RC5 and Google Member Map 2.0.7

Aktivér filter: Vis kun fejlbeksederne for denne webadresse
http://xxxxxx/index.php?action=googlemap;sa=.js
Aktivér filter: Vis kun fejl med identisk fejlmedling
8: Undefined index: googleMapsPinGender
Aktivér filter: Vis kun fejl fra denne fil
Fil: /share/MD0_DATA/Qweb/xxxxxx/Sources/GoogleMap20.php
Linie: 238

Aktivér filter: Vis kun fejlbeksederne for denne webadresse
http://xxxxxx/index.php?action=googlemap;sa=.js
Aktivér filter: Vis kun fejl med identisk fejlmedling
8: Undefined index: googleMapsPinGender
Aktivér filter: Vis kun fejl fra denne fil
Fil: /share/MD0_DATA/Qweb/xxxxxx/Sources/GoogleMap20.php
Linie: 153
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 22, 2011, 11:02:51 PM
Aktivér filter: Vis kun fejlbeksederne for denne webadresse
http://xxxxxx/index.php?action=googlemap
Aktivér filter: Vis kun fejl med identisk fejlmedling
8: Undefined index: googleMapsPinGender
Aktivér filter: Vis kun fejl fra denne fil
Fil: /share/MD0_DATA/Qweb/xxxxxxx/Themes/default/GoogleMap20.template.php
Linie: 69

Still this
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 22, 2011, 11:06:31 PM
Just a cosmetic issue. Se attachment
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 23, 2011, 12:03:06 AM
I don't get that on a new rc4/5 site so I'm guessing that's caused by mods conflicting with one another.
Title: Re: Google Member Map
Post by: SeaChaser on February 23, 2011, 01:39:43 PM
Hey Spuds,

I just added this mod to my 1.1.13 forum and the members love it. I would like to add some pins, maybe even customized pins, for locations of interest to the forum members but not necessarily have to create ghost accounts for those locations. Is that possible?

Thnaks in advance,

SC
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 23, 2011, 07:00:26 PM
Quote from: SeaChaser on February 23, 2011, 01:39:43 PM
Hey Spuds,

I just added this mod to my 1.1.13 forum and the members love it. I would like to add some pins, maybe even customized pins, for locations of interest to the forum members but not necessarily have to create ghost accounts for those locations. Is that possible?

Thnaks in advance,

SC
Its something that I'm going to add to the mod one of these days, but only for the 2.0 branch, the 1.1 branch is really just in maintenance at this point.

If you are comfortable doing a little editing, the way to add a pin without adding ghost members is the following.  Open up the GoogleMap11.php and find the line that says
    // Lets accualy start making XML Mr. PHP

immediately before that you need to add this block of code, for each and every pin that you intend to add
$data[] = array(
'name' => 'Google HQ',
'href' => 'http://www.google.com',
'blurb' => 'This is where we rule the world from',
'website' => array('title' => 'Google Website','url' => 'http://www.google.com'),
'title' => '_____________',
'location' => 'Mountain View, California',
'googleMap'=> array('latitude' => 37.423021, 'longitude' => -122.083739),
'gender' => array('name' => '','image' => ''),
'icq' => array('name' => '', 'add' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'aim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'yim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'msn' =>  array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'avatar' => array('name' => '','image' => '','href' => '', 'url' => ''),
'online' => array('is_online' => 0,'text' => $txt['online3'],'href' => '#','link' => '','image_href' => $settings['images_url'] . '/' .  'useroff.gif','label' => $txt['online5'])
);


This will give you a pin on the map with some basic information in the info bubble.  Be careful when editing, don't mess up any of the ' or , or you will get an error  ;)  You need to change the information in those first seven lines to customize each pin, the rest of the lines are just there so you don't get undefined index notices in your error log.

Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 23, 2011, 07:07:07 PM
Hi SeaChaser...

This could endeed be a great option to this mod.

An options to Google Maps are the ability to create your own maps. If this could be implemented it would be NICE !!! You could place pins draw on map and give it a name in Gootle maps and then use Google Member Map to retreive it.

You could then have buttons in Google Member Map to select the different maps...
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 23, 2011, 07:19:21 PM
Hi Spuds....

can the same code be inserted to the GoogleMap20.php and where...?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 23, 2011, 09:25:36 PM
Quote from: henrik1782 on February 23, 2011, 07:19:21 PM
Hi Spuds....

can the same code be inserted to the GoogleMap20.php and where...?
It should ... worst it will do is give you and undefined index ;)  .... in 2.0 look for
// Let's actually start making the XML
and insert the code above that line
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 24, 2011, 10:27:38 AM
Thanks Spuds! That worked great.

How do I add an image to the info bubble and is there any way to add a custom pin?

Woot!

-SC
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 24, 2011, 12:51:20 PM
H SeaChaser...

As I see it the option to place a picture is this
'avatar' => array('name' => '','image' => '','href' => '', 'url' => ''),

For custom items it would be nice if the location (address) and telephone number could be shown.

Spuds...
I can see that you load data in KML format. Maybe it would be possible to load custom KML files, so we can put KML files in a specifik directory and then it wil be loaded when map is shown.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 24, 2011, 01:23:33 PM
QuoteAs I see it the option to place a picture is this
'avatar' => array('name' => '','image' => '','href' => '', 'url' => ''),
correct, and the only item you need to set is the image once, and it must be a complete html img tag like <img src="http://myimage.ishere.com/myimage.jpg" />

QuoteFor custom items it would be nice if the location (address) and telephone number could be shown.
Use the blurb line for that, put in whatever you would like.

QuoteI can see that you load data in KML format
Actually it just outputs a kml file for use in google earth (its an export file) ... the only thing it reads, in a way, is the xml file that the mod creates and then that is feed to google map api .

Quoteis there any way to add a custom pin?
Yes, buts that beyond this tweak ... you would need to create a custom index and then build in the code to render a special pin when the index is used ... if you look at the code and see how the gender pins are created you will get an idea of how to do it.
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 25, 2011, 05:20:47 AM
Hi Spuds...

The blurp var can not be used, but putting the information in title worked just fine.
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 10:48:50 AM
Thanks for the help but I'm a text editor. I don't know squat about php. I edited the picture in like this:

'gender' => array('name' => '','image' => '<img src="http://www.arimaboatownersgroup.com/Sources/ArimaLogo.jpg" />'),

is that right? I'm not getting my image to show.

Anything I can do to chnge the pin image?

TIA

-SC
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 25, 2011, 10:54:39 AM
$data[] = array(
'name' => 'Stadsarkivet',
'href' => '',
'blurb' => 'Smallegade 1',
'website' => array('title' => '','url' => ''),
'title' => 'Smallegade 1<br />2000 Frederiksberg<br />Telefon 38212149',
'location' => 'Danmark',
'googleMap'=> array('latitude' => 55.67873, 'longitude' => 12.53188),
'gender' => array('name' => '','image' => ''),
'icq' => array('name' => '', 'add' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'aim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'yim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'msn' =>  array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'avatar' => array('name' => '','image' => '<img src=http://www.ftb-forum.dk/Billeder/GoogleMap/Stadsarkivet_frederiksberg.jpeg>','href' => '', 'url' => ''),
);


You should use the avatar line. Look at my example. I have removed the last line of the code block because it is of no use for this.

Download Notepad ++ to make edit in php files...
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 08:47:47 PM
I now get the red X where my image should be but can't seem to understand why the imgae isn't seen. Here's my code:

Quote
   $data[] = array(
   'name' => 'Arima Marine International, Inc.',
   'href' => 'http://www.arimaboats.com',
   'blurb' => 'Home of Arima Boats',
   'website' => array('title' => 'Arima Website','url' => 'http://www.arimaboats.com'),
   'title' => '47-37th Street N.E.<br />Auburn, WA 98002<br />Phone: 253.939.7980',   'location' => '',
   'googleMap'=> array('latitude' => 47.340706, 'longitude' => -122.22895),
   'gender' => array('name' => '','image' => ''),
   'icq' => array('name' => '', 'add' => '', 'href' => '', 'link' => '', 'link_text' => ''),
   'aim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
   'yim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
   'msn' =>  array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
   'avatar' => array('name' => '','image' => '<img src=http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg>','href' => '', 'url' => ''),
   'online' => array('is_online' => 0,'text' => $txt['online3'],'href' => '#','link' => '','image_href' => $settings['images_url'] . '/' .  'useroff.gif','label' => $txt['online5'])
   );   

Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 25, 2011, 09:01:49 PM
'avatar' => array('name' => '','image' => '<img src=http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg>','href' => '', 'url' => ''),

What are your site url www.arimaboats.com or www.arimaboatownersgroup.com....?

in the directory where your domain points to you have to got a direcotry called GoogleMapImages and in this the arimalogo.jpg  file. The directory name and file name are case sensetive. To test that you can actually show a picture you can put in my image url.
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 09:07:56 PM
The forum web site is arimaboatownersgroup.com. The point I'm putting on the map is arimaboats.com.

If I enter this in my browser, I see the image I want: http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg

Is the image too large? Are there size restrictions?

Thanks!
Title: Re: Google Member Map RC3, RC4
Post by: henrik1782 on February 25, 2011, 09:11:14 PM
As it is an avatar I will guess that it should be around 300x300 pxl. But I have not look into the code.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 25, 2011, 09:16:45 PM
Quote from: SeaChaser on February 25, 2011, 08:47:47 PM
I now get the red X where my image should be but can't seem to understand why the imgae isn't seen. Here's my code:


'avatar' => array('name' => '','image' => '<img src=http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg>','href' => '', 'url' => ''),


Try this .....


'avatar' => array('name' => '','image' => '<img src="http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg" />','href' => '', 'url' => ''),
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 09:25:55 PM
Thanks but that didn't work either. I tried a re-sized image that was 100x80 and it didn't work either.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 25, 2011, 09:38:51 PM
I just tried it and it worked fine so you must have typed in something wrong ... the image is to large for the info bubble and broke the format but it came right up ....

also looked nice as the title

'title' => '<img src="http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg" />',
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 09:47:57 PM
Dang, I'm copying and pasting everything. Ugh!

Quote'online' => array('is_online' => 0,'text' => $txt['online3'],'href' => '#','link' => '','image_href' => $settings['images_url'] . '/' .  'useroff.gif','label' => $txt['online5'])
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 25, 2011, 09:51:17 PM
You have to use code tags, not quote tags, for posting code ... its the # symbol in the toolbar
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 10:09:33 PM
'avatar' => array('name' => '','image' => '<img src="http://www.arimaboatownersgroup.com/GoogleMapImages/arimalogo.jpg" />','href' => '', 'url' => ''),
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 25, 2011, 10:15:41 PM
Just attach your googlemap11.php file and I'll take a look (you were on smf 1.1.13 correct?)
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 25, 2011, 11:53:50 PM
Thanks for all of your help! Yes. 1.1.13.
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 26, 2011, 12:54:47 AM
Thanks! That works.

I see that the code autosizes so having logos that are short but long doesn't work so well. I'll go pick another image.

Alright, how about adding a custom pin?

Also, how do I put these entries above the member entries?

This SMF stuff is pretty cool!
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 26, 2011, 09:59:25 AM
If you want it at the top, instead of using adding in the pins as $data[] = array(

use this  $data1[] = array(

which is just using a new name for the array of custom pins ..... and then after all of those are added place this

$data = array_merge($data1,$data);

which will merge it back with the member pins but on top of them.
Title: Re: Google Member Map RC3, RC4
Post by: SeaChaser on February 26, 2011, 08:57:26 PM
That worked sweet!

Any advice on using different pins than the ones used for regular members?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on February 26, 2011, 10:22:46 PM
Quote from: SeaChaser on February 26, 2011, 08:57:26 PM
That worked sweet!

Any advice on using different pins than the ones used for regular members?
Learn PHP  :laugh: 

Its not difficult but its more than inserting a single block of code like we did for adding a custom pin and right now I simply don't have the time to do that.  Basically you will need some way to identity that pin as special, like is done with gender pins, and then when you find that special index, tell Google to load a special gpin.   

I have "plans" to do some more work on this mod at some point and adding custom pins will be part of that, but thats a ways off right now.
Title: Re: Google Member Map RC3, RC4
Post by: yakyakyak on March 04, 2011, 06:45:42 AM
SMF2 RC3

Parsed ok
Install ok
API added
Admin map profile updated, no problem

However, selecting the Member Map from the menu produces



Fatal error: require_once() [function.require]: Failed opening required '/xxxx/xxxx/xxxxrestaurant.com/public_html/Sources/GoogleMap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites/xxxx/xxxx/xxxxxrestaurant.com/public_html/index.php on line 459



Now to be honest i have no clue how to setup the Network Link

Is the error produced above because there is no Network Link added as yet AND can someone please give explicit instructions on how to add the Network Link.

If the error is not associated with no Network Link can someone please offer support

thanks

Title: Re: Google Member Map RC3, RC4
Post by: Bigguy on March 04, 2011, 09:53:19 AM
The error above means it has failed to open this file:

GoogleMap.php

verify that it is in your Sources directory and that it has the right permissions.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on March 04, 2011, 12:14:02 PM
Quote from: Bigguy on March 04, 2011, 09:53:19 AM
The error above means it has failed to open this file:

GoogleMap.php

verify that it is in your Sources directory and that it has the right permissions.
Yup  .... It also means that I had a few to many things going on at the same time and forgot to update the RC3 install to use the now GoogleMap20.php file.  When I updated  for RC5 I changed the package and the filenames to avoid package problems and never went back to the RC3 stuff :( 

Anyway uninstall and then re-download the package from the mod site, I believe I've corrected it for RC3, give it a try and let me know.
Title: Re: Google Member Map RC3, RC4
Post by: yakyakyak on March 05, 2011, 03:42:39 AM
Quote from: Spuds on March 04, 2011, 12:14:02 PM

Anyway uninstall and then re-download the package from the mod site, I believe I've corrected it for RC3, give it a try and let me know.

Done and works a treat

Thank you very much for the prompt reply
Title: Re: Google Member Map RC3, RC4
Post by: bfallgren on March 30, 2011, 03:23:22 AM
SMF v. 1.1.13

7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test failed
13.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Title: Re: Google Member Map RC3, RC4
Post by: Kindred on March 30, 2011, 07:27:34 AM
Why do people never use search?

I can only ASSUME that your question is "what do I do with these errors?" because you didn't actually include a question...    And I wil note that this question has been asked over a dozen tmes in nearly every mod thread, including this one.

You will have to manually install the mod code changes into those files.
Title: Re: Google Member Map RC3, RC4
Post by: bfallgren on March 31, 2011, 01:36:33 AM
And do you assume that everyone knows how to do that?
Title: Re: Google Member Map RC3, RC4
Post by: bfallgren on March 31, 2011, 11:39:43 PM
Thank you very much  ;D
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 10, 2011, 12:45:24 PM
Hello...

I just install this mod to my SMF 2.0 RC5 + SimplePortal 2.3.3 installation.
Everything is fine except that i am the only Admin in the forum and the Member Map display me like Newbie.
I forgot to do something ?

Thank you very much.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on April 10, 2011, 11:05:25 PM
QuoteEverything is fine except that i am the only Admin in the forum and the Member Map display me like Newbie.
Could you provide further explanation / detail ?  I'm not sure what problem you are seeing.
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 11, 2011, 08:55:16 AM
I am trying to explain again...

When you click a pin on the map you see the member information.
Correct ?
Also you see the membergroup of the member.

In my pin the membergroup displayed is "Newbie" and not "Administrator"
I hope you understand now.

Thank you.
Title: Re: Google Member Map RC3, RC4
Post by: Kindred on April 11, 2011, 09:31:46 AM
how many posts does your account have?   Is it a newbie in the post-count-based group?
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 11, 2011, 09:47:13 AM
Yes is a new forum and i only have 3 posts...
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on April 11, 2011, 11:10:28 AM
Now I understand ...

As Kindred said the text is based on if you have set post count groups enabled (newbie, etc.) it does not display the member groups (admin, moderator, etc)

You can turn it off globally with theme settings (Hide post group titles for grouped members:) but that will effect posts made in boards as well. 

If you want to turn it off for just the member map you will need to edit the code in GoogleMpa20.php.
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 11, 2011, 11:13:13 AM
OK. I understand.
Is there anyway to make the map display the primary membergroup and not the post count membergroup ?
Title: Re: Google Member Map RC3, RC4
Post by: Kindred on April 11, 2011, 11:20:30 AM
Quote from: Spuds on April 11, 2011, 11:10:28 AM
You can turn it off globally with theme settings (Hide post group titles for grouped members:) but that will effect posts made in boards as well. 

If you want to turn it off for just the member map you will need to edit the code in GoogleMpa20.php.
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 11, 2011, 11:29:25 AM
I already see that.
Can you help me with the edits on the file ?
I am not so good in PHP...
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on April 11, 2011, 11:41:03 AM
In GoogleMap20.php in the function MapsXML() do the following (not tested but should work ;) )


Code (find) Select
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $marker['group'] == '') && $marker['post_group'] != '') $datablurb.= '</tr><tr><td>' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</td>';


Code (replace) Select
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
// if ((empty($settings['hide_post_group']) || $marker['group'] == '') && $marker['post_group'] != '') $datablurb.= '</tr><tr><td>' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</td>';
Title: Re: Google Member Map RC3, RC4
Post by: Yngwiedis on April 11, 2011, 11:50:11 AM
Ehmmm... i think you have post the exactly same lines...


Nevermind... I need to comment the second line.
I get it ;)

Is working for now. Is not display membergroup at all.

Thank you very very much.
Title: Re: Google Member Map RC3, RC4
Post by: Coon on April 15, 2011, 03:02:34 AM
How can I change the title of the map page?  The page title is Member Map right now.

I've been looking all night, but can't find the file to edit.

Thanks!
Title: Re: Google Member Map RC3, RC4
Post by: Coon on April 15, 2011, 03:18:04 AM
If someone can also help me with this, please:

1) Allow guests to click the pin and view user information.  Right now, guests can only see the map but can't click on the pin for more info on the member.

2) Is there a way to allow manual submissions?  I would like guests and members to be able to enter the information of others.  For example, anyone can come in and put Mike Jones from Texas on the map.  Is there a way to allow anyone to add a member to the list?

Thanks! :D
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on April 15, 2011, 09:56:29 AM
Quote from: Coon on April 15, 2011, 03:02:34 AM
How can I change the title of the map page?  The page title is Member Map right now.
for smf 1.1.x you will need to edit the GoogleMap11.php file, line 34 is    $context['page_title'] = "Member Map"; change Member Map to what you want.

Quote1) Allow guests to click the pin and view user information.  Right now, guests can only see the map but can't click on the pin for more info on the member.
I believe this is tied to guest permissions, so you would have allow guests to view other members profiles.
Quote
2) Is there a way to allow manual submissions?  I would like guests and members to be able to enter the information of others.  For example, anyone can come in and put Mike Jones from Texas on the map.  Is there a way to allow anyone to add a member to the list?
That is again a permissions issue, you would have to have permission to change a members profile.  Generally thats only for admins and some moderators.  If you are asking to add a pin for someone who is not a member of the site that option is not available.


Title: Re: Google Member Map RC3, RC4
Post by: JohanLM on April 15, 2011, 11:27:02 AM
Quick yes/no question (done basic search but didnt find the answer).

Can this be a group/moderator/admin see only function?
Or is it visible to all?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on April 15, 2011, 03:42:33 PM
You can set both view map and add to map permissions under member group permissions so yes you can restrict viewing and adding access by group.
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 10, 2011, 03:14:52 PM
Just installed this on my test forum and it's looking good, thanks.

One quick question. Can the member location pins be seen on any Google Maps outside of the forum? I'm very new to using Google personal maps and we run a private forum so I wouldn't want their locations and details to be found outside of the forum.

If they are, is there any code I can use to restrict their visibility?

Hmm, maybe not so quick a question  ???

Cheers
Chas.
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 10, 2011, 03:43:22 PM
Another little question, in the Admin for this there is a box entitled:

Enter text for use with a member text pin

I have entered some text "FPF Member" into this box but it does not seem to appear on the pin info when clicked on the map

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi880.photobucket.com%2Falbums%2Fac2%2FHal9000_bucket%2FMemberMap2.jpg&hash=2cba75e387ae4ded5f082a55d3e2245f490667e8)

Where should this appear?
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on May 10, 2011, 04:33:16 PM
QuoteCan the member location pins be seen on any Google Maps outside of the forum?
Nope ... the data is taken from your database and  is only "rendered" by google maps, its not stored outside of the forum.

QuoteEnter text for use with a member text pin
This is for use with pin styles ... under
What style of member pin to use:  select pin with text
then that text line will be used inside of the pin icon, really only intended for a few characters instead of an icon.  Not sure what use that is but since I could do it I did :)

Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 10, 2011, 10:34:26 PM
Quote from: Spuds on May 10, 2011, 04:33:16 PM
QuoteCan the member location pins be seen on any Google Maps outside of the forum?
Nope ... the data is taken from your database and  is only "rendered" by google maps, its not stored outside of the forum.
Excellent, thanks, my members will be pleased.

Quote from: Spuds on May 10, 2011, 04:33:16 PM
QuoteEnter text for use with a member text pin
This is for use with pin styles ... under
What style of member pin to use:  select pin with text
then that text line will be used inside of the pin icon, really only intended for a few characters instead of an icon.  Not sure what use that is but since I could do it I did :)
Thanks for that. Sadly the text is just too small to see as it's centred over the pin, it would be better shifted to the right of the pin if possible. Even with maximum zoom it's almost unreadable. It could be useful to identify a group of pins amongst others but unless it could have a "user" option it's not much use on a forum.

Thanks for an otherwise great mod :)
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 13, 2011, 09:17:10 AM
Installed and running nicely thanks Spuds, you make some really great mods.

Is there any way to set the default Lat/Long/Zoom for the map on the profile for beginners? We're all in the UK and it would just add that touch of localisation.

I looked at the code and the Google Apps docs but couldn't quite work out which version you were using. Any chance of a link to that as I'd like to use this kind of thing on another site.


Cheers

Not to worry, have worked it out and also set the default location for the profile map too. :)
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 14, 2011, 05:23:15 AM
Sorry Spuds, me again.

Just doing my weekly clear out of the log file and I've got 270 of these pesky blighters in there.

http://www.fiftyplusforum.co.uk/forum/index.php?action=googlemap
8: Undefined index: googleMapsPinGender
File: /home/fiftyplu/public_html/forum/Themes/default/GoogleMap20.template.php
Line: 69


Can't find a bad reference on that line so I don't know why it's referring to it. I see this has been an issue before and you offered a replacement GoogleMap20.template.php file. I'm assuming this is now incorporated in the currently available release but may be wrong.

BTW we don't have the Show Gender option enabled.
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on May 15, 2011, 08:11:16 AM
Thanks spuds, it works fine and I'll check the logs later to see if it's cleared that error.

This mod has proved extremely popular on our site, so thanks again. :)

EDIT: Yes it did clear the errors, thanks.
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on June 09, 2011, 05:57:09 AM
Two questions about the BOLD highlighting of members names in the list.

1. How long is the BOLD highlighting period?

2. Does the Admin remain BOLD always? it seems to despite others showing non-bold after the period mentioned in 1. above.

Thanks

Chas.
Title: Re: Google Member Map RC3, RC4
Post by: Spuds on June 09, 2011, 09:18:40 AM
1. Roughly a week .. its set with $last_week = time() - (7 * 24 * 60 * 60); in Googlemap20.php so you can increase/decrease should you like a different duration.  Guess I should add that to the admin panel at some point.

2. Sounds like you may have found a bug  :P  .... is your admin uid = 1 out of curiosity?
Title: Re: Google Member Map RC3, RC4
Post by: Chas Large on June 09, 2011, 11:00:34 AM
Quote from: Spuds on June 09, 2011, 09:18:40 AM
1. Roughly a week .. its set with $last_week = time() - (7 * 24 * 60 * 60); in Googlemap20.php so you can increase/decrease should you like a different duration.  Guess I should add that to the admin panel at some point.

2. Sounds like you may have found a bug  :P  .... is your admin uid = 1 out of curiosity?
1. Thanks
2. Yup!
Title: Re: Google Member Map RC3, RC4
Post by: Juan Carlos on June 12, 2011, 06:18:05 PM
Hi,

I just updated to a new version and during the instalation everything going well but now I cant see the list of members, I can see the legend: "There are (25) member pins on the map".

What could be happend?

Thanks

Title: Re: Google Member Map RC3, RC4
Post by: Spuds on June 12, 2011, 08:02:47 PM
Confirmed ... damn ... I'll get an update posted in a few


ETA: Should be fixed now, please download the new package and uninstall / reinstall.  I did not change the package name, the only error was an mistaken 'enter' at the start of the xml doc that the map reads in.
Title: Re: Google Member Map
Post by: Juan Carlos on June 12, 2011, 10:22:02 PM
Wow

Thank you very much, now is working.
Title: Re: Google Member Map
Post by: Juan Carlos on June 12, 2011, 10:27:41 PM
Well,

Now I installed in other forum taht I have (same mods, same version and same server) and in this forum this is happenig:
The menu disapear and only see the Member Map option.

I make the installation 4 times and the problem persist. The install and uninstall not have errors.
:-[ :-[
Title: Re: Google Member Map
Post by: Spuds on June 12, 2011, 11:40:02 PM
Turn on the calendar function and see what it does ... if that fixes it I'll get another update out tomorrow ...

I'm thinking since I placed the button after the calendar button, if the calendar is not on as a base feature then it will fail with what you have shown ... I forgot that the calendar is optional when I made the update, to many mods, so little time  :laugh:

ETA:  Nope that issue was accounted for in the code, but now I see the problem.  Looks like you are using PHP v4 and I made use of a php 5 option .... I'll get that sorted here in a few.
Title: Re: Google Member Map
Post by: Spuds on June 13, 2011, 09:33:02 AM
I've uploaded the package again, this time I removed a php5 dependency that looks to have been causing your problem.  Give it a try and let me know.
Title: Re: Google Member Map
Post by: yakyakyak on June 13, 2011, 09:34:46 AM
Excellent

Great work as always
Title: Re: Google Member Map
Post by: Juan Carlos on June 13, 2011, 09:50:37 AM
Now is working, great job.

Thank you very much

The strange think is that I have to identical forums in the same server and the problem only was in one of them...
Title: Re: Google Member Map
Post by: Juan Carlos on June 13, 2011, 12:46:01 PM
Hi again

I see that now with the mod installed I cant logout, I have this error : Session verification failed. Please try logging out and back in again, and then try again. If uninstall the mod I can logout again.  ???
Title: Re: Google Member Map
Post by: Spuds on June 13, 2011, 01:12:46 PM
I see the problem .. all because of having to support php4 ... Grrrrr  Let me see what I can do, what a PITA, how can something so simple be this difficult !!
Title: Re: Google Member Map
Post by: Juan Carlos on June 13, 2011, 01:17:35 PM
May be I can help changing something in my server configuration, please tell me if this is necesary.


Thanks for your great support
Title: Re: Google Member Map
Post by: Spuds on June 13, 2011, 01:43:12 PM
Give it another try, it should both now work in php4 and not have the logout side effect.

Apologies to everyone for all the updates!
Title: Re: Google Member Map
Post by: C4G-TK on June 13, 2011, 01:52:51 PM
Looks like I installed this a couple hours too soon.  I installed last night and afterwards my "logout" and "members" tabs disappeared.  Didn't notice that they were gone til just now.  On the other hand, the map showed up fine!  LOL

Just uninstalled and everything was fine.  Will try the new updated package now!


Update:
Installed once again with no errors, but this time everything is correct on the navigation bar! People can logout and the members tab shows.  Thanks!
Title: Re: Google Member Map
Post by: Juan Carlos on June 13, 2011, 01:59:00 PM
It seems that everything is OK now.

Thank you very much
Title: Re: Google Member Map
Post by: Chas Large on June 15, 2011, 01:53:36 PM
Hi Spuds, just thought you should be aware of this. In the process of preparing for the upgrade from 2.0RC5 to 2.0 full, I wanted to change from SMF Gallery to AEVA Media. I had Aeva Lite 7.1.708. I also have Google member Map 2.0.7 installed.

I went to uninstall Aeva Lite and got an error for ManageSettings.php
Find
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
'aeva' => array(
// Loads our language file if it hasn't been loaded already
'label' => !isset($txt['aeva']) ? (loadlanguage('Aeva') == false ? (loadLanguage('Aeva', 'english') == false ? 'Aeva' : $txt['aeva']) : $txt['aeva']) : $txt['aeva'],
'description' => $txt['aeva_desc'],
),
'aevasites' => array(
'label' => !isset($txt['aeva_sites']) ? 'Aeva Sites' : $txt['aeva_sites'],
'description' => $txt['aeva_desc'],
),


Replace
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),


Looking at the code for ManageSettings.php I found the following:

'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
'googlemap' => array(
'description' => $txt['googlemapdesc'],
),
'aeva' => array(
// Loads our language file if it hasn't been loaded already
'label' => !isset($txt['aeva']) ? (loadlanguage('Aeva') == false ? (loadLanguage('Aeva', 'english') == false ? 'Aeva' : $txt['aeva']) : $txt['aeva']) : $txt['aeva'],
'description' => $txt['aeva_desc'],
),
'aevasites' => array(
'label' => !isset($txt['aeva_sites']) ? 'Aeva Sites' : $txt['aeva_sites'],
'description' => $txt['aeva_desc'],
),


So it would seem that the Google Member Map code has been placed in the same part of ManageSettings that Aeva Lite code is placed. I appreciate it's impossible to check compatibility with every other mod but thought you should be aware that if someone has Aeva Lite installed before GMM and then they go and uninstall it, it'll break GMM.

Hope this helps.
Chas.
Title: Re: Google Member Map
Post by: Spuds on June 15, 2011, 03:11:53 PM
Chas,

Thanks for the heads up ... yea thats one of the fundamental problems with mods is that often have to go to the exact same area of the code to make the edits.  The edits usually go OK but backing out can often result in the error. 

Fortunately thats where the new integration hooks system in 2.0 comes in to play.  It allows the mods to define the edits but not have to touch the source files themselves.  In GMM 2.08 that edit should be gone, I'm pretty sure I moved it to the integration hooks which will remove that potential source of conflict going forward.   The function will remain the same, but now its done in a way to avoid clashing with other mods.

Thanks for showing the problem, I'm sure other folks will run in to the same thing and that will help them out.
Title: Re: Google Member Map
Post by: Chas Large on June 15, 2011, 03:31:33 PM
Glad I could help a little, guess I'll have to start looking to update my mods with this hookey thingey :D
Title: Re: Google Member Map
Post by: Sebel-Design on June 16, 2011, 05:12:33 AM
First of all thanks for this mod.

But now i got a little problem.

I try to change the link in the top navigation but i cant find the link in Sources/Subs.php? The link is shown but i cant find him.

Any hints for me?
Title: Re: Google Member Map
Post by: Spuds on June 16, 2011, 10:36:16 AM
The top menu button is set in the GoogleMap20Integration.php file in the sources directory.  Its done that was as part of the integration hooks so menu items can be added but without editing the source files.
Title: Re: Google Member Map
Post by: Sebel-Design on June 16, 2011, 03:38:01 PM
Okay thank you. Was going crazy to find it ;)
Title: Re: Google Member Map
Post by: ryry46d9 on June 17, 2011, 02:16:14 PM
Just updated from RC5 (custom theme), to find most of my plug-in's where broke including this one.

The map loads fine, My problem lies on the back end. When I navigate to /index.php?action=admin;area=modsettings;sa=googlemap
I get
QuoteFatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /path/to/my/html/Sources/GoogleMap20Integration.php:69) in /path/to/my/html/Sources/ManageSettings.php on line 3166
(left the dir structure out for safety reasons) 
doing a little google'ing led me to http://www.simplemachines.org/community/index.php?topic=210708.135;wap2 (http://www.simplemachines.org/community/index.php?topic=210708.135;wap2)
which said to look for a duplicate entry's
under both  GoogleMap20Integration.php & ManageSettings.php I did not find any duplicates
I removed the plug-in twice with the last time deleting the DB entries :( with the same outcome

This error is crippling access to: Administration Center » Modification Settings »

found my fix (but not sure why it was going on)

I removed the software, went to my file manager edited  ManageSettings.php found the google code left behind, deleted it, reinstalled.
and now my admin page works again :)

I thought of this right before I submitted this post, and thought I would add to it in case others ran in to this problem updating

ThankYou for the mod 
Title: Re: Google Member Map
Post by: Spuds on June 17, 2011, 05:23:57 PM
Glad you were able to fix the error.

QuoteFatal error: Cannot redeclare modifygooglemapsettings() (previously declared in /path/to/my/html/Sources/GoogleMap20Integration.php:69) in /path/to/my/html/Sources/ManageSettings.php on line 3166

Thats a sure sign that the old version did not uninstall correctly, the new version does not edit the ManageSettings.php file at all.  If you were to look in there (as you did) you would find a function modifygooglemapsettings() towards the end of the file which could be removed since that function its now instead in the GoogleMap20Integration.php file.

With the integration hooks we will be seeing a lot fewer of these problems as those source edits and un-edits will be a thing of the past.
Title: Re: Google Member Map
Post by: Xoan on June 22, 2011, 12:18:58 PM
Hello, I have installed Google Member Maps in a fresh SMF 2 final installation but with a database imported form SMF 1.1.14 with GMM installed. Two times same problem, 500 internal server error. Each time i must contact host support to fix it. The problem is GMM changes some permissions.

Host support thinks it is a problem with PHP 5.3.

I hope this can help.
Title: Re: Google Member Map
Post by: TLM on June 22, 2011, 02:06:36 PM
My how my mod from many years has grown and how SMF has changed.

Looks like Spuds is doing a great job with it.
Title: Re: Google Member Map
Post by: yakyakyak on June 22, 2011, 02:52:53 PM
It's a very popular feature and adds great value so thank you
Title: Re: Google Member Map
Post by: effex on June 22, 2011, 03:11:50 PM
Does anyone know if there is a way to change the background color of the pop up bubble on pins to something other than white? The links on my forum are white, so it doesn't show the name unless you happen to hover over it. Thanks in advance!
Title: Re: Google Member Map
Post by: Spuds on June 22, 2011, 06:13:07 PM
Quote from: TLM on June 22, 2011, 02:06:36 PM
My how my mod from many years has grown and how SMF has changed.

Looks like Spuds is doing a great job with it.
Thanks :) Just trying to give it the care and feeding that it needs.

Quote from: effex on June 22, 2011, 03:11:50 PM
Does anyone know if there is a way to change the background color of the pop up bubble on pins to something other than white? The links on my forum are white, so it doesn't show the name unless you happen to hover over it. Thanks in advance!
I'm not sure how to change the color of the overall bubble.  You can change the background color of the table that is in that bubble by adding a background-color:yellow; or whatever color or hex you like, to the .googleMaps selector in the GoogleMap20.css file in your themes/default/css directory
e.g.
.googleMaps {
font-size:small;
font-family:tahoma, sans-serif;
background-color:yellow;
}


QuoteHost support thinks it is a problem with PHP 5.3.
Don't think so, the mod does not even require 5.0.  A 500 error can be an .htaccess issue or even having a file as 777 if you are running under suphp.  I'll go back though everything and see if I can think of a reason why that may happen, but right now I don't have an idea.  Did the host say what they did to fix the problem?  Anything in the error logs?
Title: Re: Google Member Map
Post by: Xoan on June 23, 2011, 01:01:24 PM
Yes.

"Dear customer:
the problem has been fixed. We have made a correction in the home folder who had 711 and was 777, correction has been done."

Original text:

"Estimado cliente:

El problema que presentaba ha quedado resuelto,  se ha realizado una correcion en el directorio de inicio que tenia 711 y era 777, ya se ha hecho la correción.

Atte: Magali C."

The text was translated from french (Canada) by Google to Spanish and then translated by me to English :-[
Nothing relevant in error logs.

Host provider: www.hostpapa.eu
Title: Re: Google Member Map
Post by: TLM on June 23, 2011, 01:37:26 PM
Quote from: effex on June 22, 2011, 03:11:50 PM
Does anyone know if there is a way to change the background color of the pop up bubble on pins to something other than white? The links on my forum are white, so it doesn't show the name unless you happen to hover over it. Thanks in advance!

I think your better off changing the color of the text/links in the bubble...

I just inlined some CSS on the google maps page, did not try this on the API.  I got red links.

.gmnoprint a { color: #ff0000; }


*edit*
Found someones install of it, and inlined some other CSS, this should do the trick.

#map .gmnoprint a { color: #ff0000; }
Title: Re: Google Member Map
Post by: C4G-TK on June 23, 2011, 05:38:51 PM
@Spuds

Could you look at the following post and tell me how to go about incorporating this mod with yours?  You don't make edits to the Subs.php file with your mod, so I'm at a loss trying to get this to work.

http://www.simplemachines.org/community/index.php?topic=413131.msg3086232#msg3086232
Title: Re: Google Member Map
Post by: Spuds on June 23, 2011, 11:24:35 PM
Look in the GoogleMap20Integration.php file in the imb_googlemap function, you will see the code that get 'added' to the subs.php file via the integration hooks.  Just edit that section to add what you want to this section of code
$new_menu = array(
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
'sub_buttons' => array(),
)
);
Title: Re: Google Member Map
Post by: Spuds on June 23, 2011, 11:37:30 PM
Quote from: Xoan on June 23, 2011, 01:01:24 PM
Yes.

"Dear customer:
the problem has been fixed. We have made a correction in the home folder who had 711 and was 777, correction has been done."

Original text:

"Estimado cliente:

El problema que presentaba ha quedado resuelto,  se ha realizado una correcion en el directorio de inicio que tenia 711 y era 777, ya se ha hecho la correción.

Atte: Magali C."

The text was translated from french (Canada) by Google to Spanish and then translated by me to English :-[
Nothing relevant in error logs.

Host provider: www.hostpapa.eu
So it seems that the package installed with a set of permissions on one of the files/directories as 777.  As I said, if this is occurs in an installation where php is installed under Apache as suphp then you will get a 500 error every time as its a security issue. 
QuoteUnder suPHP configurations, PHP running as a CGI with "suexec" enabled (su = switch user, allowing one user to "switch" to another if authorized) - Your php scripts now execute under your own user/group level. Files or directories that you require your php scripts to be able to write to no longer need to have 777 permissions. In fact, 777 permissions are no longer allowed, having 777 permissions on your scripts or the directories they reside in will not run and will instead cause a "500 internal server error" when attempting to execute them, this is done to protect you from someone abusing your scripts. Your scripts and directories can now, only have a maximum of 755 permissions (read/write/execute by you, read/execute by everyone else).
The mod itself does not set any permissions so I'm really not sure why this is happening.  Are you using the package manager to install the mod?  Are you FTPing the package to your server or using the package manger to download it?
Title: Re: Google Member Map
Post by: C4G-TK on June 23, 2011, 11:45:31 PM
Quote from: Spuds on June 23, 2011, 11:24:35 PM
Look in the GoogleMap20Integration.php file in the imb_googlemap function, you will see the code that get 'added' to the subs.php file via the integration hooks.  Just edit that section to add what you want to this section of code
$new_menu = array(
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
'sub_buttons' => array(),
)
);


Thank you, Spuds!

All the other edits where in Subs, so didn't know where the heck to look.  Thank you.  I will post this over in that thread, too for people.
Title: Re: Google Member Map
Post by: MrMike on June 24, 2011, 01:32:30 PM
Awesome mod package!

I have one question. I apologize if this has already been answered, I looked through a bunch of the posts and didn't see a reference to it.

On our map the User Group Title is white, and so it doesn't show up on the map info bubble. Dragging over the info bubble makes allows it to appear as the selected/highlighted text. (Please see the attached image.)

Is there a way to set the color of this text so that it will appear against the white background?
Title: Re: Google Member Map
Post by: TheDel on June 24, 2011, 05:22:30 PM
any way to get this to work with TinyPortal?
I know it used to because not only did it work for me but I know blue devil used to work on this mod and he used TP on his site.

I know it works because when I went to 2.0, I installed this first- it worked. Then added TP and then this one stopped showing the pins(however it still shows how many pins are out there)
I add TP first and then this one and doesnt work either. Both ways TP still works fine.

Any ideas?
Title: Re: Google Member Map
Post by: Spuds on June 25, 2011, 12:13:53 AM
Quote from: TheDel on June 24, 2011, 05:22:30 PM
any way to get this to work with TinyPortal?
I know it used to because not only did it work for me but I know blue devil used to work on this mod and he used TP on his site.

I know it works because when I went to 2.0, I installed this first- it worked. Then added TP and then this one stopped showing the pins(however it still shows how many pins are out there)
I add TP first and then this one and doesnt work either. Both ways TP still works fine.

Any ideas?
I installed TP and then GMM on a fresh 2.0 and it worked fine.  So some setting or option you have set in TP must be causing an issue with GMM's javascript.  I don't know enough about TP to help.

QuoteI know it used to because not only did it work for me but I know blue devil used to work on this mod and he used TP on his site.
Must have been quite some time ago (http://www.simplemachines.org/community/index.php?topic=210708.msg2831582#msg2831582) eh?
Title: Re: Google Member Map
Post by: MrMike on June 25, 2011, 07:59:59 PM
Any idea how to change the text color in the info bubble?
Title: Re: Google Member Map
Post by: Spuds on June 25, 2011, 09:14:55 PM
Quote from: MrMike on June 25, 2011, 07:59:59 PM
Any idea how to change the text color in the info bubble?

In googlemap20.php

Code (find) Select
$datablurb.= '</tr><tr><td>' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</td>';

Code (replace) Select
$datablurb.= '</tr><tr><td><font color="#000000">' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</font></td>';
Title: Re: Google Member Map
Post by: MrMike on June 25, 2011, 11:29:27 PM
Super, that fixed the individual bubbles....can you please also tell me where to set the text color for the group view (see attached image).

Title: Re: Google Member Map
Post by: Spuds on June 26, 2011, 09:23:39 AM
Quote from: MrMike on June 25, 2011, 11:29:27 PM
Super, that fixed the individual bubbles....can you please also tell me where to set the text color for the group view (see attached image).
Beleive you will need to edit the Clusterer2.js files in your theme/default/scripts

Code (find) Select
html += '</td><td>' + temp + '</td></tr>';
Code (replace) Select
html += '</td><td><font color="#000000">' + temp + '</font></td></tr>';
Title: Re: Google Member Map
Post by: MrMike on June 26, 2011, 09:32:23 AM
Outstanding, Spuds, that worked like a charm. I was looking in the wrong file, but I'm embarrassed to say for how long, lol. :)

I used style statements but the effect is the same- visible text that people can see now.

Feel free to take a look (no login required): http://gt5cheats.com/forum/index.php?action=googlemap (http://gt5cheats.com/forum/index.php?action=googlemap)

Thank you!

EDIT: This is a great mod, well written and nicely configurable. I think it should come standard as an available feature with SMF.
Title: Re: Google Member Map
Post by: Xoan on June 27, 2011, 07:56:13 AM
I used package manager.
Title: Re: Google Member Map
Post by: Kindred on June 27, 2011, 09:04:33 AM
MrMike,

Why would this be standard in SMF?
1- it uses external services which is something that SMF tried to avoid
2- As nice (and popular) as it is, I would not say that the "majority" of admins are clamoring for it.
Title: Re: Google Member Map
Post by: MrMike on June 27, 2011, 10:28:22 AM
Relax, it's just my appreciation for the mod shining through. :)

Quote from: Kindred on June 27, 2011, 09:04:33 AM
MrMike,

Why would this be standard in SMF?
1- it uses external services which is something that SMF tried to avoid
2- As nice (and popular) as it is, I would not say that the "majority" of admins are clamoring for it.
Title: Re: Google Member Map
Post by: joey791 on July 02, 2011, 09:23:52 PM
Nice mod spuds, is there anway to move the button to under the Members tab?
Title: Re: Google Member Map
Post by: Kindred on July 02, 2011, 10:21:27 PM
Modify the menu in subs.php
Title: Re: Google Member Map
Post by: fishbone on July 03, 2011, 09:04:14 PM
Thank you for this awesome integration.
I'm running it on 2.0 and have a question in regards to the user name color in the bubble. It appears as standard forum link color. Since I use a dark theme, this color is very light and can hardly be seen against the white bubble. Is there a way to change the user name color?

Thanks
Title: Re: Google Member Map
Post by: Kindred on July 03, 2011, 10:38:23 PM
did you even bother to do a search or read any of the previous answers?

I believe that your questions was answered between one and three pages back in responses...
Title: Re: Google Member Map
Post by: fishbone on July 03, 2011, 11:05:12 PM
Quote from: Kindred on July 03, 2011, 10:38:23 PM
did you even bother to do a search or read any of the previous answers?

I believe that your questions was answered between one and three pages back in responses...

I did, but haven't found a solution to my problem.
What TLM is suggesting won't work for me and the other color questions on this page are not related to my inquiry.
If I'm mistaken, please help.
Title: Re: Google Member Map
Post by: MrMike on July 03, 2011, 11:33:13 PM
Quote from: fishbone on July 03, 2011, 11:05:12 PM
If I'm mistaken, please help.
I just asked this question and Spuds gave me the answer just a few replies back.
Try here: http://www.simplemachines.org/community/index.php?topic=210708.msg3088294#msg3088294

Or scroll up about half a page.
Title: Re: Google Member Map
Post by: fishbone on July 03, 2011, 11:45:39 PM
Thanks Mike,
but the screenshot in your original post shows a green (or light blue) username in the bubble.
This color is what I wanted to change whereas you asked about changing the group title color.
Title: Re: Google Member Map
Post by: Spuds on July 04, 2011, 09:29:27 AM
In Googlemap20.php

Code (find) Select
<a href="' . $marker['href'] . '">' . $marker['name'] . '</a>
Code (replace) Select
<a href="' . $marker['href'] . '"><font color="#FFFFFF">' . $marker['name'] . '</font></a>


That will make it white ... the better way is to add the appropriate class to the anchor tag but the above will work.
Title: Re: Google Member Map
Post by: fishbone on July 04, 2011, 09:49:28 AM
Thanks Spuds, that worked!  ;D
Title: Re: Google Member Map
Post by: joey791 on July 04, 2011, 11:34:07 AM
Quote from: Kindred on July 02, 2011, 10:21:27 PM
Modify the menu in subs.php

I need to know how to modify the code in the GoogleMap20integration.php first
Title: Re: Google Member Map
Post by: Spuds on July 05, 2011, 03:29:19 PM
Quote from: joey791 on July 04, 2011, 11:34:07 AM
Quote from: Kindred on July 02, 2011, 10:21:27 PM
Modify the menu in subs.php

I need to know how to modify the code in the GoogleMap20integration.php first
If you want the button as part of the members drop down menu then replace the entire function imb_googlemap(&$buttons) in GoogleMap20integration.php  with this

function imb_googlemap(&$buttons)
{
global $txt, $modSettings, $scripturl;

// Place the button at the end of the member slide out menu
$buttons['mlist']['sub_buttons']['googlemap'] = array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
);
}
Title: Re: Google Member Map
Post by: joey791 on July 05, 2011, 09:40:17 PM
Spuds, thanks for your help, great mod, great support :D
Title: Re: Google Member Map
Post by: Eclipse16V on July 06, 2011, 05:06:52 PM
language20-utf8.xml missing in the following line:

$txt['googlemapdesc'] = 'From here you can control the settings for how the Member Map appears on your forum';
Title: Re: Google Member Map
Post by: Spuds on July 06, 2011, 07:25:47 PM
Ahh ... thanks!

I'll get that added so the UTF-8 admins dont get error log spam when they go to the modification settings page.
Title: Re: Google Member Map
Post by: Eclipse16V on July 07, 2011, 01:03:34 AM
If you need the german lang? talk to me.
Title: Re: Google Member Map
Post by: Dejv on July 10, 2011, 10:08:36 AM
Hello,

would it be possible to move the mod-settings (google api, lat, long, zoom) to the forum settings.php so the forum sources and themes could be shared among forums sharing the same codebase?

Thanks a lot
Title: Re: Google Member Map
Post by: Eclipse16V on July 23, 2011, 04:10:50 PM
Hi, I used this mod for years and find it just amazing. Now I have a very stupid question time: Is there a way that pins you can save not only from members on the map but also in the postings are there enters the coordinates and then displays the posting to a pin on the map?
Title: Re: Google Member Map
Post by: Spuds on July 23, 2011, 07:07:39 PM
Quote from: Eclipse16V on July 23, 2011, 04:10:50 PM
Hi, I used this mod for years and find it just amazing. Now I have a very stupid question time: Is there a way that pins you can save not only from members on the map but also in the postings are there enters the coordinates and then displays the posting to a pin on the map?
Sorry no ... the pin coordinates are part of the member table, so no real way without a large rewrite to enable a function like that (because currently you can't easily have pins that are not associated with a member)
Title: Re: Google Member Map
Post by: cryptic3 on August 15, 2011, 07:55:25 AM
I am trying to uninstall my mods to upgrade but get these errors

   1.   Delete File   ./Sources/GoogleMap.php   
2.   Delete File   ./Themes/default/scripts/Clusterer2.js   
3.   Delete File   ./Themes/default/css/GoogleMap.css   
4.   Delete File   ./Themes/default/GoogleMap.template.php   
5.   Delete File   ./Themes/default/images/google_earth_feed.gif   
6.   Delete File   ./Themes/default/images/english/googlemap.gif   
   7.   Execute Modification   ./index.php   Test successful
   8.   Execute Modification   ./Sources/Admin.php   Test successful
   9.   Execute Modification   ./Sources/Load.php   Test successful
   10.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
   11.   Execute Modification   ./Sources/ManageSettings.php   Test failed
   1.   Replace   ./Sources/ManageSettings.php   Test successful
   2.   Replace   ./Sources/ManageSettings.php   Test successful
   3.   Replace   ./Sources/ManageSettings.php   Test failed
   12.   Execute Modification   ./Sources/Profile-Modify.php   Test successful
   13.   Execute Modification   ./Sources/Subs.php   Test successful
   14.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
   15.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed
   1.   Replace   ./Themes/default/languages/Modifications.english.php   Test failed
   16.   Execute Modification   ./Themes/default/languages/ManageSettings.english.php   Test successful
   17.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
18.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
19.   Execute Modification   ./Themes/default/languages/ManageSettings.english-utf8.php   Skipping file
20.   Execute Modification   ./Themes/default/languages/Who.english-utf8.php   Skipping file

can anyone advise what to do please.

Thanks
Title: Re: Google Member Map
Post by: Kindred on August 15, 2011, 10:32:35 AM
manually change the failure points to remove the mod, the same way you have to manually change failure points on an installation.
Title: Re: Google Member Map
Post by: cryptic3 on August 15, 2011, 12:02:23 PM
I have tried that for both the mods that show errors.

As I have already lost my forum (hosts lost files) recently I am reluctant to do stuff I am unsure about.

Should I run the uninstall with errors then change or change and then run the uninstall?

K helped me with my previous forum but is reluctant since I have upgraded to VPS.

My knowledge means I am only able to do stuff via my control panel.

Thanks.
Title: Re: Google Member Map
Post by: rgecy on August 16, 2011, 12:10:48 AM
I have a request for future release.

I would like to have the option for the "Member Map" menu button to be placed in the sub-menu of "Members" just like it says view "View Member List" it could say "View Member Map".  I have manually changed this in one of my themes, but would be nice to have it automatically install there or have the option. 

With more and more mods that have new menu buttons, my main menu is starting to break onto the next line.

Thanks,

RGecy 
Title: Re: Google Member Map
Post by: Swayforth on August 19, 2011, 12:06:39 AM
I have just upgraded the forum (2.0) and everything looks fantastic! But i would like to start over without having to manually touch hundreds of profiles.


Is there an easy way to purge the Pin coordinates from the member table?


Title: Re: Google Member Map
Post by: Spuds on August 19, 2011, 10:07:48 AM
Do you have access to phpmyadmin in your host account ?  If not I'll give you a little script to run to clear those columns of the data.
Title: Re: Google Member Map
Post by: Swayforth on August 19, 2011, 01:27:07 PM
I do have access to the database with phpmyadmin. How ever i lack the skills to write the script to remove all the data.

Perhaps this could be a feature addon :)

Thank you for looking into it, Spuds, looking forward to your solution.


**EDIT** i don't think i made it clear that i still needed assistance.
Title: Re: Google Member Map
Post by: Swayforth on August 28, 2011, 09:44:50 PM
Quote from: Spuds on August 19, 2011, 10:07:48 AM
Do you have access to phpmyadmin in your host account ?  If not I'll give you a little script to run to clear those columns of the data.

If you have that script handy i promise to study it and not just run it :)

Title: Re: Google Member Map
Post by: fgoc on August 30, 2011, 04:39:01 PM
Hi, I've just installed this mod on my heavily modded 1.1.14 forum, but with the default theme. I had to do some manual changes on the following files, which were straight forward:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/GoogleMap11.php   
2.    Extract File    /home/fgoccouk/public_html//forum/Themes/default/Clusterer2.js   
3.    Extract File    /home/fgoccouk/public_html//forum/Themes/default/GoogleMap11.template.php   
4.    Extract File    /home/fgoccouk/public_html//forum/Themes/default/images/google_earth_feed.gif   
5.    Extract File    /home/fgoccouk/public_html//forum/Themes/default/images/english/googlemap.gif   
6.    Execute Code    add_settings11.php   
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/ModSettings.php    Test failed
11.    Execute Modification    ./Sources/Profile.php    Test successful
12.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/index.template.php    Test failed
13.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/Profile.template.php    Test failed
14.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/languages/Modifications.english-utf8.php    Test successful
16.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/languages/ModSettings.english.php    Test successful
17.    Execute Modification    /home/fgoccouk/public_html//forum/Themes/default/languages/Who.english.php    Test successful

I can see the Member Map option in the Features and Options menu, but when I click it it just goes to the Basic Features page? Any ideas where to start looking please?
Title: Re: Google Member Map
Post by: Kindred on August 30, 2011, 07:57:17 PM
Index.php
Title: Re: Google Member Map
Post by: fgoc on August 31, 2011, 09:50:33 AM
Thanks Kindred, but the mods performed on that file are as per the modification11.xml file? Anything else it could be?

Sussed it I'd missed one of the mods out of ModSettings.php - all sorted and working great now!As an aside, anyone know how to incorporate the map into a TinyPortal Article to have on the homepage? :D
Title: Re: Google Member Map
Post by: mikeymx5 on October 25, 2011, 12:33:19 PM
How hard would it be to make this map show different color pins for different groups VS. Male or female.
I have two groups in my forum paid members and regular members... it would rule if paid members would stand out.
Title: Re: Google Member Map
Post by: mikeymx5 on October 26, 2011, 12:45:18 AM
found a problem in the code in the GoogleMap20.php on line 380.

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $marker['group'] == '') && $marker['post_group'] != '')
$datablurb.= '</tr><tr><td>' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</td>';


should be

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((!empty($settings['hide_post_group']) || $marker['group'] == '') && $marker['post_group'] != '')
$datablurb.= '</tr><tr><td>' . $marker['post_group'] . '<br />' . $marker['group_stars'] . '</td>';


the missing ! causes the group stars not to show.
Title: Re: Google Member Map
Post by: mikeymx5 on October 26, 2011, 03:05:09 PM
This mod and support seems as dead as Charlie Sheen's Career.
Title: Re: Google Member Map
Post by: MrMike on October 26, 2011, 11:37:26 PM
Quote from: mikeymx5 on October 26, 2011, 03:05:09 PMThis mod and support seems as dead as Charlie Sheen's Career.

Ouch.
Title: Re: Google Member Map
Post by: Spuds on October 27, 2011, 08:54:47 PM
Quote from: mikeymx5 on October 26, 2011, 12:45:18 AM
found a problem in the code in the GoogleMap20.php on line 380.

....

the missing ! causes the group stars not to show.
Actually the ! should not be there either.  The problem is that $marker['group_stars'] should not be part of that if condition at all, only the $marker['post_group'] should be in there for it to be consistent with the rest of SMF. 

I'll update that as soon as Mr. Sheen returns to 2 1/2 men.
Title: Re: Google Member Map
Post by: mikeymx5 on October 28, 2011, 10:38:45 AM
Thanks, while you are looking into this I have had report and have had it happen to me where if you search for you location and
it places a pin, the pin is not saved, you have to click the pin to remove it and reclick to add it for it to be saved.
Title: Re: Google Member Map
Post by: Spuds on October 28, 2011, 01:03:28 PM
Quote from: mikeymx5 on October 28, 2011, 10:38:45 AM
Thanks, while you are looking into this I have had report and have had it happen to me where if you search for you location and
it places a pin, the pin is not saved, you have to click the pin to remove it and reclick to add it for it to be saved.
When you do the search, after Google determines a pin location, you MUST still click on the map to 'set' the pin ....

The pin that Google places is just a search result (specifically the first one is shown but it is not necessarily the only one, just the most likely one) hence the need to still click on the map so the mod knows that is the pin/location you are accepting.   

Also that search function which was built in to the 2.0 api is the only reason I have not updated this to the 3.0 api as that search function is not built in to the new api and to add it is more work then 3.0 is beneficial.
Title: Re: Google Member Map
Post by: Holyfrey on November 08, 2011, 10:38:04 PM
This mod do not work corectly, it gives a error when installing it says it is for SMF 2 version 2.0.1 but it is not.
Title: Re: Google Member Map
Post by: Bugo on November 09, 2011, 11:54:57 AM
I think it's necessary to replace $txt['home'] with $txt['home1'] because $txt['home'] is already defined in SMF language files.
Title: Re: Google Member Map
Post by: Spuds on November 09, 2011, 12:22:21 PM
Yup ... your the first to notice :) I actually have that done in an update I'll get on the site later today with a couple of other minor fixes.
Title: Re: Google Member Map
Post by: imburner on November 11, 2011, 11:43:35 AM
http://www.realhomemadeturbo.com/forum/index.php?action=googlemap Can you tell me whats the issue here with the map not showing up? Freshly installed
Title: Re: Google Member Map
Post by: mikeymx5 on November 11, 2011, 01:36:08 PM
did you turn it on in the settings / check permissions?
Title: Re: Google Member Map
Post by: mikeymx5 on November 11, 2011, 01:41:38 PM
OK I was able to find where it was pulling the code for Male and Female and Turn it into Group A vs Group B or in my case Club member vs Non Member groups.

in GoogleMap20.php you can change the code to

if ($marker['group'] == 'Club Member')
$markers.= 'gender="1"';
elseif ($marker['group'] == 'Non Member')
$markers.= 'gender="2"';
else $markers.= 'gender="0"';

Then under the template rename Male and Female to the Group Names.

While I understand that is not the correct way of doing this edit, but it will make it so i only have to edit a few lines if I update this package.

Thanks for the Mod it has really helped with our club.
Title: Re: Google Member Map
Post by: imburner on November 11, 2011, 02:40:46 PM
Quote from: mikeymx5 on November 11, 2011, 01:36:08 PM
did you turn it on in the settings / check permissions?

Yes its all turned on
Title: Re: Google Member Map
Post by: Spuds on November 11, 2011, 03:05:10 PM
And you entered an API key and the sitename in the box is what you set for your api key?  If that is good then its could be a missing js file, if you give me a test account I'll take a look.
Title: Re: Google Member Map
Post by: Tonyvic on November 15, 2011, 11:14:38 PM
What a great mod, thanks guys. :)
I have a minor problem when viewed with Internet Explorer, the info bubble is very wide when showing a member with an avatar.
With no avatar it is normal, and when viewed with FF & Chrome everything is fine.

Tony
Title: Re: Google Member Map
Post by: Spuds on November 16, 2011, 11:26:42 AM
Well that stinks !  Looks like IE is picking up some extra div info from the DOM structure that the others are not ...

Try this and see if it fixes the problem, in GoogleMap20.php

find the following (its what opens the info bubble when you click on the name)
gmarkers[i].openInfoWindowHtml(htmls[i]);
replace
gmarkers[i].openInfoWindowHtml(htmls[i], {maxWidth:240});

find the following, its what opens an info bubble when you click on the pin
marker.openInfoWindowHtml(html);
replace
marker.openInfoWindowHtml(html, {maxWidth:240});
Title: Re: Google Member Map
Post by: Tonyvic on November 16, 2011, 02:04:35 PM
Many thanks Spuds,
That fixed it, now working perfectly. :)

Tony
Title: Re: Google Member Map
Post by: tassie73 on November 17, 2011, 08:14:41 AM
Hi spuds,

If I want to add a field in the profile page for members to write a blurb about themselves that is then displayed in the info blurb, how would I go about that mate?

This is a great mod you guys have here! So many uses and possibilities....

Cheers guys

Chris
Title: Re: Google Member Map
Post by: Spuds on November 17, 2011, 09:18:44 AM
The information in the bubble is created in googlemap20.php in the MapsXML() function.

Look in there and you will see a string called datablurb, the information in that gets displayed in the bubble.  The bubble has a header, and then right an left divs, the right div is the avatar, the left div the info.

So you would need to check for the profile field in the MapsXML() function, and if it exists for the user add it to the blurb (as the list element in the left div)  for display.  I don't recall in which var the custom fields are stored but they should be available in the $markers array, just not sure what key they are under of the top of my head.
Title: Re: Google Member Map
Post by: tassie73 on November 17, 2011, 07:53:55 PM
Thanks mate. I will have a play around with it and let you know if I have any other questions.


Cheers

Chris
Title: Re: Google Member Map
Post by: ptucker2 on November 18, 2011, 06:52:00 PM
Hi. newbie here. I've installed the google member maps mod and everything looks ok. Except the member map page shown no maps. I have applied the API keys and enabled etc.. but it still does not display anything. I've tried on FF, IE, chrome etc.. but the result is the same. Any ideas would be greatly appreciated.
Title: Re: Google Member Map
Post by: Spuds on November 18, 2011, 07:12:53 PM
Could be any number of things ... do you have a latitude longitude and zoom level entered in the admin panel?
Title: Re: Google Member Map
Post by: wiecher on November 20, 2011, 03:52:49 PM
Is there a Dutch translation ?
I am sorry if i missed it.
Title: Re: Google Member Map
Post by: wiecher on November 20, 2011, 06:02:43 PM
And how can i make it to show onely the Netherlands  ?
Latitude-Longitude
Title: Re: Google Member Map
Post by: Spuds on November 20, 2011, 06:06:10 PM
Quote from: wiecher on November 20, 2011, 03:52:49 PM
Is there a Dutch translation ?
I am sorry if i missed it.
None that I know of

Quote from: wiecher on November 20, 2011, 06:02:43 PM
And how can i make it to show onely the Netherlands  ?
Latitude-Longitude
You will have to put in the latitude and longitude that best defines the map centerpoint and then set the zoom as needed to fill the screen with just the Netherlands.
Title: Re: Google Member Map
Post by: wiecher on November 20, 2011, 06:18:04 PM
Quote from: Spuds on November 20, 2011, 06:06:10 PM
Quote from: wiecher on November 20, 2011, 03:52:49 PM
Is there a Dutch translation ?
I am sorry if i missed it.
None that I know of

Quote from: wiecher on November 20, 2011, 06:02:43 PM
And how can i make it to show onely the Netherlands  ?
Latitude-Longitude
You will have to put in the latitude and longitude that best defines the map centerpoint and then set the zoom as needed to fill the screen with just the Netherlands.

Thnx  Spuds
Now must i find the Dutch translation
Title: Re: Google Member Map
Post by: wiecher on November 21, 2011, 05:08:40 AM
This makes my website a lot slower so i removed it.
Title: Re: Google Member Map
Post by: Spuds on November 21, 2011, 09:40:40 AM
Never seen any performance impact on any sites I have installed this on, especially since it does not do anything unless you look at the map ... but you can blame Google if you like :P
Title: Re: Google Member Map
Post by: wiecher on November 21, 2011, 03:29:25 PM
Quote from: Spuds on November 21, 2011, 09:40:40 AM
Never seen any performance impact on any sites I have installed this on, especially since it does not do anything unless you look at the map ... but you can blame Google if you like :P
I am sorry peeps it was a problem by mi host.
Nothing to do with this mod.
Title: Re: Google Member Map
Post by: ptucker2 on November 21, 2011, 03:40:37 PM
Quote from: Spuds on November 18, 2011, 07:12:53 PM
Could be any number of things ... do you have a latitude longitude and zoom level entered in the admin panel?

TY Spud. All sorted now.
Title: Re: Google Member Map
Post by: tassie73 on November 24, 2011, 04:12:12 AM
Quote from: wiecher on November 20, 2011, 03:52:49 PM
Is there a Dutch translation ?

I guess if the majority of your visitors are dutch and that you can live with just having the mod in dutch only and no english version, you could always go in and translate all the text yourself....
Title: Re: Google Member Map
Post by: Kindred on November 24, 2011, 09:14:46 AM
Why would he need to lose English?  He just has to add/translate the strings to named dutch language files
Title: Re: Google Member Map
Post by: wiecher on November 24, 2011, 09:17:29 AM
I made it allready dutch.
Thnx anyway ;)
Title: Re: Google Member Map
Post by: apnart on November 26, 2011, 02:14:35 PM
any body can help me ?

I have always an error message :

it request from me an API key...

I have tried to entered a key, but I ahve always the message...

Any ideas ?
Title: Re: Google Member Map
Post by: tassie73 on November 26, 2011, 09:47:59 PM
Quote from: Kindred on November 24, 2011, 09:14:46 AM
Why would he need to lose English?  He just has to add/translate the strings to named dutch language files

True!
Title: Re: Google Member Map
Post by: wildmck8 on November 27, 2011, 09:05:27 AM
Hi all, I'm still running version    1.0 beta 4, on SMF 1.1.15.  All was working great for the past couple years until I recently relocated my server to a dedicated server.

Now, the map loads.  The pinned members load, but the pins are gone.  If you click on a member, it will show you where they are, but still no pin.

Any ideas?
Thanks,
Luap
Title: Re: Google Member Map
Post by: Spuds on November 27, 2011, 10:26:16 AM
I just took a quick look, that old version of the mod used the pin graphics from http://labs.google.com/ridefinder/images/mm_20_green.png for example.  The ridefinder service from Google was discontinued quite some time ago, the new version of the mode moved the pin graphics to a supported Google service and away from ridefinder a long time ago.

Anyway when I went to the old ridefinder location today and I got a 404 error, so looks like Google finally pulled the remaining scraps of ridefinder down, the service has been long gone but the site graphics remained available, until recently that is.

So you can either find those old images on google images, save them on your server, and update the googlemap.php file in the sites Sources directory to reflect the new location (there are several pin colors and a shadow, just look for those ridefinder/images)

or you can try using the google chart api instead (its what the new versions uses), but this may not work correctly in the old version, I think those old pins were much smaller.  Any as an example you would find

    icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
    icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";

and update it to
    icon.image = "http://chart.apis.google.com/chart?chst=d_map_pin_letter_withshadow&chld=%20|66FF66|202020";
    icon.shadow = "http://chart.apis.google.com/chart?chst=d_map_pin_shadow";


that 6ff66 is hex for green, you would just change that for the other colors.

Title: Re: Google Member Map
Post by: ninaudp on November 27, 2011, 03:56:50 PM
Hi, the Member Map mod has been working great for a long time even after updating to the latest SMF version.
Now, suddenly the map pins are not displaying, and there are some broken icons.
I checked the Google Map API key and settings... Any suggestions?
It will export a KML file and work in google earth.
I am on SMF 1.1.15 and 3.   Google Member Map 1.0 beta 4
If i install the latest version of the Member Map, will it retain the member data in the database tables?
To upgrade to the latest member map, do I uninstall the old one before installing the new package?
Thank you very much!

http://ridedualsport.com/forum/index.php?action=googlemap

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi296.photobucket.com%2Falbums%2Fmm178%2Fninaudp%2Fmember_map.jpg&hash=d32553e819546819701ebaa4403c8bcf7b075112)
Title: Re: Google Member Map
Post by: wildmck8 on November 27, 2011, 04:10:05 PM
Quote from: Spuds on November 27, 2011, 10:26:16 AM
I just took a quick look, that old version of the mod used the pin graphics from http://labs.google.com/ridefinder/images/mm_20_green.png for example.  The ridefinder service from Google was discontinued quite some time ago, the new version of the mode moved the pin graphics to a supported Google service and away from ridefinder a long time ago.

Anyway when I went to the old ridefinder location today and I got a 404 error, so looks like Google finally pulled the remaining scraps of ridefinder down, the service has been long gone but the site graphics remained available, until recently that is.

So you can either find those old images on google images, save them on your server, and update the googlemap.php file in the sites Sources directory to reflect the new location (there are several pin colors and a shadow, just look for those ridefinder/images)

or you can try using the google chart api instead (its what the new versions uses), but this may not work correctly in the old version, I think those old pins were much smaller.  Any as an example you would find

    icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
    icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";

and update it to
    icon.image = "http://chart.apis.google.com/chart?chst=d_map_pin_letter_withshadow&chld=%20|66FF66|202020";
    icon.shadow = "http://chart.apis.google.com/chart?chst=d_map_pin_shadow";


that 6ff66 is hex for green, you would just change that for the other colors.


Thanks, changing the code to googles new chart api indeed fixed it.  I appreciate the help.

Luap
Title: Re: Google Member Map
Post by: ninaudp on November 27, 2011, 04:15:22 PM
Hi, I just made this change and it fixed the problem and the pins are showing.
Would it be worth upgrading to the latest version of the member map?
If I uninstall the old member map, will it delete the data in the member map tables?
Thank you very much!
Quote from: Spuds on November 27, 2011, 10:26:16 AM

    icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
    icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";

and update it to
    icon.image = "http://chart.apis.google.com/chart?chst=d_map_pin_letter_withshadow&chld=%20|66FF66|202020";
    icon.shadow = "http://chart.apis.google.com/chart?chst=d_map_pin_shadow";


that 6ff66 is hex for green, you would just change that for the other colors.
Title: Re: Google Member Map
Post by: Chas Large on November 29, 2011, 05:56:17 AM
Hi Spuds.

I'm running v2.0.9 of the mod and it's working well. I can't quite see from the mod page or the version number there 2.0 Beta 2 if it's been updated since my version. The list still shows that it's only compatible with 2.0 RC3 too?

What I'd like to see as a small improvement is that when a pin is hovered over, the member info appears without clicking the pin. Any chance of this being included in a future revision?

Secondly, and not a complaint, but several members names (including mine) have become almost permanently embolded though none have changed their location in months. Any idea what may have caused this?

I'm Running 2.0.1.

Cheers

Chas.
Title: Re: Google Member Map
Post by: Spuds on November 29, 2011, 01:14:43 PM
Not sure if this will fix the permanent bold or not (but it will fix some other things) ... in Load.php find

'latitude' => !isset($profile['latitude']) ? '' : $profile['latitude'],
'longitude' => !isset($profile['longitude']) ? '' : $profile['longitude'],


replace with
'latitude' => !isset($profile['latitude']) ? '' : (float) $profile['latitude'],
'longitude' => !isset($profile['longitude']) ? '' : (float) $profile['longitude'],


QuoteI'm running v2.0.9 of the mod and it's working well. I can't quite see from the mod page or the version number there 2.0 Beta 2 if it's been updated since my version. The list still shows that it's only compatible with 2.0 RC3 too?
I actually backed the mod out to the rc3 version which is what it was when I assumed ownership, so no not an upgrade but a downgrade!

The reason is that it became a little cloudy as to what rights I had to make changes since I did not have contact with all the various authors, it was a hand me down, and the original release of the mod had no license e.g. it was not open.   So I'm starting from a blank slate and redoing the mod so it clean so to speak.
Title: Re: Google Member Map
Post by: Spuds on December 07, 2011, 06:06:40 PM
I uploaded a new version of the mod today for SMF 2.0x ONLY .... its now at version 2.5

The older versions of the mod that supported 2.0x have been archived.  The 1.1x version of the mod has not changed, but as reported the pins will no longer show up since the service that it used was discontinued by Google.  I left that on the site for those that need that version.

The major changes in the 2.5 release are as follows:
o + all javascript has been redone to use GoogleMaps V3 api, API key is no longer needed
o + new pin clustering code, can show cluster images as well as pins, has dynamic cluster pin sizing
o + local search now uses places library, pan/zooms to location but does not show pin (limits user confusion)
o + Updated map display code
o + updated kml output for Google Earth use
o + updated info bubble
o + added color picker to the admin panel to make choosing pin colors easier
o + ability to set where you want the button to appear in the top menu
o + Cleaned up the admin panel to better organize the options
o + Moved most language string to their own file

There were also some bug fixes along the way and additional code cleanup, basically its a total rewrite :)  It will work with the previous pin data from the other 2.x mods, some admin panel options will be reset to default however.

So give it a try and let me know what I broke now that I listed what I fixed or changed.
Title: Re: Google Member Map
Post by: Chas Large on December 08, 2011, 02:25:10 AM
Thanks for the update Spuds. :)

Do we need to do an uninstall first or will it upgrade?
Title: Re: Google Member Map
Post by: Spuds on December 08, 2011, 11:31:26 AM
You should do an uninstall (but leave the data !!!) and then re-install the new one.  It will pick the the old pins and dates but some of the admin panel options will be reset to defaults due to the clean I did to variable names among other things.
Title: Re: Google Member Map
Post by: Chas Large on December 08, 2011, 02:28:00 PM
Now this is very odd. I cannot uninstall the old 2.0.9 version. No matter which emulation of 2.0 I use, there is only a List Files or Delete option, no Uninstall.

It's the same for both my real and test forums, so I'm stuck.

I know I should be able to run the uninstall outside of package manager but cannot find the support topic which tells me how to do it. Can you help?

Chas.
Title: Re: Google Member Map
Post by: Chas Large on December 08, 2011, 02:52:36 PM
Found the solution, I was looking in the Browse Packages List for the Uninstall Link. I then looked in Installed Packages and there it was, so used that an uninstalled it OK but with one error in the Modifications.english.php file. Removed the lines and all was removed OK. Now to intall the new version.
Title: Re: Google Member Map
Post by: Chas Large on December 08, 2011, 03:20:02 PM
OK, installed and all OK once the Admin settings had been restored. Great job Spuds, an excellent mod made better.

Only one slight moan and I doubt it's anything you've done more likely the Google API.

There is no Restore ZooM  Button which when clicked returns you to the default zoom set in Admin. It's the one that was in the middle of the four arrows, see attached.

As members zoom in to place their pin they often want to zoom back out to see the whole map as per the default zoom setting. Our map by default shows the whole of the UK so zooming back to that is what they're used to.

If somehow that could be restored it would be excellent.
Title: Re: Google Member Map
Post by: Spuds on December 08, 2011, 05:26:27 PM
Glad you got it sorted :) ...

Its not unusual to get the modification.yourlanguage error, mods generally install to the end of that file, so any mods that get installed after that, take that "end" spot and to fix that you would need to back them out in the reverse order you installed them.  Or do what you did (which is what I do) ignore the modification.yourlanguage error during uninstall and manually go in and delete those lines.  That issue is why I moved the language strings to their own file in the latest version.

I'll check and see if there is an equivalent button in the 3.0 API to the restore zoom, I did not even know that feature was in the old map :)
Title: Re: Google Member Map
Post by: Eclipse16V on December 10, 2011, 09:03:26 AM
Thanks for the update.
Still get an error message, but guess the problem is with the SEF function of PortaMX.

Times in addition to a question: Why is a small problem with one's own Map V3 and the clustering feature. Can you help me there, perhaps?
Title: Re: Google Member Map
Post by: Spuds on December 10, 2011, 09:47:09 AM
What error are you getting with portamx ... and what problem are you seeing with the clustering?   
Title: Re: Google Member Map
Post by: Eclipse16V on December 10, 2011, 06:27:16 PM
Hi
Quotehttp://..../index.php?action=googlemap;sa=.xml
2: ob_start() [<a href='ref.outcontrol'>ref.outcontrol[/url]]: output handler 'ob_gzhandler' cannot be used twice
Datei: /..../Sources/PortaMx/PortaMxSEF.php
Zeile: 316
Quotehttp://..../index.php?action=googlemap;sa=.js;count=2
2: ob_start() [<a href='ref.outcontrol'>ref.outcontrol[/url]]: output handler 'ob_gzhandler' cannot be used twice
Datei: /..../Sources/PortaMx/PortaMxSEF.php
Zeile: 316

When I disable this "Admin - Server Settings - General - Enable compressed output" it runs without errors.

On the question of the clustering function.
I built a page with Google Map V3 and there would now incorporate a clustering function. Unfortunately I can not get to work. But now has nothing to do with SMF. Just wanted to ask if you could maybe help me there. Must not be free.
Title: Re: Google Member Map
Post by: feline on December 11, 2011, 07:42:04 AM
Quote from: Eclipse16V on December 10, 2011, 06:27:16 PM
When I disable this "Admin - Server Settings - General - Enable compressed output" it runs without errors
The mod use

if (!empty($modSettings['enableCompressedOutput']))
@ob_start('ob_gzhandler');
else
ob_start();

in the functions gmm_build_XML() and gmm_show_KML(), but I think this is not necessary. A simple ob_start() is enoug for the map.
We use the same logic in the hook integrate_exit, to convert xml content for our SEF engine.
Title: Re: Google Member Map
Post by: Eclipse16V on December 14, 2011, 06:58:56 AM
@ Spuds
Can you help me when installing the clustering function?

Then I've got a problem with your mod here.
Now get the following error message:

http://..../index.php?action=googlemap
8: Undefined index: cannot_googleMap_view
Datei: /..../Sources/Security.php
Zeile: 915

http://..../index.php?action=googlemap;sa=.js;count=1
8: Undefined index: cannot_googleMap_view
Datei: /..../Sources/Security.php
Zeile: 915

How can I fix it?

The other error is now gone.
Thanks Fel
Title: Re: Google Member Map
Post by: Spuds on December 14, 2011, 10:08:48 AM
Quotehttp://..../index.php?action=googlemap
8: Undefined index: cannot_googleMap_view
Datei: /..../Sources/Security.php
Zeile: 915
That is a missing text string
$txt['cannot_googleMap_view'] = 'Sorry, you are not allowed to view the Member Map.';

Which is currently in googleMap.english.php so if you are using a translation, either that string did not get translated or I simply failed to load the language file before making the permission check (most likely :P)  You can copy that string to the modifications.language file to clear it up until I fix it properly.
Title: Re: Google Member Map
Post by: Eclipse16V on December 15, 2011, 12:56:55 AM
Thanks

This text string is in my googleMap.english.php , googleMap.english-utf8.php and googleMap.german-utf8.php

I will test it with the modifications.language file.
Title: Re: Google Member Map
Post by: bobbinz30 on December 16, 2011, 05:52:08 AM
Is there a way to get the list of names in alphabetical order?
Title: Re: Google Member Map
Post by: Spuds on December 16, 2011, 10:37:48 AM
They should be in alphabetical order, the only ones that will not show in alphabetical order are the recently moved/added pins, those "float" to the top of the list based on date added.  However after a week those will just become alphabetical as they will no longer be consider recent.

The other possibility is if you have more pins added to the map then you allow to be shown on the map, in those cases the order is random.
Title: Re: Google Member Map
Post by: Spovik on December 16, 2011, 02:31:56 PM
I have an old installation of the member map that seems to not work.  I'm trying to uninstall it, so I can install the newest one from the package, but when I try to reverse the manual installation functions, it still doesn't go away.  Does anyone have any tips, or perhaps how I can tell the version of the one that was installed so I can try and find how to remove it?
Title: Re: Google Member Map
Post by: Chas Large on December 18, 2011, 06:36:42 AM
Sad to report that the embolding of recent changes in the list no longer works. The changed names are at the top but not emboldened. Yes, I have the box ticked in the config page ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi880.photobucket.com%2Falbums%2Fac2%2FHal9000_bucket%2FMMaplistB4.jpg&hash=7703d74efb8c1d64dab967f132c53aa57a0da215) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi880.photobucket.com%2Falbums%2Fac2%2FHal9000_bucket%2FMMaplistAFTR.jpg&hash=2f4421317ae338097c62049f60e9eed4f2feff05)
Before a change to Hal's pin position:  After:
Title: Re: Google Member Map
Post by: Spuds on December 18, 2011, 01:59:18 PM
What a trouble maker  :P

Changelog
2.6 - 18 Dec 2011
o + added a hidden map reset button to middle of pan control
o + prevented output of gzip data when portamx is active
o ! fixed member names not appearing in bold when they should have been
o ! fixed undefined txt var due to order of load language
Title: Re: Google Member Map
Post by: Eclipse16V on December 18, 2011, 04:24:00 PM
Thanks for update but dosent display a Pin Legend below the map.
Title: Re: Google Member Map
Post by: Spuds on December 18, 2011, 08:50:27 PM
Guess you will have to live without that for a while then ......
Title: Re: Google Member Map
Post by: Eclipse16V on December 23, 2011, 01:51:11 AM
Hello,
You have in your mod in the packed $txt['location'] ManageSettings.english.php but what is already in the index.english.php. Now to me these are not properly displayed in the right language. I change the order in time $txt['locationx'].
Title: Re: Google Member Map
Post by: Chas Large on December 23, 2011, 02:06:04 AM
Quote from: Eclipse16V on December 18, 2011, 04:24:00 PM
Thanks for update but dosent display a Pin Legend below the map.
Quote from: Spuds on December 18, 2011, 08:50:27 PM
Guess you will have to live without that for a while then ......
Just installed the latest version and it shows the Pin legend OK for me, so it would suggest a setting rather than a bug.
Title: Re: Google Member Map
Post by: Storman™ on December 30, 2011, 04:34:40 AM
Anyone got any problems with their maps today ?

I've got this map on a few sites and they all appear to be amiss today with the pins located in the ocean  ;D

Strangely this is only with sites using the older version that utilises the API but I'm assuming it's a Google issue ?
Title: Re: Google Member Map
Post by: Spuds on December 30, 2011, 10:10:01 AM
Just checked one of my sites (using api 2) and all the pins were where they were supposed to be (on land).  Either Google glitched or more likely all of your members have moved on to rafts :)
Title: Re: Google Member Map
Post by: Chas Large on December 30, 2011, 10:25:23 AM
All my pins are in the right place ta.

Happy New Year to all :)
Title: Re: Google Member Map
Post by: Storman™ on December 30, 2011, 12:20:26 PM
Ooh, might leave till tomorrow and then try a re-install then.

Cheers  ;)
Title: Re: Google Member Map
Post by: fals on December 30, 2011, 12:45:19 PM
Quote from: Storman on December 30, 2011, 04:34:40 AM
Anyone got any problems with their maps today ?
I have issues, but apparently only in google chrome - pins are not loaded.
http://www.ls-forum.dk/smf/index.php?action=googlemap
Title: Re: Google Member Map
Post by: Storman™ on December 30, 2011, 02:12:07 PM
QuoteI have issues, but apparently only in google chrome - pins are not loaded.

Your pins are showing fine for me when using Chrome  ;)
Title: Re: Google Member Map
Post by: Chas Large on December 30, 2011, 05:23:36 PM
Quote from: fals on December 30, 2011, 12:45:19 PM
Quote from: Storman on December 30, 2011, 04:34:40 AM
Anyone got any problems with their maps today ?
I have issues, but apparently only in google chrome - pins are not loaded.
http://www.ls-forum.dk/smf/index.php?action=googlemap
I too can confirm they are showing in Chrome. Perhaps you have an older version of Chrome running or a script blocker add-on running?
Title: Re: Google Member Map
Post by: GlitchPC on December 30, 2011, 05:54:39 PM
Quote from: Spuds on December 30, 2011, 10:10:01 AM
Just checked one of my sites (using api 2) and all the pins were where they were supposed to be (on land).  Either Google glitched or more likely all of your members have moved on to rafts :)

LMAO!

Anyhow...Spuds...

Is there any way to allow an option to add the link to the Member Map as a sub link to the Members tab of the main navigation menu.  I, totally ran out of room...  Not your problem, mind you.  Just askin'...

Thanks, in advance.
Title: Re: Google Member Map
Post by: Kindred on December 30, 2011, 07:01:34 PM
You can add it in the menu array in subs.php... Modify the sun actions section of the members part of he array
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 12:50:13 AM
Quote from: Kindred on December 30, 2011, 07:01:34 PM
You can add it in the menu array in subs.php... Modify the sun actions section of the members part of he array

Okay...but where is the code to remove the menu tab this mod automatically adds to the menu?
Title: Re: Google Member Map
Post by: ThunderBucks on December 31, 2011, 02:12:55 AM
This installs for me with out any errors and shows up with the new button.  But when I click to place a pin nothing happens.  I am not able to place a pin.  I checked member permissions and members have the permission to place a pin.  What else could be wrong?

Thanks in advance
Title: Re: Google Member Map
Post by: Storman™ on December 31, 2011, 03:11:03 AM
QuoteOkay...but where is the code to remove the menu tab this mod automatically adds to the menu?

It's in GoogleMapIntergration.php (around line 40) which is located in Sources  ;)
Title: Re: Google Member Map
Post by: Storman™ on December 31, 2011, 03:21:23 AM
QuoteBut when I click to place a pin nothing happens.  I am not able to place a pin.  I checked member permissions and members have the permission to place a pin.

You do know know that pins are added in the members profile section and not on the actual main map itself ? Just checking .
Title: Re: Google Member Map
Post by: ThunderBucks on December 31, 2011, 08:46:55 AM
Yes Storman I do but when it redirects you to your profile page nothing happens.  You can't move the map you have to put in your zipcode and then it will go to my city but still nothing happens when I click on where I want to place the pin. Just thinking maybe a folder permission maybe off or not set right???
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 12:02:07 PM
Quote from: Storman on December 31, 2011, 03:11:03 AM
QuoteOkay...but where is the code to remove the menu tab this mod automatically adds to the menu?

It's in GoogleMapIntergration.php (around line 40) which is located in Sources  ;)


Okay...I'm still with you...but, how do I edit this code this so it doesn't add the menu tab?  As it stands...it's an if statement:
// where do we want to place this new button
$insert_after = empty($modSettings['googleMap_ButtonLocation']) ? 'calendar' : $modSettings['googleMap_ButtonLocation'];
$counter = 0;

// find the location in the buttons array
foreach ($buttons as $area => $dummy)
{
if (++$counter && $area == $insert_after)
break;
}

// Define the new menu item(s)
$new_menu = array(
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMap_Enable']) && allowedTo('googleMap_view'),
'sub_buttons' => array(),
)
);

// Insert the new items in the existing array with array-a-matic ...it slices, it dices, it puts it back together
$buttons = array_merge(array_slice($buttons, 0, $counter), array_merge($new_menu, array_slice($buttons, $counter)));
}
Title: Re: Google Member Map
Post by: Storman™ on December 31, 2011, 12:44:25 PM
Guess you could completely removed the whole function (as below) - that will certainly get rid of the generated button.

function imb_googlemap(&$buttons)
{
global $txt, $scripturl, $modSettings;

loadlanguage('GoogleMap');

// where do we want to place this new button
$insert_after = empty($modSettings['googleMap_ButtonLocation']) ? 'calender' : $modSettings['googleMap_ButtonLocation'];
$counter = 0;

// find the location in the buttons array
foreach ($buttons as $area => $dummy)
{
if (++$counter && $area == $insert_after)
break;
}

// Define the new menu item(s)
$new_menu = array(
'googlemap' => array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMap_Enable']) && allowedTo('googleMap_view'),
'sub_buttons' => array(),
)
);

// Insert the new items in the existing array with array-a-matic ...it slices, it dices, it puts it back together
$buttons = array_merge(array_slice($buttons, 0, $counter), array_merge($new_menu, array_slice($buttons, $counter)));
}


However, ideally instead of removing the code you'd be better off amending it so that it creates the button in the postion where you want it.
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 12:51:27 PM
Agreed...but, I'm not a coder...hence, the help request.  I want to add it as a sub-menu item to the main "Members" tab.
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 03:23:40 PM
Quote from: Spuds on July 05, 2011, 03:29:19 PM
Quote from: joey791 on July 04, 2011, 11:34:07 AM
Quote from: Kindred on July 02, 2011, 10:21:27 PM
Modify the menu in subs.php

I need to know how to modify the code in the GoogleMap20integration.php first
If you want the button as part of the members drop down menu then replace the entire function imb_googlemap(&$buttons) in GoogleMap20integration.php  with this

function imb_googlemap(&$buttons)
{
global $txt, $modSettings, $scripturl;

// Place the button at the end of the member slide out menu
$buttons['mlist']['sub_buttons']['googlemap'] = array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
);
}


Spuds...

I tried this edit with the latest version of this mod...and it didn't work.  Granted...I know it was for a different template, but I was hoping it would work for what I wanted to do.  I currently use SMF 2.0.2 and the latest version of this mod.
Title: Re: Google Member Map
Post by: ThunderBucks on December 31, 2011, 03:51:48 PM
I found that this mod will work on my site but only if viewed with Firefox.  What would cause this issue? 

Title: Re: Google Member Map
Post by: Spuds on December 31, 2011, 07:29:25 PM
Quote from: GlitchPC on December 31, 2011, 03:23:40 PM
Spuds...

I tried this edit with the latest version of this mod...and it didn't work.  Granted...I know it was for a different template, but I was hoping it would work for what I wanted to do.  I currently use SMF 2.0.2 and the latest version of this mod.
OMG ... someone used search :)

That edit should still work, but you may need to add in the loadlanguage like this .... just replace the current function with this one ....

function imb_googlemap(&$buttons)
{
global $txt, $scripturl, $modSettings;

loadlanguage('GoogleMap');

// Place the button at the end of the member slide out menu
$buttons['mlist']['sub_buttons']['googlemap'] = array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
);
}
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 11:04:31 PM
Spuds...

Parse error: syntax error, unexpected '}' in /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/GoogleMapIntegration.php on line 39

Replaced this:
function imb_googlemap(&$buttons)
{
global $txt, $scripturl, $modSettings;

loadlanguage('GoogleMap');

// Place the button at the end of the member slide out menu
$buttons['mlist']['sub_buttons']['googlemap'] = array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
);
}


...with the code you supplied.

So then, I replaced this:
function imb_googlemap(&$buttons)
{
global $txt, $scripturl, $modSettings;

loadlanguage('GoogleMap');

// Place the button at the end of the member slide out menu
$buttons['mlist']['sub_buttons']['googlemap'] = array(
'title' => $txt['googleMap'],
'href' => $scripturl . '?action=googlemap',
'show' => !empty($modSettings['googleMapsEnable']) && allowedTo('googleMap_view'),
);
}

// Insert the new items in the existing array with array-a-matic ...it slices, it dices, it puts it back together
$buttons = array_merge(array_slice($buttons, 0, $counter), array_merge($new_menu, array_slice($buttons, $counter)));
}


parse error went away, but the link isn't showing...
Title: Re: Google Member Map
Post by: Spuds on December 31, 2011, 11:41:40 PM
those 4 lines after the first } should not be there .... if you want just attach your googlemapintegration file and I'll take a look (since I'm not sure which version you are running)
Title: Re: Google Member Map
Post by: GlitchPC on December 31, 2011, 11:45:32 PM
Here ya go...and thanks...

Happy New Year, by the way...

Oh...and I'm using 2.6 of your mod...
Title: Re: Google Member Map
Post by: GlitchPC on January 01, 2012, 10:18:40 AM
Thanks, Spuds!  Worked like a charm...much appreciated!
Title: Re: Google Member Map
Post by: ThunderBucks on January 01, 2012, 06:31:51 PM
Since no one replied to my post does this mean there is no solution for the problem I am having?
Title: Re: Google Member Map
Post by: GlitchPC on January 01, 2012, 06:54:07 PM
Quote from: ThunderBucks on January 01, 2012, 06:31:51 PM
Since no one replied to my post does this mean there is no solution for the problem I am having?

I've tested this mod on all recent versions of major browsers:  Firefox, IE, Opera, Chrome, and Safari.  No issues with any of those browsers displaying the Google Member Map.
Title: Re: Google Member Map
Post by: Chas Large on January 02, 2012, 05:03:11 AM
Quote from: ThunderBucks on January 01, 2012, 06:31:51 PM
Since no one replied to my post does this mean there is no solution for the problem I am having?
If you read back just a bit, you'd have seen that Storman complained it wasn't working on Google Chrome but several of us confirmed that it does.
I've just tested it on Chrome, FireFox, Internet Explorer, Opera and Safari (for PC). So it must be something on your PC blocking the google map code or the mod is not installed correctly.
Title: Re: Google Member Map
Post by: ThunderBucks on January 02, 2012, 10:24:03 AM
OK thank you for the replies maybe it is just my browser, I will check.
Title: Re: Google Member Map
Post by: Storman™ on January 04, 2012, 05:30:42 AM
QuoteIf you read back just a bit, you'd have seen that Storman complained it wasn't working on Google Chrome but several of us confirmed that it does.

Actually it was fals (http://www.simplemachines.org/community/index.php?topic=210708.msg3238339#msg3238339) who said that, not me Chas, cheers  ;)
Title: Re: Google Member Map
Post by: Chas Large on January 05, 2012, 03:52:01 AM
Quote from: Storman on January 04, 2012, 05:30:42 AM
QuoteIf you read back just a bit, you'd have seen that Storman complained it wasn't working on Google Chrome but several of us confirmed that it does.

Actually it was fals (http://www.simplemachines.org/community/index.php?topic=210708.msg3238339#msg3238339) who said that, not me Chas, cheers  ;)

My apologies, I misread the quoted reply you gave. Sorry  :-\
Title: Re: Google Member Map
Post by: kwolf on January 06, 2012, 03:29:08 AM
On the member map the pins are showing up in the wrong places.  When you zoom in and out, the pin moves from where it was at the previous zoom level.  The problem is such that after a couple zooms out the pin appears in a totally different state, and at max zoom level the pin is in upper Canada instead of in Tennessee.  You can see the problem here: h##p://tnfurs.net/forum/index.php?action=googlemap

On the member page where you place the pin, this problem is not present.  You can zoom in/out all day and the pin is over the correct place.  The problem only happens on the actual member map.  I am using the latest version of this mod.  I tried IE9 and Chrome.  I also tried the default theme instead of the one I am using now, but the problem persists.  Any ideas what could be causing this issue?
Title: Re: Google Member Map
Post by: Chas Large on January 06, 2012, 04:25:34 AM
Quote from: kwolf on January 06, 2012, 03:29:08 AM
On the member map the pins are showing up in the wrong places.  When you zoom in and out, the pin moves from where it was at the previous zoom level.  The problem is such that after a couple zooms out the pin appears in a totally different state, and at max zoom level the pin is in upper Canada instead of in Tennessee.  You can see the problem here: h##p://tnfurs.net/forum/index.php?action=googlemap

Just tried this on my FIreFox browser and it stayed at the junction of Boones Creak Road and the I26 all the way zoomed in and out, either by clicking or dragging the zoom slider. I would suggest your browser cache might be requiring a clearout maybe?
Title: Re: Google Member Map
Post by: kwolf on January 06, 2012, 04:42:57 AM
Thanks for the fast reply.  I just installed firefox and have the same issue.  I also tried it on the laptop thinking it might just be my PC, but no go.  Here's some screenshots of the problem, you can see at one zoom level the point looks like it's in Southwest Virgina, but it should actually be at I-26 & Boones Creek Rd in Tennessee like you mentioned.  The futher in I zoom the closer it is to the right spot.  The closer zoom levels are all fairly accurate.

Title: Re: Google Member Map
Post by: Chas Large on January 06, 2012, 05:11:07 AM
I don't think you can expect to place a pin that accurately when zoomed out, try hitting the same spot on an atlas or a globe?

I just placed a pin is virtually the same spot as yours on my test forum, zoomed out and back in, the pin was still in the same place but in the zoomed out image does not look like it's in the right place. I thinks it's a perception of accuracy thing not a bug.

See shots attached.
Title: Re: Google Member Map
Post by: kwolf on January 06, 2012, 05:14:39 AM
I think you're right.  If you go to the screen where you place the pin (in your profile) and zoom really far out like that, the pin looks like it's in a much more accurate place compared to the member map.  That is why I thought there might be a bug.  That probably has something to do with the image it's using for the icon though since it uses the red google one and not the custom one.

Edit: Changed the pin size from 25 to 40 to closer match the pin on the profile page and it is pretty much accurate at all zoom levels.  Simple solution for my nitpick :)
Title: Re: Google Member Map
Post by: Spuds on January 06, 2012, 11:12:21 AM
I'll see if there is a way to tweak the anchor point of the pin (a bit more).  When you use those different sized pins you have to shift the anchor point of the pin base but as noted it can cause some minor discrepancys when you zoom out  :-X  Gets convoluted with the number of pin options and shadows that the mod supports, so it may be something we just have to live with but I'll check when I get a chance.
Title: Re: Google Member Map
Post by: carlosdelarco on January 14, 2012, 11:33:35 AM
Here is the spanish_es-utf8 translation for this mod ;)

You must set the code file to unicode utf8
Title: Re: Google Member Map
Post by: luuuciano on January 15, 2012, 07:02:05 PM
Very nice mod! thanks for making and sharing it!

A question... the usernames list, at left/right of the map, can be sortered alphabetically instead the current sort by registration time?
It will help to find members too
Title: Re: Google Member Map
Post by: Spuds on January 15, 2012, 08:31:54 PM
Quote from: carlosdelarco on January 14, 2012, 11:33:35 AM
Here is the spanish_es-utf8 translation for this mod ;)

You must set the code file to unicode utf8

Thank you !!! ... I'll add this at the next rev
Quote
A question... the usernames list, at left/right of the map, can be sortered alphabetically instead the current sort by registration time?
It will help to find members too
It does a bit of a double sort, or its supposed to ...
Recently moved / added pins are supposed to be at the very top of the list in the added/changed order (most recent at the top), then after the recently moved/added pins the remaining members (whos pins have not moved in > 1 week) will be listed alphabetically.  So if you have just enabled the mode it will look random but in a week it will normalize itself.  Hope that makes sense ...
Title: Re: Google Member Map
Post by: luuuciano on January 16, 2012, 12:45:40 AM
Oh, amazing... thanks a lot for the explanation spud!
Title: Re: Google Member Map
Post by: rootuid on January 27, 2012, 05:43:05 AM
Great mod! Where is the pin the member can use to identify his location ? I don't see it in the profile. screenshot attached.
Title: Re: Google Member Map
Post by: Spuds on January 27, 2012, 05:58:12 PM
QuoteWhere is the pin the member can use to identify his location
You just have to click on the map to place a pin, and if you want to remove it, click on the pin itself.
Title: Re: Google Member Map
Post by: africangreys on February 17, 2012, 02:14:17 PM
Hi All,

I have just installed this onto my forum but I have a silly issue with it that I can't see how to fix, when you type your location into the input field you get a dropdown menu with possible locations, the problem is the background is white and so is the text so unless you hover over the results you don't see the suggestions (see image below), obviously a bit of CSS somewhere but can't figure out where .... any help appreciated?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.africangreyparrotcentre.co.uk%2Fimg%2Fcommon%2Fgooglemembermap.gif&hash=cd3761745c324addb88b1cc281f0ac3e76ea59b2)
Title: Re: Google Member Map
Post by: africangreys on February 20, 2012, 07:57:04 AM
anybody?
Title: Re: Google Member Map
Post by: Spuds on February 20, 2012, 11:02:01 AM
Those are the defaults from the Google places script that is used to generate that pull down.

To change those you will need to add some css to the Profile.template.css file.  In that file find:
Code (find) Select
<style type="text/css">
#map_canvas input, textarea {background-color: #ffffff;}
</style>


Code (replace) Select
<style type="text/css">
#map_canvas input, textarea {background-color: #ffffff;}
.pac-container {background-color: #000000;}
.pac-item {color: #777777;}
</style>

.pac-container is the background color of the div, .pac-item is the text color of the found items in the pull down, change the numbers to what you like.

The color of the initial input box on the screen will not be changed by this change, this only changes the selection box that appears.  The input box is controlled by the themes stylesheet (generally index.css   input, button, select, textarea  line)
Title: Re: Google Member Map
Post by: africangreys on February 20, 2012, 12:17:15 PM
Awesome Spuds ... works a treat, thanks for your help :)
Title: Re: Google Member Map
Post by: rlarusso on February 23, 2012, 11:14:37 AM
Hey, this is a great mod my users are really enjoying it.

I wanted to remove the map from the profile page -- there wasn't an apparent setting for this in the admin panel.

It's no big deal to comment out some code or hide it in CSS, I just wanted the author to see this as a feature request.
Title: Re: Google Member Map
Post by: Spuds on February 23, 2012, 09:04:08 PM
Thanks ... thats a good idea!   I'll add that in the next release (assuming I remember lol)
Title: Re: Google Member Map RC3, RC4
Post by: 3fifty on March 02, 2012, 08:51:32 AM
Great mod.  Thanks for the hard work.
I followed the conversation (quoted below) (http://www.simplemachines.org/community/index.php?topic=210708.msg2965680#msg2965680) and I cant seem to find the proper files or references.
Thank you for the help.

Is GoogleMap11.php in /Sources/?  If not, where do I find it?
I have GoogleMap.php and GoogleMapIntegration.php in /Sources/.

In GoogleMap.php I could not find // Let's actually start making the XML but I did find // Let's bring it all together... Do I add the code before that?

Quote from: Spuds on February 23, 2011, 07:00:26 PM
Quote from: SeaChaser on February 23, 2011, 01:39:43 PM
I would like to add some pins, maybe even customized pins, for locations of interest to the forum members but not necessarily have to create ghost accounts for those locations. Is that possible?
Its something that I'm going to add to the mod one of these days, but only for the 2.0 branch
Open up the GoogleMap11.php and find the line that says
    // Lets accualy start making XML Mr. PHP

immediately before that you need to add this block of code, for each and every pin that you intend to add
$data[] = array(
'name' => 'Google HQ',
'href' => 'http://www.google.com',
'blurb' => 'This is where we rule the world from',
'website' => array('title' => 'Google Website','url' => 'http://www.google.com'),
'title' => '_____________',
'location' => 'Mountain View, California',
'googleMap'=> array('latitude' => 37.423021, 'longitude' => -122.083739),
'gender' => array('name' => '','image' => ''),
'icq' => array('name' => '', 'add' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'aim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'yim' => array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'msn' =>  array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'avatar' => array('name' => '','image' => '','href' => '', 'url' => ''),
'online' => array('is_online' => 0,'text' => $txt['online3'],'href' => '#','link' => '','image_href' => $settings['images_url'] . '/' .  'useroff.gif','label' => $txt['online5'])
);


This will give you a pin on the map with some basic information in the info bubble.  Be careful when editing, don't mess up any of the ' or , or you will get an error  ;)  You need to change the information in those first seven lines to customize each pin, the rest of the lines are just there so you don't get undefined index notices in your error log.

Quote from: Spuds on February 23, 2011, 09:25:36 PM
Quote from: henrik1782 on February 23, 2011, 07:19:21 PM
can the same code be inserted to the GoogleMap20.php and where...?
It should ... worst it will do is give you and undefined index ;)  .... in 2.0 look for
// Let's actually start making the XML
and insert the code above that line
Title: Re: Google Member Map
Post by: Spuds on March 02, 2012, 12:32:34 PM
All of that was for the previous version of the mod, I had to make updates when things moved to Google Map V3 api.

I have not tried this, but you should be able to do something similar to what was put above ...

find the section of googlemap.php
// Begin the XML output

Above that add the $data[] = array( ... stuff but instead of calling it "data" try calling it $memberContext = array( .... 

Again untested so YMMV ;)
Title: Re: Google Member Map
Post by: 3fifty on March 02, 2012, 03:08:27 PM
Thanks!

It briefly tries to load the map then errors with
Unable to read the map pin data, result was - 500
Title: Re: Google Member Map
Post by: mint on March 03, 2012, 01:05:11 PM
Thanks for creating this modification I'm finding it really useful to give me an idea of where my paid members are spread across the UK.
Here are the co-ordinates I used to centre the map on the UK: LAT 55 LONG -4 ZOOM 5

However, I am having the same issue as Kwolf where when the map is zoomed right in (approx level 20) the pins are accurately positioned but the pins move up the map slightly with each level you zoom out.
Title: Re: Google Member Map
Post by: NDFF on March 09, 2012, 02:49:22 PM
I and no one else can move or set pins on the map in our profile??? Anyone else have this problem. (Could it be something with the change of Google terms of Service lately).

Test account is possible to make.


I'ts a theme conflict.. When theme is changed to Core, there is no problem. ???
Title: Re: Google Member Map
Post by: netpaydays on March 10, 2012, 12:07:48 AM
I have a little problem. I have smf 1.1.4. In bright forest theme everything is alright but in Apollobb I don't see link to the profile, legend with gender (only pins), and no title of box with users.

Link to theme:
http://custom.simplemachines.org/themes/index.php?lemma=356
Title: Re: Google Member Map
Post by: Kindred on March 10, 2012, 12:21:30 AM
if you are actually using 1.1.4, you have more problems than that. You need to upgrade to 1.1.16 ASAP - you are 12 revisions behind in security.
Title: Re: Google Member Map
Post by: 3fifty on March 25, 2012, 02:45:34 PM
Quote from: Spuds on March 02, 2012, 12:32:34 PM
All of that was for the previous version of the mod, I had to make updates when things moved to Google Map V3 api.

I have not tried this, but you should be able to do something similar to what was put above ...

find the section of googlemap.php
// Begin the XML output

Above that add the $data[] = array( ... stuff but instead of calling it "data" try calling it $memberContext = array( .... 

Again untested so YMMV ;)

Quote from: 3fifty on March 02, 2012, 03:08:27 PM
Thanks!

It briefly tries to load the map then errors with
Unable to read the map pin data, result was - 500

Any further help on this?
Title: Re: Google Member Map
Post by: Scooby on April 14, 2012, 04:43:49 PM
I looked but could not find anything on these errors, can anyone point me in the direction of a fix for the following
using version 2.0.2 of SMF
8: Undefined index: googleMap
Apply Filter: Only show the errors from this file
File: /home/nick/public_html/Themes/default/GenericMenu.template.php (edit_options sub template - eval?)
Line: 2881

8: Undefined index: googleMap_Disclaimer
Apply Filter: Only show the errors from this file
File: /home/nick/public_html/Themes/default/GenericMenu.template.php (edit_options sub template - eval?)
Line: 2881
Title: Re: Google Member Map
Post by: Kindred on April 14, 2012, 06:06:20 PM
turn off eval to find that actual point of the error...   and then look at the line numbers for that file.

However, I suspect that there is a missing text string or two...
Title: Re: Google Member Map
Post by: Scooby on April 15, 2012, 12:41:23 PM
Found out how to do that and the errors are below thanks for the help

8: Undefined index: googleMap_Whereis
File: /home/nick/public_html/Themes/default/Profile.template.php
Line: 323
8: Undefined index: googleMap_Where
File: /home/nick/public_html/Themes/default/Profile.template.php
Line: 323
8: Undefined index: googleMap_Disclaimer
File: /home/nick/public_html/Themes/default/Profile.template.php
Line: 2881
8: Undefined index: googleMap_PleaseClick
File: /home/nick/public_html/Themes/default/Profile.template.php
Line: 2881
8: Undefined index: googleMap
file: /home/nick/public_html/Themes/default/Profile.template.php
Line: 2881
Title: Re: Google Member Map
Post by: Kindred on April 15, 2012, 12:59:22 PM
and what are lines 323 and 2881 in profile.template.php?
Title: Re: Google Member Map
Post by: Scooby on April 15, 2012, 01:29:04 PM
I have looked and there are text entries that match in GoogleMap.english.php
323
   <dt><strong>' . $txt['googleMap_Where'] . ' ' . (preg_match('~\s(and|&|&amp;)\s~i', $context['member']['name']) ? $txt['googleMap_Whereare'] : $txt['googleMap_Whereis']) . ' ' . $context['member']['name'] . ':</strong></dt>

2881
<dt><strong>', $txt['googleMap'], '</strong><br /><span class="smalltext">'. $txt['googleMap_PleaseClick'].'<br />' . $txt['googleMap_Disclaimer'] . '</span></dt>
Title: Re: Google Member Map
Post by: ApplianceJunk on April 15, 2012, 01:44:05 PM
We are currently using this mod. Thanks for the great mod!
Everything installed and seems to work fine.

I'm unclear exactly what a few options are for in the admin panel.

1. Enter text for use with a member text pin

2. Enter text for use with a cluster text pin

I have them left blank now. What are some example of what one might put in for them two options?

Thanks,

Edited to add: I see how it all works now. ;)
Title: Re: Google Member Map
Post by: ApplianceJunk on April 15, 2012, 03:36:27 PM
Quote from: kwolf on January 06, 2012, 05:14:39 AM
I think you're right.  If you go to the screen where you place the pin (in your profile) and zoom really far out like that, the pin looks like it's in a much more accurate place compared to the member map.  That is why I thought there might be a bug.  That probably has something to do with the image it's using for the icon though since it uses the red google one and not the custom one.

Edit: Changed the pin size from 25 to 40 to closer match the pin on the profile page and it is pretty much accurate at all zoom levels.  Simple solution for my nitpick :)

This seem to help, thanks.
Title: Re: Google Member Map
Post by: Kindred on April 15, 2012, 06:35:09 PM
Quote from: Scooby on April 15, 2012, 01:29:04 PM
I have looked and there are text entries that match in GoogleMap.english.php
323
   <dt><strong>' . $txt['googleMap_Where'] . ' ' . (preg_match('~\s(and|&|&amp;)\s~i', $context['member']['name']) ? $txt['googleMap_Whereare'] : $txt['googleMap_Whereis']) . ' ' . $context['member']['name'] . ':</strong></dt>

2881
<dt><strong>', $txt['googleMap'], '</strong><br /><span class="smalltext">'. $txt['googleMap_PleaseClick'].'<br />' . $txt['googleMap_Disclaimer'] . '</span></dt>

Which suggests that, perhaps the langauge file is not actually being loaded in profile.template.php
Title: Re: Google Member Map
Post by: mint on April 16, 2012, 10:48:04 AM
Quote from: ApplianceJunk on April 15, 2012, 03:36:27 PM
Quote from: kwolf on January 06, 2012, 05:14:39 AM
I think you're right.  If you go to the screen where you place the pin (in your profile) and zoom really far out like that, the pin looks like it's in a much more accurate place compared to the member map.  That is why I thought there might be a bug.  That probably has something to do with the image it's using for the icon though since it uses the red google one and not the custom one.

Edit: Changed the pin size from 25 to 40 to closer match the pin on the profile page and it is pretty much accurate at all zoom levels.  Simple solution for my nitpick :)

This seem to help, thanks.

Aha! This certainly fixes the problem for me. I changed the size to 35 as the icon looks crisper than 40. Thanks for the fix! I think several members have been fiddling with their positions wondering why they kept moving!
Title: Re: Google Member Map
Post by: ApplianceJunk on April 16, 2012, 11:08:17 AM
Quote from: mint on April 16, 2012, 10:48:04 AM
Quote from: ApplianceJunk on April 15, 2012, 03:36:27 PM
Quote from: kwolf on January 06, 2012, 05:14:39 AM
I think you're right.  If you go to the screen where you place the pin (in your profile) and zoom really far out like that, the pin looks like it's in a much more accurate place compared to the member map.  That is why I thought there might be a bug.  That probably has something to do with the image it's using for the icon though since it uses the red google one and not the custom one.

Edit: Changed the pin size from 25 to 40 to closer match the pin on the profile page and it is pretty much accurate at all zoom levels.  Simple solution for my nitpick :)

This seem to help, thanks.

Aha! This certainly fixes the problem for me. I changed the size to 35 as the icon looks crisper than 40. Thanks for the fix! I think several members have been fiddling with their positions wondering why they kept moving!

After reading your post I also changed it to 35 and unchecked, 'Add a drop shadow to the member pin'.
Looks better yet, thanks!
Title: Re: Google Member Map
Post by: Bobn on April 24, 2012, 11:59:01 AM
Hello,

I have the map installed and found permissions for all to see however used dont have a place to add themselves?
Title: Re: Google Member Map
Post by: Storman™ on April 27, 2012, 06:16:57 AM
Noticed that if a Member amends any details in their profile on the Modify Profile --> Forum Profile page, then the date that the pin was set gets changed again.

Obviously this is because the map appears on that page and the mod is intetrpreting the "save" as a the date that the pin was added or moved.

However, the outcome of this is that on the main map the members name appears in bold again as "recently added/moved". On some of my forums members have moaned that they haven't just added themselves to the map (they are a grumpy lot lol ! ) which I suppose is true.

Because the map is on the same profile page as the avatars (which some members change frequently) then this issue reoccurs quite often.

Maybe the code needs an additional tweek to prevent this in a future release. Another option would be to give it it's own tab within the members profile?

;)
Title: Re: Google Member Map
Post by: Buta on May 10, 2012, 02:27:01 PM
Nice mod.
Great.....


I have a question? How to add personal message into pop up bubble?
If this option is not there, here's suggestion for further development mode


Sorry for my bad English
Title: Re: Google Member Map
Post by: Buta on May 16, 2012, 06:40:25 AM
Bump......
Title: Re: Google Member Map
Post by: Kindred on May 16, 2012, 11:24:09 AM
what do you mean?

"How to add personal message into pop up bubble?"

huh?   do you mean an icon that links to "send this user a PM"?
in that case, it would require modifications to the code....   I'm not sure how easily it could be done.
Title: Re: Google Member Map
Post by: Buta on May 16, 2012, 11:45:23 AM
OK

How to add some own text into pop up bubble.  eg Text with a description of some



Title: Re: Google Member Map
Post by: Spuds on May 16, 2012, 10:13:28 PM
The info bubble already shows the custom title.  If you want to show the personal text from the members profile, then in GoogleMap.php find:

Code (find) Select
$datablurb .= '
</ul>
</div>
</div>';


and replace it with

Code (replace) Select
$datablurb .= '
</ul>
</div>';

// Show their personal text?
if (!empty($settings['show_blurb']) && $marker['blurb'] != '')
$datablurb .= '
<br class="clear" />' . $marker['blurb'];

$datablurb .= '
</div>';
Title: Re: Google Member Map
Post by: Buta on May 17, 2012, 09:27:34 AM
This is OK, but i want add own text, not text from signature


Sorry for my bad English
Title: Re: Google Member Map
Post by: Spuds on May 17, 2012, 10:53:32 AM
Can't help you on that ... and FWIW thats not from the signature, but the personal message text in their profile.
Title: Re: Google Member Map
Post by: Kindred on May 17, 2012, 11:43:24 AM
if you mean

-- make a text field available for users to add additional text which will be displayed only in the google member map, then you are talking about a whole nother set of coding....   well outside of the features of this mod.
Title: Re: Google Member Map
Post by: trekkie2444 on June 03, 2012, 01:13:54 AM
Where can I find the text that makes this appear in the navbar (menu) for my forum? I can't find it in subs.php.
Title: Re: Google Member Map
Post by: Spuds on June 03, 2012, 10:20:53 AM
It uses integration hooks so it avoids editing that file directly.

The code for the button insertion is in the file GoogleMapIntegration.php in your sources directory

In that file look in the function imb_googlemap
Title: Re: Google Member Map
Post by: petitchevalroux on July 02, 2012, 03:56:07 AM
There is a mistake in 2.6 (Google Member Map SMF2.zip file) version in add_remove_hooks.php file :

'integrate_pre_include' => '$boarddir/Sources/GoogleMapIntegration.php',

Shoud be :

'integrate_pre_include' => '$sourcedir/GoogleMapIntegration.php',
Title: Re: Google Member Map
Post by: Kindred on July 02, 2012, 07:08:38 AM
hardly a mistake....     they both work.
Title: Re: Google Member Map
Post by: Arantor on July 02, 2012, 11:46:06 AM
They don't if your Sources folder is not $boarddir/Sources, and I know at least a dozen production sites where that's the case.
Title: Re: Google Member Map
Post by: petitchevalroux on July 03, 2012, 01:27:28 PM
Quote from: Arantor on July 02, 2012, 11:46:06 AM
They don't if your Sources folder is not $boarddir/Sources, and I know at least a dozen production sites where that's the case.
Like mine ^^
Title: Re: Google Member Map
Post by: mudskipper on July 06, 2012, 12:27:33 PM
OK, just upgraded my site to 2.0.2 and installed this mod.  Everything seems to be working fine with the exception of being able to place and save your pin location.  I can go through all of the steps and click save, it then tells me my profile changes have been saved.  However, when you go back to the member map, it says 0 member pins and doesnt show any of them.

www.blackwateratv.com

Any help is appreciated.

Mike
Title: Re: Google Member Map
Post by: Kindred on July 06, 2012, 12:44:31 PM
possibly conflicting javascript preventing the save from completing.
Title: Re: Google Member Map
Post by: mudskipper on July 06, 2012, 01:00:10 PM
Quote from: Kindred on July 06, 2012, 12:44:31 PM
possibly conflicting javascript preventing the save from completing.

So how do I fix it?  Sorry, I am still pretty new on all this.
Title: Re: Google Member Map
Post by: Kindred on July 06, 2012, 02:12:33 PM
not sure... you'd have to fins the conflicting script... and then either uninstall it or work out how to unconflict them

probably from another mod
Title: Re: Google Member Map
Post by: MiY4Gi on July 18, 2012, 09:21:47 PM
Is it possible to add this map to the registration page, so that members can choose their location during registration?
Title: Re: Google Member Map
Post by: IamTheBoy on August 03, 2012, 10:50:27 AM
Getting an JS error as soon as the total number of pins >= the number of pins before clustering appears:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
Timestamp: Fri, 3 Aug 2012 14:45:50 UTC


Message: 'MarkerClusterer' is undefined
Line: 134
Char: 2
Code: 0
URI: http://192.168.1.106/forum/index.php?action=googlemap;sa=.js;count=11


This also prevents the names of the members appearing on right of map, and the pins do not cluster.

Any ideas?

IE8, fortunately this is on a test site (running on a Raspberry Pi!), but if we can sort out all the problems, I'd like to stick this on out live site :)
Title: Re: Google Member Map
Post by: MiY4Gi on August 10, 2012, 08:42:21 PM
Quote from: IamTheBoy on August 03, 2012, 10:50:27 AM
Getting an JS error as soon as the total number of pins >= the number of pins before clustering appears:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
Timestamp: Fri, 3 Aug 2012 14:45:50 UTC


Message: 'MarkerClusterer' is undefined
Line: 134
Char: 2
Code: 0
URI: http://192.168.1.106/forum/index.php?action=googlemap;sa=.js;count=11


This also prevents the names of the members appearing on right of map, and the pins do not cluster.

Any ideas?

IE8, fortunately this is on a test site (running on a Raspberry Pi!), but if we can sort out all the problems, I'd like to stick this on out live site :)

Try a different browser.
Title: Re: Google Member Map
Post by: IamTheBoy on August 11, 2012, 02:05:31 PM
Quote from: MiY4Gi on August 10, 2012, 08:42:21 PM
Quote from: IamTheBoy on August 03, 2012, 10:50:27 AM
Getting an JS error as soon as the total number of pins >= the number of pins before clustering appears:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8)
Timestamp: Fri, 3 Aug 2012 14:45:50 UTC


Message: 'MarkerClusterer' is undefined
Line: 134
Char: 2
Code: 0
URI: http://192.168.1.106/forum/index.php?action=googlemap;sa=.js;count=11


This also prevents the names of the members appearing on right of map, and the pins do not cluster.

Any ideas?

IE8, fortunately this is on a test site (running on a Raspberry Pi!), but if we can sort out all the problems, I'd like to stick this on out live site :)

Try a different browser.
Happy to test that, but it has to work in IE8 and IE9, as these are still the world's most popular browsers.
Title: Re: Google Member Map
Post by: IamTheBoy on August 11, 2012, 02:13:47 PM
Latest firefox shows the same symptoms, but the js error is slightly different - "Error parsing value for 'background' - declaration dropped"

Edit: Also produces same JS error as IE
Title: Re: Google Member Map
Post by: IamTheBoy on August 11, 2012, 03:02:07 PM
Found the problem - it was a problem with my configuration. Because I run my site from a broadband line, static content is provided by a low-cost host, and dynamic content by my server at how.

The url to the JS was specified as being served from the low cost host, but never existed there.  I'll work out what files are required to be copied up, and try again, but pretty certain that will resolve.
Title: Re: Google Member Map
Post by: luuuciano on August 11, 2012, 04:20:28 PM
Quote from: IamTheBoy on August 11, 2012, 02:05:31 PM
Happy to test that, but it has to work in IE8 and IE9, as these are still the world's most popular browsers.

In what year?? are you a time traveller?

http://www.w3schools.com/browsers/browsers_stats.asp
http://www.theverge.com/2012/5/21/3033566/chrome-most-popular-browser-weekly-may-2012
http://en.wikipedia.org/wiki/Usage_share_of_web_browsers
Title: Re: Google Member Map
Post by: IamTheBoy on August 11, 2012, 04:25:53 PM
Quote from: luuuciano on August 11, 2012, 04:20:28 PM
Quote from: IamTheBoy on August 11, 2012, 02:05:31 PM
Happy to test that, but it has to work in IE8 and IE9, as these are still the world's most popular browsers.

In what year?? are you a time traveller?

http://www.w3schools.com/browsers/browsers_stats.asp
http://www.theverge.com/2012/5/21/3033566/chrome-most-popular-browser-weekly-may-2012
http://en.wikipedia.org/wiki/Usage_share_of_web_browsers
Thats unrealistic. Its a developer site, devs frequently use FF.

Stats across my sites put IE at around 70%, FF at around 15%

In a professional capacity, I also look after some very large sites, and they match my sites that IE is far above everything else put together.
Title: Re: Google Member Map
Post by: luuuciano on August 11, 2012, 10:04:15 PM
Well, that was the first one... but the other have regular statistics
With this statcounter projection (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcdn0.sbnation.com%2Fentry_photo_images%2F4099015%2FStatCounter-browser-ww-weekly-201121-201220_large_verge_medium_landscape.jpg&hash=6644252acc5be5c33cd9136c7601e82440ef8f7a)
IE will be really down on 2013
Lucky us!
Title: Re: Google Member Map
Post by: IamTheBoy on August 12, 2012, 05:03:21 AM
Still, even thats wildly different to the W3Schools one.  And I think this one is skewed by Android devices, artificially increasing Chrome's share. Nobody in their right mind would use Chrome as their day to day browser on a desktop.

FF has stayed fairly steady at around 15% (on the sites I have access to) for around 2 years, dropping from a high of around 20% around 3-4 years ago when it was on a roll, losing out to IE8 that came bundled on Win7 machines.

Chrome has failed to get a foothold in the desktop market. And rightly so, buggy, insecure piece of junk.


Where IE has lost a lot of ground, for sites that are more easily accessible by mobile devices, is in the ever increasing mobile browser arena.  MS have nothing useful when it comes to mobile OS, crApple are pricing themselves at the very top end, leaving cheap Android devices to rule.  As the desktop market shrinks and smartphone/tablet market grows, you can see IE lose out to Chrome. What is surprising is Safari isn't gaining much - is this a sign that loyal crApple fans are they majority buyers of their tablets?

Windows 8 will, no doubt, bring a temporary boost to IE, although I'm sure Win 8 will alienate at lot of people, and the <whatever the replacement name for Metro will be> version of IE will alienate even more by not having plugins. I personally think that Win8 will be an expensive flop for MS, who are clearly aiming it at the tablet market. As HP found out last year, the tablet market is only big enough for 2, and currently iOS and Android are those 2.


But, for Joe Blogs on the street, with a desktop/laptop, Windows is what they will run. And IE8/9 is what comes with it, is 'good enough' and integrated into the security patching/update of the OS. In the corporate workplace, IE rules, as it's supported, making it unique amongst Windows' browsers.



But we digress, this is a member map thread, and my map problem is now fixed :)
Title: Re: Google Member Map
Post by: MiY4Gi on August 14, 2012, 05:29:11 PM
Quote from: IamTheBoy on August 12, 2012, 05:03:21 AM
Nobody in their right mind would use Chrome as their day to day browser on a desktop.

So you're calling me a crazy person? :) I prefer chrome over FF and IE any day. It's just so much more user friendly, and it's got a neat layout as well. Not to mention all of the addons available. Only FF has more addons currently, but Chrome still has a better layout. I hate the location of the reload button in FF, and the tabs look more clunky than in Chrome.

Quote from: IamTheBoy on August 12, 2012, 05:03:21 AM
FF has stayed fairly steady at around 15% (on the sites I have access to) for around 2 years, dropping from a high of around 20% around 3-4 years ago when it was on a roll, losing out to IE8 that came bundled on Win7 machines.

Chrome has failed to get a foothold in the desktop market. And rightly so, buggy, insecure piece of junk.


Where IE has lost a lot of ground, for sites that are more easily accessible by mobile devices, is in the ever increasing mobile browser arena.  MS have nothing useful when it comes to mobile OS, crApple are pricing themselves at the very top end, leaving cheap Android devices to rule.  As the desktop market shrinks and smartphone/tablet market grows, you can see IE lose out to Chrome. What is surprising is Safari isn't gaining much - is this a sign that loyal crApple fans are they majority buyers of their tablets?

Windows 8 will, no doubt, bring a temporary boost to IE, although I'm sure Win 8 will alienate at lot of people, and the <whatever the replacement name for Metro will be> version of IE will alienate even more by not having plugins. I personally think that Win8 will be an expensive flop for MS, who are clearly aiming it at the tablet market. As HP found out last year, the tablet market is only big enough for 2, and currently iOS and Android are those 2.


But, for Joe Blogs on the street, with a desktop/laptop, Windows is what they will run. And IE8/9 is what comes with it, is 'good enough' and integrated into the security patching/update of the OS. In the corporate workplace, IE rules, as it's supported, making it unique amongst Windows' browsers.


Not entirely true. Many users change over to FF or Chrome when their IE browser encounters an error, and it usually does. The problem is that IE is not open source, so the browser just doesn't improve fast enough. If there's a problem, you need to wait weeks to months for a fix, if you ever get one, while with an open source browser you can receive an update within 7 days. Anyone who's familiar with the browser market would choose an open source browser over IE, and thankfully people are slowly but surely learning about the pitfalls of IE and changing over.

For a site to support IE, additional coding needs to be done, so from a developers point of view, IE is an annoyance. So some of them actually go so far as to force people to change browsers, by preventing them from using the website until they change browsers. IE is an antique that no longer has a place in today's internet. Unfortunately, it's still highly popular due to its inclusion in Windows, so we'll have to cater for it for many years yet to come.
Title: Re: Google Member Map
Post by: IamTheBoy on August 24, 2012, 05:39:23 AM
MiY4Gi - I can only go on the stats from some of the very large, well known (certainly in the UK) sites I look after in a professional capacity.  Smaller, and certainly niche, sites will have a different, possibly distorted, view of browser popularity - W3Schools will clearly have a high FF userbase.

I'm a fan of open source. But I also see the merits in proprietry code. Both have a place.

As for Chrome, its inherently insecure, all its security was long broken. Its sandboxing doesn't work. Google relied on sandboxing for its entire security, thinking that would protect it from sloppy coding.  Now we are starting to see their realisation that this was bad - look at all the CERT announcements coming out about Chrome.

All browsers taking plugins are at the mercy of that plugin. As you rightly point out, this is IE's weakness (since around IE6), rather than the actual browser itself (engine or surrounding application). MS's answer to this, like crApple, is to not allow plugins (with the Modern UI version of IE in Windows 8). Personally, I think thats a bit draconian, but then MS have to cater for idiot users. Like Apple do. UAC with Vista was a relatively successful way of dealing with users who insisted in running as an administrative user, except the really stupid users, who's abilities did not match their egos, kept turning it off. So, I think with Modern UI IE, MS have learnt, and enforce the ability for users not to override the security model presented.
Title: Re: Google Member Map
Post by: MauriceM. on October 13, 2012, 09:13:04 PM
Hej,

I hope I'm right here: I installed version 2.0.2 of SMF. Everything went fine, also some Add-ons but when I tried to install the Google Member Map I became this error:
Unknown column 'false' in 'where clause'
Datei: /homepages/7/d242867666/htdocs/forum/Sources/GoogleMap.php
Zeile: 55


I already opened GoogleMap.php but didn't know what I have to change.
Title: Re: Google Member Map
Post by: phone68 on November 12, 2012, 10:33:05 AM
I really like this mod, I installed it and would love to use it "twice". Actually the same membermap but two times on two pages with a different zoomlevel. I tried to install the whole thing twice, but smf is to clever to install the identical mod a second time. And I'm too dump to find a workaround. Any ideas how to output the same membermap with different zoomlevels?

thanks for any idea!
Title: Re: Google Member Map
Post by: 2strokecentral on December 04, 2012, 06:40:14 PM
I was wondering if there is any way to add some features and update this mod. I really like the vbgooglemap style. Where you can add different icons for different member levels. mods, admin, etc...

I apologize if this has already been answered.
Title: Re: Google Member Map
Post by: clothahump on December 15, 2012, 03:57:42 AM
Installed OK but on opening no map appears until I click on members name, the zoom level is also incorrect, help please Spuds.
Title: Re: Google Member Map
Post by: Storman™ on December 15, 2012, 05:09:42 AM
You can change the zoom level in the mods options:

Administration Center => Modification Settings => Member Map
Title: Re: Google Member Map
Post by: clothahump on December 15, 2012, 06:58:31 AM
Thanks, found that but it was extremely slow to respond to new settings for some reason, only problem now is the markers are miles out until you get right in close.
Title: Re: Google Member Map
Post by: GAguns on January 11, 2013, 07:12:42 PM
I installed this , what next?  Do i need to create anything with google, i used 2 accounts and i see a pin for the account but not the other one. If it's installed will the map be anywhere other than the profile?
Title: Re: Google Member Map
Post by: jacker567 on January 13, 2013, 01:36:10 PM
Hey,

I was wondering is there any way to remove the the link to this from the top nav bar? I don't need it there since I already added in the member section.

Thanks
Title: Re: Google Member Map
Post by: toma on January 22, 2013, 04:19:27 PM
Quote from: clothahump on December 15, 2012, 06:58:31 AM
Thanks, found that but it was extremely slow to respond to new settings for some reason, only problem now is the markers are miles out until you get right in close.

I've noticed the same behavior, it looks a bit funny when many of my users state that they live out on the sea...
it seems to want to go northwest by a few miles every time you zoom out one level.
Anyone got an idea how to counteract this migration tendency ;-)
Title: Re: Google Member Map
Post by: chadon on February 18, 2013, 05:06:31 PM
Did anyone try Google map with SMF 2.0.4?

I installed the mod without any message during the installation process and it got the forum down with this error displayed on the pages:

QuoteFatal error: Cannot redeclare imb_googlemap() (previously declared in /home/account/public_html/Sources/GoogleMap20Integration.php:4) in /home/account/public_html/Sources/GoogleMapIntegration.php on line 52
Title: Re: Google Member Map
Post by: Kindred on February 18, 2013, 05:21:01 PM
you have installed the mod twice.
You will have to MANUALLY remove the duplicated code from the affected files (and I guarantee you there are more duplications than just the one showing the error)
Title: Re: Google Member Map
Post by: chadon on February 18, 2013, 05:30:29 PM
I had to remove the GoogleMap.php and GoogleMapintegration.php files from the server to fix the error message, the uninstall the mod.

I tried a help friends with their forum so I don't really know what happened but from what I understand, an admin upgraded the forum from 2.0.3 to 2.0.4 and the forum went down.
They fixed it by uploading new SMF files to their server and everything went fine, then I installed the Google Map mod and the issue happened again. I doubt it was a duplicate code that did it.
Title: Re: Google Member Map
Post by: Kindred on February 18, 2013, 06:44:12 PM
The only thing that causes that redeclare Error message is a double install" whether you think you did or not...  You did.
Title: Re: Google Member Map
Post by: TLMB on March 07, 2013, 12:55:16 PM
Thanks for this mod!
Quote from: MiY4Gi on July 18, 2012, 09:21:47 PM
Is it possible to add this map to the registration page, so that members can choose their location during registration?
Yeah, that would be great.
Title: Re: Google Member Map
Post by: johnpaul2k2 on March 07, 2013, 03:42:10 PM
what if i want this may to appear on member's profile

that is, if i check anybody's profile. it will appear there
Title: Re: Google Member Map
Post by: toma on April 12, 2013, 06:27:47 PM
Does anyone know where in the code you could tweak the accuracy within different zoom levels. Not a major issue but it just so disturbing having people living in a wrong country when the zoom level is low.
For every zoom level in it gets more accurate. but when you show a whole (small) country it is hundreds of miles off to the northwest.
Title: Re: Google Member Map
Post by: TechJeeper on April 13, 2013, 09:24:58 AM
I started having issues with my member map and was hoping I could get some help...

A user reported to me a couple weeks back that all the members are "stacked" on one pin now, in the middle of the map.  Has anyone seen this? (screenshot attached)

I have also attached a copy of my Settings page for reference. 

I checked the database, users log and lat are still there. 

Any ideas/suggestions would be greatly appreciated!

Thanks!

Google Member Map Mod version 2.6
SMF 2.0.4
Tried in IE, Chrome and Firefox
Title: Re: Google Member Map
Post by: luuuciano on April 19, 2013, 08:06:58 PM
They were taken!
Title: Re: Google Member Map
Post by: TechJeeper on April 20, 2013, 10:13:25 AM
Quote from: luuuciano on April 19, 2013, 08:06:58 PM
They were taken!

huh?
Title: Re: Google Member Map
Post by: MiY4Gi on April 20, 2013, 11:54:00 AM
I think he's saying they were abducted and shipped to Africa.
Title: Re: Google Member Map
Post by: none_free on May 07, 2013, 12:04:28 PM
Hi!

I want to use the Google Member Map mod with the Menu Icons (http://www.simplemachines.org/community/index.php?topic=413131.0) mod.
This mod installs a set of icons on your SMF menu.

To use it with the Google Member Map I've to find the location (file) where it puts the information to the menu.
A question in the Menu Mod board returned the following answer:

Quote from: none_free on May 06, 2013, 03:13:19 PM
Quote from: Mick. on December 13, 2010, 05:21:32 PM
For those using mods like: gallery, arcade, etc..


Open:
/Sources/Subs.php

For SMF Gallery mod:

Find:
'title' => $txt['smfgallery_menu'],

Replace with:
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/yourimage.png" alt="'.$txt['smfgallery_menu']. '"/>&nbsp; ' . $txt['smfgallery_menu'],



[...]

Hi,

I'm using the Gallery mod and the changes I made doing very well.

I'm using the Google Member Map (http://custom.simplemachines.org/mods/index.php?mod=1010) mod too.

I'm not really familar with the internal structure of the SMF.
Could someone tell where to find the place to make this mod with the Menu Icons mod working?
I searched in the Subs.php but there is nothing.

Any help?

Jens
Quote from: Kindred on May 06, 2013, 03:20:56 PM

the main menu array is present in Subs.php, as indicated.
Adding additional images for mod-specific menu items would be done the same way that you quoted.... for each and every mod that adds itself to the main menu array.

The exception to that would be mods which use the menu hook to add themselves into the main menu rather than the direct code edits...  in which case, you would need to ask in the support thread for that specific mod, to find out which file contains the insert menu item hook code.
Quote from: Mick. on May 06, 2013, 03:25:27 PM
Correct. The Google Member Map uses 'hooks' in which i dont know which file the button was added.

What's to do?

Jens
Title: Re: Google Member Map
Post by: none_free on May 07, 2013, 01:17:08 PM
I found it!

It's the GoogleMapIntegration.php file.
There I've to change following line:
Quote'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/icon.png" alt="'.$txt['googleMap']. '"/>&nbsp; ' . $txt['googleMap'],
and add the global line the Settings variable.
Quoteglobal $txt, $scripturl, $modSettings, $settings;

Even it works now, I dont know if it's maybe a security risk to add the $Settings string to the line beginning with global. I've absolutely no knowledge about php...

Does anybody knows if it's dangerous?

Jens
Title: Re: Google Member Map
Post by: Kindred on May 07, 2013, 01:29:07 PM
no, it should be fine. The only reason it was not called originally wasd because it was not needed for the code that was there
Title: Re: Google Member Map
Post by: none_free on May 07, 2013, 02:33:00 PM
Quote from: Kindred on May 07, 2013, 01:29:07 PM
no, it should be fine. The only reason it was not called originally wasd because it was not needed for the code that was there

Thank you very much!

Jens
Title: Re: Google Member Map doesn't work
Post by: none_free on May 08, 2013, 06:05:13 PM
Hello,

I tested the mod on my test- and integration environment with success.
But on my identical live Systems it wont.
I can see the menu and I see also the map. But I can't place a pin.
I my Profile, the map isn't visible (click picture).

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs1.directupload.net%2Fimages%2F130509%2Fq3izh75k.png&hash=d922c420ee10208247fa6015f8bc855972212d2f)

In the Apache log is nothing to see.
Is there another log file available?

What's to do?
Any help is appreciated!

Jens
Title: Re: Google Member Map
Post by: Kindred on May 08, 2013, 08:31:57 PM
I suspect a missing or conflicting javascript
Title: Re: Google Member Map
Post by: none_free on May 09, 2013, 03:20:43 AM
The JavaScript package is on the server installed.
How to check it works or version number?

Jens

Edit:
QuoteJavaScript is also the client side - isn't it?
The member map on the test- and integration system runs fine. The mod on the live system will not. Even if I use the same browser instance for test....
Title: Re: Google Member Map
Post by: Kindred on May 09, 2013, 07:36:43 AM
when I said conflicting javascript I meant that there is some other script which is conflicting with the googlemap script.

Title: Re: Google Member Map
Post by: none_free on May 09, 2013, 08:16:47 AM
Hmmm - how to determine which other one is it?
The test- and integrationsystem is installed with exact the same modifications and Settings.

Jens
Title: Re: Google Member Map
Post by: Kindred on May 09, 2013, 09:59:53 AM
use firefox + firebug and use the script debugger...
Title: Re: Google Member Map
Post by: none_free on May 10, 2013, 02:30:48 PM
Looks like a kinda magic...
I downloaded Firefox and checked the site and everything was fine.
I checked it again with Internet Explorer and everything is fine to...!!!

Maybe there was a cache thing or similar?

I don't know but I'm happy it works now  :)

Jens
Title: Re: Google Member Map
Post by: MiY4Gi on May 11, 2013, 04:31:34 PM
I've managed to get the Google Map on the Registration page of my forum . To implement it I made a large amount of edits (1-2 lines of code in about 8 files), some of which were probably not necesssary, so I'm planning on reversing the edits to see which of them are needed, after which I'll post the necessary code here.

Once I'm done with that I'm planning to mod the map so that SMF pulls the location (i.e. country, city, suburb, etc) from the map and assigns it to a specified profile field (probably not the location field since I'd rather leave that as is).  From there on, you can serve content to users based on their Location. I also plan to enable members to join membergroups (or "mini-clubs") by clicking on "Membergroup pins" on the map.

I intend to implement quite a few features in the Member Map, so check back here often if you would like the code changes needed for those features.
Title: Re: Google Member Map
Post by: Kindred on May 11, 2013, 05:32:06 PM
Hi MiY4Gi,

Sinec this mod is released under the BSD license, then there is no problem at all with modding and releasing updates.

If you are making major updates and creating your own "package" for it, I would ask that you please submit it for review as a mod of your own rather than using this thread to make releases and support. :) (Just make sure that the BSD license requirements are met)
Title: Re: Google Member Map
Post by: MiY4Gi on May 12, 2013, 09:17:45 AM
They won't really be major updates, just additional features. I'm not really familiar with the different licenses, but are you saying that there are some free mods at SimpleMachines.org that disallow you from editing the code of the mod, or sharing it? Mm, I guess next time I should scrutinize the license before sharing the code. Well, there are some programs that disallow you from making any changes to it, but I generally only use open source software. Oh, and I don't really know how to package mods (I don't even know how to make database calls) so for now I'll just stick to posting code changes. Once someone decides to update the mod, he can implement the code and he doesn't even need to notify me, or mention me in the mod. I'm not particularly fussy about receiving credit for it - I just thought someone else might find it useful, although it is nice when people thank you.
Title: Re: Google Member Map
Post by: Arantor on May 12, 2013, 09:29:29 AM
Quotebut are you saying that there are some free mods at SimpleMachines.org that disallow you from editing the code of the mod, or sharing it?

Yes. Unless the mod's page or author has explicitly said so by stating a suitable licence, you don't have the rights to redistribute a modified version.

If a mod does state a licence, the licence will dictate what the terms are in terms of modification. Like my last mod had a licence that didn't permit derivative versions being produced without my specific permission.
Title: Re: Google Member Map
Post by: Kindred on May 12, 2013, 09:34:23 AM
MiY4Gi,

Quote
that disallow you from editing the code of the mod, or sharing it?
no and yes...
Once you download the mod for your own use (from SMF's customization size) you can  edit it to your heart's content for your own use.
Unless the mod is Creative Commons, BSD, MIT, or one of the other (fully open) license's you are not allowed to redistribute the mod or any variations of it.
(and basically, anything without a specified license must be assumed to be a fully restrictive license)
(something can still be open source without being distributable (like SMF 1.1.x))


And we all do appreciate folks who make mods and those who make (and share) tweaks to mods. :)
If you are interested, there are instructions making mods floating around here somewhere. :)
(and for database calls look at the smcFunc calls in an existing mod)
(actually, that's the way I learned to write mods entirely - look at a few existing mods and figure out the instruction set for the installation files (usually install.xml for code instructions, usually install.php for the create database stuff and the other xml for telling the package manager what to run during the install)
Title: Re: Google Member Map
Post by: MiY4Gi on May 16, 2013, 01:21:33 PM
I see, thanks. Everything's clearer now. How does one go about licensing code? Is just stating the license sufficient for it to be under that license, or must you fill out forms and submit an application to a certain company or website?

Cool, I should'a thought of looking inside a packaged mod for hints. I'll probably check out the install.xml and install.php files of a few of the mods I got, over the weekend or next weekend, just to give me an idea about how all the code fits together. I'll also check out that smcFunc function you mentioned. Probably won't do it tomorrow though. Far too busy. 
Title: Re: Google Member Map
Post by: Arantor on May 16, 2013, 01:26:17 PM
QuoteIs just stating the license sufficient for it to be under that license

Yes.