Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
Great, works as intended on a fresh GS 3.1.
Attention, version number goes on line 23 too (needed for plugins page to show version number). Here it is -> see attachment.
Thanks a lot for your work !


ChriS Wrote:
Ampersand 2012-01-19 Wrote:There is still {2,3} in the current 0.9.1 ver of the plugin. This is the most urgent bug to get rid of. Otherwise no chance not only for .info but .travel and other unusual domains.
I found also this bug to be urgent.

yojoe 2011-06-26 Wrote:
reff 2011-06-26 Wrote:Hi all
I found a bug (possibly connected to e-mail verification regexp). Everything's ok if there any .com .net .ru or whatever 2-3 letters TLD is used as a mail domain in plugin's settings. But in case of usage 4 letters TLD (e.g. .info) the 'target' error occurs and message cannot be sent.

edit /plugins/p01-contact/p01-contact.php
change line 846 to:
Code:
$pattern = '`^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$`i';
and visitors should be able to send using 4-letter tld in their email addresses.
reff Wrote:I tried exactly the same, but this didn't help.
There are 3 places in p01-contact.php (v0.9.1) where ".[a-z]{2,3}" is used:
Ln 91 Col 102
Ln 530 Col 97
Ln 846 Col 95
I changed all of them to ".[a-z]{2,5}" and also Ln 854 Col 98 (website).
Changed the version also to v0.9.1.1. You can download p01-contact.php.txt in the attachement.

But maybe for a future version this should be changed to a better regexp:
hameau 2011-06-26 Wrote:I have good results with the regexp on this page.
Try the first one under 'Conclusion'.
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by calmos - 2012-02-25, 23:26:10



Users browsing this thread: 2 Guest(s)