Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5400

    Hi there,

    I am using the shoutbox theme contact form on the following page: http://www.heyheygorgeous.com/isocisalon/questions.

    But everything I send a message I get the following:

    Contact Us

    Send us mail

    I tried opening the contact-form.php file but I can’t figure out what is going wrong. I just want it to say “Your message has been sent, and we will get back to you in 24-48 hours. Thanks”!

    Hope you can help!

    Thanks,

    Enrique

    #50035

    Hey,

    open up includes/contact-form.php and change following code/text:

    "heading" => "<h3>".__('Send us mail','avia_framework')."</h3>",
    "success" => "<h3>".__('Your message has been sent!','avia_framework')."</h3><p>".__('Thank you!','avia_framework')."</p>",
    "submit" => __('Send','avia_framework'),
    "action" => get_permalink()

    #50036

    Hey thanks for your response! That’s exactly the code I have in the contact-form.php. I even copied and pasted it in again just to make sure and I still get the following screen after you submit a message, which says:

    Contact Us

    Send us mail

    Thanks,

    Enrique

    #50037

    Here is the whole contact-form.php:


    <?php

    /**

    * The Contact form gets generated by the avia_form class located in framework/php/class-form-generator.php

    */

    $form_args = array(

    “heading” => “<h3>”.__(‘Send us mail’,’avia_framework’).”</h3>”,

    “success” => “<h3>”.__(‘Your message has been sent!’,’avia_framework’).”</h3><p>”.__(‘Thank you!’,’avia_framework’).”</p>”,

    “submit” => __(‘Send’,’avia_framework’),

    “action” => get_permalink()

    );

    $elements = array(

    ‘yourname’ => array(‘type’=>’text’, ‘label’=>__(‘Name’,’avia_framework’), ‘check’=>’is_empty’), //user name

    ‘email’ => array(‘type’=>’text’, ‘label’=>__(‘E-Mail’,’avia_framework’), ‘check’=>’is_email’), //user email

    ‘website’ => array(‘type’=>’text’, ‘label’=>__(‘Website’,’avia_framework’), ‘check’=>”), //user website

    ‘subject’ => array(‘type’=>’text’, ‘label’=>__(‘Subject’,’avia_framework’), ‘check’=>’is_empty’), //subject

    ‘message’ => array(‘type’=>’textarea’,’label’=>__(‘Message’,’avia_framework’), ‘check’=>’is_empty’), //message

    ‘myemail’ => array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> avia_get_option(‘email’) ), //email adress the form should be sent to

    ‘myblogname’=> array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> get_option(‘blogname’) ), //name of the website, gets added to the subject line

    ‘username’ => array(‘type’=>’decoy’, ‘label’=>”, ‘check’=>’must_empty’), //decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted

    );

    $contact_form = new avia_form($form_args);

    $contact_form->create_elements($elements);

    $contact_form->display_form();

    ?>

    #50038

    Yes you need to replace the success message mit any text you like – I.e. replace:

    "success" => "<h3>".__('Your message has been sent!','avia_framework')."</h3><p>".__('Thank you!','avia_framework')."</p>",

    with:

    "success" => "<h3>".__('Your message has been sent, and we will get back to you in 24-48 hours.','avia_framework')."</h3><p>".__('Thank you!','avia_framework')."</p>",

    #50039

    Hi there,

    The problem is that after someone sends an mail no success message shows up (but the message goes through).

    Please try it for yourself and advise how I can fix this. http://www.heyheygorgeous.com/contact-us

    Thanks again.

    #50040

    I think this is an ajax/javascript conflict/error. I’d try following:

    1) Download the latest version of Shoutbox at http://themeforest.net and install the theme update (replace the old files with the new ones)

    2) If the update doesn’t solve the problem try to deactivate all plugins – maybe one causes a js conflict.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Contact Us Form Error’ is closed to new replies.