How Do I stop a new user from making a account using the user name Adam with out making an account for every name i dont want them to use in Dolphin 7.1
How Do I stop a new user from making a account using the user name Adam with out making an account for every name i dont want them to use in Dolphin 7.1 |
No. He wants to stop people from using specific user names. https://www.deanbassett.com |
Great, another module in the market that should not be there because it has not been checked and updated by the vendor for 3 years. https://www.deanbassett.com |
I disagreed, it should be there. Otherwise, some of us wouldn't be able to figure it out on our own. Based on free download... I have made modification and minor fixed from there. I have changed from "DontUsedNickName" to "UsernameRestriction" phpMyAdmin> sys_profile_fields find ID 2 and click edit, go to Check return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) ); change to return ( UsernameRestriction($arg0) and preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );
inc/design.inc.php add this at the end
function UsernameRestriction($NickName) { $ausernamerestriction[] = "support"; $ausernamerestriction[] = "administrator"; $ausernamerestriction[] = "admin";
/* you can add more values here example : $ausernamerestriction[] = "<your values>"; */
foreach($ausernamerestriction as $aKey => $aValue) { if ( strpos("ZYX".$NickName,$aValue) > 0 ) return false; } return true; }
Clear Cache All
I tried case sensitive and still able to register. Is there an easier fix or do we have to add "Support, Admin, Administrator, SUPPORT, ADMIN, ADMINISTRATOR" as well? |
There was an involved discussion on how to have wild cards etc. on the missing mod. You restrict admin, you may want to restrict the_admin, and so on. Geeks, making the world a better place |
LOL, do what I do. Create a nothing account with each name you want to restrict. If it already exists, they can't use it. That's how it goes at Boonex. Ya gotta think inside the box.... http://towtalk.net ... Hosted by Zarconia.net! |
To make it easer can I make accounts in side the Adam settings? I don't think I have that many e-mail address I can use for all the the accounts I would have to set up haha |
To make it easer can I make accounts in side the Adam settings? I don't think I have that many e-mail address I can use for all the the accounts I would have to set up haha No, that is not available. If it was me; I would do it with a php script that uses a query to add them to the database directly. Geeks, making the world a better place |