Prevent updating alias. [message #33095] |
Fri, 11 August 2006 19:18 |
mocara
Messages: 157 Registered: January 2004
Karma: 0
|
Senior Member |
|
|
Hi,
How do I prevent people from updating their aliases? We have been using aliases for a while but now the system is being abused to confuse people. If I just disable the use of aliases then it could give away login names which people wouldn't want. So really what I want is the ability to register with an alias, but not update it.
Anybody any thoughts?
Mocara.
|
|
|
Re: Prevent updating alias. [message #33115 is a reply to message #33095] |
Sat, 12 August 2006 16:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
There is no such functionality in FUDforum. To add it you'd need to hack up register.php.t and make the alias a non-updatable field on the form when performing account editing. This is a fairly simple change to make, it could be as simple as changing the alias text box into type="hidden"
FUDforum Core Developer
|
|
|
Re: Prevent updating alias. [message #33177 is a reply to message #33095] |
Wed, 16 August 2006 03:55 |
mocara
Messages: 157 Registered: January 2004
Karma: 0
|
Senior Member |
|
|
In case anyone is interested I modified line 2165 in register.php
if (!__fud_real_user__) {
$reg_alias_t = $FUD_OPT_2 & 128 ? '<tr><td class="RowStyleA">Alias:'.$reg_alias_err.'<br /><font class="SmallText">If you want a nickname other than your logi n to be displayed on the forum, enter the nick name you want to be displayed here.</font></td><td class="RowStyleA"><input type="text" name="reg_alias" size=25 va lue="'.htmlspecialchars($reg_alias).'" maxLength='.$GLOBALS['MAX_LOGIN_SHOW'].'></td></tr>' : '';
else {
$reg_alias_t = $FUD_OPT_2 & 128 ? '<tr><td class="RowStyleA">Alias:'.$reg_alias_err.'<br /><font class="SmallText">Aliases are no longer allowed to be changed. .</font></td><td class="RowStyleA"><input type="hidden" name="reg_alias" size=25 value="'.htmlspecialchars($reg_alias).'" maxLength='.$GLOBALS['MAX_LOGIN_SHO W'].' ></td></tr>' : '';
}
I hope that makes sense. And thanks yet again Ilia.
Mocara.
[Updated on: Wed, 16 August 2006 03:58] Report message to a moderator
|
|
|