{"id":16533,"date":"2012-01-20T14:20:09","date_gmt":"2012-01-20T14:20:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-user-registration\/"},"modified":"2012-07-02T18:08:56","modified_gmt":"2012-07-02T18:08:56","slug":"custom-user-registration","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-user-registration\/","author":7795090,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.4","stable_tag":"trunk","tested":"3.3.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Custom User Registration","header_author":"atlanticbt, zaus, heyoka","header_description":"","assets_banners_color":"","last_updated":"2012-07-02 18:08:56","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/atlanticbt.com","header_plugin_uri":"http:\/\/www.atlanticbt.com\/blog\/?p=4446","header_author_uri":"http:\/\/www.atlanticbt.com","rating":0,"author_block_rating":0,"active_installs":60,"downloads":16931,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>None<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2"],"block_files":[],"assets_screenshots":{"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573784","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573784","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573784","resolution":"2","location":"plugin"}},"screenshots":{"1":"Customized login page (via <a href=\"http:\/\/wordpress.org\/extend\/plugins\/buddypress\/\" title=\"BuddyPress forum login\">BuddyPress<\/a> forums)","2":"Simple admin settings.","3":"Customized thank-you page"}},"plugin_section":[],"plugin_tags":[602,5134],"plugin_category":[38],"plugin_contributors":[80259,93023,88334,80258],"plugin_business_model":[],"class_list":["post-16533","plugin","type-plugin","status-closed","hentry","plugin_tags-login","plugin_tags-user-registration","plugin_category-authentication","plugin_contributors-atlanticbt","plugin_contributors-heyoka","plugin_contributors-tnblueswirl","plugin_contributors-zaus","plugin_committers-atlanticbt","plugin_committers-tnblueswirl","plugin_committers-zaus"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-user-registration.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-user-registration\/trunk\/screenshot-1.png?rev=1573784","caption":"Customized login page (via <a href=\"http:\/\/wordpress.org\/extend\/plugins\/buddypress\/\" title=\"BuddyPress forum login\">BuddyPress<\/a> forums)"},{"src":"https:\/\/ps.w.org\/custom-user-registration\/trunk\/screenshot-2.png?rev=1573784","caption":"Simple admin settings."},{"src":"https:\/\/ps.w.org\/custom-user-registration\/trunk\/screenshot-3.png?rev=1573784","caption":"Customized thank-you page"}],"raw_content":"<!--section=description-->\n<p>Customize the user registration page with additional validated fields.  Hooks right into existing parts of the registration process.<\/p>\n\n<p>Provides a number of hooks to allow further customization: fields, validation, email header\/message\/template, custom signup url (if used with other plugins like BuddyPress).<\/p>\n\n<p>Works with anything using the regular WP register hooks, like <a href=\"http:\/\/wordpress.org\/extend\/plugins\/buddypress\/\" title=\"BuddyPress forum login\">BuddyPress<\/a> and <a href=\"http:\/\/wordpress.org\/extend\/plugins\/prospress\/\" title=\"Prospress Auction Plugin\">Prospress<\/a>.<\/p>\n\n<p>Parts of the functionality in this plugin are based on <a href=\"http:\/\/planetozh.com\/blog\/2009\/05\/handling-plugins-options-in-wordpress-28-with-register_setting\/\" title=\"Ozh' Sample Options\">Ozh' \"Sample Options\"<\/a>.<\/p>\n\n<h3>Hooks<\/h3>\n\n<ol>\n<li><code>abt_custom_login_nometa<\/code>\ndetermine which fields are not treated as usermeta, but instead directly on user table\nformat: pipe-separated, default = <code>'|user_url|display_name|'<\/code><\/li>\n<li><code>abt_custom_login_fields<\/code>\nadd or remove additional login fields<\/li>\n<li><code>abt_custom_login_extra_validation<\/code>\napply extra validation, return whether it has errors or not - uses $has_errors, $key, $attr, $post<\/li>\n<li><code>abt_custom_login_has_errors<\/code>\ndo something with the errors instead of saving the field<\/li>\n<li><code>abt_custom_login_email_templates<\/code>\nadjust default template names<\/li>\n<li><code>abt_custom_login_email_headers<\/code>\nchange default email headers<\/li>\n<li><code>abt_custom_login_email_message<\/code>\nchange email message before it's sent to user<\/li>\n<li><code>abt_custom_register_url<\/code>\nchange where the form redirects to on error; not completely working, so please rely on the admin option instead.<\/li>\n<li><code>abt_custom_register_admin_settings<\/code>\nadd more admin settings (using <code>WP_Options_Page<\/code> class)<h3>About AtlanticBT<\/h3>\nFrom <a href=\"http:\/\/www.atlanticbt.com\/company\" title=\"The Company Atlantic BT\">About AtlanticBT<\/a>.<\/li>\n<\/ol>\n\n<h4>Our Story<\/h4>\n\n<blockquote>\n  <p>Atlantic Business Technologies, Inc. has been in existence since the relative infancy of the Internet.  Since March of 1998, Atlantic BT has become one of the largest and fastest growing web development companies in Raleigh, NC.  While our original business goal was to develop new software and systems for the medical and pharmaceutical industries, we quickly expanded into a business that provides fully customized, functional websites and Internet solutions to small, medium and larger national businesses.<\/p>\n  \n  <p>Our President, Jon Jordan, founded Atlantic BT on the philosophy that Internet solutions should be customized individually for each client?s specialized needs.  Today we have expanded his vision to provide unique custom solutions to a growing account base of more than 600 clients.  We offer end-to-end solutions for all clients including professional business website design, e-commerce and programming solutions, business grade web hosting, web strategy and all facets of internet marketing.<\/p>\n<\/blockquote>\n\n<h4>Who We Are<\/h4>\n\n<blockquote>\n  <p>The Atlantic BT Team is made up of friendly and knowledgeable professionals in every department who, with their own unique talents, share a wealth of industry experience.  Because of this, Atlantic BT always has a specialist on hand to address each client?s individual needs.  Due to the fact that the industry is constantly changing, all of our specialists continuously study the latest trends in all aspects of internet technology.   Thanks to our ongoing research in the web designing, programming, hosting and internet marketing fields, we are able to offer our clients the most recent and relevant ideas, suggestions and services.<\/p>\n<\/blockquote>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin folder <code>custom-user-registration<\/code> to your plugins directory (<code>\/wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate plugin<\/li>\n<li>Go to new admin page <em>User Login - ABT<\/em> and change the registration url, if needed.<\/li>\n<\/ol>\n\n<p>Please note that this includes an instance of <code>Singleton<\/code> and <code>WP_Options_page<\/code>, both taken from the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-dev-library\/\" title=\"Wordpress Developer Library Plugin\">WP-Dev-Library<\/a> plugin, so if you are also using that plugin please be aware of potential conflicts.  This plugin checks for the existance of those classes before including files, so if you experience any issues you can remove those lines.<\/p>\n\n<!--section=faq-->\n<p>NOTE: All hooks should be placed In your theme's functions.php file.<\/p>\n<dl>\n<dt>How do I add extra fields?<\/dt>\n<dd><ul>\n<li>Use the hook <code>abt_custom_register_fields<\/code>.  Append or replace items in the <code>$fields<\/code> array with an array of attributes.<\/li>\n<li>Specify validation with <code>data-validation<\/code>.  See plugin file for examples of password and name fields.<\/li>\n<li>Make sure that, if you're providing default WP fields, that the field names are correct.<\/li>\n<\/ul>\n\n<pre>\nfunction YOUR_register_fields($fields){\n    $fields []= array('name'=&gt;'user_url', 'type'=&gt;'text', 'class'=&gt;'input url', 'size'=&gt;20, 'label'=&gt;'Your Website', 'data-validation'=&gt;'url');\n    $fields []= array('name'=&gt;'aim', 'type'=&gt;'text', 'class'=&gt;'input social-client', 'size'=&gt;20, 'label'=&gt;'AIM', 'data-validation'=&gt;'alphanumeric');\n\n    \/\/ set name required\n    $fields[3]['data-validation'] = array('required', 'string');\n\n    return $fields;\n}\nadd_filter('abt_custom_register_fields', 'YOUR_register_fields');\n<\/pre><\/dd>\n<dt>How do I change the email?<\/dt>\n<dd><p>** Headers **:<\/p>\n\n<pre>\nfunction YOUR_register_email_headers($headers){\n    $headers []= 'Bcc:youremail@domain.com';\n    return $headers;\n}\nadd_filter('abt_custom_register_email_headers', 'YOUR_register_email_headers');\n<\/pre>\n\n<p>** Template **:\nJust copy <code>email-signup.tpl.php<\/code> from the plugin folder to your theme folder.  Or use the hook <code>abt_custom_login_email_templates<\/code>.<\/p><\/dd>\n<dt>How do I customize my thank-you message?<\/dt>\n<dd><p>On your custom thank-you page, add something like the following:<\/p>\n\n<pre><code>    \/\/ check if we had a successful signup - indicated by a notification in session\n        $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL;\n        if( false !== strpos($referer, 'action=register')\n            || (\n                true === ABT_Custom_User_Access::flash_var('notification')\n            )){\n                ?&gt;\n                &lt;p&gt;Thank you for registering!  Please check your email for a confirmation message.&lt;\/p&gt;\n                &lt;?php\n                \/\/ clear the flash message\n                ABT_Custom_User_Access::flash_var(false);\n        }\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.4<\/h4>\n\n<p>Fixed some conflicts between Custom User Registration and WP-Library plugins<\/p>\n\n<h4>0.3<\/h4>\n\n<p>Changed function names to avoid conflicts (kv() and v() are now abt_kv() and abt_v() respectively)<\/p>\n\n<h4>0.2<\/h4>\n\n<p>Cleaned up for registration-agnostic page<\/p>\n\n<h4>0.1<\/h4>\n\n<p>Pulled from wp-auction plugin.<\/p>","raw_excerpt":"Customize the user registration page with additional validated fields.  Hooks right into existing parts of the registration process.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16533"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/zaus"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16533"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16533"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16533"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16533"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16533"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}