Get more information from users

Discussion in 'Joomla' started by j_o, Jun 26, 2013.

  1. #1
    Hi Everyone,

    I am new to Joomla and have recently setup a Joomla!2.5 installation to replace my current custom brew set up.

    I need to collect information beyond a name and email from my users. For example a phone number and other text fields. Are there any extensions that will allow me to do this? I have searched the Joomla site but have yet to find anything that I believe will work.

    Any help would be appreciated, thanks in advance.
     
    j_o, Jun 26, 2013 IP
  2. mojjammal

    mojjammal Active Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #2
    If you want add new field in register form, then it maybe help you. It is not directly for joomla 2.5 but it can show you a way for solve your problem. http://iprogrammerbd.com/add-postcode-field-to-the-joomla-registration-form/
     
    mojjammal, Jul 28, 2013 IP
  3. mojjammal

    mojjammal Active Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #3
    It maybe change the following files from joomla 2.5 version:
    Step 01: You can add new text label for new added field with this two ini files.
    /administrator/language/en-GB/en-GB.plg_user_profile.ini
    /administrator/language/en-GB/en-GB.plg_user_profile.sys.ini
    Step 02: You can add new field with this two xml files.
    /plugins/user/profile/profile.xml

    /plugins/user/profile/profiles/profile.xml
    You can add new field with this two xml files.
    After done step 01 and step 02 you must change the following php file.
    /plugins/user/profile/profile.php
    Step 03: Find this bit of code:

    // Add the registration fields to the form.
    JForm::addFormPath(dirname(__FILE__).'/profiles');
    $form->loadFile('profile', false);

    $fields = array(
    'address1',
    'address2',
    -------,
    -------,
    'new_field_name',
    );
    Step 04: Added the "new_field_name" version of the code below to the profile.php file

    if (!JHtml::isRegistered('users.url')) {
    JHtml::register('users.url', array(__CLASS__, 'url'));
    }
    -------
    -------
    if (!JHtml::isRegistered('users.new_field_name')) {
    JHtml::register('users.new_field_name', array(__CLASS__, 'new_field_name'));
    }
    Step 05: Added this public static function later in the profile.php file:

    public static function new_field_name($value)
    {
    if ($value) {
    return JText::_('JYES');
    }
    else {
    return JText::_('JNO');
    }
    }
     
    mojjammal, Jul 28, 2013 IP
  4. Spartan480

    Spartan480 Greenhorn

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    to make this simplier you can get free custom profile extensions that can help you add extra fields
     
    Spartan480, Sep 5, 2013 IP
  5. rgblogs

    rgblogs Active Member

    Messages:
    239
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    There is already a plugin available with default Joomla 2.5. Go to Plugin Manager --> user - Profile

    If you need more advanced, then use Community Builder. I am using this for more that 4 years.
     
    rgblogs, Sep 10, 2013 IP