Clan Adverts

Custom PHPNuke Scripts

www.clan-themes.co.uk :: View topic - RESOLVED members username cant contain spaces or charectors?

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

RESOLVED members username cant contain spaces or charectors?
Goto page 1, 2, 3  Next

25 Replies / 766 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » General PhpNuke

View previous topic :: View next topic


THENemesis
Reputation: 4.7
Local time: 11:21 PM


Status: Offline
0.69 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 13 Nov 2008
Posts: 42
Points: 615 

Post RESOLVED members username cant contain spaces or charectors? Posted: Thu Oct 09, 2008 6:31 pm   

Hi, all i have been searching on how i can allow new users to have charectors like
space " ",
Pipe "|"
comma ","
{ } or [ ] what ever theyre called ;)

I have found scripts to edit in modules/your_account/index.php like
Code:
if (isset($username) && (ereg("[^A-Za-z0-9\s]",$username))) {
but none of these work in the sense, a new user can create an account using for example john doe,
it gets accepted and receive an email back with activation link, when you click the link it says no user in in the database tables with that name?

anyone have any ideas please?

thanks

Last edited by THENemesis on Sat Oct 11, 2008 1:36 pm; edited 1 time in total
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 738.8
votes: 5
Local time: 11:21 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.14 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 02 Dec 2008
Posts: 496
Points: 11365 

Post Re: Nuke 8.1 members username cant contain spaces or charect Posted: Fri Oct 10, 2008 1:13 am   

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0

I believe that is for security purposes that they have that there. It helps people from executing commands to get into your database.

As for how to bypass it. I don't know.
 

  • Donations for custom work is appreciated at [HS]
 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote

THENemesis
Reputation: 4.7
Local time: 11:21 PM


Status: Offline
0.69 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 13 Nov 2008
Posts: 42
Points: 615 

Post Nuke 8.1 members username cant contain spaces or charectors? Posted: Fri Oct 10, 2008 8:11 am   

ok, but does that rule our every other charector apart from [^a -zA-Z0-9_-] ?
I mean can i even have [ or ] ?
 

 
View user's profileSend private message Reply with quote


Untergang
Reputation: 603
votes: 5
Local time: 5:21 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8190 

Post Re: Nuke 8.1 members username cant contain spaces or charect Posted: Fri Oct 10, 2008 2:25 pm   

You can also just delete this: && (ereg("[^A-Za-z0-9\s]",$username))
So all characters can be used.
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

THENemesis
Reputation: 4.7
Local time: 11:21 PM


Status: Offline
0.69 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 13 Nov 2008
Posts: 42
Points: 615 

Post Re: Nuke 8.1 members username cant contain spaces or charect Posted: Fri Oct 10, 2008 2:36 pm   

Untergang wrote:
You can also just delete this: && (ereg("[^A-Za-z0-9\s]",$username))
So all characters can be used.


yea i tried that, people can register usign any charecters but when they receive the actiovation email the forum says the user doesnt exist?

isnt there a way just to add the ones i need instead of deleting them all
 

 
View user's profileSend private message Reply with quote

Untergang
Reputation: 603
votes: 5
Local time: 5:21 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8190 

Post Re: Nuke 8.1 members username cant contain spaces or charect Posted: Fri Oct 10, 2008 2:38 pm   

Could you send me the file you are editing?
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote


THENemesis
Reputation: 4.7
Local time: 11:21 PM


Status: Offline
0.69 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 13 Nov 2008
Posts: 42
Points: 615 

Post Nuke 8.1 members username cant contain spaces or charectors? Posted: Sat Oct 11, 2008 11:00 am   

Hi, ok i tried the file you sent but i got "illegal username" for every name i tried to register with, even normal/basic ones like "john" or "steve" without spaces or other charecters.

strange
 

 
View user's profileSend private message Reply with quote

Untergang
Reputation: 603
votes: 5
Local time: 5:21 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8190 

Post Nuke 8.1 members username cant contain spaces or charectors? Posted: Sat Oct 11, 2008 11:07 am   

Found the problem for that, try with this

youraccountindexfile.zip
 Description:

Download
 Filename:  youraccountindexfile.zip
 Filesize:  24.89 KB
 Downloaded:  2 Time(s)

 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

THENemesis
Reputation: 4.7
Local time: 11:21 PM


Status: Offline
0.69 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 13 Nov 2008
Posts: 42
Points: 615 

Post Nuke 8.1 members username cant contain spaces or charectors? Posted: Sat Oct 11, 2008 11:22 am   

hi, ok uploaded that index.php, and am allowed to register with "john doe" (using a space),
i receive email, click activation link,then when i log in with "john doe" i get error

"There is no user in the database with this information.
You can register a new user from here."

Now, if i go into my phpmyadmin dbadmin tables, i can see the user "john doe" in nuke_users_temp but not in the "nuke_users" table

??

Last edited by THENemesis on Sat Oct 11, 2008 11:26 am; edited 1 time in total
 

 
View user's profileSend private message Reply with quote




Untergang
Reputation: 603
votes: 5
Local time: 5:21 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8190 

Post Re: Nuke 8.1 members username cant contain spaces or charect Posted: Sat Oct 11, 2008 11:24 am   

That means the account wasn't activated.
I'll have a look if I can find the problem.
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

Untergang
Reputation: 603
votes: 5
Local time: 5:21 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8190