[pmwiki-users] problems with Captcha
Chris Carter
ccarter at lbcc.edu
Tue Sep 18 13:20:56 CDT 2007
Dear PmWiki users,
I'm having problems with the Captcha recipe. Below I have pasted code from conifg.php and Site.EditForm. When I try to edit, all I get is "Must enter valid code." However, there is no input box, captcha code or submit button. Any suggestions?
Thanks.
Added to config.php:
include_once('cookbook/captcha.php');
$EnableCaptchaImage=1;
$EnablePostCaptchaRequired = 1;
Code from Site.EditForm (with Captcha added):
!!$[Editing {*$FullName}] %block class=wikiaction%
(:input form action={*$PageUrl} method=post:)
Enter value: {$Captcha} (:input captcha:)
(:input submit:)
(:input end:)
(:messages:)
(:div id='wikiedit':)
(:input e_form:)[[#top]](:e_guibuttons:)\\
(:input e_textarea:)\\
$[Summary]: (:input e_changesummary:)\\
$[Author]: (:input e_author:) (:input e_minorcheckbox:) $[This is a minor edit]\\
(:input e_savebutton:) (:input e_saveeditbutton:) (:input e_savedraftbutton:) (:input e_previewbutton:) (:input e_cancelbutton:)
(:input end:)
(:divend:)
(:include $[{$SiteGroup}/EditQuickReference]:)
(:if e_preview:)
!!$[Preview {*$FullName}]
'''$[Page is unsaved]'''
(:e_preview:)
----
'''$[End of preview -- remember to save]'''\\
[[#top | $[Top] ]]
(:if:)
Chris Carter
More information about the pmwiki-users
mailing list