Joomla! - How to add additional information for user registration?

I am running Joomla 2.5.1 for my site.

To register a user, there is only Name, Username, Password, Confirm Password, Email Address and Confirm Email Address.

I can go to the "user profile" and include fields such as Address, Country, etc.

However, I want to add additional information such as company name, etc.

May I know how to do this?

+4
source share
6 answers

the problem is how to access profile data. this

JFactory::getUser()->get('address1',''); 

doesn't seem to work.

but this does the job:

 jimport('joomla.user.helper'); $user = & JFactory::getUser(); $profile = JUserHelper::getProfile($user->id); echo $profile->profile['address1']; 
+7
source

I hope you solved your problem, but this link will show you how to add additional fields:

http://docs.joomla.org/Creating_a_profile_plugin

+6
source

In joomla 2.5 you can add an additional 12 fields for user registration. The step of adding an additional field is to go to the plug-in manager (Extensions> Plug-In Manager) and find the plugin named User-Profile. This plugin comes with Joomla by default, so you do not need to install anything. However, the plugin is disabled by default, so you must enable it first. This single click is enough to dramatically change the Joomla registration form and add 12 useful fields:

+2
source

Joomla 2.5.x has a User-Profile plugin with 12 fields, if you need additional fields, try the following:

http://extensions.joomla.org/extensions/access-a-security/site-access/authentication/14303

+2
source

There are two relative fields on joomla 2.5.1 registration page.
to view:

 Joomla_2.5.1/components/com_users/views/registration/tmpl/default.php 

which will allow you to get data from the corresponding file, which:

 Joomla_2.5.1/components/com_users/controllers/registration.php Joomla_2.5.1/components/com_users/models/forms/registration.xml Joomla_2.5.1/components/com_users/models/registration.php 

try changing these files.

+1
source

The easiest way is to use the Community Builder extension. This is one of the most popular Joomla! extensions, and it has many features. Allowing the site administrator to define additional fields for the user profile is only the beginning.

CB, as it is called, has a plugin architecture. Both CB developers and others have developed plugins that allow you to extend what CB can do for you. Connections with Facebook and Twitter, paid subscriptions, rating of other users - there are many possibilities.

CB is free software under the GPL. However, you pay for access to documentation and support. In addition, some of the plugins are proprietary software.

Update . The current version of CB is 1.7.1, and it supports Joomla! 1.0 to 1.7, but not Joomla 2.5.x. However, as of February 7, 2012, Community Builder 1.8 is in RC . It supports and has been tested with all Joomla! version through 2.5.1. RC stands for “Release Candidate”, so it’s not yet ready for use on production sites, although the developers say that it uses its own joomlapolis.com website, “The goal is to release a stable version of CB 1.8 before the end date of Joomla 1.7” - say the developers.

+1
source

Source: https://habr.com/ru/post/1395546/


All Articles