
Originally Posted by
mario75
I don't understand. I didn't hide the telephone, and I didn't provide an address for my business simply because I don't have one.
I have also provided alternative ways to contact us: by email, FB Messenger, FB fan page, Twitter, You Tube channel, besides the telephone number.
All I was looking for was to cut only the contact us form, and leave the rest page alone with the alternative ways to contact us.
I think what Schoolboy said was not specifically directed at you. Just giving tips on giving customers as many ways to contact you as possible. With the Contact Us form, there's no effort required on the customer's part. They don't even need to log in, they're already there. It makes them nice and lazy ;) And gives them a quick lazy way to get in touch with you.
By all instances, did you mean exactly that, ALL instances?
E.G.: in
Code:
// NO SPAM
$leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
// NO SPAM
both "leaveblank" should be changed?
The name of the function is "leaveblank"?
Sorry, what I meant was, change "leaveblank" that is in the function, not the function lol, so make it this:
PHP Code:
$leaveblank = zen_db_prepare_input($_POST["telephone"]);
You can leave the variable "$leaveblank" - that's a variable that the frontend does not see. So only change the $_POST["leaveblank"] to $_POST["telephone"]
And then, in /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
Change:
PHP Code:
<!-- NOSPAM -->
<input style="visibility:hidden; display:none;" name="leaveblank" type="text">
<br class="clearBoth" />
<!-- NO SPAM -->
to:
PHP Code:
<!-- CSSNS -->
<input style="visibility:hidden; display:none;" name="telephone" type="tel" autocomplete="off" id="nstelephone">
<br class="clearBoth" />
<!-- CSSNS -->
Let's leave out the Stylesheet additions for now.
But if the problem continues, then add the following to your Stylesheet.css file at the very bottom:
Code:
#nstelephone
{
display:none !important;
visibility: hidden !important;
}
AND re-edit the code in in /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php to this:
PHP Code:
<!-- CSSNS -->
<input name="telephone" type="tel" autocomplete="off" id="nstelephone">
<br class="clearBoth" />
<!-- CSSNS -->