Hi :-).

On Thu, 17 Nov 2005 03:23:23 +0100, wrote:
> Then the question is that COREBlog is not a priority for you?

For this time, the answer is 'Yes' (sorry!).

> Some of us are asking about captchas and this kind of things. Did you 
> plan to implement them?
> Or you prefer COREBlog users to add features on it?
> Have you any kind of roadmap for COREBlog?

I think CAPTCHA feature is something like 'customizing'. You can add 
such a feature using 'only' ZMI. No need to fix source code of COREBlog.
A 'proxy method' - like following script - will help you :-).

----------------

REQUEST = container.REQUEST
try:
    if REQUEST.form['captchakey'] == 'XXXX':
        return context.addComment(title,author,body,moderated = moderated,
                              
email=email,url=url,created=created,REQUEST=REQUEST)
except:
    pass
return context.previewComment(title,author,body,moderated = moderated,
                              email=email,url=url,REQUEST=REQUEST)

-----------

Put this script in methods folder, with ID 'addCommentProxy'.
Be sure to replace 'XXXX' to your own secret CAPTCHA string.
Then, fix your comment_form, to call proxy method.

... "submit" name="methods/addComment:method" ....
to
... "submit" name="methods/addCommentProxy:method" ....
                                     ^^^^^

Add input field, with name="captchakey". This name appears in 
addCommentProxy method, you know :-).

<input id="captchakey" name="captchakey" size="5" value="">

Also put some image with secret captcha key, along with capthakey 
field. 

That's all.

Have fun :-).

----------------------------------------
Atsushi Shibata (Webcore Corp.)
[EMAIL PROTECTED]
http://www.webcore.co.jp/
----------------------------------------
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]

Reply via email to