Alwin
Forum Replies Created
-
I have updated to version 7.3.2 but the server time displayed by WordFence is still 2 hours behind…
- This reply was modified 7 years, 3 months ago by Alwin.
I checked the server time with my webhost, and the server time is setup 100% good!
This looks like some kind of bug in the latest WordFence version, because the server time is only wrong in WordFence.
Same here in the Netherlands, server time is 2 hours behind. I can’t use 2FA now.
Dirk, stuur mij maar even een prive berichtje. Misschien kan ik je helpen.
Nobody?? π
Forum: Fixing WordPress
In reply to: WordPress antispambot?Great! Thank you for your help!
π
Forum: Fixing WordPress
In reply to: WordPress antispambot?I have added this code to my functions.php in my child theme:
/**
* Hide email from Spam Bots using a shortcode.
*
* @param array $atts Shortcode attributes. Not used.
* @param string $content The shortcode content. Should be an email address.
*
* @return string The obfuscated email address.
*/
function wpcodex_hide_email_shortcode( $atts , $content = null ) {
if ( ! is_email( $content ) ) {
return;
}$content = antispambot( $content );
$email_link = sprintf( ‘mailto:%s’, $content );
return sprintf( ‘%s‘, esc_url( $email_link, array( ‘mailto’ ) ), esc_html( $content ) );
}
add_shortcode( ’email’, ‘wpcodex_hide_email_shortcode’ );I have not changend anything in this code. That is correct?
Then I have added the shortcode in my wordpress text area.
Now when I look at the website page I see my email address and when I put the mouse over the email address I still see normal mailto:info@mydomain.com link under in the browser. Is that how it suposed to be?
When I look in the source code I see that my email address is indeed encoded.
Everything okay like this?
Forum: Fixing WordPress
In reply to: WordPress antispambot?Hello Stefano,
I like to do it without needing an (extra) plugin.. π
The link you send me is the same as in my own post.
How to set it up, that is my question. First add the code to my functions.php and then use the short codes instead of my usual mailto links?
ThaNk you,
AlwinIt worked; thank you very much π
That worked, however still 1 problem left…
The price calculation from fieldname 33 is done with the value entered in fieldnumber 87.
However, I want the price to be displayed only when fieldname 87 AND fieldname 71 are both filled in with a value!
So fieldnames 87 and 71 must be filled in both before the price calculation of fieldname 33 is displayed.
Is that also possible?
Thank you,
AlwinOf course π
Please llok at https://www.fotoloek.nl/test/
The forms called Canvas and Chromaluxe seems to be working okay
The form called Printen is not working okay: please enter some numbers in the fields “Korte zijde foto” and “lange zijde foto” and then choose “Glans?zijdemat in the next checkbox.
Now you see the price for Glans/Zijdemat which is good, but the totalprice (Prijs totaal) is empty.
When you do the same thing on this page: https://www.fotoloek.nl/printen/
you will see that the Total price field is working fine.I don’t understand because it is the exact same form, using the same page template and of course the same form short-code.
When I delete the forms Canvas and Chromaluxe, then the Print form is working fine. So it seems that all 3 forms running on this 1 page is not possible?
And that worked again!
I hope my rather complex forms (for me) are ready now!
Thank you very much for all your great support so far! I will sure write a great review!!
Regards,
AlwinThat worked great; thank you!
I have one more form with the same issue. I can not simply copy-paste your code in that form because the code of the calculated field is already edited like this:
(function(){
var value = fieldname2*fieldname6/100;
if(5 < value) return CEIL(value);
else return CEIL(value,0.5);
})()So how can I change this code to do the same trick as with the previous issue?
Thank you!
Regards,
AlwinThat worked! Thank you very much π
Best regards,
AlwinThank you, but something is not working now:
the result of (fieldname2*fieldname6/100) is not displayed anymore in the calculated field where this new equation is active!
Maybe a little thing missing in the code you gavce me?