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) »
  • Making Event Registration Page the Home Page (Solved)
Pages: [1]

Author Topic: Making Event Registration Page the Home Page (Solved)  (Read 1387 times)

bstanf

  • Guest
Making Event Registration Page the Home Page (Solved)
December 17, 2008, 07:21:39 pm
I can't believe how difficult this is, and I hope that someone here can lend a hand.

I want to redirect anyone coming to my website to a CiviCRM Event Registration Page. That's it. It couldn't be simpler to describe, but EVERYTHING I try fails miserably.

The problem seems to be the pesky ?id=1&reset=1 part at the end of the url. It gets all F'd up no matter what I try.

First, I thought I'd use the front_page module. I've used it in the past with much success with Drupal. So I fired it up and put in the URL. Mangled.

So, then I tried using a url alias and pointing the front_page module at that. Mangled.

How can I do this? Please, please, please help me figure out what should be something brain dead simple.
« Last Edit: December 17, 2008, 07:51:36 pm by bstanf »

bstanf

  • Guest
Re: Making Event Registration Page the Home Page (Solved)
December 17, 2008, 08:00:00 pm
Thanks to a little bit of help from dlobo in IRC, I've got a solution that uses a php redirect and front_page module.

1. Make sure that you have PHP Filter and Front Page enabled in admin/build/modules

2. Create a new Page (node/add/page)

3. Set the title to anything

4. Set the body to:

Code: [Select]
<?php
header
(Location: http://www.example.org/civicrm/event/register?id=1&reset=1');
exit();
?>

5. Make sure the input format is php code.

6. Go to Advanced Front Page Settings (admin/settings/front)

7. Set your redirects to the new node you just created

8. Change your front page from node to front_page.

9. There's no step 9.

And there you have it. Super huge thanks for dlobo for helping with the PHP code.

kasiawaka

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 4
    • Kasuwade Solutions Inc.
Re: Making Event Registration Page the Home Page (Solved)
August 06, 2010, 11:16:27 am
Thanks for the useful info.

I believe you are missing ' before Location.
The proper code should be:
Code: [Select]
<?php
header
('Location: http://www.example.com/civicrm/event/register?id=1&reset=1');
exit();
?>


Also, for the Front Page to work, please make sure to enable the Permissions (/admin/user/permissions) for anonymous and authenticated user to "access frontpage"
« Last Edit: August 09, 2010, 06:31:29 am by kasiawaka »
Kasia Wakarecy
http://kasuwade.ca

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Making Event Registration Page the Home Page (Solved)

This forum was archived on 2017-11-26.