1
egyptian
registration with Arabic names and spaces
  • 2009/10/27 20:31

  • egyptian

  • Just popping in

  • Posts: 28

  • Since: 2008/8/3 7


how i can register with Arabic names and spaces?

2
wishcraft
Re: registration with Arabic names and spaces

You will need to change the username field to one that support UNICODE (That is UTF-8, UTF16, UTF32)

If you look at object.php there is options for UNICODE fields.. THis will allow you to use any extended or escaped language like Arabic.

3
onasre
Re: registration with Arabic names and spaces
  • 2009/10/27 23:42

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


For this there is two steps you need to follow.

1- File userutility.php under class Go line 152

$restriction = '/[^a-zA-Z0-9_-]/';

after Number 9 add space
$restriction = '/[^a-zA-Z0-9 _-]/';

and do same for line 156
$restriction = '/[^a-zA-Z0-9_-<>,.$%#@!\'']/';

after 9 add space

$restriction = '/[^a-zA-Z0-9 _-<>,.$%#@!\'']/';


and line 140 change number 40 to 37

$restriction = '/[00-40]/';

to
$restriction = '/[00-37]/';


2- From the admin Panel Go to
Preferences Main »» User Info Settings

then 'Select the level of strictness for username filtering'

and from the drop down select .
light (recommended for multi-byte chars)

For arabic support to this issue
http://www.arabxoops.com/modules/newbb/viewtopic.php?topic_id=6260&forum=7&post_id=38673#forumpost38673

4
egyptian
Re: registration with Arabic names and spaces
  • 2009/10/28 19:37

  • egyptian

  • Just popping in

  • Posts: 28

  • Since: 2008/8/3 7


thank you it works

5
wishcraft
Re: registration with Arabic names and spaces

Which one did you use they all work, you can always do search and replaces and blow the database. For example in MsSQL a normal varchar(255) is varchar(5000) character.

This is because of MSSQL and MSDE stable environment.

These are the new unicode... PDO Soon...

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits