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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Displaying Profile Listings: Smart Group and "Standard" Group Limitations Differ
Pages: [1]

Author Topic: Displaying Profile Listings: Smart Group and "Standard" Group Limitations Differ  (Read 1188 times)

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Displaying Profile Listings: Smart Group and "Standard" Group Limitations Differ
February 10, 2008, 08:50:22 am
I'm trying to create Profile Listings of regional farms that are current members of my organization. Using a "Smart Group" that includes farms who are current members and limiting Profile listings to this Smart Group, using a search I can get the desired subset of farms to display in the profile listings, but *only* when I'm logged in as Admin (all Profile fields are set to "Public User Pages and Listings"). When I log in as a user or when try it as a guest, the search returns no results. I want users and the general public to be able to view the listings and I want the listings to be those of current members only.

Here's my search form code:
Code: [Select]
<form  action="http://example.com/index.php?q=civicrm/profile&search=0&gid=13&reset=1&force=1" method="post" name="Search" id="Search" />
 [various check-boxes including "Region"]
 <input class="form-submit default" name="_qf_Search_refresh" value="Search" type="submit"/>

This returns the following depending on login status:

Logged In as Admin, *using "Smart Group"*:
 
 Displaying contacts where:
 Member of Group IN Grower-Producer IGS   ... AND ... [Grower-Producer IGS is a "Smart Group]
 Group Status - "Added"   ... AND ...
 Region = Eastern
 
 Displays listings correctly.
 
 ==============
 
 Logged Out or Logged In as User *using "Smart Group"*:
 
 No matches found for:
Member of Group IN   ... AND ...
Group Status - "Added"   ... AND ...
Region = Eastern

Does *not* display listings.
 
 ==============

Logged In as Admin, *using Standard Group* that contains all farms regardless of membership status:

Displaying contacts where:
Member of Group IN Grower/Producer   ... AND ... [Grower/Producer is a "standard" group]
Group Status - "Added"   ... AND ...
Region = Eastern

*Displays listings correctly*.

==============

Logged In as User and Logged Out *using Standard Group* that contains all farms regardless of membership status:

Displaying contacts where:
Member of Group IN   ... AND ...
Group Status - "Added"   ... AND ...
Region = Eastern

*Displays listings correctly*.

===============

I hope there's a simple solution to get the Smart Group listings to display correctly for ALL users.

pankaj

  • Guest
Re: Displaying Profile Listings: Smart Group and "Standard" Group Limitations Di
February 13, 2008, 02:07:28 am
Check if authenticated and anonymous users have "view all contacts" permission.

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Displaying Profile Listings: Smart Group and "Standard" Group Limitations Differ
February 13, 2008, 07:23:29 am
Thanks. That seems to be it. I guess I was nervous to allow everyone to "View *all* Contacts". I really only want everyone to be able to view only the contacts that are search results for the searches I design by retsricting profiles to display only listings from specific groups, while keeping the master contact list under wraps. I hope the master contact list is secure even though access for anonymous and authenticated is set to "View all Contacts".

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Displaying Profile Listings: Smart Group and "Standard" Group Limitations Differ

This forum was archived on 2017-11-26.