How to enable Captcha in Rating form? 
Posted: 24 May 2007 05:09 PM   [ Ignore ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Hello,

I would like to use the captcha parameter but somehow it does not work.

Captchas are enabled in the weblog preferences.

Sample code:

{exp:rating:form entry_id="{entry_id}" form_name="rating" anonymous="yes" status="open" return="{path=’rating/thankyou’}"}
<input type="hidden" name="name" value="{screen_name}" />
<
input type="hidden" name="email" value="{email}" />
<
p><label>E-Mail:</label><input type="text" name="email" value="" /></p>
<
p><textarea name="review" rows="10" cols="63"></textarea></p>
<
p>
<
label for="review">Your Vendor Rating:</label>
<
select name="rating">
<
option value="1">1</option>
<
option value="2">2</option>
<
option value="3">3</option>
<
option value="4">4</option>
<
option value="5">5</option>
</
select>
</
p>
{if captcha}
<p>Submit the word you see below:</p>
<
p>
{captcha_word}
<br />
<
input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
</
p>
{/if}
<div id="comment-box-add"><input type="image" class="add-review" src="/images/add_review.gif" alt="" value="submit" /></div>
{/exp:rating:form}

That does not work, however. What am I doing wrongly?

Many thanks!

Maleika

Profile
 
 
Posted: 24 May 2007 11:43 PM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Maleika, I am trying to reproduce that on my local testbed. Stay tuned.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 24 May 2007 11:45 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Thank you, Ingmar.

Profile
 
 
Posted: 25 May 2007 12:02 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

I can’t get a captcha to appear, either. Will have Mitchell take a look at it.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 25 May 2007 09:54 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Maleika,

The documentation was incorrect on the captcha. Rather than this variable {captcha_word} use this {captcha}.

mk

 Signature 

Mitchell Kimbrough

Profile