Forums

User registration, profil editing and other form

saracoratello 16 Feb, 2010
I have a question: can i with chrono forms do a non-standard user registration, after log-in change datas which he gave in registration (samoething like edit you profile but different fields), and show to user how many he submit some form (other than registration) ??
I want this other form information go to user and admin and was stored in data base.

How can i do this ?
GreyHead 16 Feb, 2010
Hi saracoratello,

You can do all of that. It would take more than a short post to exaplain though.

Start with a custom registration form following the Tutorial from the link above.

Bob
saracoratello 16 Feb, 2010
hi, thanks for your reply, ive tried changed a custom registration but its not work.

I dont really understand last step - i dont know where i should redirect my $mainframe to see my not-defalut register form.

After that how i can do a editing od profile ? (Uder can change datas he put in registration form) ?? 😛
GreyHead 16 Feb, 2010
Hi saracoratello,

a) What exactly isn't working?

b) Where do you want to send the user to?

c) You'll need to create a form to change the info.

Bob
saracoratello 16 Feb, 2010
a). i dont know how should i change
<? php // no direct
defined('_JEXEC')or die ('Restricted access'); ?>

in tutorial i have exemple like that:
<? php // no direct
defined('_JEXEC')or die ('Restricted access'); chr 
?>
- i dont understand what is 'chr'
<? php // no direct
defined('_JEXEC')or die ('Restricted access');
$mainframe->redirect('register.html'); 
?>
- should i redirect it on register.html or on page which direct to my form from menu ??

b). i want send an usr to form fill with datas he put in registration form, that he can change this datas and save it in data base.

c) how can i fill this 'new' form (which is the same like registration form) with datas user put in registration form? how exactly could i do this ?
GreyHead 16 Feb, 2010
Hi saracoratello.

I think that the 'chr' example is a mistake :-( I suggest that you ignore it.

To show the existing data you need to get it either from the Joomla User object (search here on 'getuser' to see many examples) or from a database table and put that in the form input value='xxx' attributes.

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