• 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?

woei

Well-known member
#1
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?
 

Brogan

XenForo moderator
Staff member
#2
It only works for posts out of the box.
If you want it to display elsewhere, it will require custom modifications.
 

woei

Well-known member
#3
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.
 

woei

Well-known member
#5
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 -->
 

Brogan

XenForo moderator
Staff member
#6
Yes, it's fairly simple to add that code.
You can create a new template, add the code and include it where you want.