CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Hiding addresses in membership directory google maps
Pages: [1]

Author Topic: Hiding addresses in membership directory google maps  (Read 915 times)

bakpa79

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
Hiding addresses in membership directory google maps
April 02, 2010, 07:34:06 am
I have a membership directory setup on a site, and I setup the google mapping feature. I'd like like to hide the full address listing that comes up when you click on a member's location on the map; I'd only like their name and other select information to show up.

Thanks in advance!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Hiding addresses in membership directory google maps
April 02, 2010, 09:51:57 am

you can modify the information that is sent to the mapping provider tpl via the postProcess hook. You'll need to overwrite the information we send to smarty

check:

http://svn.civicrm.org/sfschool/trunk/drupal/sfschool/sfschool.module

search for get_template_vars

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bakpa79

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
Re: Hiding addresses in membership directory google maps
April 19, 2010, 11:50:35 am
I got a little ways to go to wrap my heasd around this but I'll make it there!
Thanks for the help.

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Hiding addresses in membership directory google maps
November 01, 2010, 01:20:46 pm
I have a very similar problem -- we want to obscure the mapping location.  I would really like to be able to show a representation of how many members we have in an area, but not exactly where their houses are (we have had a couple of complaints about this).

Would my best bet be to use the same hook or is there a way to convince the mapping module to only map by city/state/postal code and not by address?
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Hiding addresses in membership directory google maps
November 01, 2010, 05:24:58 pm

you'll have to use a hook to do the needful

note that the addresses are geocoded, so even a hook might not prevent "giving" away the address (unless u go and modify the geocode)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Hiding addresses in membership directory google maps

This forum was archived on 2017-11-26.