MyBB Community Forums

Full Version: Facebook code button not working properly.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Right now I have the following code for facebook, twitter, google+1 and a bookmark share button. The only problem is that the facebook button doesn't show up when you click on a thread 50% of the time but the other 3 buttons do. Anyone know the cause or have a better code for these social media buttons? Like I said it always shows up everywhere else (index page, portal page, mod cp etc.) just not all the time in threads.

Here's the code I am using now:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e7d6f9112844b2a"></script>
<!-- AddThis Button END -->

Here's an example. Below is a screen shot of how in looks in a thread:

[attachment=26846]

Looks fine on the index page:

[attachment=26847]


My website URL: http://carfanaticsforum.com/thread-17018...#pid218915
Did you add this to the header (not the header_guests or header_members) instead of just the index page/portal page/other pages? Try moving it there since that might be your issue.
I added it here:

[attachment=26850]
Hm, maybe try adding it above the advertisement since the scripts and buttons load, but don't display (on the showthread area).
I tried adding it above the ads but still didn't work, and it doesn't look as good.