Advertisement:

Author Topic: Google Member Map  (Read 15128 times)

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 337
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Google Member Map
« Reply #40 on: March 28, 2017, 09:49:21 PM »
sweet!

It took me a little while to get this working, but my members love it ! It's a really good mod.
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 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 #41 on: March 28, 2017, 10:01:31 PM »
Update

3.0.1

!Fixed bug with https sites not showing the google map.
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 naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #42 on: April 04, 2017, 09:13:33 AM »
glad to see this mod has been brought back to life,

my members were dissapointed when we lost it.

the old pin locations were still in our DB and this version sees them but with over 2900 pins it takes over 90 seconds to populate.


if there is anything i can do to help optomize this lef me know

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 337
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Google Member Map
« Reply #43 on: April 04, 2017, 08:30:17 PM »
naitram - if you set it so it 'clusters'  (I forget the correct terminology, may be right) nearby pins, that MAY help the issue?  It will still show individual pins when zoomed in, but when zoomed out there will be fewer so may populate quicker?  Worth a try.
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 naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #44 on: April 05, 2017, 08:48:15 AM »
still takes about 90 seconds to populate

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 337
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Google Member Map
« Reply #45 on: April 08, 2017, 01:06:04 AM »
Hmm sorry can't help you then.


On another topic, are there plans to male this mod SMF 2.1 compatible?

Please please please please please !
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 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 #46 on: April 08, 2017, 01:06:32 AM »
When 2.1 is released.
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 Nory

  • Semi-Newbie
  • *
  • Posts: 45
Re: Google Member Map
« Reply #47 on: April 10, 2017, 03:50:11 AM »
hello,

is it possible to put this mod responsive?

Thank

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 #48 on: April 10, 2017, 08:35:17 AM »
no
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 naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #49 on: April 11, 2017, 09:36:23 AM »
i have been doing some testing with debug statements and what i found was the following function was taking 90 seconds to complete when there are over 2900 pins

Code: [Select]
        // Load all of the data for these 'pined' members
        loadMemberData($temp);
        foreach ($temp as $v)
                loadMemberContext($v);
        unset($temp);

Offline naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #50 on: April 11, 2017, 09:39:45 AM »
i went back to an old version of this mod and looked at how it loaded the data.

it just grabbed a few needed columns from the members table and did not rely on loadMemberContext for each.

i hacked the 2 versions together and now the page loads in 3-4 seconds

each pin loads only the following

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($request)){
            $ID = $row['id_member'];
            $realName = $row['real_name'];
            $longitude = $row['longitude'];
            $latitude = $row['latitude'];
            $gender = $row['gender'];

Offline naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #51 on: April 11, 2017, 09:58:05 AM »
i also made 2 changes to the "js" code 1 based on errors observed in the browser

changed
Code: [Select]
html = markers[i].childNodes[0].nodeValue;
to
Code: [Select]
html = markers[i].getAttribute("html");
and as a personal preference set
Code: [Select]
scrollwheel: true,

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 #52 on: April 11, 2017, 07:02:23 PM »
naitram will take a look do you have full edit for the query change just want to see it.
The loadMemberData makes sense since it does a query for each member listed if it wasn't cached before.
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 naitram

  • Jr. Member
  • **
  • Posts: 136
Re: Google Member Map
« Reply #53 on: April 12, 2017, 08:53:10 AM »
the issue for me with loadMemberData is just the amount of time it takes to loop through it 2900+ times

my current copy attached. far from polished code but its working for me.

Offline Nory

  • Semi-Newbie
  • *
  • Posts: 45
Re: Google Member Map
« Reply #54 on: May 04, 2017, 05:13:50 PM »
Hello,

I have problem when I activate this mod, the profile page of the member doesn't display... When I uninstal the mod, the page display properly.

Is this a known bug?

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 #55 on: May 04, 2017, 05:27:12 PM »
Non known. Do you have api key setup? Take a screenshot or provide link.
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 Nory

  • Semi-Newbie
  • *
  • Posts: 45
Re: Google Member Map
« Reply #56 on: May 20, 2017, 09:08:01 AM »
Sorry vbgamer45, I didn't see your post earlier.

Quote
Do you have api key setup? Take a screenshot or provide link.
What do you mean about this?


Offline Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #57 on: May 31, 2017, 06:44:11 PM »
Mixed content warning in Fire Fox.

I have been able to run down all src="http: references by using the show source code function in the browser.

The last page I still have the mixed content warning on is the Google member map page.  I don't find any http: references however while viewing the source.

There are links in the footer but they are also on the rest of the forum pages that have the green padlock now.

Could this mod need work?  Is it perhaps calling a script from an http source?

Package Manager reports V 3.01 for the mod and the forum is on the 2.0.14 patch

https://www.eaglersnest.com/forum/index.php?action=googlemap

Thanks VBG45.

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 #58 on: May 31, 2017, 08:05:26 PM »
Fixed Dan

Posted update
3.0.2
Fixed path for mark cluster images moved to 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 Dan_

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
    • Eagler's Nest
Re: Google Member Map
« Reply #59 on: May 31, 2017, 08:08:25 PM »
You guys are awesome...  Thank you sir!