News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Removing (real) name field in bridge registration.

Started by k3, May 15, 2006, 01:47:21 AM

Previous topic - Next topic

k3

Just figured this out tonight so I thought I'd post this here if anybody needs it.

This removes the (real) name input in registration and copies the username into the name variable.


File: Joomla => components => com_smf_registration => smf_registration.html.php


Find:
} else if (form.name.value == "") {
alert("', html_entity_decode(_REGWARN_NAME), '");

Replace with:
/*
} else if (form.name.value == "") {
alert("', html_entity_decode(_REGWARN_NAME), '");
*/



Find:
} else {
form.submit();
}

Replace with:
} else {
form.name.value=form.username.value;
form.submit();
}



Find:
<td width="30%">', _REGISTER_NAME, ' *</td>
<td colspan="3"><input type="text" name="name" size="40" value="" class="inputbox" /></td>

Replace with:
<!--
<td width="30%">', _REGISTER_NAME, ' *</td>
<td colspan="3"><input type="text" name="name" size="40" value="" class="inputbox" /></td>
-->
<input type="hidden" name="name" value="" />




Hope that works :)

Advertisement: