{"id":4753,"date":"2014-10-14T23:49:18","date_gmt":"2014-10-15T06:49:18","guid":{"rendered":"http:\/\/digitalaccesspass.com\/doc\/?p=4753"},"modified":"2014-10-19T15:20:22","modified_gmt":"2014-10-19T22:20:22","slug":"username-generation-rules","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/username-generation-rules\/","title":{"rendered":"Username Generation"},"content":{"rendered":"<h2>Username Generation Rules<\/h2>\n<p>If you are on DAP version 4.7 (or above),\u00a0 you can define how you want the username to be generated for your members.<\/p>\n<p>It&#8217;s configurable.<\/p>\n<h3>Please<a href=\"http:\/\/www.digitalaccesspass.com\/blog\/2014\/10\/part8-username-broadcast\" target=\"_blank\"> watch the video here<\/a> for more details.<\/h3>\n<p>DAP will use the options you select for username generation instead of defaulting it to firstname + lastname.<\/p>\n<p>This will apply to Free Registration as well as Paid Products. DAP will use the generated username to sync to WP and to the FREE WP based forums like BBPress, Buddypress, Mingle, SimplePress etc.<\/p>\n<p>Here are some of the use cases :<\/p>\n<h3><strong>1) Pick A Username<br \/>\n<\/strong><\/h3>\n<p>Say you do NOT want the &#8216;username&#8217; to be automatically generated by DAP\u00a0 because of privacy concerns.\u00a0 You want to allow your users to &#8216;Pick&#8217; their own username in their DAP Profile.<\/p>\n<p>Visit DAP Admin =&gt; Setup =&gt; Config =&gt; Username Generation Rules =&gt; Set OPTION 1 to <strong>&#8220;Allow Users To Pick a Username in their DAP Profile (do not auto-generate)&#8221;<\/strong><\/p>\n<p>(do not default the username, allow users to pick a username)<\/p>\n<p><a href=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/pickyourown1.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4769\" src=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/pickyourown1.png\" alt=\"pickyourown\" width=\"419\" height=\"127\" \/><\/a><\/p>\n<p>Also set DAP Setup -&gt; Config -&gt; WordPress Related -&gt; Sync Only if Username Exists in DAP\u00a0 = YES\u00a0 (Only sync to WP if users pick a username in dap profile)<\/p>\n<p>Syncing will ONLY occur after users pick a username in their dap profile page<\/p>\n<p><a href=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/usernamexistssync.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4756\" src=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/usernamexistssync.png\" alt=\"usernamexistssync\" width=\"504\" height=\"204\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><\/h3>\n<h3><\/h3>\n<h3><\/h3>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>2) Automatically generate a username<\/strong><\/h3>\n<p>You can use 3 options in DAP Setup -&gt; config -&gt; Username Generation Rules to allow DAP to auto-generate a username as shown in the image below.<\/p>\n<p>DAP will try the option1 first to generate username for WP sync.<\/p>\n<p>If option1 results in a username that already exists, then DAP will try option 2.<\/p>\n<p>If that also results in conflict, then DAP will try\u00a0 option 3.<\/p>\n<p><a href=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/usernamegen3.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4772\" src=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2014\/10\/usernamegen3.png\" alt=\"usernamegen\" width=\"420\" height=\"197\" \/><\/a><\/p>\n<p>Each option can be set to one of the following:<\/p>\n<p>Set to &#8216;firstname + lastname&#8217;<br \/>\nSet to &#8216;first part of email (before @)&#8217;<br \/>\nSet to &#8216;firstname + lastname + 3 digit random number&#8217;\u00a0 (to prevent username conflict)<br \/>\nSet to &#8216;random alphanumeric string (8 chars)&#8217;<\/p>\n<p>Whether the users signup to a free product or purchase a paid product, DAP will apply these username generation rules and then sync to WP using the generated username instead of defaulting username to &#8216;first+last name&#8217;.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Testing<\/h2>\n<p>1) Visit DAP Admin =&gt; Add Users Page =&gt; Select product -&gt; Add a NEW user with just first name and email.<\/p>\n<p>OR<\/p>\n<p>Complete a NEW purchase like your users would from your sales page.<\/p>\n<p>OR<\/p>\n<p>Complete a FREE Signup using the DAP FREE Signup Form on your site.<\/p>\n<p>2) Now visit DAP Admin -&gt; Users-&gt;Manage page -&gt; Click on the newly created user&#8217;s name -&gt; It will bring up the Edit Users page -&gt; see what the &#8216;USERNAME&#8217; field is set to.<\/p>\n<p>3) It should be set based on your settings in the DAP Admin -&gt; Setup -&gt; Config -&gt; Username generation rules page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Username Generation Rules If you are on DAP version 4.7 (or above),\u00a0 you can define how you want the username to be generated for your members. It&#8217;s configurable. Please watch the video here for more details. DAP will use the options you select for username generation instead of defaulting it to firstname + lastname. This [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/4753"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=4753"}],"version-history":[{"count":18,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/4753\/revisions"}],"predecessor-version":[{"id":4876,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/4753\/revisions\/4876"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=4753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=4753"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=4753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}