Jump to content

MSFN Board Tip: #1


Guest

Recommended Posts

This board trick should be applied to MSFN:

Allow members to change usernames:

This hack is an extention to the Change Member Name (AdminCP) hack by Monster.  I sudjest you install that hack as well.
Remember to back up all files before editing anything.

in sources/lib/usercp_functions.php find:
//----------------------------------
// Check for bad entry
//----------------------------------

if ($HTTP_POST_VARS['act'] == "")
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'complete_form' ) );
}
Under that put:
//+----------------------------------------
if ( (strlen($HTTP_POST_VARS['MemberName']) > 65))
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'username_long' ) );
}
//+--------------------
if ( (strlen($HTTP_POST_VARS['MemberName']) < 3))
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'username_short' ) );
}
then find:
$set = array( 'website' => $ibforums->input['WebSite'],
under that put:
'name' => $ibforums->input['MemberName'],
Save and upload sources/lib/usecp_function.php
in Skin/sx/skin_ucp.php find:
<tr>
<td id='row2' width='40%'>{$ibforums->lang['website']}</td>
<td id='row2'><input type='text' size='40' maxlength='1200' name='WebSite' value='{$Profile['website']}' class='forminput'></td>
</tr>
Above that place:
<tr>
<td id='row2' width='40%'><b>Member Name</b></td>
<td id='row2'><input type='text' size='40' maxlength='65' name='MemberName' value='{$Profile['name']}' class='forminput'></td>
</tr>
Save and upload Skin/sx/skin_ucp.php

Link to comment
Share on other sites


allow users to change their usernames? man, we'd never know who anybody was. people would be changing their name every other day  :)

Not to mention im sure people ould change there name to some less then nice names.....and we would have no contol over it...could be bad....

=Drew

Link to comment
Share on other sites

I am thinking only those who screw up and get people PO-ed would want to change their name anyway. I vote no - if anyone is counting. Anyway - lots of times I remember a post I want to look back up by username and having them change would totally mess that up

LS_Dragons

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...