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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Where would one hack to force Drupal user account creation
Pages: [1]

Author Topic: Where would one hack to force Drupal user account creation  (Read 1680 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Where would one hack to force Drupal user account creation
November 16, 2008, 04:43:31 pm
I'd like to have CiviCRM automatically create a Drupal account when a CiviMembership is purchased if there is no existing Drupal account for that email address, similar to what is described at http://forum.civicrm.org/index.php/topic,2297.0.html

Poking about in the following files did not reveal to me where this is done for REGISTER mode:
CRM/Member/BAO/Membership.php
CRM/Member/Form/Membership.php (though this does have a bit of CRM/Core/BAO/UFGroup.php stuff
CRM/Profile/Form.php
CRM/Profile/Form/Edit.php
CRM/Profile/Form/Dynamic.php

TIA for tips on where to start.

Cheers,
Joe

Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Where would one hack to force Drupal user account creation
November 16, 2008, 07:23:37 pm
If you have a profile as part of the Contribution page then under Advanced settings you can set Drupal account there - and there has been a hack discussed elsewhere of setting this to being permanently checked. HTH
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Where would one hack to force Drupal user account creation
November 17, 2008, 09:36:19 am
Thanks, yes, I'm aware of the UI for this. I guess I will use that to find the program elements to hack to force this to happen automatically when people buy a membership.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Where would one hack to force Drupal user account creation
November 17, 2008, 11:22:02 am
And this was the Post I recalled seeing - http://forum.civicrm.org/index.php/topic,5459.0.html - but not sure that is much more help.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Where would one hack to force Drupal user account creation
November 18, 2008, 04:34:00 am
Excellent, that's great.

Thanks for your help.

Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Where would one hack to force Drupal user account creation

This forum was archived on 2017-11-26.