Page 1 of 1

add field to registration form of joomla 1.6

Posted: Wed May 04, 2011 6:41 am
by shraddha123
hello friends,
i need to add fields in registration form of joomla and i used user profile plugins for the same by enabling it .but now i want to change the fields which are there with profile( like i dont want favouritebook field in it.)

so where should i do changes ? and one more thing i dont want that logout image button on login form of joomla which is used to logged out instead of that i want my own url( which i already given in top menu )and onclick of that i will logged out with displaying message.

i go through lots of sites and may be steps given in that are right but i could not find any form.php page in componenet/com_users/registration to edit it. :(

i am using joomla 1.6
pls help me .thanks in advanced. ???

Re: add field to registration form of joomla 1.6

Posted: Wed May 04, 2011 7:59 am
by 3dgtech
Most likely you are looking for the module default.php right?
Out of curiosity, did you change the db to accommodate the structure changes? Or are you just repurposing the current fields?

Re: add field to registration form of joomla 1.6

Posted: Fri May 06, 2011 7:51 am
by santhosh003
Hii,
I am also facing same kind of problem. I want to create custom registration page with validation.
Can someone please tell me Where i can create custom fields and custom validations.
thanks

Re: add field to registration form of joomla 1.6

Posted: Mon May 16, 2011 4:26 pm
by 3dgtech
all custom registration fields will have to go into the db somehow. make sure that you capture them...
since you don't know if a core update will change the core tables/functions, it might be better installing a third party extension...

Re: add field to registration form of joomla 1.6

Posted: Mon May 16, 2011 7:12 pm
by aravot

Re: add field to registration form of joomla 1.6

Posted: Thu Jun 16, 2011 3:44 pm
by bharatsoftpro
Dear shraddha123,

very easily to add new field in joomla 1.6. due to new jform class provides Standard form field types control for more details (http://docs.joomla.org/Standard_form_fi ... eter_types).
So first open root/components/com_users/models/forms/registration.xml and add new element with proper attributes e.g. <field name="sir_name" type="text"
description="COM_USERS_REGISTER_SIRNAME_DESC"
filter="string"
label="COM_USERS_REGISTER_SIRNAME_LABEL"
message="COM_USERS_REGISTER_SIRNAME_MESSAGE"
required="true"
size="30"
/>
2nd step go to "xxx_users" table and add the "sir_name" field.
Note- only for front end registration. similarly you can do with profile.xml.

or another alternate joomla 1.6 by default profile plugin only enable and customize it or make new plugins on the basic of your requirement make a new plugins. for more details http://docs.joomla.org/Creating_a_profile_plugin

Re: add field to registration form of joomla 1.6

Posted: Wed Jul 06, 2011 9:08 am
by kurian_86
Dear bharatsoftpro,

I want to add custom fields in registration form in joomla 1.6. can you plz guide me in detail.

I shall be humbly thankful to you.

Regards and Thanks

Re: add field to registration form of joomla 1.6

Posted: Wed Jul 06, 2011 10:08 am
by bharatsoftpro
kurian_86 wrote:Dear bharatsoftpro,

I want to add custom fields in registration form in joomla 1.6. can you plz guide me in detail.

I shall be humbly thankful to you.

Regards and Thanks
can u submit the screen short or give a name of the html control. i will set in directly on profile plugins or registration.

Re: add field to registration form of joomla 1.6

Posted: Wed Jul 06, 2011 10:39 am
by kurian_86
Thanks for your reply.

I have attached file. I want to have this form as my registration form.