Map of Congregation

About Support What do you want added? Map of Congregation

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #2781
    Avatar for rrfranksrrfranks
    Participant

    Hi! It would be great to have a map showing where everyone in the congregation lives. This would allow church officers to see where everyone in the church lives in relationship to the church building and to each other. It would be very helpful if a church formed their small groups by geographical location. Thank you for considering this option.

    #3943
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Hi Rick,
    That’s been around for a long, long time!

    [church_admin_map member_type_id="#" zoom="13" small_group="1"]– zoom is Google map zoom level, small_group=1 for different colours for small groups, 0 for all in red

    #3945
    Avatar for rrfranksrrfranks
    Participant

    Andy,

    Thank you for the reply. Unfortunately, I am not sure I understand your answer; unless you are describing how to display a map with all the small groups in the church. If that is the case, what I am looking for something a little different.

    What I am looking for is a shortcode that I can put on a password protected web page that automatically displays a map with all the Members of our church on it ( or whatever Member Types selected in the shortcode).

    Thank you for your patience! Smile

    #3946
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Just realised the shortcode didn’t show on my last answer

    [church_admin_map member_type_id="#" zoom="13" small_group="1"]– zoom is Google map zoom level, small_group=1 for different colours for small groups, 0 for every’s pin to be in red

    #3948
    Avatar for rrfranksrrfranks
    Participant

    Thank you for the shortcode! I tried it (inserting the member id # I wanted) but all I got was a blank page. Is there something I am missing?

    #3949
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Strange it works for me!
    What’s the url of where you are trying it?

    #3950
    Avatar for rrfranksrrfranks
    Participant

    I have no doubt it is operator problems on my part. Embarassed . It is on our password protected page at: http://kotp.org/member-portal/ on the “Map of Congregation” tab.

    #3951
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Thanks.
    I’ve taken a look.
    My plugin checks the page being called and looks for the shortcodes. If it finds it, then it queues up the scripts needed to generate the map.
    But your theme is a clever one and I suspect the “themify builder” (whatever that is!) places the actual content somewhere different to a regular wordpress install.
    So I need to work out how to get it working for sites like yours!

    #3952
    Avatar for rrfranksrrfranks
    Participant

    Thank you for taking a look, Andy! I do use Premium WordPress themes produced by Themify. I am uncertain as to what themify builder is; all I know is that I must have it installed to use their themes. Here is a link to themify builder: https://themify.me/builder .

    I am so sorry for causing you work. With all the different kinds of software out there I cannot imagine how challenging the life of a programmer must be. I am sure it requires the patience of Job. Wink

    #3954
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Should be good now? with version 1.1310

    #3957
    Avatar for rrfranksrrfranks
    Participant

    Thank you for the update. Unfortunately it still does not work. Frown

    #3958
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    So I’ve had a look at the offending page.
    There’s probably two things stopping it working.
    1) This javascript error – (index):7 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403
    No idea what that’s from but it’s not Church Admin. Other javascript errors tend to stop javascript working.
    2) Something else is calling Google Map api v3 from googlemapapi.com (but not using it) on top of my call to it from map.google.com. Suspect that’s your theme and they are interfering with each other.

    #3959
    Avatar for rrfranksrrfranks
    Participant

    That makes sense, Andy that the theme I am using is the problem. I am so sorry to cause you all this extra work, but I appreciate your diligence and willingness to to give such GREAT support! You are awesome!!!! Thank you so much!!!! Smile

    #3960
    Avatar for rrfranksrrfranks
    Participant

    Andy, based on your last answer I experimented with a few things on my site to see if I could find the culprit and I believe I found a way to work around the problem. One thing I cannot figure out though is how to include different member types on the same map. For example if I use the shortcode

    church_admin_map member_type_id=”1,2″ zoom=”9″ small_group=”0″ loggedin=TRUE (I had to remove the brackets to get the shortcode to show up in this post)

    only member types “1” will show up on the map. Is there a way to include more than one member type on a map?

    #3961
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Glad you got it showing.
    I’ve looked at my code – I always make sure any output is safe, in this case too safe. It was converting whatever you write for member_type_id to an integer which is 1 by default.
    Will be fixed for next update!

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.