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

XF 1.2 AddThis working or not?

Discussion in 'XenForo Questions and Support' started by woei, Feb 27, 2014.

  1. woei

    woei Well-Known Member

    Hi,

    I have enabled AddThis and got an ID and filled it in the options of Xenforo. But the only place where I see AddThis returning is when I click a post number. Where is the Sharing Sidebar and Follow Header? Do I have to make template changes to display them?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It only works for posts out of the box.
    If you want it to display elsewhere, it will require custom modifications.
     
  3. woei

    woei Well-Known Member

    Ok thanks for clearing it up. Would be nice if the integration would be some more with the option to enable the Sharing Sidebar or Follow Header. Maybe I will put it up in a request if more people would like this.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    can you link to those two functions?

    I can't imagine it would be too difficult to add them.
     
  5. woei

    woei Well-Known Member

    This is the Sharing Sidebar:
    https://www.addthis.com/get/sharing

    And I understand I can just this code to the footer or header to show on all pages.

    Code:
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:50px;top:50px;">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    <a class="addthis_button_preferred_3"></a>
    <a class="addthis_button_preferred_4"></a>
    <a class="addthis_button_compact"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=mysecretid"></script>
    <!-- AddThis Button END -->
    
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, it's fairly simple to add that code.
    You can create a new template, add the code and include it where you want.
     
    woei likes this.
  7. woei

    woei Well-Known Member

    Thats indeed a more elegant and cleaner way to do it, thanks :)
     

Share This Page