This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » New Plugin sfCaptchaGD
New Plugin sfCaptchaGD [message #54790] Wed, 25 June 2008 13:46 Go to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Hi!

http://trac.symfony-project.com/wiki/sfCaptchaGDPlugin

I created this plugin because of sfCaptcha required JpGraph library, that is not free as GD.
Please write me comments about my work!
Re: New Plugin sfCaptchaGD [message #54864 is a reply to message #54790 ] Thu, 26 June 2008 07:36 Go to previous messageGo to next message
gains  is currently offline gains
Messages: 9
Registered: February 2008
Junior Member
First...great plugin its very easy to setup..

I did how ever notice one thing. The captcha image always generators the number combination of "2695" no matter how many times i reload the page. Is this correct??

Apart from that its a great plugin.

cheers
Re: New Plugin sfCaptchaGD [message #54869 is a reply to message #54790 ] Thu, 26 June 2008 08:44 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
When used in form, if user filled captcha input field and code is right, code is unchanged, if here is error - code will change. That's for usability Smile
Re: New Plugin sfCaptchaGD [message #54870 is a reply to message #54869 ] Thu, 26 June 2008 08:49 Go to previous messageGo to next message
gains  is currently offline gains
Messages: 9
Registered: February 2008
Junior Member
Yes, after reviewing the code i did notice that the generated value is stored in the session. And now i understand from a usability point why its stored.

thanks for the quick reply.

cheers
Re: New Plugin sfCaptchaGD [message #57686 is a reply to message #54790 ] Sun, 03 August 2008 04:16 Go to previous messageGo to next message
dhobson  is currently offline dhobson
Messages: 85
Registered: February 2007
Location: Houston, Texas
Member
Please correct your documentation in the plugin Readme
Some of the instructions don't make sense.


    hasError('captcha')) echo form_error('captcha') ?>
    get('captcha')) ?><br>
    <img src='<?php echo url_for('/captcha').'?'.time(); ?>'>


    all:
      .settings:
        enabled_modules:      [sfCaptchaGD](default,)


Don Hobson
http://www.myonlinetown.com/index.php
http://www.stinkybathrooms.com/
Re: New Plugin sfCaptchaGD [message #57889 is a reply to message #54790 ] Tue, 05 August 2008 10:08 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
hi,
i was wondering, if its going to have and upgrade for plugin + tutorial for the symfony 1.1

cheers
dohfr
Re: New Plugin sfCaptchaGD [message #58184 is a reply to message #57686 ] Thu, 07 August 2008 14:02 Go to previous messageGo to next message
sklefisch  is currently offline sklefisch
Messages: 11
Registered: August 2008
Location: Germany
Junior Member
hi,
i have a little problem with the plugin. i followed the readme instructions but all i see in the form is a textbox, but no captcha image. is there a missing part in the instruction?

regards,
Stefan
Re: New Plugin sfCaptchaGD [message #58422 is a reply to message #54790 ] Mon, 11 August 2008 13:11 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Hi, all!
I upgraded plugin for sf 1.1 + some minor fixes.

Please note!
Wiki Readme Markdown in http://www.symfony-project.org/plugins/sfCaptchaGDPlugin are bad, please see right Readme file in the archive http://plugins.symfony-project.com/sfCaptchaGDPlugin or below.

Waiting for your opinions Smile

Install instruction:
Enable one or more modules in your `settings.yml`
* sfCaptchaGD

    all:
      .settings:
        enabled_modules:      [default, sfCaptchaGD]



Clear your cache

    symfony cc


== Secure your form ==

To secure a symfony form:

Put the following lines inside of your form
    <?php if ($sf_request->hasError('captcha')) echo form_error('captcha') ?>
    <?php echo input_tag('captcha', $sf_params->get('captcha')) ?><br>
    <a href='' onClick='return false' title='Reload image'><img src='/captcha?<?php echo time(); ?>' onClick='this.src="/captcha?r=" + Math.random() + "&reload=1"'></a>


Put the following code into your form's validator yml file:

        fields:
          captcha:
            required:
              msg:            Enter characters from image
            sfCaptchaGDValidator:
              captcha_error:  Entered characters are wrong, try again


== Configuration options ==
These options are default for captcha, you can change any of them, putting in settings.yml

all:
    sf_captchagd:
        image_width:                100 # image width in pixels
        image_height:               30 # image height in pixels
        chars:                      "123456789" # possible chars in captcha
        length:                     4 # length of captcha
        font_size:                  18 # font size
        
        # possible chars colors
        font_color:                 ["252525", "8b8787", "550707", "3526E6", "88531E"]
        
        # chars fonts
        fonts:                      ["akbar/akbar.ttf", "brushcut/BRUSHCUT.TTF", "molten/molten.ttf", "planet_benson/Planetbe.ttf", "whoobub/WHOOBUB_.TTF"] 
        background_color:           DDDDDD # image background color
        border_color:               000000 # image border color
Re: New Plugin sfCaptchaGD [message #58458 is a reply to message #58422 ] Mon, 11 August 2008 16:56 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
hey ^^
hum.. i was wondering if you have the equivalent of :
  <?php if ($sf_request->hasError('captcha')) echo form_error('captcha') ?>
    <?php echo input_tag('captcha', $sf_params->get('captcha')) ?><br>
    <a href='' onClick='return false' title='Reload image'><img src='/captcha?<?php echo time(); ?>' onClick='this.src="/captcha?r=" + Math.random() + "&reload=1"'></a>


for symfony 1.1 ? Razz

because i got that error :
[sfConfigurationException]
You must set "compat_10" to true if you want to use this method which is deprecated.

also

Warning: call_user_func(sfCaptchaGDRouting::listenToRoutingLoadConfigurationEvent) [function.call-user-func]: 
First argument is expected to be a valid callback in C:\wamp\bin\php\php5.2.5\PEAR\symfony\event\sfEventDispatcher.class.php on line 77



should i include something about helper?

thank for your updated

dohfr

ps: update the "readme" also on the plugin session Surprised

[Updated on: Tue, 12 August 2008 16:13]

Re: New Plugin sfCaptchaGD [message #58522 is a reply to message #58458 ] Tue, 12 August 2008 15:49 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Yes, you need to set in settings.yml:
compat_10: on

It's because in example I used 1.0 forms, but you can adapt it to 1.1 simply.
Re: New Plugin sfCaptchaGD [message #58524 is a reply to message #54790 ] Tue, 12 August 2008 16:07 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
I've got the same error than dohfr with sf 1.1.0:

Warning: call_user_func(sfCaptchaGDRouting::listenToRoutingLoadConfigurationEvent) [function.call-user-func]:
First argument is expected to be a valid callback in /.../sfEventDispatcher.class.php on line 77


But my conf looks good

all:
  .settings:
    compat_10:              on
    enabled_modules:        [default, sfCaptchaGD]

[Updated on: Tue, 12 August 2008 16:37]

Re: New Plugin sfCaptchaGD [message #58525 is a reply to message #58524 ] Tue, 12 August 2008 16:12 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
hey Grin
i still havent solve the problem since i can't display the picture
neither get the genretated code


1) i haven't put the compat_10 because it seems that function
are deprecated

2) i'm not sure but i think you have to put at "true" and not "on"

compat_10:  true
compat_10:  on


i've edited the code of the template but i dont really get how to put the "hasError" into symfony 1.1 validator or something

Embarassed

[Updated on: Tue, 12 August 2008 16:14]

Re: New Plugin sfCaptchaGD [message #58591 is a reply to message #58524 ] Wed, 13 August 2008 14:09 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
Warning: call_user_func(sfCaptchaGDRouting::listenToRoutingLoadConfigurationEvent) [function.call-user-func]:
First argument is expected to be a valid callback in /.../sfEventDispatcher.class.php on line 77


I can't solve this error with sf 1.1. I get it when I enable the sfCaptchaGD module, without adding code anywhere... Is there a solution to fix this problem?

Thanks Smile
Re: New Plugin sfCaptchaGD [message #58630 is a reply to message #54790 ] Thu, 14 August 2008 02:08 Go to previous messageGo to next message
danpowered  is currently offline danpowered
Messages: 8
Registered: May 2008
Junior Member
I'd like to add something that might help some people here...

If you have the captcha image generated but WITHOUT characters or anything, try adding arial.ttf in the plugin data/fonts directory.

I guess this has to do with the default font used by gd if none is provided.

Thanks for the plugin.

Edit: forgot to say that it happened on a development pc with xampp on windows. So maybe that GD will check out for another font.

[Updated on: Thu, 14 August 2008 02:09]

Re: New Plugin sfCaptchaGD [message #58644 is a reply to message #58525 ] Thu, 14 August 2008 09:46 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Quote:


2) i'm not sure but i think you have to put at "true" and not "on"


I set "on" because it works 100% Smile

Why I use compat_10? Because here is so many old good plugins and tons of code wrote for sf 1.0. Also new forms 1.1 are to complex.

2 gregoire_m: what versions of plugin and sf do you use?

2 danpowered: fonts are already included in plugin.
Re: New Plugin sfCaptchaGD [message #58650 is a reply to message #58644 ] Thu, 14 August 2008 10:08 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
GliNT wrote on Thu, 14 August 2008 09:46


2 gregoire_m: what versions of plugin and sf do you use?


sfCaptchaGD v1.0.4
symfony v1.1.0

edit: same error with symfony 1.1.1

[Updated on: Thu, 14 August 2008 10:24]

Re: New Plugin sfCaptchaGD [message #58651 is a reply to message #58644 ] Thu, 14 August 2008 10:09 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
Hey,
So your plugin not really 100% compactible with sf v1.1 ?Sad(.
i was waiting for any reply about the bug,i guess i'ma find something else then.

compat_10 is (deprecated) on symfony 1.1 :/ since it dont use anymore helpers.
Even when i put compat_10: on, it still dont work Mad


That mean when symfony going to turn on 1.2, since 1.0 is not compactible with 1.1 it wont be with 1.2 :/

well... Sad
Re: New Plugin sfCaptchaGD [message #58692 is a reply to message #58651 ] Thu, 14 August 2008 16:07 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Hi all again!
I've forgot to include one class Sad
dohfr, gregoire_m, danpowered and others, please upgrade to latest version!

Also I adapted for sf 1.1, see README for details:
== Secure your form in symfony 1.1 ==

Here is an example form class:
    class ContactForm extends sfForm
    {
      public function configure()
      {
        $this->setWidgets(array(
          'name'    => new sfWidgetFormInput(),
          'email'   => new sfWidgetFormInput(),
          'message' => new sfWidgetFormTextarea(),
          'captcha' => new sfWidgetFormInput(),
        ));
        $this->widgetSchema->setLabels(array(
          'name'    => 'Your name',
          'email'   => 'Your email address',
          'message' => 'Your message',
          'captcha' => 'Enter captcha code',
        ));
    
        $this->setValidators(array(
          'name'    => new sfValidatorString(array('required' => true)),
          'email'   => new sfValidatorEmail(),
          'message' => new sfValidatorString(array('min_length' => 4, 'required' => true)),
          
          // Options: 
          // length(optional) - length of code
          'captcha' => new sfValidatorCaptchaGD(array('length' => 4, 'required' => true), array('length' => 'Code length must be %length% characters', 'captcha' => 'Entered code is wrong')),
        ));
    
      }
    }


Here is an example template:
    <form action="<?php echo url_for('contact/index') ?>" method="POST">
      <table>
        <?php echo $form['name']->renderRow() ?>
        <?php echo $form['email']->renderRow() ?>
        <?php echo $form['message']->renderRow() ?>
        <?php echo $form['captcha']->renderRow() ?>
        <tr>
          <td></td>
          <td><a href='' onClick='return false' title='Reload image'><img src='/captcha?<?php echo time(); ?>' onClick='this.src="/captcha?r=" + Math.random() + "&reload=1"' border='0'></a></td>
        </tr>
        <tr>
          <td colspan="2">
            <input type="submit" />
          </td>
        </tr>
      </table>
    </form>


Re: New Plugin sfCaptchaGD [message #58698 is a reply to message #54790 ] Thu, 14 August 2008 16:50 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
Thanks!
It works for me, until I set "is_secure: on" on my frontend app...
How can I tell symfony that the captcha is a non secure thing that doesn't need the user to be authenticated?
Re: New Plugin sfCaptchaGD [message #58907 is a reply to message #58698 ] Mon, 18 August 2008 10:01 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
gregoire_m wrote on Thu, 14 August 2008 16:50

Thanks!
It works for me, until I set "is_secure: on" on my frontend app...
How can I tell symfony that the captcha is a non secure thing that doesn't need the user to be authenticated?

I had to add a security.yml file into your config plugin folder (myproject/plugins/sfCaptchaGDPlugin/config/security.yml) containing:
all:
  is_secure: off
Re: New Plugin sfCaptchaGD [message #58918 is a reply to message #54790 ] Mon, 18 August 2008 11:18 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
i don't know whats wrong with me
i still cant get the picture Sad

i ve set <img border='1' >
but it cant display it

and the stuff it generated to me is
<td><a href='' onClick='return false' title='Reload image'><img src='/captcha?1219051026' onClick='this.src="/captcha?r=" + Math.random() + "&reload=1"' border='0'></a></td>



but no display Sad
any clue?
Re: New Plugin sfCaptchaGD [message #58924 is a reply to message #58918 ] Mon, 18 August 2008 11:53 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
well Sad

any help with a working package ? or maybe the action.class.php ?

please >.<
Re: New Plugin sfCaptchaGD [message #58928 is a reply to message #58924 ] Mon, 18 August 2008 12:42 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
dohfr, did you upgraded plugin to version 1.0.5?
Re: New Plugin sfCaptchaGD [message #58930 is a reply to message #58928 ] Mon, 18 August 2008 12:48 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
yep exactly
i've seen that you've reply to this topic
then i went on the plugin part using
php symfony installation

i've tried on symfony 1.1.0 and also 1.1.1

using schema.yml generation crud according to your properties
- id
- name
- email
- message
- captcha // even if i dont wanna store the captcha on the db

after generated the crud i've edited my forms and my template according to the example you've posted here

it make me something blank Sad i tried to put border='1' to check if the input or the picture was here but it make something like
|
cant display the whole pics even with width='100'

sorry to bother you Razz
but thx for the reply
hope that we going to find what's wrong

edited :
i havent forget to activate the plugin in setting.yml part
i've try with and without the app.yml
>.<

here i join my test project with symfony 1.1.0

[Updated on: Tue, 19 August 2008 10:48]

Re: New Plugin sfCaptchaGD [message #58931 is a reply to message #58930 ] Mon, 18 August 2008 13:30 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
dohfr, some mistake in action.class.php, please upgrade plugin to latest version and try again.
Re: New Plugin sfCaptchaGD [message #58936 is a reply to message #58931 ] Mon, 18 August 2008 14:20 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
in my action.class.php?
in the plugin or in mine?
i'm try to download the pear package then?

well i re downloaded the plugin
it passed at 1.0.7 ?

[Updated on: Mon, 18 August 2008 14:24]

Re: New Plugin sfCaptchaGD [message #58944 is a reply to message #58936 ] Mon, 18 August 2008 15:37 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Mistake was in plugin, just upgrade to latest version.
Re: New Plugin sfCaptchaGD [message #58945 is a reply to message #58944 ] Mon, 18 August 2008 15:41 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
well doesnt work for me on the 1.0.7 :/
well i have huge project to handle Razz
i let you check about ur plugin

i'm work on it back later Surprised
Re: New Plugin sfCaptchaGD [message #58987 is a reply to message #58945 ] Tue, 19 August 2008 10:52 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
well here the package i've test with your plugin today

symfony 1.1.0
mozilla firefox 3
php 5.2.5
plugin sfCaptchaGD 1.0.7

it still dont work for me Sad can someone help ?

here the package that i made,
can someone check if i made an error? Sad using

http://localhost/pop/web/frontend_dev.php/contact/

getting headach Sad doesnt even display something for me Sad

  • Attachment: pop.rar
    (Size: 524.58KB, Downloaded 131 time(s))

Re: New Plugin sfCaptchaGD [message #58990 is a reply to message #58987 ] Tue, 19 August 2008 11:36 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Try to look at log/frontend_dev.log for errors.
Re: New Plugin sfCaptchaGD [message #58993 is a reply to message #58990 ] Tue, 19 August 2008 11:43 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
it said default wasnt enabled

well i, set back my setting.yml

as:
enabled_modules: [default, sfCaptchaGD]

it was at
enabled_modules: [sfCaptchaGD]

well but i cant display the things :/


here the following log

Aug 19 11:46:11 symfony [info] {sfPatternRouting} Connect "/"
Aug 19 11:46:11 symfony [info] {sfPatternRouting} Connect "/symfony/:action/*"
Aug 19 11:46:11 symfony [info] {sfPatternRouting} Connect "/:module"
Aug 19 11:46:11 symfony [info] {sfPatternRouting} Connect "/:module/:action/*"
Aug 19 11:46:11 symfony [info] {sfPatternRouting} Connect "/captcha"
Aug 19 11:46:11 symfony [info] {sfFrontWebController} Initialization
Aug 19 11:46:11 symfony [info] {sfPatternRouting} Match route [default] for "/:module/:action/*"
Aug 19 11:46:11 symfony [info] {sfWebRequest} Request parameters array (  'module' => 'contact',  'action' => 'create',)
Aug 19 11:46:11 symfony [info] {sfContext} Initialization
Aug 19 11:46:11 symfony [info] {sfFrontWebController} Dispatch request
Aug 19 11:46:11 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Aug 19 11:46:11 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter"
Aug 19 11:46:11 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Aug 19 11:46:11 symfony [info] {contactActions} Call "contactActions->executeCreate()"
Aug 19 11:46:11 symfony [info] {contactActions} Change template to "CURRENT/edit"
Aug 19 11:46:11 symfony [info] {sfPHPView} Initialize view for "contact/create"
Aug 19 11:46:11 symfony [info] {sfPHPView} Render "C:\wamp\www\pop\apps\frontend\modules/contact/templates/editSuccess.php"
Aug 19 11:46:11 symfony [info] {sfPHPView} Decorate content with "C:\wamp\www\pop\apps\frontend\templates/layout.php"
Aug 19 11:46:11 symfony [info] {sfPHPView} Render "C:\wamp\www\pop\apps\frontend\templates/layout.php"
Aug 19 11:46:11 symfony [info] {sfRenderingFilter} Render to the client
Aug 19 11:46:11 symfony [info] {sfWebResponse} Send status "HTTP/1.1 200 OK"
Aug 19 11:46:11 symfony [info] {sfWebResponse} Send header "Content-Type": "text/html; charset=utf-8"
Aug 19 11:46:11 symfony [info] {sfWebDebugLogger} Configuration 63.59 ms (9)
Aug 19 11:46:11 symfony [info] {sfWebDebugLogger} Action "contact/create" 103.27 ms (1)
Aug 19 11:46:11 symfony [info] {sfWebDebugLogger} View "Success" for "contact/create" 61.39 ms (1)
Aug 19 11:46:11 symfony [info] {sfWebResponse} Send content (23237 o)

  • Attachment: blank.jpg
    (Size: 12.38KB, Downloaded 123 time(s))

[Updated on: Tue, 19 August 2008 11:48]

Re: New Plugin sfCaptchaGD [message #58995 is a reply to message #58993 ] Tue, 19 August 2008 12:00 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
It seemd something goes wrong, see frontend_dev.log or apache error_log.
Re: New Plugin sfCaptchaGD [message #58996 is a reply to message #58995 ] Tue, 19 August 2008 12:03 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Try to load only captcha picture and see the log:
/frontend_dev.php/captcha?1219140054
Re: New Plugin sfCaptchaGD [message #58997 is a reply to message #58996 ] Tue, 19 August 2008 12:07 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
yeah i got only frontend_dev.log

hum i've check my logs

it seems that when i try ur link

http://localhost/pop/web/frontend_dev.php/captcha?1219140054
it generate me a picture ( YAY it display the pics here)

but not when it in my module (contact)
How about to link that

here the log file

Re: New Plugin sfCaptchaGD [message #59001 is a reply to message #58997 ] Tue, 19 August 2008 12:29 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
As I see, your symfony root is in /pop/web/ ?
Re: New Plugin sfCaptchaGD [message #59002 is a reply to message #59001 ] Tue, 19 August 2008 12:31 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
i guess so Smile

can i edit that ? (where?)

well i'm new at symfony (started with the 1.1)
for the moment i havent work much on the configuration files

because i have lots of module to developpe
and captcha it's just a very little part of it Razz

but i'm glad that the plugin author can help debuging Smile
Re: New Plugin sfCaptchaGD [message #59006 is a reply to message #59002 ] Tue, 19 August 2008 12:54 Go to previous messageGo to next message
GliNT  is currently offline GliNT
Messages: 30
Registered: June 2008
Member
Try to put this in form:
<img src='/pop/web/index.php/captcha?<?php echo time(); ?>' onClick='this.src="/pop/web/index.php/captcha?r=" + Math.random() + "&reload=1"' border='0'>

[Updated on: Tue, 19 August 2008 12:57]

Re: New Plugin sfCaptchaGD [message #59008 is a reply to message #59006 ] Tue, 19 August 2008 12:59 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
hum more details please? Shocked
i dont get what you mean by 'no message body' ?

[Updated on: Tue, 19 August 2008 12:59]

Re: New Plugin sfCaptchaGD [message #59009 is a reply to message #59008 ] Tue, 19 August 2008 13:09 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
Hey thank's Razz

i finaly figure out how to make it work on my page ^^/

well after work, i'm going to try to make lil upgrade for your captcha plugin and submit it

Grin
now my forms is very pretty xD
Re: New Plugin sfCaptchaGD [message #59170 is a reply to message #58907 ] Thu, 21 August 2008 09:25 Go to previous messageGo to previous message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
gregoire_m wrote on Mon, 18 August 2008 10:01

gregoire_m wrote on Thu, 14 August 2008 16:50

Thanks!
It works for me, until I set "is_secure: on" on my frontend app...
How can I tell symfony that the captcha is a non secure thing that doesn't need the user to be authenticated?

I had to add a security.yml file into your config plugin folder (myproject/plugins/sfCaptchaGDPlugin/config/security.yml) containing:
all:
  is_secure: off


Hum... actually it doesn't work... Sad
I still have a security problem even if I add the security.yml file in the plugin config folder...
If someone has an idea... Smile
Previous Topic:sfWidgetFormJqueryDate problems
Next Topic:SfEasyGmapPlugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software