I am having trouble formatting the Tweet this button for one of my sites. The client has asked that the format of the message be :
‘Love this! Should I buy it? {product url} via @DeadlyFemale'
An example page is: http://www.deadlyisthefemale.com/accessories/sunglasses/katherine-sunglasses
And here is my code:
<script type="text/javascript">
var addthis_share = {
url_transforms : {
shorten: {
twitter:'bitly'
},
clean:true
},
shorteners : {
bitly : {
login : 'xxx',
apiKey: 'R_xxx7'
}
}
}
</script>
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet" tw:url="<?php echo $piniturl ?>"
addthis:title="Love this! Should I buy it? "
addthis:description=" (from deadlyisthefemale.com)"></a>
<!--<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>-->
<div class="pinterest-ico">
<a href="http://pinterest.com/pin/create/button/?url=<?php echo $piniturl; ?>&media=<?php echo $pinit_image; ?>"> <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'pin-it-small.png')
?></a>
</div>
<!-- <a class="addthis_button_pinterest_pinit" pi:pinit:url="<?php echo $piniturl; ?>" pi:pinit:media="<?php echo urlencode($pinit_image); ?>" ></a>
-->
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f91b3d505e24b10"></script>
<!-- AddThis Button END -->
The actual result is:
Love this! Should I buy it& http://www.deadlyisthefemale.com/accessories/sunglasses/katherine-sunglasses#.T9s9snKBSkU.twitter
For a start, the shortening isn't working.
Also, how can I get rid of the '#.T9s9snKBSkU.twitter' at the end of the URL?