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 Drupal Modules (Moderator: Donald Lobo) »
  • Registration match on external identifier
Pages: [1]

Author Topic: Registration match on external identifier  (Read 1112 times)

murrayb

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5.2
  • PHP version: 5.1
Registration match on external identifier
January 26, 2011, 09:00:59 pm
Hi,

I have a situation where I need to change how the registration interface works between Drupal and CiviCRM. As I understand it the match of a Drupal user to a CiviCRM member is made by e-mail address only (when a user registers to Drupal). In my case I have imported users from an external system. Very few users have a correct e-mail address and most have none. So what I want to do is to have the matching performed by external identifier as this is the member's existing membership number which they all know.

I'm happy to write a module to do this but haven't written a Drupal or CiviCRM module before. So any advice and/or code examples would be greatly appreciated.

Thanks . . . Murray

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: Registration match on external identifier
January 27, 2011, 08:13:10 am

will your users be logging into the system? if so, how will u be informing them about how to log in etc?

one easy alternative might be to give them an email address like:

member.MEMBERIDNUM@yoursitename.org


that probably will get around trying to sync civi/drupal on a non-email field and potentially make life a lot easier

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

murrayb

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6
  • MySQL version: 5.2
  • PHP version: 5.1
Re: Registration match on external identifier
January 29, 2011, 02:42:09 am
Yes, I did consider doing that with the e-mail address. However I have a couple of problems with doing it that way:
  • I want to check against multiple fields (external id, surname, zip code). I think <id>.<surname>.<zip>@site.com might be too complex.
  • AFAIK We can't force them to then change the email address and we don't want to give them one.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Registration match on external identifier

This forum was archived on 2017-11-26.