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 CiviEvent (Moderator: Yashodha Chaku) »
  • Invite/authorization code before registration
Pages: [1]

Author Topic: Invite/authorization code before registration  (Read 1018 times)

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Invite/authorization code before registration
March 21, 2008, 08:05:21 pm
I am running CiviCRM 1.8 with Drupal 5 on php4 and am trying to figure out how to implement an "invite code" function.

We are having an event that we would like to have somewhat restricted registration for. We don't really want to use the Drupal roles to totally lock down access to the civievent registration pages, but I haven't been able to find anything built-in. It doesn't have to be fancy, The same code for everybody would be fine.

The perfect option would be able to enter an "Invite code" on the registration page along with name, address and CC info. If the code is valid the transaction can go thru, if not it's blocked

My next choice is to make a door page where I ask for the code and only pass the person along to the registration page if they get the invite code correct. Of course once the person gets to the registration page there is nothing to keep them from passing along the URL of the registration page, but I can live with that.

Has anyone else had to implemented anything like this? I looked pretty thoroughly  but didn't see anyway to implement my perfect choice. Did I miss anything? Or did this maybe get implemented in a later release? If it's not build-in I'll try my backup choice.

Any info/feedback appreciated.
« Last Edit: March 21, 2008, 08:24:20 pm by MacRonin »

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: Invite/authorization code before registration
March 22, 2008, 12:19:18 pm

a good solution might be the follows:

1. create a new custom field for the participant. Call it invite code

2. Implement the validate hook and check for the right event code. If right code entered validation succeeds, else it fails. You can find the validation hook documentation in the wiki

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

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: Invite/authorization code before registration
March 22, 2008, 08:45:13 pm
Thanks for the feedback, I'll check it out. :-)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Invite/authorization code before registration

This forum was archived on 2017-11-26.