Google Member Map

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

Previous topic - Next topic

landyvlad

sweet!

It took me a little while to get this working, but my members love it ! It's a really good mod.
"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.

vbgamer45

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

naitram

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

landyvlad

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.
"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.

naitram

still takes about 90 seconds to populate

landyvlad

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 !
"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.

vbgamer45

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

Nory

hello,

is it possible to put this mod responsive?

Thank

vbgamer45

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

naitram

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

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

naitram

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

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

naitram

i also made 2 changes to the "js" code 1 based on errors observed in the browser

changed
html = markers[i].childNodes[0].nodeValue;

to
html = markers[i].getAttribute("html");

and as a personal preference set
scrollwheel: true,

vbgamer45

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

naitram

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.

Nory

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?

vbgamer45

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

Nory

Sorry vbgamer45, I didn't see your post earlier.

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


Dan_

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.

vbgamer45

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

Dan_

You guys are awesome...  Thank you sir!

Advertisement: