Forums

How do I Change front page to personalized page after regist

Jabejo22 02 Apr, 2009
Hi,

I'm using Chronoforms for user registration, in place of Joomla registration. Is there a way to personalize the homepage for people after they successfully register?

e.g. - Have the homepage say, "Hi John" instead of just "Hi"

Thanks,


Zak
GreyHead 02 Apr, 2009
Hi Zak,

Probably the simplest way is to put a custom module on the home page. You could use a ChronoForms form with no fields to display some personalised text there.

Bob
Jabejo22 02 Apr, 2009
Thanks for the quick reply,

I'm not sure that I fully understand the answer though. I was hoping that there would be a way to use field data (e.g. - {text_0} in the article displayed on the front page. That way when they register or log in they would see "Hi John," followed by the rest of the article.

Any way to utilize the information that they provide in this manner?

Thanks,

Zak
GreyHead 02 Apr, 2009
Hi Zak,

The {. . .} syntax only works in ChronoForms immediately after the form is submitted and then only in the email template.

You can get the same result but it will take a bit more work. Try putting this in the Form HTML of a new form
<?php
$user =& JFactory::getUser();
If ( $user->id == 0 ) {
  echo "Welcome to our site, please register to see your name here";
} else {
  echo "Hi ".$user->name." Great to see you here!";
}
?> 
Save the form and put it into a module on the home page.

Bob
This topic is locked and no more replies can be posted.