MyBB Community Forums

Full Version: Captcha doesn't work on registrations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Please post further codes between PHP tags. Code tags aren't any good for pasting codes.
Can you give it to me again in PHP tags? I pasted it already, but I want it more organized.

btw can someone try and see if by registering you see the captcha image? (please note that language should be in portuguese) Please!
If that template isn't default, why not just revert it to default...??
He asked me to paste that code in member_register_regimage but the code is between [code] tags which ruins the code when I paste it. That's what I did.
Can you please check if the captcha image is showing?
Still isn't showing, but instead of copying and pasting code, revert it with the revert to default tool in the ACP, then it'll be what it needs to be, that's what I was getting at.
(2009-05-10, 10:37 AM)faviouz Wrote: [ -> ]He asked me to paste that code in member_register_regimage but the code is between [code] tags which ruins the code when I paste it. That's what I did.
Can you please check if the captcha image is showing?

You are right I should have pasted it between php tags. I tried your current code in my forum and the image wouldn't show, then I revereted back to the original and it showed again. So, the problem is definitely with the code in your member_register_regimage. Put there and it will surely work this time.

<br />
<fieldset class="trow2">
<script type="text/javascript" src="jscripts/captcha.js?ver=1400"></script>
<legend><strong>{$lang->image_verification}</strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}">
<tr>
<td><span class="smalltext">{$lang->verification_note}</span></td>
<td rowspan="2" align="center"><img src="captcha.php?action=regimage&amp;imagehash={$imagehash}" alt="{$lang->image_verification}" title="{$lang->image_verification}" id="captcha_img" /><br /><span style="color: red;" class="smalltext">{$lang->verification_subnote}</span>
<script type="text/javascript">
<!--
	if(use_xmlhttprequest == "1")
	{
		document.write('<br \/><br \/><input type="button" class="button" tabindex="10000" name="refresh" value="{$lang->refresh}" onclick="return captcha.refresh();" \/>');
	}
// -->
</script>
</td>
</tr>
<tr>
<td><input type="text" class="textbox" name="imagestring" value="" id="imagestring" style="width: 100%;" /><input type="hidden" name="imagehash" value="{$imagehash}" id="imagehash" /></td>
</tr>
<tr>
	<td id="imagestring_status"  style="display: none;" colspan="2">&nbsp;</td>
</tr>
</table>
</fieldset>

Regards
(2009-05-10, 11:17 AM)MattRogowski Wrote: [ -> ]Still isn't showing, but instead of copying and pasting code, revert it with the revert to default tool in the ACP, then it'll be what it needs to be, that's what I was getting at.

You are right Matt, it is much easier to revert it to the original one. But the question is will it revert back to the default or to the last modified one? I'm not sure.Huh

Regards
Done. Can someone test it please?
Now the entire page is messed up :|
Yeah when I saved the template I got "&nbsp;&nbsp;&nbsp;&nbsp;" in ALL spaces.
This is really annoying.

EDIT: Done. Should be working now.
EDIT: NOT working T.T
(2009-05-10, 05:08 PM)faviouz Wrote: [ -> ]Yeah when I saved the template I got "&nbsp;&nbsp;&nbsp;&nbsp;" in ALL spaces.
This is really annoying.

EDIT: Done. Should be working now.
EDIT: NOT working T.T

Try these three options now, and there is no other option:

- Either: revert to the original template
- Or: copy the content of the member_register_regimage from your other template which works, and paste it in the other template
- Or: copy the content of the attached file and paste it there. You must not use Windows notepad in any way. You may only use a free php editor like this one to edit your php files: http://files.brothersoft.com/web_author/...tup_en.exe
Done. Reverted. Now what?
btw I use Notepad++

I'm totally sure it's a language file issue. It only happens with portuguese translation.
So why are we editing templates?
Pages: 1 2 3