Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
(2012-11-11, 00:08:33)cmscss Wrote: Is it not working with .info domains?

There is a problem with the email validation regexp. See the posts on page 9 of this thread.

You could try a different regexp on line 91 of p01-contact/p01-contact.php (v0.9.1):
Code:
$targets_pattern = '`[,:]\s*([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3}))`i';

There is some good information and several examples here. The regexp is certainly the cause of your problem, but I haven't tried fixing it.

Edit to add: Carlos's post below points to better information about which lines to change (more than I mentioned here – sorry). My linked reference is a better regexp than the one included with the plugin. Simply modifying the number of characters is not a good solution, imo, as it is not a good test of valid email addresses.
--
Nick.
Reply


Messages In This Thread
RE: p01-contact : simply add contact forms in your pages - by hameau - 2012-11-11, 01:21:03
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



Users browsing this thread: 2 Guest(s)