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 CiviContribute (Moderator: Donald Lobo) »
  • Customized New membership form
Pages: [1]

Author Topic: Customized New membership form  (Read 1052 times)

mikael.andersson@charity.se

  • Guest
Customized New membership form
October 25, 2009, 04:47:33 am
Hi,

I would like to be able to create new memberships, and create Drupal users simultaneously, but only as an administrator.

Should I do that with a 'Contribution page' or with a 'New Membership' form?

I tested it with Contribution page but it does not seem to be the way of doing it, since it is the logged in user's details, the administrator in this case, that are loaded in the form.

What is the appropriate way of solving it?

Thanks,

Mikael

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: Customized New membership form
October 25, 2009, 07:30:56 am

you will have to do it as two seperate actions (one in civicrm and one in drupal)

alternatively u can use the hooks (buildForm/postProcess) to inject the drupal user fields into a civicrm form and create the user in the postProcess hook

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

mikael.andersson@charity.se

  • Guest
Re: Customized New membership form
October 25, 2009, 09:17:05 am
Great, thanks for that. I will most likely go for the hooks solution since it is too cumbersome to do it as two separate actions by the administrator. Would it not be good if we add this solution as an option to the New Membership form?

Thanks,

Mikael

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: Customized New membership form
October 25, 2009, 05:32:08 pm

I think having a seperate module to do it is not too bad. we need to start moving away from the "kitchen sink" approach, IMO

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

mikael.andersson@charity.se

  • Guest
Re: Customized New membership form
October 26, 2009, 01:43:20 am
That sounds alright to me. Where can I find some examples about how this can be implemented as a module?

Thanks,

Mikael

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: Customized New membership form
October 26, 2009, 07:09:43 am

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
http://civicrm.org/taxonomy/term/26
http://svn.civicrm.org/sfschool/trunk/

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Customized New membership form

This forum was archived on 2017-11-26.