All follow us links are undefined

webmaster Feb 21, 2012 02:20PM EST

I'm having problems adding the follow buttons to my site. I've entered my facebook profile and twitter username as instructed but when I add the generated code to my site the buttons appear but all the links are undefined.

What could cause this?

Many thanks

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 21, 2012 03:15PM EST
What is the code that's generated
Up -1 Rated Down
webmaster Feb 22, 2012 06:47AM EST
Hi Paul,

This is the generated code:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="myaccount"></a>
<a class="addthis_button_twitter_follow" addthis:userid="#!/myaccount"></a>
<a class="addthis_button_google_follow" addthis:userid="myaccount"></a>
<a class="addthis_button_youtube_follow" addthis:userid="myaccount"></a>
<a class="addthis_button_flickr_follow" addthis:userid="myaccount"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-myaccount"></script>
<!-- AddThis Button END -->

Where 'myaccount' is replaced with my details. In the source code all the details look ok but this is how the links render: http://www.facebook.com/undefined

I've tried the code on another testing domain and it works fine. Could it be that there is some conflicting JavaScript? If so how can I detect this?

Thanks
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 22, 2012 03:32PM EST
The only way I know of checking for JavaScript conflicts is to remove JavaScript from the page until you get it working. If you've got them on a page I can look at I can see if there's anything obviously wrong.
Up 0 Rated Down
webmaster Feb 22, 2012 04:15PM EST
http://www.worldlandtrust.org/news/2009/02/awards-for-wlt-corporate-supporters.htm

Thanks Paul
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 22, 2012 05:01PM EST
Here's what's showing up in the source fo that page: http://i.imgur.com/2dn7B.png

As you can see it says userid instead of addthis:userid. It's likely your HTML editor is removing the addthis: for some reason.
Up 0 Rated Down
webmaster Feb 22, 2012 05:17PM EST
Thanks Paul, changed the HTML editor settings and it all works great!

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Reference