This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Username registration to accept underscore _
#1
Exclamation 

Anyone knows how to get the comment Username registration to accept  underscore _ ?

thx !
Reply
#2

Sure in /frontend/model/main/form.php just change this:

PHP Code:
<?php 
if (preg_match('/^[\p{L}&\-\'. 0-9]+$/u', $name)) {

To this:

PHP Code:
<?php 
if (preg_match('/^[\p{L}&_\-\'. 0-9]+$/u', $name)) {

Have you completed the interview?
Reply
#3

thx !
Reply
#4

I have another problem
Usernames must be able to start with numbers

thank you for help
Reply
#5

Okay you'll just need to comment out this line in /frontend/controller/main/form.php

PHP Code:
<?php 
$json
['error']['name'] = $this->data['lang_error_name_start'];

Have you completed the interview?
Reply
#6

thx !
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by noblues
08-Mar-2015, 05:08 PM
Last Post by sandman
26-Jul-2011, 02:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)