ru55ian |
04-07-2008 04:55 PM |
ImageVerification help needed
1 Attachment(s)
Maybe someone can help me finish it? So far i was able to get quickreply to show up for guests by installing this: https://vborg.vbsupport.ru/showthread.php?t=174769
and then I was able to add verification into the quickreply by adding this to the ShowThread template
after:
Code:
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
</div>
</fieldset>
I have added:
Code:
<if condition="$bbuserinfo['userid'] == 0">
<fieldset class="fieldset">
<legend>$vbphrase[image_verification]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td width="100%" valign="top">
$vbphrase[please_enter_the_text]<br /><br />
<img id="progress_imagereg" style="display: none; float:$stylevar[right]" src="$stylevar[imgdir_misc]/progress.gif" alt="" />
<input id="imagestamp" type="text" class="bginput" name="imagestamp" size="10" maxlength="6" />
<input id="imagehash" type="hidden" name="imagehash" value="$imagehash" />
</td>
<td valign="bottom" align="center">
<img id="imagereg" src="image.php?$session[sessionurl]type=regcheck&imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61" border="0" />
<span id="refresh_imagereg" style="display:none"><a href="#">$vbphrase[refresh_image]</a></span>
</td>
</tr>
</table>
</fieldset>
<script type="text/javascript" src="clientscript/vbulletin_ajax_imagereg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_ImageReg_Init();
//-->
</script>
<br />
</if>
Now i am stuck because when quickreply shows up, verification image is not showing up, instead default Vbulletin image shows up in it's place, when i click refresh, i get an HTML error. I know there is a mistake somewhere, but i am no coder, therefore i am unable to find it. if anyone can help i would really appreciate it.
Regards.
|