PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
werdz
New Member
New Member


Joined: Jan 09, 2005
Posts: 2

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

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: 2499

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

Check with TheosEleos he's gone threw this a few times.
View user's profile Send private message
werdz
New Member
New Member


Joined: Jan 09, 2005
Posts: 2

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

Can he post here the solution? Thxs this will help me and others in the future Smile
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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  _-]
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 Back to top

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


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

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

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>";
View user's profile Send private message Visit poster's website AIM Address ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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.
View user's profile Send private message
TheosEleos
Life Cycles Becoming CPU Cycles


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

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

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?
View user's profile Send private message Visit poster's website AIM Address ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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);
}
View user's profile Send private message
Illusion
New Member
New Member


Joined: Feb 28, 2005
Posts: 7

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

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 ]
Only registered users can see links on this board!
Get registered or login to the forums!
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
New Member
New Member


Joined: Feb 28, 2005
Posts: 7

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

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...

Only registered users can see links on this board!
Get registered or login to the forums!
test&check_num=aeae61ea6336dcb3bd814b7d606feaa6

It didnt add the proper character in the link for the space... therefor the link comes seperated..

James
View user's profile Send private message
Illusion
New Member
New Member


Joined: Feb 28, 2005
Posts: 7

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

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


Joined: Jan 02, 2003
Posts: 2499

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

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


Joined: Dec 06, 2004
Posts: 38

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

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
Hangin' Around


Joined: Dec 06, 2004
Posts: 38

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

What i want to add are these to my site « RČ» and § but its not working for me
View user's profile Send private message
menelaos61
Worker
Worker


Joined: Nov 10, 2004
Posts: 110

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

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 Back to top

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum