Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not exporting on mobiles anymore #185

Open
martiniboy opened this issue Oct 7, 2021 · 1 comment
Open

Not exporting on mobiles anymore #185

martiniboy opened this issue Oct 7, 2021 · 1 comment

Comments

@martiniboy
Copy link

martiniboy commented Oct 7, 2021

Hi, I know this will be an issue with something that I have done, but have no idea how to resolve it.

On a desktop, it works without an issue but on mobiles, it is very temperamental on whether it will work or not. It just refreshes the page and doesn't load the popup to add a contact on the mobile.

Here is an example of the vcf file when exported on a desktop:
BEGIN:VCARD VERSION:3.0 REV:2021-10-07T09:04:34Z N;CHARSET=utf-8:Surname;FirstName;;; FN;CHARSET=utf-8:FirstName Surname EMAIL;INTERNET:[email protected] ADR;WORK;POSTAL;CHARSET=utf-8:Companyname;58;Road Name;Town Name ;County;Postal Code;Country;;;;;; ORG;CHARSET=utf-8:Company TITLE;CHARSET=utf-8:JobTitle URL:https://www.website.co.uk END:VCARD

I did have additional fields like DOB and Photo etc but removed them while troubleshooting.
The funny thing is that the same code works on a different website?
This is the working output from the other website with the additional fields still in:
BEGIN:VCARD VERSION:3.0 REV:2021-10-07T09:11:23Z N;CHARSET=utf-8:Surname;FirstName;;; FN;CHARSET=utf-8:FirstName Surname BDAY:19610518 EMAIL;INTERNET:[email protected] TEL;PREF:+ 44 999 9999 TEL;WORK:+44 999 9999 TEL;CELL:+44 9999 9999 ADR;WORK;POSTAL;CHARSET=utf-8:Company Name;Road Name;;Town Name;County;Postal Code;Country;;;;;; ORG;CHARSET=utf-8:Caged Fish TITLE;CHARSET=utf-8:Director PHOTO;ENCODING=b;TYPE=JPEG:/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBAUEBAYFBQUG BgYHCQ4JCQgICRINDQoOFRIWFhUSFBQXGiEcFxgfGRQUHScdHyIjJSUlFhwpLCgkKyE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qD71K4Nfyd/qXfGIulz8T7 pgVsrSOFenM55jSWXiLU712Z7uQBvmCnGaji0ZI95n5sdlFSia0snAFor52yxyas18euHpFSzl2 2ftIiiEkmeUM/qaIitncZboOoUZNE/0rHgYtkUH0FSR6qy5Hhp+lWEkVdBzAo5o+RtwMHHSpkge SMK6nKnYiik1WTbCqAfRRWRqsrlsEjBokQfR2kjNzJCxz35anFlPnJjIx/e2/nQ7X0x6uxHTrUX ju3m5jmpBGi2TAAu8a/8AkD/KpFgjXOZ0FKopGbPmO4z1rUzOOhrtOw//2Q== URL:https://www.website.co.uk END:VCARD

I have compared both even with teh additional fields in and just can't see what the issue is?

This is the class that I use on both:

`use JeroenDesloovere\VCard\VCard;

class VcardExport
{

public function contactVcardExportService($id)
{
   
   
   
 $id = intval($_GET['id']);
 
$lead = RGFormsModel::get_lead( $id ); 
$form = GFFormsModel::get_form_meta( $lead['form_id'] ); 
//$file_id = gp_media_library()->get_file_ids( $id, 16, $file_index );
	//$newfeatured_img_url = get_the_post_thumbnail_url($file_id,'thumbnail');
$maincolour = $lead['17'];
$secondarycolour = $lead['18'];
$featured_img_url = $lead['16'];
$firstname = $lead['1.3'];
$surname = $lead['1.6'];
$company = $lead['7'];
$job_role = $lead['8'];
$direct_phone =  $lead['2'];
$direct_phone_nopsaces = str_replace(' ', '', $direct_phone);
$email =  $lead['5'];
$birthday =  $lead['19'];
	$birthday_nodashes = str_replace('-', '', $birthday);
$office_phone = $lead['3'];;
$office_phone_nopsaces = str_replace(' ', '', $office_phone);
$mobile_phone =  $lead['4'];
$mobile_phone_nopsaces = str_replace(' ', '', $mobile_phone);
$street_address =  $lead['6.1'];;
$address_2 =  $lead['6.2'];
$town_city =  $lead['6.3'];
$county =  $lead['6.4'];
$postcode =  $lead['6.5'];
$country =  $lead['6.6'];
$website =  $lead['9'];
$facebook_url = $lead['10'];
$linkedin_url = $lead['11'];
$instagram_url = $lead['12'];
$twitter_url = $lead['13']; 
$address = $company . ',' . $street_address . ',' . $address_2 . ',' . $town_city . ',' . $county . ',' . $postcode;
//$type = pathinfo($featured_img_url, PATHINFO_EXTENSION);
//$data = file_get_contents($featured_img_url);
//$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
	
	require get_stylesheet_directory() . '/Transliterator/Transliterator.php';
	require get_stylesheet_directory() . '/vcard/src/VCard.php';
    // define vcard
    $vcardObj = new VCard();
    // add personal data
    $vcardObj->addName($surname, $firstname,'','','');
  //  $vcardObj->addBirthday($birthday_nodashes);
    $vcardObj->addEmail($email);
 //   $vcardObj->addPhoneNumber($direct_phone, 'PREF');
 //   $vcardObj->addPhoneNumber($office_phone, 'WORK');
 //   $vcardObj->addPhoneNumber($mobile_phone, 'CELL');
    $vcardObj->addAddress($company . ';' . $street_address . ';' . $address_2 . ';' . $town_city . ';' . $county . ';' . $postcode . ';' . $country);
    $vcardObj->addCompany($company);
    $vcardObj->addJobtitle($job_role);
    $vcardObj->addURL($website);
		$to = 'myemail';

$subject = 'Vcard Troubleshooting non working version';
$body = '

'.print_r($vcardObj, true).'
'.print_r($featured_img_url, true).'
';
$headers = array('Content-Type: text/html; charset=UTF-8');

wp_mail( $to, $subject, $body, $headers );
return $vcardObj->download();
}
}
?>`

And on the page with the button

if(!empty($_GET["action"])) { $id = $_GET["id"]; require_once get_stylesheet_directory() . '/vcard-function.php'; $vcardExport = new VcardExport(); $vcardExport->contactVcardExportService($id); exit; }

Is there anything that i can add to export to see what the issue is?

@marcorieser
Copy link

I had the same issue but adding die; after $vcard->download() worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants