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) »
  • Hide Email Addresses, Link Names to Contact Form
Pages: [1]

Author Topic: Hide Email Addresses, Link Names to Contact Form  (Read 1621 times)

scottott

  • Guest
Hide Email Addresses, Link Names to Contact Form
April 16, 2010, 03:35:03 pm
I'm using CiviCRM with Joomla 1.5.9 and I have a user form that gathers, among other data, the email address. I also have a search function that lets other users find someone in that particular group. I would like to hide the email address (to avoid risk of spammers scraping it), but ensure that visitors can contact the person by linking the name to a contact form populated with the correct (hidden) email address.

So, the search wants to contact the searchee, and clicks a link that opens an email form in the website, on submit it goes to the searchee, and sends a copy to me.

Also, I'd like to change the word on the form submit button...which currently says "Save".

Thanks,
Scott Ott

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: Hide Email Addresses, Link Names to Contact Form
April 16, 2010, 04:58:43 pm

you can potentially do this via custom templates and a custom php page (to handle the email part)

basically your custom template rewrites the email field to point to your custom php page that sends the email

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

scottott

  • Guest
Re: Hide Email Addresses, Link Names to Contact Form
April 19, 2010, 05:13:01 am
I would settle for the ability to let the person filling out the profile form choose whether to display her email address publicly.

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: Hide Email Addresses, Link Names to Contact Form
April 19, 2010, 07:06:32 am

u'll also need to do this via a customized template

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

scottott

  • Guest
Re: Hide Email Addresses, Link Names to Contact Form
April 19, 2010, 07:11:05 am
Perhaps I should just ask where's the best place to learn how to create a customized template?
Also, does that mean a single-page template, or do I tweak the template for the whole site?

Thanks,
Scott

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: Hide Email Addresses, Link Names to Contact Form
April 19, 2010, 07:12:40 am

http://wiki.civicrm.org/confluence/display/CRMDOC/Customizing+CiviCRM+Screens

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

scottott

  • Guest
Re: Hide Email Addresses, Link Names to Contact Form
April 23, 2010, 03:57:25 pm
UPDATE: I have successfully tweaked the Profile display template for easier reading, and succeeded in linking the contact's name with a simple mailto: link.
I'm still trying to figure out how I can feed that address to a dynamically-created contact form so the email address is hidden, but a user can send an email through the site to the contact.

If you'd like to know how I did that, feel free to contact me.

Scott Ott

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Hide Email Addresses, Link Names to Contact Form

This forum was archived on 2017-11-26.