NATS4 Username Recommendations

From TMM Wiki
Revision as of 14:25, 18 May 2011 by TMMStephenY (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Skins and Templates Admin
The Skins and Templates Admin
Skins
Templates
Site Templates
Language Skins
Language Files
custom_errors.php
Join Page Variables
Skipping NATS Join Form
Post URL Variables
Member Usernames & Passwords
Form Validation
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Random Usernames and Passwords
Smarty
Smarty print array
Smarty Plugins
Available Smarty Functions
Affiliate Support Template
Adding a Verification Image
Custom Program and Campaign Selection Pages
Output An Affiliate's Last Paid Date
Affiliate Signup Email
Affiliate Join Page Linkcodes
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
CSS Theme Builder

NATS4 has the ability to recommend new usernames to surfers. This allows you to automatically provide alternatives if the name the surfer has selected is already in use. You can display these recommendations by adding the following code to your join page template:

{if $vars.recommended}
The username you entered was taken, please try one of these.<br />
{foreach from=$vars.recommended item="usernameR"}
{$usernameR}
{/foreach}
{/if}

Changing Your Default Settings

By default, NATS will generate four username recommendations. If you want to disable username recommendations, you can either uncheck the MEMBER_GET_NEW_USERNAME option in the Configuration Admin in the "Surfer Configuration" section or set your MEMBER_GET_USERNAME configuration variable to 0. You can find your MEMBER_GET_USERNAME configuration variable in your NATS configuration file, nats/config.php.

MEMBER_GET_USERNAME Configuration Admin Setting

You can also set the value of MEMBER_GET_USERNAME in your NATS configuration file to generate a chosen number of username recommendations. MEMBER_GET_NEW_USERNAME supports values between zero and 25. For example, if you set your value to "25", NATS will generate 25 different username recommendations.