Guest liquibyte Posted October 2, 2014 Report Share Posted October 2, 2014 I just notice this today. Mixos, installed any new plugins lately? I haven't forgotten the error message thing, I just haven't gotten around to it yet. Quote Link to comment Share on other sites More sharing options...
mixos Posted October 2, 2014 Report Share Posted October 2, 2014 You mean the high number of guest visitors? Quote Link to comment Share on other sites More sharing options...
Guest liquibyte Posted October 2, 2014 Report Share Posted October 2, 2014 You mean the high number of guest visitors?No, audioguru's on there twice. I checked the profile page for both usernames and it was him twice and not a spoof or anything. Quote Link to comment Share on other sites More sharing options...
Guest liquibyte Posted October 2, 2014 Report Share Posted October 2, 2014 I finished the code you wanted me to do. Here's what you need to change in order to deny usernames with odd characters.In /Sources/Subs-Members.php find these lines (around line 500)... // No name?! How can you register with no name? if (empty($regOptions['username'])) $reg_errors[] = array('lang', 'need_username'); ...and add this just after it. // Check if it's only a..z, A..Z, 0..9 if ( preg_match("/[^-a-z-A-Z0-9_ .]/i", $regOptions['username']) ) { $reg_errors[] = array('lang', 'bad_username'); } and then for the error message, in /Themes/default/languages/Login.english.php in the section "// Registration form." add this line. $txt['bad_username'] = 'Usernames can only contain alphanumeric characters and dashes or underscores';Now RTL languages and extended UTF8 characters can't be used to sign up accounts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.