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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Registering users without email addresses using CiviEvent and Drupal integration
Pages: [1]

Author Topic: Registering users without email addresses using CiviEvent and Drupal integration  (Read 3561 times)

Matt Corks

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Openflows Community Technology Lab
Registering users without email addresses using CiviEvent and Drupal integration
August 13, 2007, 11:06:20 am
I'm building a site for a woman who runs activities for young children (5-10), and I've run into some difficulties applying some basic CiviCRM assumptions to this project.  I'd be interested in feedback from this forum.

At first, I planned to have each parent and child represented as a separate civi contact, assigning relationships between them.  This was a problem because I want users (ie, parents) to be able to create corresponding Drupal accounts and keep their own contact information up-to-date.  Since email addresses have to be unique for Drupal users, and five-year-olds clearly don't have their own email addresses, I had to stop creating contacts for children and instead add their names to their parent's records using custom data fields.  There are hacks to allow duplicate email addresses in Drupal, but these don't work with CiviCRM.  Also, since these children don't always live with the parent who enrolls them, I also had to create custom fields to optionally enter other street addresses for them.

This is working fine.  However, I'm not sure how to apply this model to online registration for events.  I need some way to say which child belonging to a given parent is registering for which upcoming events, and I can't think of anything other than a series of custom data fields per child, with names like 'attending event on (date)?'

There must be another way to do this; your suggestions are welcome.
Openflows Community Technology Lab -- http://openflows.com/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 13, 2007, 05:10:53 pm
I'm not sure I have a complete picture of your requirements and data...

You can create CiviCRM "Individual" contacts without email addresses (first and last name only). So I'm not clear about why the children can't be CiviCRM contacts. It's true that it doesn't make sense for them to be Drupal users (they're not going to "login" and interact with the site).

Either way, the name(s) of the parents' child(ren) who are attending an event should be set up as custom "participant" fields. They are a property of participation (registration) in a particular event.

However, I can't think of any built-in method to expose a list of "their children" to a logged in parent within an Online Event Registration page. So either the parent would just type in the children's names in an open text field. OR, you would have to hack the online registration code to expose "related contact names (i.e. children)" as values for a custom "participant" checkbox field.

Protect your investment in CiviCRM by  becoming a Member!

Matt Corks

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Openflows Community Technology Lab
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 14, 2007, 07:46:10 am
I realize the children can be entered into CiviCRM as contacts with email addresses, but I would like parents to be able to update their children's contact information via Drupal (since they often live at a different address), which as I understand it would have required a separate Drupal account per CiviCRM contact.  Otherwise, I'd have to find a way to allow Drupal users to edit profiles of contacts which are related to them, and not just their own data.  I could write something like this with CiviNode, but this would have to give Drupal users the ability to create and delete contacts to keep information about their family up-to-date, so it wouldn't be trivial.

I didn't realize it was possible to make a custom data group for event participants, that's quite helpful.  Now my online registration form includes a profile which asks if child1, child2, etc. are attending the event in question.  (I'll try to hack that to replace those terms with the actual children's names.)  Is it possible to give Drupal users the ability to change this data for events they've already registered for (or, for that matter, to update their status to indicate they're no longer attending an event)?

Also, I've just tried registering online for an event a second time as a user logged into Drupal; I expected my answers to the custom participant fields to be updated, but instead the user is shown twice in the list of participants.  Is this intentional?  I was expecting the duplicate matching rules to catch this (especially since I was logged in as the same Drupal user).
« Last Edit: August 14, 2007, 08:00:41 am by mvc »
Openflows Community Technology Lab -- http://openflows.com/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 14, 2007, 07:59:52 am
First, there is a project underway for Kabissa that will be introducing an approach to permissioning a Drupal user to have permissions over a specific set of related contacts. Their use case is "individual having permission to edit their organizations contact data" - but it should be relevant. You might want to check the specs and committed code for this project.

http://wiki.civicrm.org/confluence/display/CRM/Kabissa+-+CiviCRM+Project+Specifications

There is no built-in "modify my event registration status" functionality (yet). A good starting place would be the existing "My Contact Dashboard" code - which exposes current event registrations to end-users. A code contribution in this area would be awesome. Grab one of us on IRC if you want to go down this road.
Protect your investment in CiviCRM by  becoming a Member!

Matt Corks

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Openflows Community Technology Lab
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 14, 2007, 08:08:19 am
I was editing my last comment while you were posting yours  :) so I'll repeat what I said above: I've just tried registering online for an event a second time as a user logged into Drupal; I expected my answers to the custom participant fields to be updated, but instead the user is shown twice in the list of participants.  Is this intentional?  I was expecting the duplicate matching rules to catch this (at least when logged in as the same Drupal user).

Thanks for the link to the Kabissa project; that does look relevant, and I'll keep that in mind for the future.

I likely don't have time on this particular deadline to implement proper "modify my event registration" but I'll try to at least write code to display the user's values for custom participant fields under the event's listing in the dashboard view, which shouldn't be too hard.  If I get a chance I'll speak up in IRC when I have something to show.
Openflows Community Technology Lab -- http://openflows.com/

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: Registering users without email addresses using CiviEvent and Drupal integra
August 14, 2007, 02:02:56 pm

Yes, that is intentional. We have not implemented dupe check for participant data as yet.  I suspect this will be part of a 2.x version.

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

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 24, 2007, 06:15:10 am
I posted a new thread, but actually it is related. Why isn't the email address from the current user picked up in events?

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: Registering users without email addresses using CiviEvent and Drupal integra
August 24, 2007, 12:27:08 pm

In v1.7 we created a "special" billing location. All address/email data collected by the system is stored in the "billing" location which typically does not match the default location where we have the email.

I suspect this will change and get fixed in 2.x while we tweak the tables and the "billing" model and flatten the structure a bit more

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

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Registering users without email addresses using CiviEvent and Drupal integra
August 24, 2007, 08:02:06 pm
So I should copy the email address I want to use into a billing address field?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Registering users without email addresses using CiviEvent and Drupal integration

This forum was archived on 2017-11-26.