25.04.2014, 15:51
wersja skryptu MyBB:1.6.12
adres forum:
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Jak dodać dodatkowe pole płeć przy rejestracji?
Szablon member_register fid pola płci to 3
adres forum:
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Jak dodać dodatkowe pole płeć przy rejestracji?
Szablon member_register fid pola płci to 3
Kod PHP:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/validator.js"></script>
</head>
<body>
{$header}
<div class="kroki_reje">
<ul>
<li class="" style="margin-left: -39px;">
<strong class="kroki_tytul">Krok 1</strong>
<span class="kroki_desc">Regulamin forum</span>
<span class="kroki_arrow"> </span>
</li>
<li class="kroki_reje_active">
<strong class="kroki_tytul">Krok 2</strong>
<span class="kroki_desc">Twoje konto</span>
<span class="kroki_arrow"> </span>
</li>
</ul>
</div>
<br>
{$regerrors}
<form action="member.php" method="post" id="registration_form"><input type="text" style="visibility: hidden;" value="" name="regcheck1" /><input type="text" style="visibility: hidden;" value="true" name="regcheck2" />
<br>
<div class="thead" style="line-height: 150%;">Rejestracja nowego konta użytkownika</div>
<div class="search_content">
<div class="skalowanie">
<ul>
<li>
<p class="regMin_content wymagane">
* To pole jest wymagane
</p>
</li>
<li>
<label>Nazwa użytkownika <span class="wymagane">*</span></label>
<p class="regMin_content">
<input type="text" class="textbox" name="username" id="username" style="width: 100%" value="{$username}" />
</p>
</li>
<li>
<label>Adres e-mail <span class="wymagane">*</span></label>
<p class="regMin_content">
<input type="text" class="textbox" name="email" id="email" maxlength="50" value="{$email}" />
</p>
</li>
<li>
<label>Powtórz adres e-maill <span class="wymagane">*</span></label>
<p class="regMin_content">
<input type="text" class="textbox" name="email2" id="email2" maxlength="50" value="{$email2}" />
</p>
</li>
{$passboxes}
{$requiredfields}
{$referrer}
{$regimage}{$wnr}
{$hiddencaptcha}
<input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} />
<span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span><br />
<input type="checkbox" class="checkbox" name="pmnotice" id="pmnotice" value="1"{$pmnoticecheck} />
<span class="smalltext"><label for="pmnotice">{$lang->pm_notice}</label></span><br />
<input type="checkbox" class="checkbox" name="emailpmnotify" id="emailpmnotify" value="1" {$emailpmnotifycheck} />
<span class="smalltext"><label for="emailpmnotify">{$lang->email_notify_newpm}</label></span>
</ul>
</div>
<div class="register_footer">
<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
<input type="submit" class="button_login" name="regsubmit" value="Stwórz konto" />
</div>
</div>
</form>
<script type="text/javascript">
<!--
regValidator = new FormValidator('registration_form');
regValidator.register('username', 'notEmpty', {failure_message:'{$lang->js_validator_no_username}'});
regValidator.register('email', 'regexp', {match_field:'email2', regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'{$lang->js_validator_invalid_email}'});
regValidator.register('email2', 'matches', {match_field:'email', status_field:'email_status', failure_message:'{$lang->js_validator_email_match}'});
{$validator_extra}
regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'{$lang->js_validator_checking_username}'}); // needs to be last
// -->
</script>
{$footer}
</body>
</html>