1
Arowana
Select the level of strictness for username filtering
  • 2004/10/24 6:01

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


Is there any way to set "Select the level of strictness for username filtering" to only have letters? I have a problem with people signing up with 343432 234234 2342399r9 and such


Thanks for your time

2
Arowana
Re:Select the level of strictness for username filtering
  • 2004/10/25 14:57

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


wow slow weekend? Anyone have an idea on this?

3
ackbarr
Re:Select the level of strictness for username filtering

No. The highest strictness available is alpha + numerics. If you wanted to modify this, you'd need to hack /register.php in the function userCheck:
switch ( $xoopsConfigUser['uname_test_level'] ) {
    case 
0:
        
// strict
        
$restriction '/[^a-zA-Z0-9_-]/';
        break;


Change to:
switch ( $xoopsConfigUser['uname_test_level'] ) {
    case 
0:
        
// strict
        
[color=000080][b]$restriction '/[^a-zA-Z_-]/';[/b][/color]
        break;

4
Stewdio
Re:Select the level of strictness for username filtering
  • 2004/10/25 15:31

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


There is no telling what this will do to existing accounts with numbers in them. Back up your changes first.

5
ackbarr
Re:Select the level of strictness for username filtering

well, since userCheck() is only called during the execution of register.php, I think it is clear that existing user accounts will not be modified. This modification will not prevent an admin from adding a alpha-numeric username in System -> Edit Users, only users registering using register.php

6
Arowana
Re:Select the level of strictness for username filtering
  • 2004/11/2 5:13

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


I am deleting them I am a bassfish anyways

7
Arowana
Re:Select the level of strictness for username filtering
  • 2005/1/22 20:05

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


OK that is working like a champ, wondering where do I go to change the error message that shows up in red at the top.

Currently is tells the user

ERROR: Invalid Username


I would like it to say

ERROR: Invalid Username - Letters Only Please

Thanks for all your help

8
Antoine
Re:Select the level of strictness for username filtering
  • 2005/1/22 20:56

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Open: /language/english/user.php

And change:

define('_US_INVALIDNICKNAME','ERROR: Invalid Username');


To read:

define('_US_INVALIDNICKNAME','ERROR: Invalid Username - Letters Only Please');

Login

Who's Online

343 user(s) are online (280 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits