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) »
  • Drupal account registration not being offered for pre-existing CiviCRM Contacts
Pages: [1]

Author Topic: Drupal account registration not being offered for pre-existing CiviCRM Contacts  (Read 772 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Drupal account registration not being offered for pre-existing CiviCRM Contacts
February 15, 2012, 04:12:50 pm
I have imported about 20,000 members into CiviCRM. I am going to be sending out a notification with a link to a tokenized custom profile asking them to verify their information and update where appropriate.

I'd like them to also be prompted to setup a Drupal user account at the same time, but when I select the 'Give option, but not required' they are not presented with an option.

If I use the same profile in Create mode instead of Edit (i.e. for a new contact instead of an existing one) then they are presented with an option. Any ideas why?

Brian

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: Drupal account registration not being offered for pre-existing CiviCRM Contacts
February 15, 2012, 07:33:16 pm

do some / all of the exisiting contacts have a user record?

create is creating a new contact and hence assumes it can create a new user (which will error if an user with the same email exists). hence u always see the option

In the case of edit, i suspect the code might be checking if there is an existing contactID in the session and if so assumes that there is an exisitng user and does not show the "create user option". i.e. the code is not aware of the "tokenized" profile option

If you want to investigate and submit a patch, check:

CRM/Core/BAO/CMSUser.php, function buildForm

is most likely the starting point

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

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Drupal account registration not being offered for pre-existing CiviCRM Contacts
February 16, 2012, 05:43:43 am
Thanks Lobo. I'll dig down into it.

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Drupal account registration not being offered for pre-existing CiviCRM Contacts
February 16, 2012, 06:30:12 pm
Patch submitted at http://issues.civicrm.org/jira/browse/CRM-9684

Haven't looked at any broader implications of the patch yet.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal account registration not being offered for pre-existing CiviCRM Contacts

This forum was archived on 2017-11-26.