Re: captcha problem
Yes I did use Jquery and javascript to reload the captcha and append some versioning to the captcha image. I have solved the problem. I made a controller and an action with the captcha code. Thanks guys for the help. Is it just me or somebody else find the cakephp docs not good structured. It misses links to access information in a logical way. And also the examples and tutorials like adding a layer, authorization dont work out of the box. I followed the code and I manege to rewrite a working version. It's a same that simple code ment for beginers has bugs and code that dont work. By the way where can I write so someone to put a working version in there. I think that will greatly help the begginers. On Jan 24, 8:46 am, Daniel wrote: > Show us some code, try to describe in more detail what you are doing > and where you think it is going wrong then we might be more likely to > help you. > > I have a captcha working nicely in CakePHP 2.0, I followed the > approach on this > page:http://www.devarticles.in/cakephp/simple-captcha-component-for-cakeph... > ... except I used my own component for drawing the captcha. You need > to install JQuery or (I think) a similar Js helper to get the "reload > captcha" working. > > When you mention "header" do you mean something like this: > header('Content-Type: image/png'); ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: captcha problem
Your solution dosent work. I generate the image on the fly and I use header(). But the headers are already sent when I use a controller action because is embeded in the default page. On Jan 21, 7:24 pm, Daniel wrote: > Why are you putting the captcha in the img directory? You should have > the image source as an action, in your view (ctp) file: > > $this->Html->image($this->Html->url(array('controller'=>'yourcontoroller', > 'action'=>'captcha', > > time()),true), array('style'=>'','vspace'=>2)); ?> > > ... that way you can have a new captcha drawn every time from > 'yourcontroller'. If you are using the Auth component then remember > to allow the 'captcha' action. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: captcha problem
How to use recaptcha without code in PHP. If you are not ressistent to questions maybe you should change your line of work. Maybe cleaning tables will work better for you. You never know until you try. I'll code one more time in cakePHP and then I'll stop :d. On Jan 22, 5:55 pm, Tilen Majerle wrote: > I have enough you and your problems...use Recaptcha where all works fine !!! > > http://cakephp.siotn.eu/2011/12/cakephp-2-recaptcha-plugin/ > > And stop coding with cakephp if you don't know to set this up to work !! > > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2012/1/22 xparm...@yahoo.com > > > > > > > > > I will try this. However I get a new captcha every time. That is not > > the issue. So the image is ok. But in the file i got a line saying > > $_SESSION['captcha'] = value; > > The issue is that I cannot access in any way the captcha session > > variable from cakephp. > > > On Jan 21, 9:24 am, Daniel wrote: > > > Why are you putting the captcha in the img directory? You should have > > > the image source as an action, in your view (ctp) file: > > > > > $this->Html->image($this->Html->url(array('controller'=>'yourcontoroller', > > 'action'=>'captcha', > > > > time()),true), array('style'=>'','vspace'=>2)); ?> > > > > ... that way you can have a new captcha drawn every time from > > > 'yourcontroller'. If you are using the Auth component then remember > > > to allow the 'captcha' action. > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: captcha problem
I will try this. However I get a new captcha every time. That is not the issue. So the image is ok. But in the file i got a line saying $_SESSION['captcha'] = value; The issue is that I cannot access in any way the captcha session variable from cakephp. On Jan 21, 9:24 am, Daniel wrote: > Why are you putting the captcha in the img directory? You should have > the image source as an action, in your view (ctp) file: > > $this->Html->image($this->Html->url(array('controller'=>'yourcontoroller', > 'action'=>'captcha', > > time()),true), array('style'=>'','vspace'=>2)); ?> > > ... that way you can have a new captcha drawn every time from > 'yourcontroller'. If you are using the Auth component then remember > to allow the 'captcha' action. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
captcha problem
I made a captcha file an put it under the images directory. I display it as an image and works nice. However when i use the file with cake php I cannot find anywhere the value that I put it in session. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Cakephp 2.0.5 Auth component problem.
I made a basic login, authorization script with cakephp 2.0.5 using Auth component. When I use Firefox to test the aplication everithing works fine both on windows WAMP and on a virtualbox lamp (ubuntu). However when I try to test the aplication with google chrome or Internet explorer it works only on WAMP. On Ubuntu LAMP box it dose not work. I like not beeing able to save the cookie. When I try to login i dose not work and server create a ne session file every time I try to login. This new sesion creation dose not happen if I use Firefox an I am also able to see the set up cookie. I use the latest stable browser versions. Please help me out. It seems like Chrome is not able to set up the cookie right. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php