Item11098: Update LinkedInPlugin to use revised api. Prior api no longer works.

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: LinkedInPlugin
Branches:
Reported By: WikiGuest
Waiting For:
Last Change By: SvenDowideit
Apparently, LinkedIn has changed their api for displaying user profiles on sites. Their page on Profile Widget says that it will no longer be supported and refers to Member Profile plugin instead.

After looking into the LinkedInPlugin structure, I found the LinkedinTemplate topic and experimented revising the profile template definition as follows:
%TMPL:DEF{"profile"}%%ADDTOZONE{"script" text="<script src='http://platform.linkedin.com/in.js' type='text/javascript'></script>"}%
<script type="IN/MemberProfile" data-id="%URL%" data-format="inline"></script>
%TMPL:END% 

Seems to have worked but I notice that it doesn't use the =%TYPE% macro used in the original format. I don't know if this matters. I thought I'd wait to get feedback from plugin author before committing any changes.

-- LynnwoodBrown - 01 Sep 2011

gads, what a horrid change they made to the API.

oh well, updated (data-format == =%TYPE% though they've also changed the type names.)

-- SvenDowideit - 08 Sep 2011

 

ItemTemplate edit

Summary Update LinkedInPlugin to use revised api. Prior api no longer works.
ReportedBy WikiGuest
Codebase
SVN Range
AppliesTo Extension
Component LinkedInPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins LinkedInPlugin:13da8cb5fbb3
TargetRelease n/a
ReleasedIn n/a
Topic revision: r2 - 08 Sep 2011, SvenDowideit - This page was cached on 23 Nov 2020 - 11:32.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy