Forum Replies Created
- AuthorPosts
studio T
ParticipantHello Ally,
I am having also issues with the Notifications not being received.
I can see them in the system, however they are not arriving in the email.I can send through login details if required.
info@themecatcher.netBest regards,
Marcostudio T
ParticipantHi Ally,
Perfect! It worked.
Thank you once again.Best regards,
studio T
ParticipantHi Ally,
It worked excellent! Thank you for your time.
One more thing. How to add to other forms that i have the same function?
There unique IDs are 4_37, 3_37, 6_37, 1_37
Same forms, different locations.Best regards.
Keep up with good work!studio T
ParticipantHi Ally,
One more thing. I tried to implement the code
add_filter(‘quform_element_valid_5_37’, function ($valid, $value, Quform_Element_Field $element) { if (!preg_match(‘/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/’, $check)) {
return false;
}$country = substr($check, 0, 2);
$checkInt = intval(substr($check, 2, 2));
$account = substr($check, 4);
$search = range(‘A’, ‘Z’);
$replace = [];
foreach (range(10, 35) as $tmp) {
$replace[] = strval($tmp);
}
$numStr = str_replace($search, $replace, $account . $country . ’00’);
$checksum = intval(substr($numStr, 0, 1));
$numStrLength = strlen($numStr);
for ($pos = 1; $pos < $numStrLength; $pos++) {
$checksum *= 10;
$checksum += intval(substr($numStr, $pos, 1));
$checksum %= 97;
}return ((98 – $checksum) === $checkInt); { $element->addError(‘The value is not Foo’); $valid = false;
}return $valid;
}, 10, 3);Is this right?
My element unique ID is 5_37. This is my form link im trying to implement the IBAN validator.
https://studiot.agency/tennisfactory/termine/tennis-club-herrsching-e-v/
https://stackoverflow.com/questions/20983339/validate-iban-php/20983340#20983340I need your pro experience 🙂
Best regards.studio T
ParticipantHi Ally,
If I understood correctly with this code the input will check if the IBAN numbers are valid?
Despite having 22 characters the validator will recognize the numbers of account? Like on example with credit card.. I attach pic if you know what i mean.Best regards,
Marko- This reply was modified 4 years, 5 months ago by
studio T.
Attachments:
You must be logged in to view attached files.- This reply was modified 4 years, 5 months ago by
- AuthorPosts