FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Prevent updating alias.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Prevent updating alias. [message #33095] Fri, 11 August 2006 19:18 Go to next message
mocara is currently offline  mocara   United Kingdom
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous message
mocara is currently offline  mocara   United Kingdom
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

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Wait, I only wanted the topics!
Next Topic: No Created Categories Showing
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 01:24:49 GMT 2024

Total time taken to generate the page: 0.02535 seconds