Hi Guys,
I am using CiviCRM to manage a database of members. Some of you might be familiar with it, but essentially it's a Drupal module that makes it easy for a non-profit to manage members and memberships, along with fundraising. I've been attempting a few different methods for providing a feature to search for, and display a member's membership data (start date, end date, status, and membership type). This would be used by a business offering discounts to verify membership before providing the discount to a customer. Also, it needs to be available to anonymous users of the site. Because of this requirement, I need to include a captcha to prevent harvesting of information.
So far I've tried:
- Form API: Created the form and handled the search in hook_form_submit but couldn't display results.
- Search API: to restrictive, I need to display custom data rather than a title and URL to a node.
Thinking about this limitations, in order to search for and display custom data, I've come the the conclusion that I need to:
- Create a node module for displaying this data, so the membership information could be displayed at a URL like: /node/member_email_addr.
- Create a custom search using search API to search and provide a link to the correct node within this node module.
- Modify the hook_view somehow to display a captcha prior to showing the content.