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) »
  • Too much info in 'Pop up' Bubble in search results
Pages: [1]

Author Topic: Too much info in 'Pop up' Bubble in search results  (Read 1522 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Too much info in 'Pop up' Bubble in search results
March 23, 2011, 06:47:39 am
I have created a profile so that end users can search our directory and see only specific information, such as name, email address, work phone, etc. When a search is made the results seem to be fine and when you click on 'View' you are taken to the profile that I created and only the pertinant information is there; however, there is a little 'person' icon in the main search results page and if you hover over that you get a popup bubble which has mobile number, DOB, etc. and if I have entries in the contacts entry then they will show up. Is there any way of having that not show up if you are an anonymous user?

Thanks

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Too much info in 'Pop up' Bubble in search results
March 28, 2011, 11:49:12 am
Yes, using jQuery and Drupal blocks.

1. Create a block visible only on pages "civicrm*" in Drupal block visibility settings, and only to anonymous users
2. Set input filters to "full HTML" so you can use jQuery
3. Use the jQuery hide() function to hide the icon completely, and thus the popup. it is selector: a.crm-summary-link
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Too much info in 'Pop up' Bubble in search results
March 28, 2011, 09:18:04 pm
Yeah! Above solutions looks good, without modifying any core file.
I think, instead of hiding whole icon u can do by just removing the class 'crm-summary-link'.

So your block code will something like
Code: [Select]
<script type="text/javascript">
$(document).ready( function( ) {
  $('a.crm-summary-link').each( function( ) {
   // to  remove pop up
  $(this).removeClass('crm-summary-link');
  // to remove link to that contact
  $(this).attr( 'href', '#');
});
});
</script>

Rajan
« Last Edit: March 28, 2011, 09:20:07 pm by Rajan Mayekar »

noir

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: 6.20
  • MySQL version: 5.1.36
  • PHP version: 5.3.0
Re: Too much info in 'Pop up' Bubble in search results
March 30, 2011, 03:27:56 am
Currently I dont get any information in my popup bubble (in a profile used for searches) the background is just white with no information.  I am also interested in how you could customise the popup to only show certain fields, how would you directly edit the fields displayed in the popup?

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Too much info in 'Pop up' Bubble in search results
April 03, 2011, 06:17:21 am
Quote from: noir on March 30, 2011, 03:27:56 am
I am also interested in how you could customise the popup to only show certain fields, how would you directly edit the fields displayed in the popup?

the popup is a profile called Summary Overlay. you can edit that profile, adding and deleting files, and the popup will reflect those changes.

--josue

noir

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: 6.20
  • MySQL version: 5.1.36
  • PHP version: 5.3.0
Re: Too much info in 'Pop up' Bubble in search results
April 04, 2011, 08:30:08 am
Thanks Josue, helps when you know the names of these features.

Roman Zimmermann

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
    • more onion
Re: Too much info in 'Pop up' Bubble in search results
April 04, 2011, 09:07:28 am
Quote from: Stoob on March 28, 2011, 11:49:12 am
Yes, using jQuery and Drupal blocks.

1. Create a block visible only on pages "civicrm*" in Drupal block visibility settings, and only to anonymous users
2. Set input filters to "full HTML" so you can use jQuery
3. Use the jQuery hide() function to hide the icon completely, and thus the popup. it is selector: a.crm-summary-link

If you do it this way the information is hidden - but still accessible to an anonymous user. That's not good from a security point of few.
So you're probably better off with configuring the profile "Summary Overlay".

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Too much info in 'Pop up' Bubble in search results

This forum was archived on 2017-11-26.