Google Member Map

Started by vbgamer45, December 29, 2016, 12:59:42 PM

Previous topic - Next topic

Alain Rheault

#20
Quote from: vbgamer45 on March 07, 2017, 01:30:28 PM
So removing it doesn't help?

If i only remove the end part of the line 

<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>

to keep it like that

<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . ></script>

I get a white page and killing the forum ...

IF i remove the whole line .... i only loose the Map   ( because i guess i do not send the "google map key " )

I'm trying to do what  they wrote about this issue in the google map user helping site :
SensorNotRequired  Warning    

The sensor parameter is no longer required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element.


What should i REMOVE .. and how .. i'm lost a bit  with the coding ...  i see dashs  (.)  in the code ... i do not know how to propely close the script line ...   ( sory for my poor english do .. )

BTW ..  ... i did not have to touch the whole code in the in the Profil.template.php  as proposed by GL700Wing , it was already done with the last version on the board.  AND i  can't tell about the Note Pad MOD .. i do not use it in my forum !

Thank to being helping me ..   8)

vbgamer45

change to

<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '"></script>
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Alain Rheault

#22
BTW it is the last V3.0 ....

I changed it on my clone test forum,  and still see the orange warning from Googlemap in the console
( after i resetted my "cache" buffer and F5 a coupleof time  ) 
but with you coding  it now  bring the map in a perfect way even with le last argument removed ....
,  eccept for the Warning ...  :o  seem to came from Googlemap ...

I look at the Page source  in Mozila and i can still see some code for the Sensor = false ...    I replace for sécurity in the code below  the key with a string of ####

</div>
<span class="botslice"><span></span></span>
</div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=##################&sensor=false"></script>
<script type="text/javascript" src="http://jular.ca/simplementvr.com/Themes/default/scripts/markerclusterer_compiled.js"></script>
<script type="text/javascript" src="http://jular.ca/testforumclone/index.php?action=googlemap;sa=.js;count=19"></script><table cellpadding="7" cellspacing="0" id="footermenu">


Seem not to realy mess thing up ... exept for that  1 to 2 seconds of lag ...  waiting for google map to send the warning ...

BY THE WAY  that one off the most liked MOD in our new  forum   8) ... now we can follow members that travel in North America !  GREAT MOD !



You can use the picture  if you want !   :)

GL700Wing

QuoteBTW ..  ... i did not have to touch the whole code in the in the Profil.template.php  as proposed by GL700Wing , it was already done with the last version on the board.  AND i  can't tell about the Note Pad MOD .. i do not use it in my forum !
The problem I described *specifically* relates to the use of these two mods together - the bug exists in the version 3.0 of the Google Member Map mod but if you don't use Member Notepad you won't have the problem!
Life doesn't have to be perfect to be wonderful ...

Alain Rheault

Quote from: GL700Wing on March 08, 2017, 05:49:07 PM
The problem I described *specifically* relates to the use of these two mods together - the bug exists in the version 3.0 of the Google Member Map mod but if you don't use Member Notepad you won't have the problem!

Yes , it was wath i understood of your problem having those 2 mods to live together on your forum.   Good luck fo a solution ,  i will follow the tread ...  i might like to install the Member note pad  , could be a good way to members that leave there position on the map ... to give all some interesting point to know about that location ! 

Just tinging , or dreaming ...  ;D...  it could be a nice  upgrade for the Google Member map MOD ,  INCLUDE in the Map mod ... a way for the user to write some comments  within his   Member Map !!!  so other members looking at his map could also read or not those comment ! ( option for the member in his profile )    8)

stog

hi i have a smf  2.0.13 with tinyportal 1.2 and after disabling template eval.i am getting errors

originally before unchecking i got (and tried posting in tinyportal support)

http://www.---.com/index.php?
8: Undefined variable: modSettings
File: /home/--------/htdocs/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 42


then after unchecking i got

http://www.xxx.com/index.php?
8: Undefined variable: modSettings
File: /home/xxx/user/htdocs/Themes/default/languages/GoogleMap.english.php (tp_below sub template - eval?)
Line: 42


looking at member map -- it seems to be working fine (was 2.6 then manually edited for 3.0)

line 42 is

$txt['googleMap_DefaultZoom'] = 'The default Zoom Level';


any ideas
thx in advance


vbgamer45

Do you have a block code in tinyportal? TPsubs.template.php is from tiny portal. and if you disabled temp eval that would mean it is coming from a block.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

stog

#27
thx i have TP code blocks on my front page

but
Quotethat is from a different mod, you would need to post in that mods support topic.
was the response i got when posting in their mod support.http://www.simplemachines.org/community/index.php?topic=27642.msg3918596#msg3918596

i though suspect some flaky php code edits i may have introduced to a few blocks ;) (but none of the blocks reference the membermap as far as i know)

thx for your help

ps i have just turned off a few blocks that i had been playing with, and sure enough the error has gone so i'll get back to them and see if someone can spot what the problem is with the php code block. thx again

Shambles

Just having a swift ganders at the mod package, I noticed $modSettings isn't globalised in add_settings.php (not that it matters at runtime).

stog

cheers Shambles -- and that is why when the template errors are removed, it pointed to membermap perhaps

Dan_

Google member map 2.6 is not working at all.  It was just brought to my attention by a member of my forum.

I am trying to install 3.0 but have several errors as attached...

I made a backup.

Should I go ahead and hit install mod..?

Thanks in advance.

P.S.
The only recent changes have been changing the forum URLs to https and forcing them with .htaccess and adding the anti-adblock nag mod.

vbgamer45

I would uninstall the old version then install new.

If you still have errors process with install then make the changes to the failed files manually.

Upload the package to http://www.smfhacks.com/smf-package-parser.html and get the file edits.

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Dan_

Thank you sir,  going in... O:)

Dan_

2.6 uninstalled fine and 3.0 installed with no errors.  Got the api entered and changes saved, but the member map is still blank.

Attached.

Thanks for the help.

vbgamer45

Any errors in javascript error log
Are you on https?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

landyvlad

Dan if you have a look back at the previous page of this thread I had the same error and it came down to not having the correct URLs authorised.  I ended up doing all the variations on mine (i.e whole domain AND forum url) and it now works fine.

Anyway there is some more discussion on the matter there which will likely be of assistance.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Dan_

Quote from: landyvlad on March 28, 2017, 08:09:24 PM
Dan if you have a look back at the previous page of this thread I had the same error and it came down to not having the correct URLs authorised.  I ended up doing all the variations on mine (i.e whole domain AND forum url) and it now works fine.

Anyway there is some more discussion on the matter there which will likely be of assistance.
I read (skimmed) your posts and did not see where to authorize anything.   I now suppose it is somewhere in getting the api key.
I will redo the key and look harder for a place to authorize the whole domain and the forum url.

Thanks for your reply

Dan_

Quote from: vbgamer45 on March 28, 2017, 07:53:41 PM
Any errors in javascript error log
Are you on https?

Yes https...  Plenty of errors. Thanks


          Blocked loading mixed active content "http://maps.google.com/maps/api/js?key=xxx&sensor=false"[Learn More] index.php
Loading mixed (insecure) display content "http://www.eaglersnest.com/forum/Eaglogo.png" on a secure page[Learn More] index.php
Loading mixed (insecure) display content "https://www.eaglersnest.com/forum/Eaglogo.png" on a secure page[Learn More]  index.php
Loading mixed (insecure) display content "http://www.eaglersnest.com/forum/offsite_avatars/avatar_1_1388098606.gif" on a secure page[Learn More] index.php
Loading mixed (insecure) display content "https://www.eaglersnest.com/forum/offsite_avatars/avatar_1_1388098606.gif" on a secure page[Learn More]  index.php
code.createjs.com : server does not support RFC 5746, see CVE-2009-3555  (unknown)
banner started  YahooDynamic_728x90.html:272:6
total time - 14.748 seconds  YahooDynamic_728x90.html:331:7
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] index.php
jquery is already loaded with version: 1.10.1  index.php:372:5
result of version check: 2  index.php:374:6
after version check loaded with version: 2.0.3  index.php:385:10

vbgamer45

Open templates\GoogleMap.template.php


<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>


Change


<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Dan_

I got a new key and restricted it and put in the forum url and the google map page url...  I'm still jacked-up.

Opened themes\default\GoogleMap.template.php and changed the http to https... Bingo, bango bongo...  Works!

Thanks for everyone's help..!

Advertisement: