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) »
  • Drupal + CiviContribute membership workflow problem
Pages: [1]

Author Topic: Drupal + CiviContribute membership workflow problem  (Read 2229 times)

jgaryt

  • Guest
Drupal + CiviContribute membership workflow problem
March 07, 2009, 12:11:49 pm
It seems that if you *require* a non-registered user to donate money for a membership to your site there's no good option to ensure that happens.

I created a sign-up form on the demo site: https://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=7 , and a user should go through this form to sign up for membership to the site, *and* get a Drupal membership too.  This all works as it should on the demo site.

The problem is, the user can just click on the "Create Account" link on the standard Drupal login-in block, and bypass the sign-up form.  Disabling the sign-up ability in Drupal also disables it in CiviContribute, so that's no good.

There needs to be a way to disable the standard Drupal membership sign-up, and do a sign-up only through the CiviContribute, or other CiviCRM module (maybe CiviMember-I've not used it yet).

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 + CiviContribute membership workflow problem
March 07, 2009, 02:12:42 pm

you can potentially do this via the following:

1. make all accounts require administrator approval

2. hide the login block on your pages (this is a block config). This does not prevent someone from typing in the url, but you can block those folks with the above option

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

jgaryt

  • Guest
Re: Drupal + CiviContribute membership workflow problem
March 07, 2009, 06:49:50 pm
Thanks as always for the reply.

Option 1 - Make all accounts require admin approval is ok unless you get 1000's of users, and if my client does not get 1000's of users, there is no point to the site  :)  so admin approval is not really the way to go.  And even if I did, how would I tell the paid from the unpaid without going in and researching the email address?

Option 2 - I could (and did) disable the login block...but then how does a signed up user get logged in?  I could create a login link, but this in turn enables the create account option.  I have run around in circles trying to configure this and there seems to be no way.

What I need to be able to do is:

1) In Drupal, disable account creation.
2) In CiviContribute, enable account creation to override Drupal.

I am not a PHP programmer, but if there's anything I can do to enable this functionality (and I *can't* be the only one that needs it) I'll do my best.

Regards,

jgaryt
« Last Edit: March 07, 2009, 06:51:45 pm by jgaryt »

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 + CiviContribute membership workflow problem
March 07, 2009, 08:28:30 pm

We currently dont meet your requirements exactly. Since you are not a PHP programmer, you might want to consider hiring someone from http://civicrm.org/professional/ to write some code that matches what you want. This will also help the *other* folks who need it :)

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

jgaryt

  • Guest
Re: Drupal + CiviContribute membership workflow problem
March 07, 2009, 08:33:36 pm
Ok, much obliged for the assistance.  Not sure we have the budget for a programmer at this time, but I will continue looking for ways to implement this feature.  Still love Civicrm and want to support the effort!

johnbarclay

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
Re: Drupal + CiviContribute membership workflow problem
June 20, 2009, 06:05:11 pm
I haven't implemented all of this yet, but the first 3 steps get the drupal part mostly done:


1. configure accounts


-- create a role called "pre-authorized" via /admin/user/roles
-- give "pre-authorized" role access to everything anonymous user /admin/user/permissions
-- give "pre-authorized" role access to: make online contributions   
-- in user settings /admin/user/settings
--- visitors can create accounts
--- require email verification
--- take !password stuff out of "Welcome, no approval required".  User's don't wnat their passwords emailed to them in cleartext. I start the template out with:



!username,

Thank you for registering at !site.

You  log in by clicking on this link or copying and pasting it in your browser:

!login_url

...


logintobaggin

- install drupal module logintobaggin http://drupal.org/project/logintoboggan
- configure /admin/user/logintoboggan
-- enable logon with email address
-- check set password
-- select "pre-authorized" for non-authorized roll
-- leave immediate login unchecked (unless you don't want email verification)


customerror

- intall custom error modules so you can include instructions on access denied pages and so user is redirected to their resource after creating an account.
-- http://drupal.org/project/customerror  (read the readme.txt file to successfully configure)




..then

setup civicrm such that people with active, valid memberships are mapped to drupal roles.  I still need to do this part.


jgaryt

  • Guest
Re: Drupal + CiviContribute membership workflow problem
June 21, 2009, 05:31:06 am
Nice!

I'll try it when I get a chance.  The site I was working for already pulled the plug, so it's a moot point, but I'm sure it will come up again!

Thanks!

jgaryt

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Drupal + CiviContribute membership workflow problem

This forum was archived on 2017-11-26.