Add custom fields to registration form in Joomla

Finally after long time of search for a solution in how to add custom fields to registration form in Joomla i think there where no solution except change in main core of  joomla but i created a solution by myself i hope it can help you:

1- Download the Chronoforms_V4_RC3.5.2.5_J3.0 Joomla componant from here

2- create a Custome Form you want to be your registration form and click on Forms manger to show the link for front end view

3- Now you need to add the custome field to Database as columns to add the data in form this can do by open database then the users tabel(#__users) and add the fields you need and its type

4- now all you need to add data to 2 tables in database (#__users) and (#__user_usergroup_map ) and you can do this by add some lines of code to 2 functions in the plugin as following:

4.1- open the file : <You project Work space >/components/com_chronoforms/libraries/chronoform.php

4.2-(Note: if you want to add Password Field only use this point) Search for function _set_form_data() add the following lines of code if you want to add password as it is encrypted by MD5 + salt:

/* * Start */

$salt = JUserHelper::genRandomPassword(32); $crypt = JUserHelper::getCryptedPassword($this->data[“password”], $salt); $password = $crypt . ‘:’ . $salt; $this->data[“password”] = $password; /* * End */ 4.3- Search for function process($event = null) and add the following code after the line “$return = $this->_processEvents($event, $events[‘events’]);” /* * Start */ $db =& JFactory::getDBO(); $query = “INSERT INTO `#__user_usergroup_map` (user_id,group_id) VALUES (‘”.$this->data[“chronoform_data”][“id”].”‘, 2)”; $db->setQuery( $query ); $db->query();

/* * End */


Reorder Menu Item In WordPress Admin

You can reorder the Admin menu items in wordpress in 2 cases as following:

1- Current Menu Items:

You can reorder current menu items by Adding the following function to wp-content/themes/Your Theam Folder/functions.php:

   function custom_menu_order($menu_ord) {
       if (!$menu_ord) return true;
       return array(
        'index.php', // this represents the dashboard link
        'edit.php', //the posts tab
        'upload.php', // the media manager
        'edit.php?post_type=page', //the posts tab
   add_filter('custom_menu_order', 'custom_menu_order');
   add_filter('menu_order', 'custom_menu_order');

2- Custome Menu Items Created by Hooks (Add New Menu Item In WordPress Admin):

Add New Menu Item In WordPress Admin

You can add Menu Items to admin in wordpress without use a plugin by using Hooks as following:

1- The function you will use For Menu Item is “add_menu_page();”


add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );


For more details about Function param visit: Add Menu Wordpress Codex

2-  The function you will use For SubMenu Item is “add_submenu_page();”


add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function );


For more details about Function param visit: Add Submenu Wordpress Codex


*   Example for menu & submenu Items:

function my_menu_pages(){
add_menu_page(‘My Page Title’, ‘Homepage’, ‘manage_options’, ‘cat9’, ‘my_menu_output’,’/wp-admin/images/generic.png’,’4.1′);
      add_submenu_page(‘cat9’, ‘Homepage Slides’, ‘Homepage Slides’, ‘manage_options’, ‘edit.php?cat=20’);

add_action(‘admin_menu’, ‘my_menu_pages’);


* End