Configurable Username Length

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
4
57%
Very Good
2
29%
Good
0
No votes
Fair
0
No votes
Poor
1
14%
 
Total votes: 7

skaloumbakas
Registered User
Posts: 179
Joined: Wed Sep 25, 2002 11:26 am
Location: Athens Hellas

What If I have to uninstall?

Post by skaloumbakas » Sun Dec 24, 2006 5:51 am

Thanks,

BTW, editing the tpl files I think you have to include profile_send_pass.tpl file as well, for editing :roll:

To be honest, I am ready to upload the modified php and tpl files but I am a bit worried, since my phpBB version is very old.
(For example, I found nothing to modify in the functions.php file... :? )

I would like to have the unistall string to enter to phpMyAdmin, in case something goes wrong :cry:

Merry X-mas & Happy New Year
Christos Skaloumbakas

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Sun Dec 24, 2006 7:22 am

Code: Select all

# 
#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_config` VALUES ('limit_username_min_length', '2');
INSERT INTO `phpbb_config` VALUES ('limit_username_max_length', '25');
ALTER TABLE `phpbb_users` MODIFY `username` varchar(99) NOT NULL;
Based on the specified SQL queries, all you need to do it navigate to the correct hpbb_config TABLE and delete the newly inserted values. As for phpbb_users TABLE, just change the varchar from 99 to the original value (I believe is 25)

The changes to functions.php is for more recently phpBB, so I think its alright if you don't have it and not doing anything with it.

Thank for the suggestion on profile_send_pass.tpl :)

~Mac

skaloumbakas
Registered User
Posts: 179
Joined: Wed Sep 25, 2002 11:26 am
Location: Athens Hellas

Post by skaloumbakas » Mon Dec 25, 2006 6:42 pm

I got it working! :P

... with additional small changes to the usercp_sendpasswd.php and the profile_send_pass.tpl files... :wink:

Thanks for the MOD
Christos Skaloumbakas

Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria » Sun Jan 28, 2007 6:48 pm

Update: This mod is functional on 2.0.22
I installed it on 2.0.21 then upgraded.
(I upgraded manually.)

happy forum-ing ^_^
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}

User avatar
Renodil
Registered User
Posts: 668
Joined: Mon Nov 14, 2005 8:48 am
Contact:

Post by Renodil » Wed Feb 21, 2007 3:44 pm

templates/subSilver/login_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<input type="text" class="post" name="username" size="25" maxlength="40" value="{USERNAME}" />
Problem is, no such line exists.

Here's my code:

Code: Select all

 
<form action="{S_LOGIN_ACTION}" method="post" target="_top">

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
  </tr>
</table>

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
  <tr> 
	<th height="25" class="thHead" nowrap="nowrap">{L_ENTER_PASSWORD}</th>
  </tr>
  <tr> 
	<td class="row1"><table border="0" cellpadding="3" cellspacing="1" width="100%">
		  <tr> 
			<td colspan="2" align="center">&nbsp;</td>
		  </tr>
		  <tr> 
			<td width="45%" align="right"><span class="gen">{L_USERNAME}:</span></td>
			<td> 
			  <input type="text" name="username" size="25" maxlength="40" value="{USERNAME}" />
			</td>
		  </tr>
		  <tr> 
			<td align="right"><span class="gen">{L_PASSWORD}:</span></td>
			<td> 
			  <input type="password" name="password" size="25" maxlength="25" />
			</td>
		  </tr>
		  <tr align="center"> 
			<td colspan="2"><span class="gen">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" /></span></td>
		  </tr>
		  <tr align="center"> 
			<td colspan="2">{S_HIDDEN_FIELDS}<input type="submit" name="login" class="mainoption" value="{L_LOGIN}" /></td>
		  </tr>
		  <tr align="center"> 
			<td colspan="2"><span class="gensmall"><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a></span></td>
		  </tr>
		</table></td>
  </tr>
</table>

</form>

User avatar
Renodil
Registered User
Posts: 668
Joined: Mon Nov 14, 2005 8:48 am
Contact:

Post by Renodil » Wed Feb 21, 2007 3:47 pm

ycl6 wrote:

Code: Select all

# 
#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_config` VALUES ('limit_username_min_length', '2');
INSERT INTO `phpbb_config` VALUES ('limit_username_max_length', '25');
ALTER TABLE `phpbb_users` MODIFY `username` varchar(99) NOT NULL;
Based on the specified SQL queries, all you need to do it navigate to the correct hpbb_config TABLE and delete the newly inserted values. As for phpbb_users TABLE, just change the varchar from 99 to the original value (I believe is 25)

The changes to functions.php is for more recently phpBB, so I think its alright if you don't have it and not doing anything with it. Thanks.

Thank for the suggestion on profile_send_pass.tpl :)

~Mac

Also could you run this by me in laymen's terms please?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Post by RMcGirr83 » Wed Feb 21, 2007 3:59 pm

Renodil wrote: Problem is, no such line exists.

Code: Select all

<input type="text" name="username" size="25" maxlength="40" value="{USERNAME}" />
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Renodil
Registered User
Posts: 668
Joined: Mon Nov 14, 2005 8:48 am
Contact:

Post by Renodil » Wed Feb 21, 2007 4:12 pm

I know what the line is. The problem is it doesn't exist inside the code for the template I'm using. Where in the code I listed do I place the line?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Post by RMcGirr83 » Wed Feb 21, 2007 4:43 pm

That line is from your code that you posted.

You just change this

Code: Select all

maxlength="40"
to this

Code: Select all

maxlength="{LIMIT_USERNAME_MAX_LENGTH}"
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Post by RMcGirr83 » Wed Feb 21, 2007 4:43 pm

Mac, I don't think this will affect private messages?

in posting_body.tpl should you also find this

Code: Select all

<input type="text"  class="post" name="username" maxlength="40" size="25" tabindex="1" value="{USERNAME}" />
and change to this

Code: Select all

<input type="text"  class="post" name="username" maxlength="{LIMIT_USERNAME_MAX_LENGTH}" size="25" tabindex="1" value="{USERNAME}" />
:?:
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Renodil
Registered User
Posts: 668
Joined: Mon Nov 14, 2005 8:48 am
Contact:

Post by Renodil » Thu Feb 22, 2007 2:23 am

RMcGirr83 wrote: That line is from your code that you posted.

You just change this

Code: Select all

maxlength="40"
to this

Code: Select all

maxlength="{LIMIT_USERNAME_MAX_LENGTH}"

According to the search feature of FrontPage the line doesn't exist. And I can't find it by entering the class="post" part of it. There is no class="post" anywhere in the code.

User avatar
Renodil
Registered User
Posts: 668
Joined: Mon Nov 14, 2005 8:48 am
Contact:

Post by Renodil » Thu Feb 22, 2007 3:58 am

Nevermind I figured it out. Looks like the guy who made the theme I'm using neglected to add the class="post" part of the line. Should I put that in or is it OK to leave it out?

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Thu Feb 22, 2007 7:07 am

Renodil wrote: Nevermind I figured it out. Looks like the guy who made the theme I'm using neglected to add the class="post" part of the line. Should I put that in or is it OK to leave it out?

No, it is not necessary to put it back if the theme doesn't designed to have it.

~Mac

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Thu Feb 22, 2007 7:12 am

RMcGirr83 wrote: Mac, I don't think this will affect private messages?

Thanks RMcGirr83

~Mac

Texuga
Registered User
Posts: 180
Joined: Thu Sep 21, 2006 4:31 pm
Location: Portugal - Lisbon

Re: Configurable Username Length

Post by Texuga » Mon Aug 13, 2007 10:44 am

Hi!

I can't use quotiation marks, for example, I want a nick to be "O" ...(etc)... and it appears "O"
How can I solve this issue?

Thanks in advance!

Xuga

Post Reply

Return to “[2.0.x] MOD Database Releases”