Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
werdz
New Member
New Member



Joined: Jan 09, 2005
Posts: 2

PostPosted: Sun Jan 09, 2005 1:34 pm Reply with quote

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 Sad Any ideas? Thxs
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Jan 09, 2005 2:36 pm Reply with quote

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 
View user's profile Send private message
werdz







PostPosted: Sun Jan 09, 2005 2:54 pm Reply with quote

Can he post here the solution? Thxs this will help me and others in the future Smile
 
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sun Jan 09, 2005 4:31 pm Reply with quote

in your auth.php find this code
Code:
require_once("mainfile.php");

global $prefix, $db;
if (eregi("auth.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
    if (ereg("[^a-zA-Z0-9  _-]",trim($aid))) {




you will see this line
Code:
    if (ereg("[^a-zA-Z0-9  _-]",trim($aid))) {


you place the charators you want to allow inside the brackets.
Code:
[^a-zA-Z0-9  _-]

_________________
Themes BB Skins
http://www.jaded-designs.com
Graphic Tees
http://www.cafepress.com/jadeddesigns
Paranormal Tees
http://www.cafepress.com/HauntedTees
Ghost Stories & More
http://www.hauntingtales.net 
View user's profile Send private message Visit poster's website
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Wed Jan 12, 2005 3:59 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
TheosEleos







PostPosted: Sun Jan 23, 2005 1:40 pm Reply with quote

Ok, I'm messing with this thing on my site, again. ROTFL

In modules/Your_Account/include/functions.php on line 55 change..

Code:
[^a-zA-Z0-9_-]


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







PostPosted: Sun Jan 23, 2005 1:54 pm Reply with quote

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







PostPosted: Sun Jan 23, 2005 2:09 pm Reply with quote

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







PostPosted: Tue Mar 01, 2005 7:49 am Reply with quote

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
New Member



Joined: Feb 28, 2005
Posts: 7

PostPosted: Wed Mar 02, 2005 12:47 am Reply with quote

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
 
View user's profile Send private message
Illusion







PostPosted: Wed Mar 02, 2005 1:28 am Reply with quote

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







PostPosted: Wed Mar 02, 2005 2:37 am Reply with quote

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







PostPosted: Wed Mar 02, 2005 7:01 am Reply with quote

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

PostPosted: Wed May 25, 2005 10:50 pm Reply with quote

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
 
View user's profile Send private message
psi







PostPosted: Thu May 26, 2005 12:33 am Reply with quote

What i want to add are these to my site « R²» and § but its not working for me
 
menelaos61
Worker
Worker



Joined: Nov 10, 2004
Posts: 110

PostPosted: Thu Jun 02, 2005 6:17 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
which
New Member
New Member



Joined: Jun 03, 2004
Posts: 5

PostPosted: Mon Jun 06, 2005 5:13 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

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 ©