error
Kort |
|
---|---|
Ok, this is the latest version and recaptcha plugin that I am using on my website. Works just fine.
c4g-recaptcha_183.zip Uninstall the version that you're having now and all installed captchas too. And -- I recommend that you replace your system/xtemplate.class.php with the trunk version. This way you would be able to use template logic. Below is the code I'm using: <!-- BEGIN: COMMENTS_NEWCOMMENT --> <div class="block"> <form action="{COMMENTS_FORM_SEND}" method="post" name="newcomment"> <h4>{PHP.skinlang.comments.Comment}</h4> <table class="cells"> <!-- IF {PHP.usr.id} < 1 --> <tr> <td>{PHP.L.Name}:</td> <td>{COMMENTS_FORM_POSTER}</td> </tr> <!-- ENDIF --> <tr> <td style="width:100px;">{PHP.L.Comment}:</td> <td><div style="width:100%;">{COMMENTS_FORM_TEXTBOXER}</div></td> </tr> <!-- IF {PHP.usr.id} < 1 --> <tr> <td>Enter CAPTCHA code:</td> <td> {COMMENTS_FORM_VERIFY_IMG} <!-- ENDIF --> <!-- IF !{PHP.cfg.plugin.recaptcha.privatekey} AND {PHP.usr.id} < 1 --> <br />{COMMENTS_FORM_VERIFY} <!-- ENDIF --> <!-- IF {PHP.usr.id} < 1 --> </td> </tr> <!-- ENDIF --> <tr> <td colspan="2" class="valid"><input type="submit" value="{PHP.skinlang.comments.Send}"></td> </tr> </table> </form> </div> <!-- END: COMMENTS_NEWCOMMENT --> It's abit clumsy because nested conditions have not been implemented yet, but you get the idea, don't you? Btw, very soon we're going to release CAPTCHA Manager Plugin that would enable you to install as many captchas as you like, switch between them 'on the fly' and randomize them in submission forms. SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
|
Отредактировано: Kort (06.04.2009 15:27, 16 лет назад) |