Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Contact Plugin not validating

steamsteam
edited May 2015 in Vanilla 2.0 - 2.8

Hello,
The plugin sends emails but does not validate the form. I have the last version of vanilla.
You can check on - http://www.planamigo.org/contact
Any clues ?
Thanks.

Comments

  • edited May 2015

    What do you mean does not validate ? I just sent a test email. Plugin works if it send email. Maybe disable the plugin and re upload a new copy.

  • steamsteam
    edited May 2015

    I mean this plugin does not showing validation messages to user when you not set email for example... Does not showing any form validation message...

  • Maybe disable the plugin and re upload a new copy. Delete the .ini files from the cache .

    It works for me on several forums. Maybe try it with another theme or maybe another plugin is interfering.

  • I have tried changing themes and disabling plugins but no solution.

    And I made some investigation of code.
    I have put messages on default.php

    if($Sender->Form->IsPostBack() != False){
    $Sender->StatusMessage = T('True -  $Sender->Form->IsPostBack() != False');
    
    $Validation = new Gdn_Validation();
    

    .....omitted code

    }else{
        $Sender->StatusMessage = T('Else  - $Sender->Form->IsPostBack() != False');
    }
        $Sender->Render(dirname(__FILE__).DS.'contact.php');
    }
    

    It seems that not return Ajax messages are displayed. You can see with firebug - console - json - InformMessages - Message "True - $ Sender-> form-> IsPostBack () = False"
    but not seen this message on the screen...

    And another thing, if I make false match on
    if($Sender->Form->IsPostBack() == False){
    ....

    It showing validations errors when you enter the contact form for first time ...
    Something has to be related to Ajax response ...

  • Another thing I've seen this plugin not show contact breadcrumbs. I don't know how fix it.

  • BleistivtBleistivt Moderator

    This is how you set the breadcrumbs for a page:

    $Sender->SetData('Breadcrumbs', array(
        array(
            'Name' => 'Contact',
            'Url' => 'contact'
        )
    ));
    
  • steamsteam
    edited May 2015

    Thanks, I have done breadcrumb. I need to see how can fix form validations ...

Sign In or Register to comment.