Re: nospam plugin
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 03/06/05 15:25, Murray Cumming wrote:
> On Sun, 2005-03-06 at 15:05 +0100, Murray Cumming wrote:
>> I'm trying to use the nospam plugin. It's the one that shows an image of
>> a number for human verification. It seems to be the only anti-spam
>> method for pyblosxom so far.
>> http://pyblosxom.sourceforge.net/blog/registry/input/nospam
>> Ignore my comment there - I do have PIL installed on the server.
>>
>> However, the nospam.png does not seem to be generated. For instance:
>> http://www.murrayc.com/blog/tech/2005-03-02-17-33.html
>>
>> Does anyone have any ideas about how to debug this? I'm not sure how to
>> run pyblosxom on the command line so that I can see some output there.
>
> After updating to pyblosxom 1.1 (from 1.0) and updating comments.py to
> the latest version, I see that the nospam does seem to be half working
> now - it now (silently) ignores comments without the correct secret
> number. But it still does not show the secret number.
>
Hi Murray
Get the compatibility.py plugin [1] and the session.py plugin [2] if you
haven't allready got them.
Make sure they are loaded before the nospam.py plugin.
e.g.:
py['load_plugins'] = [
'compatibility', ... ,'session' ,'nospam', ... ]
Then try accessing the image directly [3].
If it doesn't work like this, try uncommenting the line
import cgitb; cgitb.enable()
at the top of pyblosxom.cgi to get some debuging info.
hope this helps
cheers
Steven
[1] http://www.c-area.ch/code/pyblosxom/plugins/compatibility.py
[2] http://www.c-area.ch/code/pyblosxom/plugins/session.py
[3] http://www.murrayc.com/blog/nospam.png
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click