You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 31-10-2013 14:38:11

alecsparty
Contributors
Registered: 07-10-2013
Posts: 15
Website

Linkedin

Hi

I've been able to work Facebook and Twitter into my site with using an iframe but I'm having real trouble with Linkedin. I want to post my profile using their widget. Has anyone else successfully added Linkedin into their site?


https://developer.linkedin.com/member-profile-plugin


thanks in advance
alec

Offline

#2 07-11-2013 16:00:11

steebchen
Contributors
From: Germany
Registered: 03-05-2013
Posts: 121

Re: Linkedin

Which code did you use? Custom Tile?

Offline

#3 08-11-2013 13:33:01

alecsparty
Contributors
Registered: 07-10-2013
Posts: 15
Website

Re: Linkedin

Yes, a Custom Tile. I followed the principal for Twitter in an iframe as per guidance and the widget.

Code for the custom tile

[== Undefined ==]
$tile[] = array("type"=>"custom","group"=>2,"x"=>0,"y"=>3,'width'=>2, 'height'=>1, "background"=>"#2F2F2F","url"=>"pages/letsrecycle.php", "scrolling"=>"no", "frameborder"=>"0", "allowtransparency"=>"false", "content"=>"<iframe src='pages/linkedin.php'/iframe>",
"classes"=>"Click"
);

Code for the linkedin.php:

[== Undefined ==]
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/alechirst" data-format="inline"></script>

You create the LinkedIn widget here; a similar process to that for creating a Twitter widget.

http://developer.linkedin.com/plugins/m … nline=true

Since posting I have tried to place the LinkedIn widget directly into an iframe within the tile and found that LinkedIn do not support the use of iframing their website.

http://developer.linkedin.com/forum/lin … age-iframe

I guess this answers my question, but I thought that the tile iframes a page in my site not directly iframing the LinkedIn site.

Many thanks for the help with this.

alec

Offline

#4 15-11-2013 16:09:41

alecsparty
Contributors
Registered: 07-10-2013
Posts: 15
Website

Re: Linkedin

Update on my issue

I have resolved the issue of LinkinedIn preventing iframe of their site by bunging the widget script straight into a tile:

[== Undefined ==]
$tile[] = array("type"=>"custom","group"=>0,"x"=>0,"y"=>2,'width'=>2.41,'height'=>2.09,"background"=>"","url"=>"","title"=>"","content"=>"
<script src='//platform.linkedin.com/in.js' type='text/javascript'></script>
<script type='IN/MemberProfile' data-id='http://www.linkedin.com/in/alechirst' data-format='inline' data-related='true'></script>"
);

This works great on the main page but my intention is to place these tiles as part of a side bar.

I duly create my side bar and all is good, until…….you move away from the page at which point the tile script content is lost. A refresh fixes this but it’s not a solution.

I’ve done some debugging and note the following error:

[15:04:20.574] "duplicate in.js loaded, any parameters will be ignored"

I’m trying to research a solution but coming up empty so far.

I’m posting here on the chance someone can help. If I resolve at my inexperienced pace I’ll post the solution for all.

alec

Offline

Board footer

Powered by FluxBB