Welcome, Guest. Please Login or Register.
March 20, 2025, 02:13:25 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Code 1.4.1] Disable user changing realname « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code 1.4.1] Disable user changing realname  (Read 1091 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

[Code 1.4.1] Disable user changing realname
« on: November 01, 2002, 12:49:49 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>


admins will still be able to change their own realname, also admins can change other user's realname

The codes above are used for YSE 1.4.1
For YSE 1.5.0, check this thread
And for YSE 1.5.1, check this mod by Behr
« Last Edit: February 23, 2003, 10:46:23 AM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Code] Disable user changing realname
« Reply #1 on: February 23, 2003, 10:33:45 AM »
Reply with quote

Spaceman,
I cannot find this part of the profile.php.

Its a feature I would like to use.
I have tried turning it off in admin, but then I lose the ability to add realnames to whoever i want.

P.S. Is this the same as custom names, as I cannot find any mod that does the same for custom names, but I thought i saw one?
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Code 1.4.1] Disable user changing realname
« Reply #2 on: February 23, 2003, 10:47:09 AM »
Reply with quote

edited topic subject and added some links

for 1.5.1, try this mod: http://www.yabbse.org/community/index.php?board=158;action=display;threadid=18010
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Code 1.4.1] Disable user changing realname
« Reply #3 on: February 23, 2003, 01:19:21 PM »
Reply with quote

Perfect!
Just one small difference in your script to mine.
I had to change
Quote<tr>
                  <td width="45%"><font size="2"><b>' . $txt['title1'] . ': </b></font></td>
                  <td><input type="hidden" name="usertitle" size="30" value="' . $memsettings['usertitle'] . '" /></td>
               </tr>';
to
Quote<tr>
                  <td width="45%"><font size="2"><b>' . $txt['title1'] . ': </b></font></td>
                  <td>' . $memsettings['usertitle'] . '</td>
               </tr>';
after that it went in fine.
Thanks :)
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code 1.4.1] Disable user changing realname « 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.125 seconds with 20 queries.