You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 56 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - User registration with [ ( and <space> [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Thu May 01, 2003 2:00 pm Reply with quoteBack to top

Most of my users are clanmembers and they always have "name [claname]" or "name[claname]" or even "name(claname)" as their nicknames. These nicks are not alowed in the php 6.5 forum module. (since they cotains ([

However they can register with name without the tags, go to forum and change their name to "Whatever [example)"

Is it possible to register with ( [ and <spacebar> in the nickname...

Gosh! Read slow... LOL!

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu May 01, 2003 2:31 pm Reply with quoteBack to top

On or about line 20 of Your_Account find this line
Code:
    if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
Change it to
Code:
    if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_\[\]\(\)-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";


Edited - I forgot to add the whitespace.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff

Last edited by Raven on Fri May 02, 2003 2:37 am; edited 1 time in total
Find all posts by RavenView user's profileSend private messageVisit poster's website
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Thu May 01, 2003 2:45 pm Reply with quoteBack to top

What do you mean with "On or about line 20 of Your_Account find this line " ?

Where is the file? Embarassed

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu May 01, 2003 3:03 pm Reply with quoteBack to top

modules/Your_Account/index.php

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Thu May 01, 2003 10:39 pm Reply with quoteBack to top

Thx. I tried but I got an error when i tried to enter "Userprofile". Could you please post all the code from index.php here? Wink

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Thu May 01, 2003 11:02 pm Reply with quoteBack to top

Just a marginal note.
If you someday decide to shorten your URLs, names with spaces within will ruin your userinfo-name.html

Example
now your personal page hier is
http://www.nukecops.com/userinfo-JallaBalla.html

if you add a space b/n Jalla and Balla, then do not expect this
[url=http://www.nukecops.com/userinfo-Jalla Balla.html]http://www.nukecops.com/userinfo-Jalla Balla.html[/url]

The result will be rather this
http://www.nukecops.com/userinfo-Jalla.htmlBalla

There is no cure for this illness.
Even if we allow spaces in the rewrite rules, when you click on
http://www.nukecops.com/userinfo-Jalla Balla.html
you will get
No user Information
Find all posts by ImagoView user's profileSend private messageVisit poster's website
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Fri May 02, 2003 12:21 am Reply with quoteBack to top

If I skip the <spacebar> part... does this helps....?

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Fri May 02, 2003 12:26 am Reply with quoteBack to top

Yes, it does.

I, for one, do not allow users to change their names. This creates a real havock.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Fri May 02, 2003 12:29 am Reply with quoteBack to top

OK - I'll try without the SPACEBAR then. However could you help me with the code ? The above didn't work. Embarassed Cool

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Fri May 02, 2003 1:04 am Reply with quoteBack to top

The Raven's code works fine for me. Only replace "\w" with "\(\)"
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 02, 2003 2:19 am Reply with quoteBack to top

Thanks Imago. I was trying to recall off the top of my head what the code was for a space Embarassed . I guess I had an "old timer's" moment Laughing . I went back and edited my post in the event someone stops reading there.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.237 Seconds - 363 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::