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 CiviEvent (Moderator: Yashodha Chaku) »
  • Inject Jscript code for masking contact e-mail address(s)
Pages: [1]

Author Topic: Inject Jscript code for masking contact e-mail address(s)  (Read 1159 times)

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Inject Jscript code for masking contact e-mail address(s)
August 05, 2009, 10:55:46 am
Hi,

I have had a developer create me a jscript that will mask the actual e-mail address displayed in a webpage, but I'm not sure where this code should go so that it is displayed instead of the contact(s) e-mail address(s) on the event information page.

<script type="text/javascript">

   //<![CDATA[
   var l=new Array();
   [missingcode]
</script>


Thanks!


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Inject Jscript code for masking contact e-mail address(s)
August 06, 2009, 04:58:39 am
You will have to add the code in "civicrm/templates/CRM/Event/Page/EventInfo.tpl" . I would recommend you should use custom templates feature when modifying above template. ( http://wiki.civicrm.org/confluence/display/CRMDOC/Customizing+CiviCRM+Screens )

HTh
Kurund
Found this reply helpful? Support CiviCRM

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Inject Jscript code for masking contact e-mail address(s)
August 06, 2009, 10:01:58 pm
Thanks,

I was able to achieve the desired result using the link menu and setting the link type type to e-mail. From what I can see, the actual e-mail address is not viewable in the source.

D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Inject Jscript code for masking contact e-mail address(s)

This forum was archived on 2017-11-26.