Lock User Names

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

Quote · 29 Sep 2013

No. He wants to stop people from using specific user names.

Dolphin does not have a way to do that built in. There are some topics on it. A but old tho. http://www.boonex.com/googlesearch/search?q=Restrict+user+names&gse_filter=googlesearch

There was also a free nickname filter in the market. But that no longer seems to exist.

https://www.deanbassett.com
Quote · 29 Sep 2013

http://www.boonex.com/m/NickName_Restriction_2010_01_18

Quote · 29 Sep 2013

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
Quote · 29 Sep 2013

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?

Quote · 29 Sep 2013

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
Quote · 29 Sep 2013

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!
Quote · 29 Sep 2013

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

Quote · 29 Sep 2013

 

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
Quote · 30 Sep 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.