4 comments found

  • Madagascar
  • Microlancer Beta Tester
  • Grew a moustache for the Envato Movember competition
  • Most Wanted Bounty Winner
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users
  • Bought between 1 and 9 items

Good Job ! GLWS :)

  • Sold between 1 000 and 5 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Referred between 1 and 9 users
  • Exclusive Author
  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

Good job, GLWS ;)

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

Good job, Why you enter in the site, the “about us” is active.

mwtemplates

Thank you! There is a small bug in “main.js” file. To fix it you need to move a following code from “document.ready” to “window.load” event section:


    var navHeight = jQuery('#header').outerHeight(true) + 10;
    jQuery('body').scrollspy({
        target: '.mainmenu_wrap',
        offset: navHeight
    });
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
thetzar Purchased

Hello!

Thank You for template!

Just one question about subscription and contact form

do i need to create a PHP form for it and its possible to connect with mail chimp ?

Thank You!

mwtemplates
Hello, thetzar! Thanks for purchase! You can create contact-form.php with following code and put it to your siteroot folder:

<?php 
//////////////////////////
//Specify default values//
//////////////////////////

//Your E-mail
$your_email = 'your@email.com';

//Default Subject if 'subject' field not specified
$default_subject = 'From My Contact Form';

//Message if 'name' field not specified
$name_not_specified = 'Please type a valid name';

//Message if 'message' field not specified
$message_not_specified = 'Please type a vaild message';

//Message if e-mail sent successfully
$email_was_sent = 'Thanks, your message successfully sent';

//Message if e-mail not sent (server not configured)
$server_not_configured = 'Sorry, mail server not configured';

///////////////////////////
//Contact Form Processing//
///////////////////////////
$errors = array();
if(isset($_POST['message']) and isset($_POST['name'])) {
    if(!empty($_POST['name']))
        $sender_name  = stripslashes(strip_tags(trim($_POST['name'])));

    if(!empty($_POST['message']))
        $message      = stripslashes(strip_tags(trim($_POST['message'])));

    if(!empty($_POST['email']))
        $sender_email = stripslashes(strip_tags(trim($_POST['email'])));

    if(!empty($_POST['subject']))
        $subject      = stripslashes(strip_tags(trim($_POST['subject'])));

    //Message if no sender name was specified
    if(empty($sender_name)) {
        $errors[] = $name_not_specified;
    }

    //Message if no message was specified
    if(empty($message)) {
        $errors[] = $message_not_specified;
    }

    $from = (!empty($sender_email)) ? 'From: '.$sender_email : '';

    $subject = (!empty($subject)) ? $subject : $default_subject;

    $message = (!empty($message)) ? wordwrap($message, 70) : '';

    //sending message if no errors
    if(empty($errors)) {
        if (mail($your_email, $subject, $message, $from)) {
            echo $email_was_sent;
        } else {
            $errors[] = $server_not_configured;
            echo implode('<br />', $errors );
        }
    } else {
        echo implode('<br />', $errors );
    }
}
?>

?>

You need a working PHP server on your hosting. Also ‘MAIL’ function should be enable on your hosting.

Also add following code in “document.ready” section in your “plugins.js” file



 //contact form processing
     jQuery('form.contact-form').on('submit', function( e ){
         e.preventDefault();
         var $form = jQuery(this);
         var request = $form.serialize();
         jQuery($form).find('p.contact-form-respond').remove();
         var ajax = jQuery.post( "contact-form.php", request )
             .done(function( data ) {
                 jQuery($form).find('[type="submit"]').attr('disabled',
false).parent().prepend('<p class="contact-form-respond
highlight">'+data+'</p>');
         })
             .fail(function( data ) {
                 jQuery($form).find('[type="submit"]').attr('disabled',
false).parent().prepend('<p>Mail cannot be sent.</p>');
         })
     }); 

We working on mailchimp form at the moment.

Default-user
thetzar Purchased

Thank you! Are you working as freelance? I may pay you for setup SUBSCRIPTION and CONTACT FORM ?

mwtemplates

Hello, thetzar! We can set up CONTACT FROM for your website for free. Subscribe form currently in development. Please send your login information (url and ftp-access) for your hosting, if you want to.

Default-user
thetzar Purchased

Thank you! wear i can should send it to? my email is Zaripovigor@yahoo.com you can send me you contact and i will replay with info!


by
by
by
by
by
by