54 comments found.
Hello, Nice works.
How can i add a more element inside the contact form?
- Copy text “input” field and change it’s “id” and “name” attributes
- Edit your “contact-form.php” file, which is in your siteroot. You need some PHP skills to catch your new field variables from the “POST” array and add your new fields to ”$message” variable
if(!empty($_POST['input_name_attr']))
$input_name_attr = stripslashes(strip_tags(trim($_POST['input_name_attr'])));
Replace “input_name_attr” with “name” attribute from your input field and concatinate your new variable like this
$message .= $input_name_attr;
in line 58
This my form on html file
<form class="contact-form" method="post" action="/">
<p class="contact-form-name">
<label for="name">Nome <span class="required">*</span></label>
<input type="text" aria-required="true" size="30" value="" name="name" id="name" class="form-control" placeholder="Nome - es. Mario Rossi *">
</p>
<p class="contact-form-rgs">
<label for="rgs">Ragione Sociale</label>
<input type="text" aria-required="true" size="30" value="" name="rgs" id="rgs" class="form-control" placeholder="Ragione Sociale - es. Città Mercato">
</p>
<p class="contact-form-address">
<label for="address">Indirizzo</label>
<input type="text" aria-required="true" size="30" value="" name="address" id="address" class="form-control" placeholder="Indirizzo - es. Via Piave 6">
</p>
<p class="contact-form-city">
<label for="city">Città</label>
<input type="text" aria-required="true" size="30" value="" name="city" id="city" class="form-control" placeholder="Città - es. Milano">
</p>
<p class="contact-form-email">
<label for="email">Email <span class="required">*</span></label>
<input type="email" aria-required="true" size="30" value="" name="email" id="email" class="form-control" placeholder="Email - es. info@cittamercato.it *">
</p>
<p class="contact-form-phone">
<label for="phone">Telefono</label>
<input type="number" aria-required="true" size="30" value="" name="phone" id="phone" class="form-control" placeholder="Telefono - es. +39.039.123456">
</p>
<p class="contact-form-message">
<label for="message">Messaggio <span class="required">*</span></label>
<textarea aria-required="true" rows="8" cols="45" name="message" id="message" class="form-control" placeholder="Lascia qui il tuo messaggio *"></textarea>
</p>
<p>
* campi richiesti obbligatori
</p>
<p class="contact-form-submit text-center vertical-margin-60">
<input type="submit" value="Invia" id="contact_form_submit" name="contact_submit" class="theme_btn inverse">
</p>
</form>
this my php
<?php
//////////////////////////
//Specify default values//
//////////////////////////
//Your E-mail
$your_email = 'michele.meloni@me.com';
//Default Subject if 'subject' field not specified
$default_subject = 'Richiesta informazioni';
//Message if 'name' field not specified
$name_not_specified = 'Inserisci il tuo nome';
//Message if 'mail' field not specified
$email_not_specified = 'Inserisci un indirizzo email valido';
//Message if 'message' field not specified
$message_not_specified = 'Inserisci un messaggio';
//Message if e-mail sent successfully
$email_was_sent = 'Grazie, il tuo messaggio è stato inviato correttamente';
//Message if e-mail not sent (server not configured)
$server_not_configured = 'Ci scusiamo, il server mail non risponde correttamente';
///////////////////////////
//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 sender mail was specified
if(empty($email)) {
$errors[] = $email_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 );
}
}
?>
can you help me please?
<?php
//////////////////////////
//Specify default values//
//////////////////////////
//Your E-mail
$your_email = 'michele.meloni@me.com';
//Default Subject if 'subject' field not specified
$default_subject = 'Richiesta informazioni';
//Message if 'name' field not specified
$name_not_specified = 'Inserisci il tuo nome';
//Message if 'mail' field not specified
$email_not_specified = 'Inserisci un indirizzo email valido';
//Message if 'message' field not specified
$message_not_specified = 'Inserisci un messaggio';
//Message if e-mail sent successfully
$email_was_sent = 'Grazie, il tuo messaggio è stato inviato correttamente';
//Message if e-mail not sent (server not configured)
$server_not_configured = 'Ci scusiamo, il server mail non risponde correttamente';
//new code
//Message if 'rgs' field not specified
$rgs_not_specified = 'Inserisci il tuo rgs';
//Message if 'address' field not specified
$address_not_specified = 'Inserisci il tuo address';
//Message if 'city' field not specified
$city_not_specified = 'Inserisci il tuo city';
//Message if 'phone' field not specified
$phone_not_specified = 'Inserisci il tuo phone';
///////////////////////////
//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'])));
//new code
if(!empty($_POST['rgs']))
$rgs = stripslashes(strip_tags(trim($_POST['rgs'])));
if(!empty($_POST['address']))
$address = stripslashes(strip_tags(trim($_POST['address'])));
if(!empty($_POST['city']))
$city = stripslashes(strip_tags(trim($_POST['city'])));
if(!empty($_POST['phone']))
$phone = stripslashes(strip_tags(trim($_POST['phone'])));
//Message if no sender name was specified
if(empty($sender_name)) {
$errors[] = $name_not_specified;
}
//Message if no sender mail was specified
if(empty($sender_email)) {
$errors[] = $email_not_specified;
}
//Message if no message was specified
if(empty($message)) {
$errors[] = $message_not_specified;
}
//Message if no rgs was specified
if(empty($rgs)) {
$errors[] = $rgs_not_specified;
}
//Message if no address was specified
if(empty($address)) {
$errors[] = $address_not_specified;
}
//Message if no city was specified
if(empty($city)) {
$errors[] = $city_not_specified;
}
//Message if no phone was specified
if(empty($phone)) {
$errors[] = $phone_not_specified;
}
$from = (!empty($sender_email)) ? 'From: '.$sender_email : '';
$subject = (!empty($subject)) ? $subject : $default_subject;
$message = (!empty($message)) ? wordwrap($message, 70) : '';
$message .= ' - rgs - ' . $rgs;
$message .= ' - address - ' . $address;
$message .= ' - city - ' . $city;
$message .= ' - phone - ' . $phone;
$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 );
}
}
?>
thank you 
Really Nice work, any idea when the Wordpress version will be available? Thanks 
Hello! Thank You for purchasing. WP version is in progress now. We hope it would be available at the end of next week. Anyway we’ll notice You.
Thanks, any updates? 
Hello, funktronix!
We’re glad to notice You that WP version of SimpleFlex is out now. Here it is http://themeforest.net/item/simpleflex-flat-one-page-wordpress-theme/7247149
Sorry for long wait.
Really good work. But i have a question. Is ist possible to change the colors of the the first slider? I´ve searched for the bg-color attribute in the JS that is mentioned for the main slider but i did not find anything? I do not want to change the color settings at all, only for the main slider! Many thanks!
Hello, Denis!
Thanks for purchase!
First of all, you need to create classes in your css file “bg-color4”, “bg-color5” etc. and set for them “background-color” property to color that you need.
Then if you are using light version with FlexSlider as main slider, you need to change “data-bg” attribute for slider “li” elements to class that you create earlier (‘bg-color4” etc.)
If you using extended version with Fraction Slider, you need to modify “main.js” file, lines 199, 200 like this
if (currentClassNum > 6) {
currentClassNum = 4;
};
This numbers are bg-colorX nums.
Also don’t forget to change class for “mainslider” section to your new css class.
Thanks for the fast reply. It works fine for me!
Hi, nice work.
How long until the Wordpress version is done?
Hello, Thanks! I think it would be available in a couple days. Maybe next week. We will notify you when it will be ready.
Hello, alternativemedia!
We’re glad to notice You that WP version of SimpleFlex is out now. Here it is http://themeforest.net/item/simpleflex-flat-one-page-wordpress-theme/7247149
Sorry for long wait.
Hello, Nice works.
How can i add a “percent skills element” inside the slider?
Hi, niz91! Thanks for purchase! Please specify which slider do you use? Fraction slider in extended version or Flex slider?
In any case, you need to add following code to slider item:
<span data-percent="75" class="chart">
<span class="percent" />
</span>
And then put some additional styles.
Thanks for the reply. i have to scroll down to unhide the percent element, how can i automaticly show it without scrolling?
and if i use your code, i have the 75 number outside the circle
Hi, niz91!
Please specify which slider do you use? Fraction slider in extended version or Flex slider?
There are several main events: document.ready (when all HTML code is loaded), window.load (when all scripts are loaded), window.scroll (runs when you scrolling your document)
Skill circles are made with easyPieChart plugin, and they activating in “main.js” file on window.scroll event (line 238).
You need to move code that follows above this comment ”//circle progress bar” from window.scroll to window.load section (line 127)
Please provide a link to your site, so we could help you with additional CSS styles.
Live preview seems to be down -
Hello, sticker! Could you please try again? We did not find any problems with our preview.
Wish I knew this was coming out so soon! I literally just bought the PSD and finished coding it as a WP theme. This would’ve saved me a lot of time.
Awesome work!!
Thanks for buying PSD. Yeah, we’re trying to code our PSD ASAP. WP is in progress now too.
Hello, PowerTheme! Maybe it would be interesting for You that WP version is out. Here it is! http://themeforest.net/item/simpleflex-flat-one-page-wordpress-theme/7247149
heart
Thanks
Good job!Good luck 
thnx
Nice work ! GLWS 
Thanks!
Well done, good luck..
Thank You
Great work!
Thanks
Really amazing job! Good luck with sales!
Thank you
Very nice work. Good sale mate 
Thx