1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Linkedin / Share button

Discussion in 'Closed Suggestions' started by erich37, Aug 8, 2011.

  1. erich37

    erich37 Well-Known Member

    would be great to also have a "Share button" for "Linked in".

    Same as we currently have for FB, Twitter and G+ at "Share this page" in the sidebar and at user-profiles.
  2. Deepmartini

    Deepmartini Well-Known Member

    I agree. As many sites are business focused, this would be a great thing to add. Is there a way to do this manually until a proper integration is done?

    VLEPSC Member

    Is anyone taking this on? I would love to have it, but don't know how to do it.
  4. Chris D

    Chris D XenForo Developer Staff Member

    I can do this for you guys.

    Just to clarify - you want this to be in addition to the Facebook, Twitter and Google buttons?

    VLEPSC Member

    Yes. I am using, xenPortal and on my recent news page, there is a bar under each article with the option to tweet, G +1, or FB the post. I would be nice if there were a way to do it on individual forum posts as well.
  6. Chris D

    Chris D XenForo Developer Staff Member


    I have this - before I release it would you like to test it before I release on the Resource Manager?

    First upload contents to your Library folder, then install using the XML file.

    If it doesn't appear then in Admin CP > Options > LinkedIn Share Button ensure it is enabled.

    To use with XenPorta:

    Find template "EWRblock_RecentNews":


    <xen:if is="{$xenOptions.facebookLike}">
    <div class="facebookLike shareControl">
    <xen:container var="$facebookSdk">1</xen:container>
    <fb:like href="{xen:link canonical:threads, $news}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>

    <xen:include template="share_page_linkedin" />

    If there is anywhere else you want to use this (such as in posts) then just add:

    <xen:include template="share_page_linkedin" />
    To any template.

    Attached Files:

    imspot likes this.

    VLEPSC Member

    When trying to install xml, I get this error: Please enter a valid callback method.
  8. Chris D

    Chris D XenForo Developer Staff Member

    Good testing!

    Let me see if I can work out why.
  9. Chris D

    Chris D XenForo Developer Staff Member

    I can only replicate this if I haven't uploaded the files. Make sure you've uploaded the LinkedInShare folder to your Library folder.
  10. VLEPSC

    VLEPSC Member

    I did. The path is showing it going to the xf root. Does it need to go under library?
  11. Chris D

    Chris D XenForo Developer Staff Member

    Yeah, all add ons need to be uploaded to the library folder.
  12. VLEPSC

    VLEPSC Member

    ok , its installed. Works on the recent news block nicely. What is the template name for posts?
  13. VLEPSC

    VLEPSC Member

    Actually, it is sharing the recent news block as a whole, not the individual post.
  14. Chris D

    Chris D XenForo Developer Staff Member

    Good point.

    Instead of:

    <xen:include template="share_page_linkedin" />
    Replace that with:

    <xen:if is="{$xenOptions.LinkedinEnable}">
    <div class="linkedinShare shareControl" style="margin-right: 30px;">
    <xen:require js="//platform.linkedin.com/in.js" />
    <script type="IN/Share" data-url="{xen:link canonical:threads, $news}" data-counter="right"></script>
  15. VLEPSC

    VLEPSC Member

    ok, got that working. Is there a way to show the story title instead of the shortened url?
  16. Chris D

    Chris D XenForo Developer Staff Member

    When I post to my profile it seems to show like this:


    Buttons is the title.
  17. VLEPSC

    VLEPSC Member

    hmmm. Strange. It works now. Probably a cache refresh. Awesome mod. Thank you so much for doing this. Post that bad boy in the resource manager!
  18. Chris D

    Chris D XenForo Developer Staff Member

    Hi guys, just quoting you all so you get an alert pop up. This has now been released:


    sqzdog, nothing has changed since the version you downloaded, but you might want to watch it in case there are any changes in the future or if you need some support.
  19. VLEPSC

    VLEPSC Member

    Excellent. Great work, Yorick. Thank you!

Share This Page