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) »
  • Event registration link turns to "info" if user has to login
Pages: [1]

Author Topic: Event registration link turns to "info" if user has to login  (Read 962 times)

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Event registration link turns to "info" if user has to login
October 02, 2012, 08:20:31 am
Is there a way to provide a direct link to an event registration form when the form is behind a Drupal login?

It seems that if a  user clicks on a registration link like https://example.org/civicrm/event/register?id=3&reset=1 and they are not logged in, the link automatically turns to https://example.org/civicrm/event/info?reset=1&id=3 and offers them to login.
After login, they are (predictably) redirected to the event info page and not the registration.

Is this intended behaviour? Can this be patched via a custom php file rather than fiddling with core?

Thanks.
« Last Edit: October 04, 2012, 08:03:15 am by llaen »

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: Event registration link turns to "info" if user has to login
October 15, 2012, 07:14:37 am
Bump?

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: Event registration link turns to "info" if user has to login
October 15, 2012, 09:02:32 am

yes, the code does behave the way u've described.

unfortunately this is due to two different systems (drupal handling login, civi handling event reg) and this falls thru the integration cracks

you could potentially remember state and then do the redirect by using civicrm and drupal hooks

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

jcm55

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 14
Re: Event registration link turns to "info" if user has to login
November 28, 2012, 11:41:21 am
I think you can potentially solve this by granting "register for events" permission to anonymous users in the Drupal permission settings.

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Re: Event registration link turns to "info" if user has to login
November 28, 2012, 12:23:52 pm
This is what we do, as we do not have users create Drupal accounts.

Quote from: jcm55 on November 28, 2012, 11:41:21 am
I think you can potentially solve this by granting "register for events" permission to anonymous users in the Drupal permission settings.

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: Event registration link turns to "info" if user has to login
November 28, 2012, 02:31:49 pm
Thanks but we do need the user registration/login part.

We ended up custom-coding it as dlobo suggested (thanks for that as well, btw).

civi5

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: MySQL 5
  • PHP version: 5.3.6
Re: Event registration link turns to "info" if user has to login
January 10, 2013, 12:38:44 pm
is it possible to get the changes that you needed to implement to make this work.  We are looking to do the same thing and if you can point in the right direction that would be greatly appreciated.

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: Event registration link turns to "info" if user has to login
January 10, 2013, 12:46:54 pm
Quote from: civi5 on January 10, 2013, 12:38:44 pm
is it possible to get the changes that you needed to implement to make this work.  We are looking to do the same thing and if you can point in the right direction that would be greatly appreciated.

We cheated our way out of it.
On the Event Info page we put a link saying "Login to register" and made the link point to:
/user/login?destination=<event name>

<event name> can be anything.
Then we used Drupal's Redirect module to redirect <event name> to the registration page so they will automatically be redirected to the form once they login and ?destination is read.

Hope that helps.

civi5

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: MySQL 5
  • PHP version: 5.3.6
Re: Event registration link turns to "info" if user has to login
January 14, 2013, 10:29:11 am
Good idea.  That should work for us as well.  Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event registration link turns to "info" if user has to login

This forum was archived on 2017-11-26.