Return to Jive Software

This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
212 Views 1 Replies Last post: Nov 6, 2009 3:18 PM by Kevin Imber RSS
Craig Woodward Novice 78 posts since
Feb 17, 2009
Currently Being Moderated

Nov 2, 2009 11:23 AM

How to get the user's image/avatar in the vcard download?

When you download a user's vcard from SBS 3.x you get most of their profile information which is great, but you don't get their picture.  What do we need to change to get the picture, or Avatar if that's all they have, added to the vcard download?

 

Thanks!

Tags: vcard, 3.0.4, sbs_3.0.4
Kevin Imber Jive Employee 293 posts since
Oct 19, 2009
Currently Being Moderated
Nov 6, 2009 3:18 PM in response to: Craig Woodward
Re: How to get the user's image/avatar in the vcard download?

Hey Craig,

 

What you want to do is write a plugin that will add the picture to the vcard download stuff.  We have some great documentation on writing plugins in general, some of which I've included here:

Building Plugins

Developer Community

SBS 3.0 Documentation

 

What you're probably gonna have to do is change the /template/global/view-profile-vcard.ftl file, which you can do through the admin console > system > settings > themes.  You can then add the line for a photo using the vcard photo syntax.  I found an example of this syntax for you, it looks like so:

PHOTO;VALUE=URL;TYPE=GIF:http://www.abc.com/dir_photos/my_photo.gif

Just get the url for the user's avatar or photo, and that should be it.  Let me know if you have any other questions.

 

Thanks,

Kevin

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.