scottydog0
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Firefox IssueYes! I can now edit fields in Firefox! Thanks!
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Firefox IssueWhile that is one way to get around the problem in the short term, it is not a solution.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Firefox IssueHello? Can I get a response to this?
Forum: Plugins
In reply to: [Contact Form 7 Phone Module] Mask doesn't work without bracketsSure, I’d like to see the new version.
Thanks,
ScottForum: Plugins
In reply to: [Contact Form 7 Phone Module] Mask doesn't work without bracketsI’m not sure about “watermarks”. I’d need to see an example. I think keeping things tightly integrated is probably best. A separate interface could get confusing. What problem have you had w/ spaces so far? Have you tried using a space character placeholder?
Thanks,
ScottForum: Plugins
In reply to: [Contact Form 7 Phone Module] Mask doesn't work without bracketsI looked at your code. Maybe something like this:
$tokens = array( 'mask' => 'mask:', 'alternate_mask' => 'aMask:', 're_do' => 'reDo:', 're_undo' => 'reUndo:'); if (!empty( $tag['attr']) { foreach($tokens as $var => $token){ if (strpos($token, $tag['attr'])) { ${$var} = preg_replace("/.*?$token([^\s]+)\s.*/",'$1',$tag['attr']); } else { ${$var} = ''; }; }; } else if (!empty($tag['options'])) { foreach ($tag['options'] as $value) { foreach($tokens as $var => $token){ if (strpos($token, $value)) { ${$var} = preg_replace("/.*?$token([^\s]+)\s.*/",'$1',$value); } else if(!isset(${$var})) { ${$var} = ''; }; }; }; };
I haven’t tested it yet, so my regex may be off, but this should properly parse out the options in either situation.
Forum: Plugins
In reply to: [Contact Form 7 Phone Module] Mask doesn't work without bracketsSure, here’s what I’m using:
[phone* Phone mask:999-999-9999]
-Scott
Viewing 7 replies - 1 through 7 (of 7 total)