Great, thanks.
So , please find attached zip archive with captcha snippet.
How to use it:
1) Unpack zip file
2) Place 'fonts' dir with images into the assets directory
3) Make new snippet for example with name 'kcaptcha' in manager, paste content of kcaptcha_snippet.php into it.
So every time you'll call kcaptcha snippet it will generate image with random captcha string and will set 'captcha_keystring' session variable with
keystring from captcha image.
How use it in CMS:
1) Make new content type in MODx configuration for images - in my case it is 'image/gif'
2) Make new template for example with name 'kcaptcha' with only one call of snippet - [[kcaptcha]] ( you can add additional config parameters to this call -
size, background, etc. please refer header of snippet for additional info )
3) Make new empty document in document manager with template 'kcaptcha' , set alias to 'image.gif' ( or whatever or want with .gif) and type 'image/gif'
So far, you are ready.
Every call
http://www.yousite.com/image.gif will generate captcha image and set session variable to keystring.
I am novice in MODx cms, so may be here is the more clear way to use snippets ? For example may be better set some variable not session var ?
I don't know how to make it, so any ideas will be helpful.
Thanks,
Dmitry