Hack Name: Public Name Hack v. 1.0
UBB Version: 6.04c
Description:
This is a hack to change users' Public Names from the Control Panel.
With this hack Administrators can edit users' Public Names through the Control Panel.
Bonus:
- It's pretty usefull when you upgraded from UBB5 if you had the Avatar Hack installed.
########################################################################
Author: Zack
Co-author: Goku
########################################################################
Files Modified: cp_users.cgi, cp_edit_profile.pl
########################################################################
Installation:
#################
open cp_users.cgi
#################
# FIND
if ($vars_registration{location_field_use} eq 'REQ') { push(@VA, "location"); }
# ABOVE PUT
if ($vars_registration{publicly_displayed_name_field_use} eq 'REQ') { push(@VA, "publicly_displayed_name"); }
# FIND
print FILE ("$user_profile[15]n");
# REPLACE WITH
print FILE ("$in{publicly_displayed_name}n");
#######################
open cp_edit_profile.pl
#######################
# FIND
<tr bgcolor="#FFFFFF">
<td width="45%" valign="top">
<FONT size="2" FACE="Verdana, Arial">
<B>$vars_wordlets{public_name_field}:</B>
</font>
</td>
<td valign="top">
<FONT size="2" FACE="Verdana, Arial">
<B>$user_profile[15]</B>
</font>
</td>
</tr>
# REPLACE WITH
<tr bgcolor="#FFFFFF">
<td width="45%" valign="top">
<FONT size="2" FACE="Verdana, Arial">
<B>$vars_wordlets{public_name_field}:</B>
</font>
</td>
<td valign="top">
<INPUT TYPE="TEXT" NAME="publicly_displayed_name" value="$user_profile[15]" SIZE="35" MAXLENGTH="80"></td>
</tr>