MyBB Community Forums

Full Version: Security Question Don't Showing Up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I reuploaded global and member.php yesterday. I'm not sure that it is from then this problem but when someone want to register there is no security question. Here is my code:
Quote:<fieldset class="trow2">
<script type="text/javascript" src="jscripts/regsecureq.js?ver=100"></script>
<table cellspacing="0" cellpadding="{$theme['tablespace']}">
<tr>
<td colspan="2"><span class="smalltext">{$lang->regq_explain}</span></td>
</tr>
<tr>
<td colspan="2"><br /><span class="smalltext" id="regsecureq" style="font-weight:bold;">{$regsecureq}</span></td>
</tr>
<tr>
<td width="100%"><br /><center><input type="text" class="textbox" name="regsecureans" value="" id="regsecureans" style="width: 60%;" /></center><input type="hidden" name="regsecureq_id" value="{$regsecureq_id}" id="regsecureq_id" /></td>
</tr>
<tr>
<td id="regsecureans_status" style="display: none;" colspan="2">&nbsp;</td>
</tr>
</table>
</fieldset>
I would just remove all of that nonsense and add this plug-in.
http://mods.mybb.com/view/registration-s...y-question
(2012-08-26, 04:57 AM)bug Wrote: [ -> ]I would just remove all of that nonsense and add this plug-in.
http://mods.mybb.com/view/registration-s...y-question

I have that plugin. Nonsense? Okay.... Huh
That's code of member_register.
Add {$regq} after {$regimage} in your "member_register" template.
(2012-08-26, 05:14 AM)Omar G. Wrote: [ -> ]Add {$regq} after {$regimage} in your "member_register" template.

I don't see that part of code in my member_register template.
Here is code of member_register template:
Quote:<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/validator.js"></script>
<style type="text/css">
fieldset{border:0;}
</style>
</head>
<body onload=' location.href="#content" '>
{$header}
<div align="center">
<a name="signup"></a>
<form action="member.php" method="post" id="registration_form" name="registration_form"><input type="text" style="visibility: hidden;" value="" name="regcheck1" /><input type="text" style="visibility: hidden;" value="true" name="regcheck2" />
{$regerrors}
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30%" valign="top" class="trow1">
<table cellspacing="0" cellpadding="4" width="95%">
<tr>
<td colspan="2">
<h4>Username</h4>
<input type="text" class="textbox" name="username" id="username" style="width: 100%; padding: 3px; font-size: 1.2em;" value="{$username}" /></td>
</tr>
{$passboxes}
<tr>
<td><h5>Email</h5>
<input type="text" class="textbox" name="email" id="email" style="width: 100%; padding: 3px;" maxlength="50" value="{$email}" /></td>
<td><h5>Confirm Email</h5>
<input type="text" class="textbox" name="email2" id="email2"style="width: 100%; padding: 3px;" maxlength="50" value="{$email2}" /></td>
</tr>
<tr>
<td colspan="2" style="display: none;" id="email_status">&nbsp;</td>
</tr>
</tr>
</tbody></table>


</div>
</td>
<td width="70%" valign="top" style="padding-left: 40px;">

<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
<input type="hidden" name="emailpmnotify" id="emailpmnotify" value="1" {$emailpmnotifycheck} />
<input type="hidden" name="receivepms" id="receivepms" value="1" {$receivepmscheck} />
<input type="hidden" name="pmnotice" id="pmnotice" value="1" {$pmnoticecheck} />
<input type="hidden" name="allownotices" id="allownotices" value="1" {$allownoticescheck} />
<br />
<h4 style="text-align: center;">Important Stuff</h4>
<p class="smalltext" style="text-align:center;">By joining our forum, you agree to our <a href="http://myforum.com/misc.php?action=help&hid=8" target="_blank">Community Rules</a> and <a href="http://myforum/misc.php?action=help&hid=13" target="_blank">Terms of Service</a>.</p>


<input type="submit" class="button" style="font-size: 1.5em; margin-left: auto; margin-right: auto; width: 100%;" name="regsubmit" value="Registruj se" />
<br class="clear">
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
</div>
</form>
</div>
<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>

<!-- <script type="text/javascript" language="JavaScript">
document.forms['registration_form'].elements['username'].focus();
</script>
-->

{$footer}
</body>
</html>#content
btw I reuploaded member.php!
You can try adding adding {regq} after the following line in your member_register template:

<input type="text" class="textbox" name="email2" id="email2"style="width: 100%; padding: 3px;" maxlength="50" value="{$email2}" /></td>
</tr>

however that template looks cut-off so don't be surprised if it still does not show up in which case try it on the default theme first.