Hi,

I'm willing to admit that I'm very new to Drupal but I made a nice workflow that I thought others might find useful.

Our club uses CiviCRM to manage all of it's members and process event registrations.

We are running an event soon for our members that is open to the public. When our members register we want them to login before they register so the event registration is connected to their membership account in CiviCRM.

The event is linked from the front page but instead of going straight to the (CiviCRM) event registration page we have used an interim page to satisfy the above requirements.

The interim page has the following included in the node body before the rest of the node body:

<?php
global $user;
if ( $user->uid > 1) {
drupal_goto($path = 'civicrm/event/info', 'reset=1&id=4');
}
?>

If the above doesn't redirect the user (will only if the user is logged in and not the admin) then the node body is displayed to the user. On that page I have two links (1) is Yes, I'm a member and (2) No, I'm not a member. 1 is linked to the /user page with a "?destination=...." tag (ie /user?destination=...) where the "..." is the url of the interim page. 2 is a link to the CiviCRM registration page.

This plays nicely because if you are a member and not logged in you'll be encouraged to log in and then when you log in you'll go back to the interim page and it will send you to the CiviCRM registration page automatically.

I really like using Drupal and I thought I'd submit a little piece back that I found very useful. I used other forum posts to work out how to do this but nobody else seemed to want to do what I wanted to achieve the above so I thought I'd post it back to the community.

If you have suggestions as to how I could do what I want even more smoothly I'd be keen to hear your thoughts.

Thanks Drupal

Cheers

Comments

petednz’s picture

If you are emailing your contacts about the event, you can insert a checksum in civimail that takes people to a 'pre-event' profile where they can see (not edit) their name (or add a comment in a box if it needs correcting) and then they 'confirm' they are who it says and move on to the event registration proper.

While not as secure as passwords, it does mean that people can be herded towards the registration form, without loggin in, but with civicrm recognising who they are and therefore pre-filling the form with their info.

Your suggestion looks great to help people get to the event form from the site and take them through a login process.

Ours is more for making it easy for broadcasting the event to people via mass mailouts and side-stepping the login requirement - they don't even need to have a Drupal account for the above ;-)

peter davis : fuzion : connect.campaign.communicate : www.fuzion.co.nz