Welcome, Guest. Please Login or Register.
November 28, 2024, 01:47:26 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Prevent Display Name Change? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Prevent Display Name Change?  (Read 472 times)
NJBassOnline.com
Noobie
*
Posts: 28


WWW
Prevent Display Name Change?
« on: January 01, 2004, 07:35:19 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: http://njbassonline.com/

Problem Description:
Hi - Is there any way to stop users from changing their displayed name?

Thanks!
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Prevent Display Name Change?
« Reply #1 on: January 01, 2004, 08:18:46 PM »
Reply with quote

Search Profile.php for $txt[518] and remove the whole table row that it's in.

Forget that, it's not quite that simple (stops you modifying your profile!).
« Last Edit: January 01, 2004, 08:22:33 PM by Peter Duggan » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Prevent Display Name Change?
« Reply #2 on: January 01, 2004, 08:28:51 PM »
Reply with quote

Quote from: Peter Duggan on January 01, 2004, 08:18:46 PMForget that, it's not quite that simple (stops you modifying your profile!).

Sorry about that faux pas, but try this:

Search Profile.php for:

                     <tr>
                        <td width="45%">
                           <font size="2"><b>' . $txt[68] . ': </b></font><br />
                           <font size="1">' . $txt[518] . '</font></td>
                        <td><input type="text" name="name" size="30" value="' . $memsettings['realName'] . '" /></td>
                     </tr>


And replace with:

                     <tr><td colspan="2">
                     ' . $userTitleField . '
                     <input type="hidden" name="name" size="30" value="' . $memsettings['realName'] . '" />
                     </td></tr>


Tested and working this time! :)
« Last Edit: January 02, 2004, 05:31:07 PM by Peter Duggan » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Prevent Display Name Change?
« Reply #3 on: January 01, 2004, 08:39:40 PM »
Reply with quote

NB Note edit to table row and data tags in solution posted in previous reply (it worked, but the tags weren't right)! :-X
Logged

NJBassOnline.com
Noobie
*
Posts: 28


WWW
Re:Prevent Display Name Change?
« Reply #4 on: January 02, 2004, 03:54:31 PM »
Reply with quote

Thanks Peter!  ;D It seems to work!
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Prevent Display Name Change?
« Reply #5 on: January 02, 2004, 05:29:53 PM »
Reply with quote

Quote from: NJBassOnline.com on January 02, 2004, 03:54:31 PM
Thanks Peter!  ;D It seems to work!

Glad to hear it, but please note that there's *still* a superfluous </td> tag in the last line of the code I posted (so how did I miss that?)! :'(

While IE will probably lap it all up anyway if that's what your users are using, I recommend that you amend the replaced code to:

                    <tr><td colspan="2">
                    ' . $userTitleField . '
                    <input type="hidden" name="name" size="30" value="' . $memsettings['realName'] . '" />
                    </td></tr>


(About to edit Reply #2 as well for the benefit of anyone else coming to this topic!)
Logged

NJBassOnline.com
Noobie
*
Posts: 28


WWW
Re:Prevent Display Name Change?
« Reply #6 on: January 02, 2004, 06:47:45 PM »
Reply with quote

Yep, I already had noticed the extra TD and fixed...

Thanks Again!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Prevent Display Name Change? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.023 seconds with 21 queries.