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) »
  • A new individual/membership form with external calls
Pages: [1]

Author Topic: A new individual/membership form with external calls  (Read 721 times)

stefan

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
A new individual/membership form with external calls
November 24, 2011, 01:09:15 am
Hi all,

I'm trying to work out a nice way to provide users with a membership form if and only if they meet the criteria for being a member, which can be determined by loading an external PHP script which will call another API etc to look up an external database.

So far, I'm considering the following options:
1) use Drupal's civicrm webform module, hack it to evaluate the external script when called, and if successful create a new member
2) evaluate the external script upon login, and for non-members, assign one of two distinct Drupal permission groups depending on what the external script returns
3) as 2) but using a custom field instead of permissions

Does anyone have any suggestions on how to approach this? I'm not entirely sure how I'd use options 2/3 to generate a different page based on the permission/field anyway.. and yes a fee does need to be paid using a CiviCRM payment processor or cheque/EFT

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: A new individual/membership form with external calls
November 24, 2011, 02:43:27 am
Why don't you use one of the CiviCRM hooks, like BuildForm or PageRun (would have to run a test to see which works best) and you can then test for your membership criteria when someone tries to access that page and if they fail, redirect them.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • A new individual/membership form with external calls

This forum was archived on 2017-11-26.