i don't want user to have certain nickname like events,articles,photos...etc..... how to restrict users from creating such nickname
i don't want user to have certain nickname like events,articles,photos...etc..... how to restrict users from creating such nickname |
this is good idea! names such as ADMIN or WEBMASTER or ROOT shoul also be in the "blacklist" I'll see what i can find on this. |
User's name is unique... So, as an emergency solution, you can create some fake users with the nicknames you don't want to be used, then suspend the profiles you created.
Hope someone will come here with a more elegant solution ;-) Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine. |
by the way i came across the fix for this: return ( preg_match( '/^[a-zA-Z0-9]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) and !strstr($arg0,"admin") and !strstr($arg0,"administrator") and !strstr($arg0,"owner") and !strstr($arg0,"webmaster") and !strstr($arg0,"info") and !strstr($arg0,"visitor") and !strstr($arg0,"guest")); Add the above code in Fields builder ->"NICKNAME" box -> Advanced -> Check. basicly keep adding the line and !strstr($arg0,"MYBADWORD") and changing MYBADWORD to suit your need -goodluck |