Advertisement:

Author Topic: Google Member Map  (Read 15129 times)

Offline Alain Rheault

  • Semi-Newbie
  • *
  • Posts: 15
Re: Google Member Map
« Reply #20 on: March 08, 2017, 08:58:46 AM »
So removing it doesn't help?

If i only remove the end part of the line 

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

to keep it like that

Code: [Select]
<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)
« Last Edit: March 08, 2017, 09:17:54 AM by Alain Rheault »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,491
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Google Member Map
« Reply #21 on: March 08, 2017, 09:22:55 AM »
change to
Code: [Select]
<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

Offline Alain Rheault

  • Semi-Newbie
  • *
  • Posts: 15
Re: Google Member Map
« Reply #22 on: March 08, 2017, 11:31:37 AM »
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 ####

Code: [Select]
</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 !   :)
« Last Edit: March 08, 2017, 12:18:50 PM by Alain Rheault »

Online GL700Wing

  • Jr. Member
  • **
  • Posts: 277
  • Gender: Female
Re: Google Member Map
« Reply #23 on: March 08, 2017, 05:49:07 PM »
Quote
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 !
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!

Offline Alain Rheault

  • Semi-Newbie
  • *
  • Posts: 15
Re: Google Member Map
« Reply #24 on: March 09, 2017, 08:58:10 AM »
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)

Offline stog

  • Semi-Newbie
  • *
  • Posts: 84
Re: Google Member Map
« Reply #25 on: March 16, 2017, 09:44:44 AM »
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)
Code: [Select]
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

Code: [Select]
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
Code: [Select]
$txt['googleMap_DefaultZoom'] = 'The default Zoom Level';

any ideas
thx in advance


Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,491
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Google Member Map
« Reply #26 on: March 16, 2017, 09:47:11 AM »
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

Offline stog

  • Semi-Newbie
  • *
  • Posts: 84
Re: Google Member Map
« Reply #27 on: March 16, 2017, 09:50:51 AM »
thx i have TP code blocks on my front page

but
Quote
that 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
« Last Edit: March 16, 2017, 10:11:29 AM by stog »

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,576
  • Gender: Male
    • i30 Owners Club
Re: Google Member Map
« Reply #28 on: March 16, 2017, 10:17:31 AM »
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).

Offline stog

  • Semi-Newbie
  • *
  • Posts: 84
Re: Google Member Map
« Reply #29 on: March 16, 2017, 11:28:08 AM »
cheers Shambles -- and that is why when the template errors are removed, it pointed to membermap perhaps

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #30 on: March 28, 2017, 04:25:35 PM »
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.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,491
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Google Member Map
« Reply #31 on: March 28, 2017, 04:28:21 PM »
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

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #32 on: March 28, 2017, 04:33:30 PM »
Thank you sir,  going in... O:)

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #33 on: March 28, 2017, 04:55:32 PM »
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.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,491
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Google Member Map
« Reply #34 on: March 28, 2017, 07:53:41 PM »
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

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 337
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Google Member Map
« Reply #35 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.
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.

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #36 on: March 28, 2017, 08:23:14 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

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #37 on: March 28, 2017, 08:25:27 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

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,491
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Google Member Map
« Reply #38 on: March 28, 2017, 08:49:34 PM »
Open templates\GoogleMap.template.php

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

Change

Code: [Select]
<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

Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #39 on: March 28, 2017, 09:25:31 PM »
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..!