Welcome, Guest. Please Login or Register.
May 10, 2025, 02:55:21 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  |  Development  |  Mod Ideas and Creation  |  Disabling the real-name field? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Disabling the real-name field?  (Read 786 times)
Vagcmyevad
Noobie
*
Posts: 16


Disabling the real-name field?
« on: October 30, 2002, 02:25:08 AM »
Reply with quote

Is there a mod that will disable the ability of regular users to edit their real-name? This could get abused on my board, and I only want Admins to have this ability. Thanks!
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Disabling the real-name field?
« Reply #1 on: October 31, 2002, 06:26:13 AM »
Reply with quote

open Profile.php
search for      </tr><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><tr>

replace with      </tr>
EOT;
   if ($settings[7] == 'Administrator')
   {
      print "<tr><td width=\"45%\"><font size=\"2\"><b>$txt[68]: </b></font><BR><font size=1>$txt[518]</font></td>";
      print "<td><input type=\"text\" name=\"name\" size=\"30\" value=\"$memsettings[realName]\"></td></tr>";
   }
   else
      print "<input type=\"hidden\" name=\"name\" value=\"$memsettings[realName]\">";
   print <<<EOT
      <tr>

havent been tested, try at your own risk ;)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Vagcmyevad
Noobie
*
Posts: 16


Re:Disabling the real-name field?
« Reply #2 on: October 31, 2002, 09:15:35 PM »
Reply with quote

It worked, thanks!! ;D
Logged
Vagcmyevad
Noobie
*
Posts: 16


Re:Disabling the real-name field?
« Reply #3 on: December 25, 2002, 06:06:52 PM »
Reply with quote

I've noticed that the code in 1.5.0 changed Profile.php a little bit, and since I'm not that good at PHP I don't know what to do! How would I do this same thing in 1.5.0, or is it the same? Thanks! ;D
Logged
Vagcmyevad
Noobie
*
Posts: 16


Re:Disabling the real-name field?
« Reply #4 on: January 15, 2003, 02:05:11 AM »
Reply with quote

Quote from: Vagcmyevad on December 25, 2002, 06:06:52 PMI've noticed that the code in 1.5.0 changed Profile.php a little bit, and since I'm not that good at PHP I don't know what to do! How would I do this same thing in 1.5.0, or is it the same? Thanks! ;D
Bump :)
Logged
Behr
Noobie
*
Posts: 43


Re:Disabling the real-name field?
« Reply #5 on: January 26, 2003, 03:48:07 AM »
Reply with quote

for 1.5.1RC, you can try this. :)


http://www.yabbse.org/community/index.php?board=158;action=display;threadid=18010
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Disabling the real-name field? « 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.036 seconds with 21 queries.