
Tom P
User

Jan 30, 2012, 4:41 PM
Post #4 of 5
(371 views)
Shortcut
|
|
Re: [equinox69] Adding a FAX field, or other simple field, to QR Code Generator Plugin
[In reply to]
|
Can't Post
|
|
Hi equinox69, My guess is that you have this line (49 in the r1.00):
elseif ($type == 'contact') { $data = 'MECARD:N:' . $options['lastName'] . "," . $options['firstName'] . ";ADR:" . $options['address'] . ";TEL:" . $options['phone'] . ";FAX:" . $options['fax'] . ";EMAIL:" . $options['email'] . ";;"; } With the variable "FAX:" set to the fax number. I forgot to mention that when calling the MECARD api, all telephone numbers are listed as TEL, so this version:
elseif ($type == 'contact') { $data = 'MECARD:N:' . $options['lastName'] . "," . $options['firstName'] . ";ADR:" . $options['address'] . ";TEL:" . $options['phone'] . ";TEL:" . $options['fax'] . ";EMAIL:" . $options['email'] . ";;"; } should work You'll also need to update the error checking on line 89:
'contact' => array('type', 'size', 'margin', 'mode', 'lastName', 'firstName', 'address', 'phone','fax', 'email'), Hope this helps, Tom
|