[solved] Profile page: Data not editable

pat01 11 Jan, 2011
Hello

I have created a registration form as described in the Tutorial here. This registration form works fine, all data gets saved into _jos_chronoforms_Register.

Then i did create a second form, called EditProfile. I did activate the Profile page Plugin for that form and I did configure it. Finally I created a Menulink pointing to this EditProfile form.

If the user is logged in and clicks on this link, he can see all his profile data, but he can't edit them. 😲

In the settings of the Profile page Plugin the Editable is set to Yes and the Plugin gets the data from the table _jos_chronoforms_Register.

My form code in the EditProfile form looks like this:
<br><br>
<center>
{text_0}<br>
{text_1}<br>
{text_2}<br>
{text_3}<br>
{text_4}<br>
{text_7}<br>
{text_8}<br>
{text_9}<br>
</center>


Shouldn't CF now automatically show all the userdata in form fields including an update/submit/save Button? Or do I not really understand the concept here correctly? 🙄
If so, what do I need to change?

Thank you very much!

Regards
Patrick
GreyHead 11 Jan, 2011
Hi Patrick,

As far as I can see that should work OK from the code you have posted :-(

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
pat01 11 Jan, 2011
Hi Bob

Email sent.

Thank you so much!

Regards
Patrick
GreyHead 11 Jan, 2011
Hi Patrick,

Sorry, I was wrong :-(

To create an editable form you need to provide the form HTML and the Profile Page plug-in then adds the values. It won't create the inputs.

I've copied over the Form HTML from the Register form to the EditProfile form and you now have an editable profile - some inputs may need to be removed to make it a usable form though.

You can see it at http://your_domain.com/index.php?option=com_chronocontact&chronoformname=EditProfile&cf_user_id=84

Bob
pat01 11 Jan, 2011
Hello Bob and thank you very much.

So far it looks far better! 😀
I did test it, but the data does not get updated. The "old" data remains in the Database.

I'll go and buy you a beer now (I'll have one, too), then I'll have another look at it :-)))

Regards
Patrick
GreyHead 11 Jan, 2011
Hi Patrick,

It's more or less OK now. I've enabled the DB Connectiom and added a hidden input to carry forwad the cf_id so that the record is updated.

There's still a small problem that the cf_user_id gets over-written (so cf_id=84 is now cf_id=0) but that would be solved in practice by havign some kind of a check in the form.

Bob
pat01 11 Jan, 2011
Hi Bob and thank you very much for your outstanding support!

Now it works perfect.

I was not able to reproduce the problem with the cf_id. Neither after changing any existing profile data, nor after registering as a new user and change my new user data.

Again, thank you so much and enjoy the beer! :-)))

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