DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 24, 2018, 08:32:18 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: How Would I Block Certain Words From Being Used in Character Names at Creation?  (Read 463 times)
0 Members and 1 Guest are viewing this topic.
TGTarheel
Codemeister
****
Offline Offline

Posts: 427


View Profile
« on: January 15, 2018, 08:03:43 AM »

I got a stalker and he keeps using similar words.  I use the blocker and the brendan blocker module, and I require email verification, plus only one email per account.

The guy like has no life and keep finding a way way back.  He's just a pain in the ass.

Is there a way to cause certain words to be rejected ONLY in character names without putting it in the naughty words filter?  

I know, for example, you can't use "account" anywhere in your character name.  That has to be somewhere in the core.  I'd like to add a few things to that.

Guy will probably still find a way, but I'd like to be as much a pain in the ass to him as he is being to me.

I find this code in the create.php file...i wonder if it could be useful...
Code:
if (strlen($shortname)<3){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;


Could we make other lines in there that checks for other values in $shortname?
Any way to do a wildcard...so that no matter where in an account the characters come up...it causes $blockaccount to be set to true?

Ideas??

Like I said, that is the place I have looked not sure where I go from this point though.

example of what I am thinking...
Code:
if (strlen($shortname)="forbidden"){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;

or
Code:
if (strlen($shortname)="*forbi*"){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;


something like that would be helpful.
« Last Edit: January 15, 2018, 08:12:12 AM by TGTarheel » Logged
DarknessFalls
Militia
**
Offline Offline

Posts: 34


View Profile
« Reply #1 on: January 15, 2018, 11:16:22 AM »

Actually, yes. There is a module, called creationaddon that allows you to filter badnames and titles, along with a few other things you may find handy. It gives you the editor option of what badnames and titles you'd like to block from making it happen. It is attached for your convenience.
Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 427


View Profile
« Reply #2 on: January 15, 2018, 01:57:58 PM »

Actually, yes. There is a module, called creationaddon that allows you to filter badnames and titles, along with a few other things you may find handy. It gives you the editor option of what badnames and titles you'd like to block from making it happen. It is attached for your convenience.

Thank you kindly, I shall try it!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
14 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search