Author |
Message |
werdz
New Member


Joined: Jan 09, 2005
Posts: 2
|
Posted:
Sun Jan 09, 2005 1:34 pm |
|
Any idea of how to allow {}# etc in the name of users that register to my site? I have tried having them join normal, then chg them with admin power and no luck Any ideas? Thxs |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sun Jan 09, 2005 2:36 pm |
|
Check with TheosEleos he's gone threw this a few times. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
werdz

|
Posted:
Sun Jan 09, 2005 2:54 pm |
|
Can he post here the solution? Thxs this will help me and others in the future  |
|
|
|
 |
jaded
Theme Guru

Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Sun Jan 09, 2005 4:31 pm |
|
|
|
 |
TheosEleos
Life Cycles Becoming CPU Cycles

Joined: Sep 18, 2003
Posts: 960
Location: Missouri
|
Posted:
Wed Jan 12, 2005 3:59 pm |
|
sixonetonoffun wrote: | Check with TheosEleos he's gone threw this a few times. |
I have messed with that some but I finally went back to just standard. The problem with messing with that stuff is it will make it so people can use ( and ) in their names. Then when they go to sign in Sentinel would ban them from the site.
I put in a request with the CNB YA people to add the function to specify special characters in user names. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
TheosEleos

|
Posted:
Sun Jan 23, 2005 1:40 pm |
|
Ok, I'm messing with this thing on my site, again.
In modules/Your_Account/include/functions.php on line 55 change..
to
Code:[^a-zA-Z0-9_-\[\]\{\}]
|
Nuke let me register the username [test]{TEST} but I get this error when I go to the 'final step' page to verify my name and email.
Quote: | Warning: ereg(): REG_ERANGE in /home/srhrht/public_html/phenylshouse/modules/Your_Account/includes/functions.php on line 55
|
I'm not sure what the problem is.
Here is the entire line 55 after the code change.
Code:if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-\[\]\{\}]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
|
|
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Jan 23, 2005 1:54 pm |
|
I think its reading this as a range _-\ which is causing there error but I didn't test that.
There are some reg expression testers around you might want to test with one of those they are simple form based checks. |
|
|
|
 |
TheosEleos

|
Posted:
Sun Jan 23, 2005 2:09 pm |
|
I changed it to [\[\]\{\}^a-zA-Z0-9_-] and the error went away.
Nuke filtered out the {} in the activation email though. Is that email sent out by CNBYA or nuke? |
|
|
|
 |
sixonetonoffun

|
Posted:
Tue Mar 01, 2005 7:49 am |
|
I think in the new_finish file it would be $ya_user_email = ya_fixtext($ya_user_email); changing it.
Can comment it out and check it. I'd use at least something like
if ( !get_magic_quotes_gpc() ) {
$ya_user_email = addslashes($ya_user_email);
} |
|
|
|
 |
Illusion
New Member


Joined: Feb 28, 2005
Posts: 7
|
Posted:
Wed Mar 02, 2005 12:47 am |
|
Ok the Issue I am coming up with here is the user was able to register just fine... I personally activated his account..
however his username being (b)Reef Encounter It comes up after signing it and says
The html tags you attempted to use are not allowed
[ Go Back ]
http://domain.com/modules.php?name=Your_Account&op=userinfo&bypass=1&username=(b)reef%20Encounter Is the webaddress that shows.. Sentinental was banning him when he tried to sign in as well... I am soo frustrated but not as bad as the user is please help..
James |
|
|
|
 |
Illusion

|
Posted:
Wed Mar 02, 2005 1:28 am |
|
also I tried to REgister an account with the Username Test test and everything went fine until the email came...
this is the Email link...
http://domain.org/modules.php?name=Your_Account&op=activate&username=test test&check_num=aeae61ea6336dcb3bd814b7d606feaa6
It didnt add the proper character in the link for the space... therefor the link comes seperated..
James |
|
|
|
 |
Illusion

|
Posted:
Wed Mar 02, 2005 2:37 am |
|
Ok after some Digging I was able to Correct the Html Tag not allowed issue however If I have Script block turned on in Sentinetal it bans the user... SO I need to get that figured out.. As well as the Email sent to the user where it breaks it up and I am set..
James |
|
|
|
 |
sixonetonoffun

|
Posted:
Wed Mar 02, 2005 7:01 am |
|
These chars and spaces are stripped out for a reason. You'll have to do something like
$ya_user_email = str_replace(" ", "%20", $ya_user_email); on the finish page and then you'll have to edit all the login functions to translate it back. You could use urlencode and urldecode but that can create issues of its own. |
|
|
|
 |
psi
Hangin' Around

Joined: Dec 06, 2004
Posts: 38
|
Posted:
Wed May 25, 2005 10:50 pm |
|
I have looked for these strings and can not find them? i got pnp with this mod already installed and all my users names and the special characters though out the site are all messed up now?
What can i do?
Thanks |
|
|
|
 |
psi

|
Posted:
Thu May 26, 2005 12:33 am |
|
What i want to add are these to my site « R²» and § but its not working for me |
|
|
|
 |
menelaos61
Worker


Joined: Nov 10, 2004
Posts: 110
|
Posted:
Thu Jun 02, 2005 6:17 am |
|
Special Characters is something we will look into in the future but is not on our priority list. If someone else has any suggestions of course we would like to include your mod in CNBYA. |
|
|
|
 |
which
New Member


Joined: Jun 03, 2004
Posts: 5
|
Posted:
Mon Jun 06, 2005 5:13 pm |
|
menelaos61 wrote: | Special Characters is something we will look into in the future but is not on our priority list. If someone else has any suggestions of course we would like to include your mod in CNBYA. |
i think it is very importment to put spec character as a login name.
because of some language need to.
if users use chinese or japanse to register a name, without it , it will cause problems.
but now maybe fo security issue, i only allow number and letter as a login name. |
|
|
|
 |
|