Re: [Catalyst] Howto Catalyst::Plugin::Captcha ?
On Fri, May 08, 2009 at 03:33:52PM +0200, t...@dix.cz wrote: Hello catalysters, I'm trying to use Catalyst::Plugin::Captcha Don't. Controller::reCAPTCHA is far saner. This, as with many things, should never have been a plugin, and as such it's kinda fragile, sorry. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst (@) shadowcat.co.ukhttp://shadowcat.co.uk/blog/matt-s-trout/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: Solved: [Catalyst] Howto Catalyst::Plugin::Captcha ?
t...@dix.cz wrote: I see! img src=[% c.uri_for('captcha') -%] / works for me. Thanx for good hint! Please, please please supply a doc patch to the module, or _at least_ report a bug in the module's rt.cpan queue, so that hopefully this will get fixed and nobody will struggle in future? Tomas Wow, someone who spells Tomas the 'correct' way, well done your parents. ;) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Howto Catalyst::Plugin::Captcha ?
Hello catalysters, I'm trying to use Catalyst::Plugin::Captcha (v 0.03). Code is writen according the man page. Calling in controller $c-create_captcha(); imediatelly displays the image. How can be the image passed to TT view? Many thanks in advance, --th ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Howto Catalyst::Plugin::Captcha ?
On 8 May 2009, at 14:33, t...@dix.cz wrote: Hello catalysters, I'm trying to use Catalyst::Plugin::Captcha (v 0.03). Code is writen according the man page. Calling in controller $c-create_captcha(); imediatelly displays the image. How can be the image passed to TT view? In your TT template: [% c.create_captcha %] should work? /joel ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Howto Catalyst::Plugin::Captcha ?
Calling in controller $c-create_captcha(); imediatelly displays the image. How can be the image passed to TT view? In your TT template: [% c.create_captcha %] should work? No. I'v tried it already. The output is mess.. looking to the module the create_captcha method ends: ...snip... $c-res-headers-expires( time() ); $c-res-headers-header( 'Last-Modified' = HTTP::Date::time2str ); $c-res-headers-header( 'Pragma'= 'no-cache' ); $c-res-headers-header( 'Cache-Control' = 'no-cache' ); $c-res-content_type(image/$mime_type); $c-res-output($image_data); } Hm, isn't it buggy? --th ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Howto Catalyst::Plugin::Captcha ?
I'd recommend using Catalyst::Controller::reCAPTCHA instead to be honest. Get the usage from the sample app in the t/ dir rather than the actual documentaion, it may be inaccurate On 09/05/2009, at 12:40 AM, t...@dix.cz wrote: Calling in controller $c-create_captcha(); imediatelly displays the image. How can be the image passed to TT view? In your TT template: [% c.create_captcha %] should work? No. I'v tried it already. The output is mess.. looking to the module the create_captcha method ends: ...snip... $c-res-headers-expires( time() ); $c-res-headers-header( 'Last-Modified' = HTTP::Date::time2str ); $c-res-headers-header( 'Pragma'= 'no-cache' ); $c-res-headers-header( 'Cache-Control' = 'no-cache' ); $c-res-content_type(image/$mime_type); $c-res-output($image_data); } Hm, isn't it buggy? --th ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Howto Catalyst::Plugin::Captcha ?
Calling in controller $c-create_captcha(); imediatelly displays the image. How can be the image passed to TT view? In your TT template: [% c.create_captcha %] Accoring to the code I guess it is meant as calling create_captcha() in a controller that is accessed via an img tag: img src=http://my.app/createcaptcha; / ...where createcaptcha is the controller calling the Plugin::Captcha method. -- rainboxx Matthias Dietrich Freier Software Engineer rainboxx | Tel.: +49 (0) 151 / 50 60 78 64 Tölzer Str. 19| Mail: m...@rainboxx.de 70372 Stuttgart | WWW : http://www.rainboxx.de XING: https://www.xing.com/profile/Matthias_Dietrich18 GULP: http://www.gulp.de/profil/rainboxx.html NEU: Auf Perl spezialisierte Projektvermittlung! Bald mehr auf http://www.perl-experten.de PGP.sig Description: Signierter Teil der Nachricht ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Solved: [Catalyst] Howto Catalyst::Plugin::Captcha ?
img src=http://my.app/createcaptcha; / ...where createcaptcha is the controller calling the Plugin::Captcha method. I see! img src=[% c.uri_for('captcha') -%] / works for me. Thanx for good hint! Tomas ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/