PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  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
naughtydog
New Member
New Member


Joined: Apr 17, 2006
Posts: 2

PostPosted: Mon Apr 17, 2006 6:01 pm Reply with quote Back to top

Is there any way to make it so that when someone registers with my site they can use charters like {This} or [This] using the brackets?

I found this in the functions.php is there any way to change this so the {} [] brackets will be useable in a user name?

Code:
function ya_userCheck($username) {
    global $stop, $user_prefix, $db, $ya_config;
    // Need to find a way to include extended caracters
    //if ((!$username) || ($username=="") || (ereg("[^À-ÿa-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
    if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";


For example if I try to register the name {MY}Name I get this error:

Registration Error!
ERROR: Invalid Nickname

If I remove the line

Code:
if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-}-{-[-]-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";


Will it let me use the {} () [] in a user name?

If not is there any way to let users use the {}()[] brackets in there name?

I am using PHP-Nuke-Platinum-7.6.0 with CNB Your Account 4.4.0 b2

Thanks
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2744

PostPosted: Mon Apr 17, 2006 6:51 pm Reply with quote Back to top

In the code like
Code:

"[^À-ÿa-zA-Z0-9_-]"

You want to add the characters you want to use between the brackets. Note the actual bracket character needs to be escaped to use \[\]


Removing that line is not recommending, it may allow people to abuse it
View user's profile Send private message Visit poster's website
naughtydog
New Member
New Member


Joined: Apr 17, 2006
Posts: 2

PostPosted: Mon Apr 17, 2006 7:04 pm Reply with quote Back to top

WoW thanks for the Quick reply

ok i used

Code:
"[^a-zA-Z0-9_-\\[\\]\\{\\}\\=-]"


And it worked fine thanks for your help Very Happy
View user's profile Send private message
bigbillmrbill
New Member
New Member


Joined: Mar 09, 2007
Posts: 12
Location: Chicago,IL

PostPosted: Wed Mar 21, 2007 8:25 am Reply with quote Back to top

what file is that under i been looking for a fix for my site with people makeing names
View user's profile Send private message Visit poster's website MSN Messenger
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2744

PostPosted: Wed Mar 21, 2007 2:22 pm Reply with quote Back to top

modules/Your_Account/index.php
View user's profile Send private message Visit poster's website
bigbillmrbill
New Member
New Member


Joined: Mar 09, 2007
Posts: 12
Location: Chicago,IL

PostPosted: Wed Mar 21, 2007 2:26 pm Reply with quote Back to top

thank you so much that been a big help
View user's profile Send private message Visit poster's website MSN Messenger
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum