News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Google Member Map

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

Previous topic - Next topic

pjbauer

I think I may have found a fix for users with problems getting the pins to show on the map.

I happened upon this thread this afternoon and have spent most of the evening getting the module working. I am using Joomla 1.09, SMF 1.1 RC2 embedded via the 1.1.4 bridge (and the Google Member Map 0.55). Yeah,  I like the bleeding edge.:)

Anyhow, I had no problems with the install or setup or adding a pin - but the pins did not show on the map (just in the user profile). I looked at the Javaconsole and there was a bunch of errors. All were the typical css errors that Javaconsole usually reports - so I cleared the console and clicked the Map link again.

This link shown in the Javaconsole errors caught my eye...
hxxp:www.mysite.com/index.php?option=com_smf&Itemid=31/index.php?action=googlemap;sa=.xml [nonactive]

(because of the 2nd /index.php AFTER the &Itemid=31 - my SMF Forum identifier for Joomla)

I did a text search for "sa=.xml" and found it in GoogleMap.php -function ShowKML ()

I changed the var $scripturl to $boardurl in the global declaration line...

global $db_prefix, $context,$scripturl,$txt, $modSettings, $user_info, $mbname, $themeUser, $memberContext;

and the line in the javascript that opens the window

request.open("GET", "'. $scripturl . '?action=googlemap;sa=.xml", true);

and everything is working great!!!

Nice Job on this mod - I love it!


TLM

#461
Quote from: vasco on June 04, 2006, 03:00:05 PM
when will be available the new version?

the pins already posted, will be there with the V2?
To answer this, I use SMF statment,
When its ready.  Yes the next version with be API v2.  Again when its ready.

Quote from: chig on June 08, 2006, 06:12:10 PM
yes you can set the coordinates and the zoom level, we are just waiting for the release for version 2...  ;D
Good answer! :)

Quote from: HighlanderICT on June 14, 2006, 10:54:58 PM
OK - I have a weird problem .... the IE problem .. but with a 'twist'

We recently moved over from PHPBB to SMF within our joomla based site and are using the JoomlaHacks SMF bridge to integrate SMF and Joomla. We have installed it on both a test site and our live site and all works really well. We are slowly loading any mods we want to use onto our test site and if it works we decide whether to put it onto our live site.
Sorry but I stopped reading there, I really dont like portals.

Quote from: StarBuG on June 16, 2006, 08:41:51 AM
Hi
My map does not show gender specific pins just the no gender one.
I have set my gender in my profile but it is shown as green = no gender in the map
StarBuG and cotdagoo,
Are you guys using a diffrent language than english?  Thats a bug I do know about, I set it up to use english only by shear stuipidity.  I forget the where, but someone sent me the fix, it might be posted back a few dozen pages, I could be wrong.

Quote from: pjbauer on June 17, 2006, 09:37:08 PM
I think I may have found a fix for users with problems getting the pins to show on the map.

I happened upon this thread this afternoon and have spent most of the evening getting the module working. I am using Joomla 1.09, SMF 1.1 RC2 embedded via the 1.1.4 bridge (and the Google Member Map 0.55). Yeah,  I like the bleeding edge.:)
*snip*Noted fix for people with portals*/snip*
Care to be the the portal support for the mod seeing how I have no interest in doing that myself.



With that out of the way now, its back to collage apps and papers.  Just in case you guys have been wondering where I have been.

Bigguy

Where do those edits for Joomla go ??? I had to uninstall this mod because I installed Joomla and would very much like to have it running again.

Niteblade

affiliate blog

HighlanderICT

Quote from: Bigguy on June 19, 2006, 11:58:42 AM
Where do those edits for Joomla go ??? I had to uninstall this mod because I installed Joomla and would very much like to have it running again.

Bigguy - I installed it on one Joomla system (our test system) and it worked perfectly after changing the GoogleMap.php file (in the sources directory) to the one attached a few pages back within this thread .... however, when adding it to our live site, we got the IE error even after changing that file

Eventually, I found that all I had to do was edit the GoogleMap.template.php from the default themes directory and add the defer statement in 2 of the 3 lines. it worked for me. [I should add we are using Joomla 1.0.8, SMF 1.1RC2, and SMF Bridge 1.1.02 on our site].


                        <script src="http://maps.google.com/maps?file=api&v=1&key=', $modSettings['googleMapsKey'], '" type="text/javascript"></script>
                        <script defer="defer" type="text/javascript" language="JavaScript" src="', $settings['default_theme_url'], '/Clusterer.js"></script>
                        <script defer="defer" type="text/javascript" language="JavaScript" src="', $scripturl, '?action=googlemap;sa=.js"></script>



Quote from: TLMSorry but I stopped reading there, I really dont like portals.
Dont you find that when you have nothing helpful to say, it is better to say nothing ? This is a great mod, very user friendly, and I applaud you and anyone else who put time and effort into creating it. However, although there might be the odd issue here and there because people are using it or integrating it into their websites in different ways that kind of response devalues both the mod and yourself !!

www.CaleyThistleOnline.com [nofollow]
The Red and Blue are coming for You

Bigguy

OK, I found the GoogleMap.php file. I will try this in a bit and see how it turns out. I`m using Joomla 1.0.9 so I`ll see how it goes.

TLM

Quote from: HighlanderICT on June 19, 2006, 01:04:01 PM
Quote from: TLMSorry but I stopped reading there, I really dont like portals.
Dont you find that when you have nothing helpful to say, it is better to say nothing ? This is a great mod, very user friendly, and I applaud you and anyone else who put time and effort into creating it. However, although there might be the odd issue here and there because people are using it or integrating it into their websites in different ways that kind of response devalues both the mod and yourself !!
This may be true, but I am rather just stating a fact.  I dont mind helping add features to the mod, I just dont like portals.  For the past month or so off and on I was looking for a way to import a .kml to a db structure and I have figured most of that out.  This is for several people that want to include more data, other than just the pins for members.  You may ask now, why do I hate portals?  I have seen to many hacked, and "cloned" that I just dont see the point in them any more.  Forums now, SMF is unlike any other, portals, they all seem cloned to me.

I dont wanna start this into a flame now, so anything else, to a PM on this side topic.

HighlanderICT

TLM - no flame war - I appreciate the mod, its ease of installation, the work that has gone into it and how easy it is for users to add their info via their profile. All of this is in sharp contrast to some 'google map' mods I have tried directly within Joomla. Other than the TINY issue I had getting it to work with IE - which is an IE issue not a mod issue - it has worked seamlessly.

We have no choice but to use a portal of some sort as we have two distinct parts to our site - a large news and content section that needs something robust like Joomla, and our "community" which is based around the SMF board. After dabbling with joomla-integrated 'simpleboard', Community Builder, and then PHPBB we came across SMF and the integration mod - everything has worked really well and we are delighted that we have been able to integrate the system, the login, and a GREAT forum all into one. It may not work for everyone, and not everyone may like the idea of a portal around it, but it fits our needs and works how we want it to (so far).

Keep up the good work


www.CaleyThistleOnline.com [nofollow]
The Red and Blue are coming for You

grater

Im sorry for stupid question,
I installed this mod, but nothing happened. I don't see any changes or additional options. What do i do to make this thing work properly?

chig

when your board is in another language, switch to english and everything should be fine...

TLM


Lalato

IE Error Fix...
Just in case anyone else is looking for the IE Error fix...

http://www.simplemachines.org/community/index.php?topic=61213.msg470855#msg470855

That will take directly to the post with the file you need to replace.  TLM, life would be much easier if you could edit the first post of this thread with either this link... or that attachment.  Alternately, posting a package with the updated file would work too.  ;)

Thanks a million for this great mod!  :)
--sam

Bigguy

Ok, I installed this with no problems but I still get an erro in my logs about the sidebar. It sort of works though if that makes sense. Any suggestions ???

TechnoDragon

turn the sidebar on...that should get rid of the error.
Don't tell me to get into shape...I have a shape...It is round!


Bigguy

That is when I turn it on.

iBrood

I think this may have been addressed before but I'm not sure since I've read my problem being asked before. I have SMF 1.1RC2 installed with Bloc's TinyPortal. I modified the original package with my google api key and the ie fixed file, and uploaded and installed it.

index.php?action=googlemap shows a blank page with all the side block/themes.
www.thinknest.com/index.php?action=googlemap

index.php?action=membermap sends me to the forums.
www.thinknest.com/index.php?action=membermap

Also, there is no option for the map under my members' profiles. Please help.

Thanks,
Abhinav

SekondeR

could we specify another special map in this mod? (by loading an image? )
like a city or a country with related to the forum members. more specific..

bmhm

Did I already post the Button for geman translations?

I can do a german workaround if TLM wants me to do it, but I think, he's going to include this by hisself...

iBrood

It is very difficult to locate myself on that map, especially when the window is so small, and I cannot use any searches. My city is in mainland India, so is impossible to find using the map. Is there any way to import google earth data/pins?

slaytcafe.com

#479
I try mod but there isn't change, and not save in admin panel..

Please help  :(

Advertisement: