Login  Register

Re: Option to remove Captcha?

Posted by Pedro on Oct 11, 2013; 4:06am
URL: https://support.nabble.com/Option-to-remove-Captcha-tp7587176p7587180.html

Please, go to "search macros" - >  "Macro source contains" : "captcha" .
Open handle_anonymous_submit and reply_form. You will take out the captcha block from both of them.
Edit it up like this:
 
<override_macro name="handle_anonymous_submit" requires="node_page">
    <n.if.visitor.is_anonymous>
        <then>
            <n.set_anonymous_name name="[n.anonymous_name_field.value/]" />
        </then>
    </n.if.visitor.is_anonymous>
</override_macro> 
<override_macro name="reply_form">
	<n.if.not.visitor.is_registered>
		<then.anonymous_name_control/>
	</n.if.not.visitor.is_registered> 
	<n.subject_control/>
	<n.message_control/> 
</override_macro> 
Let me know if you have any issues.
My test forum.