Apparently if a user signs up for an account with only numbers in it the system will not allow their profile to be shown because it will search for the number as a user ID.
http://tinyurl.com/5wl8ga
Apparently if a user signs up for an account with only numbers in it the system will not allow their profile to be shown because it will search for the number as a user ID. |
I'm still gettign users trying to create numbered profiles. |
Nick name is unique and email address is unique... What fix are you talking about ??? Which other criteria do you like to check ??? Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine. |
I'm talking about this: http://tinyurl.com/6eyagd and is: http://tinyurl.com/5wl8ga |
Well no fix for this yet but at least we have a shiny new Boonex logo! |
Well no fix for this yet but at least we have a shiny new Boonex logo! tripping over small stuff, i could almost assure you that nobody is going to create an account with numbers only. open the registration file and put a * use alpha numeric in your username creation please. later, When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
The 2 links I pointed you to are real users that created profiles with numbers only.... |
still an unsolved mystery? |
I would like to know how to fix this to. There are always strange people that want strange usernames. Also does anyone know how to stop members useing _ or - in thier usernames? |
What does the SQL Table say for that User? Very interesting issue. And if you don't mind will you uncheck the friend profile box and see if those profiles can be seen in the standard ID mode.? I don't want to disrupt your community so whenever you want is good, but let me know if after unchecking friendly profile urls/pages if that resolves the membername by numbers issue and the profile returns. If so...then I know were to look in the code :)
Thanks |
Hi there, I think the best way to go would be to put a little bit of php code into the nickname block in the field builder. I'm no good with php so I'm not sure how to do it but I do know how to get rid of words you don't wont people to use as nicknames. like admin or swear words like fuck. http://www.boonex.com/unity/forums/topic/Block-Certain-Nicknames.htm hope that helps. J |
See http://www.boonex.com/unity/forums/topic/Block-Certain-Nicknames.htm |
Okay, for all wanting a fix to this - it's simple - for ALL versions of dolphin, open profiles.inc.php in your /inc directory - goto approx. line 260 find the function conf_nick($nick, $ID = 0 ) - find: if (file_exists($dir['root'].$nick)) Change to: if (file_exists($dir['root'].$nick) || is_numeric($nick)) This will stop all registrations with only numbers - it will never clear the check. As always, simple and sweet - php is the instrument, I'm the artist :) Chris For Dolphin 6.1.4: if (file_exists(BX_DIRECTORY_PATH_ROOT.$nick) || is_numeric($nick)) :) |
In v6.1.4 profiles.inc.php on line 527 |
I have a similar problem. I get an Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/xxxxxx/public_html/inc/profiles.inc.php on line 264 264 looks like this: 264 if (file_exists(BX_DIRECTORY_PATH_ROOT.$nick)) || is_numeric($nick)) remove that and I get an error on line 271 which is the badnick code. Removed code updates and all works well. Stuart There are none so blind as those that will not see. |
Hmmm.... interesting. Sounds as if you maybe changed the check - did you modify your return ------- whatever in the profile builder? |
Hmmm.... interesting. Sounds as if you maybe changed the check - did you modify your return ------- whatever in the profile builder? Modify return in profile builder.... There are none so blind as those that will not see. |
Stuart - you have one too many ')' - thats the error. Badnick code gives an error? Please tell me and I'll correct it. |
Stuart - you have one too many ')' - thats the error. Badnick code gives an error? Please tell me and I'll correct it. His is exactly the same as mine which is exactly the same as yours??? |
Stuart - you have one too many ')' - thats the error. Badnick code gives an error? Please tell me and I'll correct it. His is exactly the same as mine which is exactly the same as yours??? No, his had an extra ) after $nick)) - if you look, which causes the php error. I know it works - goto www.convictionscommunity.com/join_form.php and enter any numeric nick, click check nickname availability - it will not allow it. The only thing I can think of is your check isn't looking at the conf_nick function.... what does it say for this in your database... use phpMyAdmin - table 'ProfilesDesc' look for 'NickName' - copy and paste your 'check' row under that column so I can see - if it returns the conf_nick function, my code will work. Chris :) |
Stuart - you have one too many ')' - thats the error. Badnick code gives an error? Please tell me and I'll correct it. Ok, this is the error I am getting: Parse error: syntax error, unexpected '{' in /home/connect/public_html/inc/profiles.inc.php on line 278 Code:
Stuart There are none so blind as those that will not see. |
There is no table 'table 'ProfilesDesc' ..... return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 )...
|
Yes, sorry - I have multiple versions of dolphin on my server - the fix is under the other post.... hold on... Okay - goto admin panel, field builder, click NickName, advanced - replace this: return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) ); with return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) && conf_nick($arg0) ); That should fix everything - including my quick bad nickname filter I wrote under that other post. EVERYONE needs to change this.... Stuart... Your missing a ) - You sure like either adding or subtracting them.. lol - the line should be: if (lookUpByArray($badNicks, $nick)){return false;} not if (lookUpByArray($badNicks, $nick){return false;} :) Now - all will work :) |
It is all now working, including my quick bad nick filter right? Just making sure before I go tonight... Chris |
:-))
Well it appears to be working now!!
Many thanks.
Stuart There are none so blind as those that will not see. |
That works for the numeric nickname ..... will it also work for directory names as in other post? |
That works for the numeric nickname ..... will it also work for directory names as in other post? Second that! There are none so blind as those that will not see. |
Yes, the directory check is part of the conf_nick function so it will not allow a nickname with a directory in the root of your site.... :) Chris |
Thanks Topher we need your type of users... because we not all are programmers or have knowledge of php :) Kids first |
Yes, sorry - I have multiple versions of dolphin on my server - the fix is under the other post.... hold on... Okay - goto admin panel, field builder, click NickName, advanced - replace this: return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) ); with return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) && conf_nick($arg0) ); That should fix everything - including my quick bad nickname filter I wrote under that other post. EVERYONE needs to change this.... Stuart... Your missing a ) - You sure like either adding or subtracting them.. lol - the line should be: if (lookUpByArray($badNicks, $nick)){return false;} not if (lookUpByArray($badNicks, $nick){return false;} :) Now - all will work :) hey, i followed the path to get to the fields builder in builders and clicked on the advanced tab, and this is what i see: return !strstr($arg0,"12345") and !strstr($arg0,"1234")and !strstr($arg0,"1111")and !strstr($arg0,"2222")and !strstr($arg0,"3333"); what is that all about? i dont have the line you are saying should be changed. dolphin v6.1.4 later, DosDawg When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
That string you have is a mess :) - just replace that whole thing with mine, add the few changes, and your all good :) As always, simple and sweet - php is the instrument, I'm the artist :) Chris |
i thought it was a mess, i did simply take what you had here, and add it there. i then proceeded to check to see if it stopped a user from registering with all numbers, and i was able to register with just numeric symbols. so i have to figure out what is going on here. what i am getting is if i register with all numeric symbols is a message that the registration was a success. so when i try to login, it says profile error please try again. any help on this would be greatly appreciated. later, DosDawg When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Thanks Topher works great. |