Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
dcasmr
Worker
Worker


Joined: Feb 06, 2004
Posts: 147

PostPosted: Thu Mar 02, 2006 6:50 pm Reply with quote

Can anyone show me how to reject automatically certain user ids at registration? I do not want a userid that contains the word lottery for example.

Thanks,
dcasmr
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Mar 02, 2006 10:55 pm Reply with quote

There area couple of ways, but look in modules/Your_Account/index.php in the function userCheck logic and you will see a line like
if (eregi("^((peter_wales)|(root)|(adm)|(linux)|(webmaster)|(admin)|(god)|(administrator)|(administrador)|(nobody)|(anonymous)|(anonimo)|(an�nimo)|(operator))$",$username)) $stop = "<center>"._NAMERESERVED."</center>";
and add code to block "lottery" using regular expressions. You will/may need to tweak it a little to get it to work exactly as you want.
 
View user's profile Send private message
dcasmr
PostPosted: Sun Apr 02, 2006 10:05 am Reply with quote

Thanks Raven! It looks like the solution I am looking for, however, I do not know how to use regular expressions in PHPNUke.
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Apr 02, 2006 2:37 pm Reply with quote

Just add another entry in there
Code:


|(usernamehere)|

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
dcasmr
PostPosted: Sun Apr 02, 2006 3:38 pm Reply with quote

Thanks evaders99. I will test it and let you know. Could that have wildcards to say do not permit any userid containing lottery?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©