Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
02/09/2016 at 6:57 pm #364302Cole SchweikhardtParticipant
Steven, we’ve been working to resolve a couple of issues in our project.
We are using Work and Personal email input in Attorney profiles/director where Work=attorney email and Personal=secretary email. But these labels don’t seem to bet getting delivered correctly. My developer has two questions on this:
Question 1: is this a fixable and or changeable item?
// Replace the ‘Name Tokens’ with the entry’s name.
$title = $this->getName(
‘format’ => empty( $atts[‘title’] ) ? ‘%first% %last% %type% email.’ : $atts[‘title’]
This part of the code outputs the same information for any emails listed. It always says “persons name work email”, even when in the connections manager it’s specified as a personal email. Is it possible to alter this to pull in the label from the str_note_head instead? Or a way to alter it to display some other information like strictly the email address?
Question 2: where can we find the label outputs for the Vcard?
When we download a vcard there are several fields on the card itself that display, however the labeling of them in the entry portion of the vcard in Outlook does not display the information. For instance: If we add a link to a website in the manager that link is added to the vcard visual in Outlook, but it does not appear with a label in the left hand field.
This is our example post. When downloading this vcard you can see that the website has been added to Outlook only on the vCard visual, but it has not created a label in the left hand entry fields. This is also an issue with the email addresses. It labels all email address with the name of the person but we would rather label with something such as primary and secretary. Or any distinction would do other than having the name as a label even though the outputted emails are different.
Also, while we can see that the Address Line 2 is in the code — class.entry-vcard.php, it does not appear on the generated vCard. Address Line 3 is not in the code at all. We at least need Line 2 to show. Can you assist.02/10/2016 at 10:45 am #364427Steven ZahmKeymaster
re: Question 1
The issue is with the mouseover hover text for an email address, correct? If so, I was able to replicate and fix it. The fix will be in the next update.
re: Is it possible to alter this to pull in the label from the str_note_head instead? Or a way to alter it to display some other information like strictly the email address?
You can use the
email_formatshortcode option to alter the output. The valid tokens for this option are:
'%label%', '%address%', '%icon%', '%separator%'and whatever static text you want. This, however, will not affect the the mouseover hover text for the email link. Alternatively, your developer could hook into the
cn_output_email_addressfilter and change the output to whatever you want.
re: Question 2: where can we find the label outputs for the Vcard?
class.entry-vcard.phpfile. In the same folder your developer found the
re: When we download a vcard there are several fields on the card itself that display, however the labeling of them in the entry portion of the vcard in Outlook does not display the information. For instance: If we add a link to a website in the manager that link is added to the vcard visual in Outlook, but it does not appear with a label in the left hand field.
The vCard spec is old and pretty rigid, custom labels and such are not directly supported. It is possible to add
X-fields to the vCard, however, unless an app is specifically coded to read those, they will be ignored by the app. There are many fields in Connections where there simply is not an vCard equivalent so the data will not be utilized.
re: Also, while we can see that the Address Line 2 is in the code — class.entry-vcard.php, it does not appear on the generated vCard. Address Line 3 is not in the code at all. We at least need Line 2 to show.
Outlook seems to write its own vCard files supporting address line 2, unfortunately it does not seem to support it when importing vCard. The address line 2 imports fine in other apps like Google Contacts which have better support for vCards. It may be possible to finesse the vCard to get Outlook to like it, but I do not have access to it and if I did doing so may likely break apps that have better vCard support. The best I can do is use vCard validators and test in apps I do have access to.
And for the line 3, the vCard spec does not support it. It only supports PO Box, Street Address and Extended Address. Connections does not have a PO Box field, so nothing is mapped to it. Connections will map to the Address and Extended Address fields in the vCard using the data from Line 1 and Line 2. There’s nothing I can do about the lack of support for a line 3 in the vCard as the spec just does not support it, sorry.02/10/2016 at 11:00 am #364428Cole SchweikhardtParticipant
Thanks Steven. We’ll look back at the email stuff today. I understand the vCard is somewhat of a moving target. We may have to drive that home with our client or figure a way for them to upload their own Outlook generated vCards as was done in their past website. I’m not sure we can get those to link from the decent spots in the Directory view or Profiles. It can be tough for attorneys to make compromises/changes of this sort.
You cannot reply to this support topic. Please open your own support topic.