The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Disable Ability to Change Username - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Feature Suggestions (https://forums.formtools.org/forumdisplay.php?fid=7)
+--- Thread: Disable Ability to Change Username (/showthread.php?tid=1061)



Disable Ability to Change Username - Prig - Jan 31st, 2011

Hello,

Two hopefully easy features that I would love to see.

First, I would like the ability to disallow clients the ability to change their username.

Second, on the client list, it would be helpful of company was displayed instead of email address.

Just my personal opinions. Those features would be helpful for me.

Thanks again for Form Tools!


RE: Disable Ability to Change Username - Hannes - Feb 8th, 2011

Hi Prig,

yes, nice features...

until there is a solution for it you might think about to remove the account settings completely from the clients menu...(?)

You also can try to manually remove/hide the "user name" input field from the account settings template so that it will not be visible for the clients...
Since it only need to be setup once you may want to give it a try...

Please post if you have a (temporary) solution you can work with.

Cheers,
Hannes


RE: Disable Ability to Change Username - Prig - Feb 8th, 2011

(Feb 8th, 2011, 11:00 AM)Hannes Wrote: Hi Prig,

yes, nice features...

until there is a solution for it you might think about to remove the account settings completely from the clients menu...(?)

You also can try to manually remove/hide the "user name" input field from the account settings template so that it will not be visible for the clients...
Since it only need to be setup once you may want to give it a try...

Please post if you have a (temporary) solution you can work with.

Cheers,
Hannes

Good idea. I'll toy with that idea, and maybe give it a go.



RE: Disable Ability to Change Username - aoneill - May 28th, 2015

I wanted to do this same thing, and I found a solution that I believe does the trick for me. There may be a better way, but I edited themes/default/clients/account/tab_main.tpl, changing

<td><input type="text" name="username" value="{$client_info.username}" size="25" /></td>

to

<td><input type="text" name="username" readonly="readonly" value="{$client_info.username}" size="25" /></td>

Incidentally, I'm running version 2.2.6. Hope that helps.