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, 167 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Spaces in username and activation link [ ]
 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
Mythotical
Nuke Soldier
Nuke Soldier


Joined: Jul 26, 2004
Posts: 15


PostPosted: Fri Sep 24, 2004 8:12 pm Reply with quoteBack to top

Thanks to MadMan for giving me the following code to allow people to register with spaces in their names now I have the code that when the activation email is sent, it will not leave out the spaces and make the link broken. So follow these instructions and I promise you, your members/future members will praise you for allowing spaces.



BIG WARNING: Beware some addons/modules/blocks may not be compatible with modified username chars restriction, and assuming they're anonymous.

Open "modules/Your_Account/index.php" and find this line around line 30:

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



Replace with:
Code:
if (!isset($username) || ($username=="") || !preg_match('/^[a-z0-9\s_-]+$/i',$username)) $stop = "<center>"._ERRORINVNICK."</center><br>";



My addittion that I found out how to do with little info from here and there.

Activation Link:
Open "modules/Your_Account/index.php" and find this line around line 134:

Code:
$finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num";


Replace with:
Code:
$finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=" . urlencode($username) . "&check_num=$check_num";


Thats all, you can now register with spaces in your username and receive the activation link showing you have spaces and it won't be broken. Enjoy!!

If you have any problems, ask away and I will do my best to answer.

Myth
Find all posts by MythoticalView user's profileSend private message
MiM
Nuke Cadet
Nuke Cadet


Joined: Sep 26, 2004
Posts: 1


PostPosted: Sun Sep 26, 2004 8:21 am Reply with quoteBack to top

Thx a looot... i was searching for this for weeks.... i made already some changes but still got the email activation problem.

THX a looooooooooot!

Will put this on my forum too.
Find all posts by MiMView user's profileSend private message
Mythotical
Nuke Soldier
Nuke Soldier


Joined: Jul 26, 2004
Posts: 15


PostPosted: Sun Sep 26, 2004 10:38 am Reply with quoteBack to top

Not a problem, glad I could help.

UPDATE: So far this has worked on 7.3 and 7.4, I have not tested it on any other versions but I assume it will work with the rest.
Find all posts by MythoticalView user's profileSend private message
LadyCherry
Lieutenant
Lieutenant


Joined: Aug 12, 2003
Posts: 190


PostPosted: Fri Nov 21, 2008 9:05 am Reply with quoteBack to top

This is great!
How can I change this so an admin can login to the admin.php with a space in the name?

Thanks in advance,
-Lady Cherry
Find all posts by LadyCherryView user's profileSend private message
doffer
Nuke Soldier
Nuke Soldier


Joined: Nov 02, 2007
Posts: 17

Location: Holland

PostPosted: Sun Apr 12, 2009 12:50 pm Reply with quoteBack to top

LadyCherry wrote:
This is great!


yes it is ... I agree 100%

no broken activation link anymore.. just what I alwayes want

thank u again

_________________
I like to walk in the rain,so no one can see me crying.
Find all posts by dofferView user's profileSend private message
futcoins



Joined: May 24, 2014
Posts: 0


PostPosted: Fri May 23, 2014 10:46 pm Reply with quoteBack to top

You smiled and talked to me of nothing
I felt that for this I had been waiting long.
——————————————————————————
Buy fifa 14 coins or Fifa 14 coins
Find all posts by futcoinsView 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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.155 Seconds - 432 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::