addthis_config url parameter and addthis:url seem not work

nacrotic Apr 13, 2012 05:59AM EDT

Hello,

I'm trying to include multiple addthis into Typo3 CMS but i'm unable to specify url.

this is the html/js code :

<div class="addthis_toolbox" addthis:url="http://XXX/index.php?id=1254" addthis:title="Tag Cloud">
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-XXX"></script>
<a id="theaddthisbutton" class="addthis_button"></a>
</div>
<script type="text/javascript">
var addthis_config = {
includeLibs : "typo3conf/ext/rm_addthis/pi1/class.tx_rmaddthis_pi1.php",
userFunc : "tx_rmaddthis_pi1->main",
ui_click : true,
ui_language : "fr",
data_ga_tracker : "pageTracker",
title : "Tag Cloud",
url : "http://XXX/index.php?id=1254"
};
addthis.button("#theaddthisbutton", addthis_config);
</script>

this code is on page http://XXX/index.php?id=1256
in mail i would have a link to page http://XXX/index.php?id=1254, but a have http://XXX/index.php?id=1256#somthing.gmail

Thank you

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Apr 13, 2012 04:15PM EDT
That code is added to do our click tracking, which gives you information about the people who return to your site from shared links. If they're causing trouble you can disable them by setting the data_track_clickback option to false like this:

<script type="text/javascript">
if (typeof addthis_config !== "undefined") {
addthis_config.data_track_clickback = false
} else {
var addthis_config = {
data_track_clickback: false
};
}
</script>

More information on click tracking is available here: http://support.addthis.com/customer/portal/articles/381252-click-tracking
Up 0 Rated Down
nacrotic Apr 16, 2012 03:05AM EDT
Hello,
Before we begin, let me thank you.

Sorry for my bad explanations, my problem isn't the click tracking, but the url parameter.

Little example

I have 4 pages
http://XXX/index.php?id=1256 (who is the home page with short abstract of 3 other pages. Just like a news page) [call after#1256]
http://XXX/index.php?id=1253
http://XXX/index.php?id=1254 [call after #1254]
http://XXX/index.php?id=1255 (3 full news)

the aim is to add 4 addthis toolbox on #1256
1 for share the global page, 3 other for each news.
So the first (without url parameter) must lead to #1256 (this work perfectly)
the other (first new) have to lead to #1254, so i try the code on my first post, but it didn't work, addthis continue to lead to #1256 (instead of #1254)

thanks again for your help.

Post Your Public Answer

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

Still need help?


General Topics

 

Developers