News:

Wondering if this will always be free?  See why free is better.

Main Menu

Google Member Map

Started by Spuds, December 12, 2007, 01:49:12 PM

Previous topic - Next topic

Spuds

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

Eclipse16V

Thanks for update but dosent display a Pin Legend below the map.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Spuds

Guess you will have to live without that for a while then ......

Eclipse16V

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'].
I worked with:
SMF 2 in German

Shop:
SID Giessen

Chas Large

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.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Storman™

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 ?

Spuds

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 :)

Chas Large

All my pins are in the right place ta.

Happy New Year to all :)
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Storman™

Ooh, might leave till tomorrow and then try a re-install then.

Cheers  ;)

fals

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






500fan.dk - SMF 2.0 ~ custom theme
ls-forum.dk - SMF 2.0.2 ~ custom theme and custom iPhone theme

Storman™

QuoteI have issues, but apparently only in google chrome - pins are not loaded.

Your pins are showing fine for me when using Chrome  ;)

Chas Large

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?
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

GlitchPC

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.

Kindred

You can add it in the menu array in subs.php... Modify the sun actions section of the members part of he array
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

GlitchPC

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?

ThunderBucks

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

Storman™

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  ;)

Storman™

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 .

ThunderBucks

#1598
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???

GlitchPC

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)));
}

Advertisement: