Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - RESOLVED members username cant contain spaces or charectors?
RESOLVED members username cant contain spaces or charectors?
Goto page 1, 2, 3  Next

25 Replies / 3779 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:14 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

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 ·  · Modern Warfare 3 Xtreme Theme

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.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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: 642.5 Add RepSubtract Rep
votes: 6
Local time: 3:14 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

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.
 

UDesigns.be  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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: 642.5 Add RepSubtract Rep
votes: 6
Local time: 3:14 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

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 website Reply with quote


THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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: 642.5 Add RepSubtract Rep
votes: 6
Local time: 3:14 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

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:  12 Time(s)

 

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

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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: 642.5 Add RepSubtract Rep
votes: 6
Local time: 3:14 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

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 website Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 3:14 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

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

When you click the activation link, is the username in the url?
 

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

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:14 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

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

Yea i can see it
This is the link i get,
http://www.**********.co.uk/forum/modules.php?name=Your_Account&op=activate&username=john doe&check_num=862932adb67813277a54ae41dd29c148
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
25 Replies / 3779 Views
Page 1 of 3
All times are GMT
Goto page 1, 2, 3  Next
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum