addthis

how to make add this work with turbilinks rails 4

故事扮演 提交于 2019-12-08 08:49:09
问题 I have been working on this for almost a day now and cant figure out how to make addthis work wtih turbolinks and rails 4. my add this code is <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js"></script> <script type="text/javascript"> addthis.layers({ 'theme' : 'transparent', 'share' : { 'position' : 'left', 'numPreferredServices' : 6 }, 'follow' : { 'services' : [ {'service': 'facebook', 'id': 'blanckdigital'}, {'service': 'twitter', 'id': 'blanckdigital'} ] },

Automatically shortening URL for Email/Facebook shares with Bitly through AddThis API

我怕爱的太早我们不能终老 提交于 2019-12-06 00:30:26
问题 I am unable to shorten the URL being shown in the AddThis email popup when using the built-in Bit.ly shortening service in AddThis. It works with Twitter, but not Facebook and email. Is this supported? var addthis_share = { url: "http://www.wrestlemaniamainevent.com/wishlist/kjhksad897dsjkhdsa98273", title: "View My List", url_transforms: { shorten: { twitter: 'bitly', facebook: 'bitly', // Unsupported? email: 'bitly' // Unsupported? } }, shorteners: { bitly: { login: '{login}', apiKey: '{key

How Do I Prevent AddThis From Using Cookies On My Site?

本小妞迷上赌 提交于 2019-12-05 20:49:17
I'm using the AddThis component on a site to add social-bookmarking functionality. However I don't want their code adding cookies to my visitors. How can I use the component but prevent it from using cookies? Undistraction Use the data_use_cookies config parameter when setting up the component: <script type="text/javascript">var addthis_config = {data_use_cookies_ondomain: !1, data_use_cookies: !1};</script> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5278666D66d6d6"></script> 来源: https://stackoverflow.com/questions/20218458/how-do-i-prevent-addthis

Change AddThis url dynamically with jQuery

与世无争的帅哥 提交于 2019-12-04 10:09:25
问题 I am trying to dynamically change the URL sent by addthis. When a user alters an element it updates a text area containing a custom url so they can return to that url and continue/view their work. I am creating an addthis button like so(from their API docs): var addthis_share = {url:"http://www.johndoe.com"} $(document).ready(function(){ var tbx = document.getElementById("toolbox"), svcs = {email: 'Email', print: 'Print', facebook: 'Facebook', expanded: 'More'}; for (var s in svcs) { tbx

How to configure addthis so that it won't create the hash data in the URL that I am going to share?

≡放荡痞女 提交于 2019-12-04 09:56:57
When I share a page, addthis creates some data/ infomation after my share URL with a hash(#) - how I can configure addthis so that it won't create the hash data in the URL that I am going to share? For instance, addthis makes these, http://mywebsite.com/#.Ufs8RtZRjpU.facebook http://mywebsite.com/#.Ufs8oc2zPtQ.twitter I am after, http://mywebsite.com/ http://mywebsite.com/ Is it possible? edit: <!-- AddThis Button BEGIN --> <script type="text/javascript">var addthis_config = { pubid: "lauthiamkok", data_track_addressbar:false };</script> <script type="text/javascript" src="//s7.addthis.com/js

Automatically shortening URL for Email/Facebook shares with Bitly through AddThis API

若如初见. 提交于 2019-12-04 05:51:34
I am unable to shorten the URL being shown in the AddThis email popup when using the built-in Bit.ly shortening service in AddThis. It works with Twitter, but not Facebook and email. Is this supported? var addthis_share = { url: "http://www.wrestlemaniamainevent.com/wishlist/kjhksad897dsjkhdsa98273", title: "View My List", url_transforms: { shorten: { twitter: 'bitly', facebook: 'bitly', // Unsupported? email: 'bitly' // Unsupported? } }, shorteners: { bitly: { login: '{login}', apiKey: '{key}' } } } 来源: https://stackoverflow.com/questions/27148711/automatically-shortening-url-for-email

Android Studio - App Crashing on AddThis.jar - “Sources Not Found” Message

。_饼干妹妹 提交于 2019-12-04 05:05:03
问题 I have a project using the AddThis SDK. I have added the AddThis.jar as a library to my project in Android Studio. When I tap the button to Post to Facebook, the app crashes with this log: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.apploi/com.addthis.ui.activities.ATActivityGroup}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.apploi/com.addthis.ui.activities.ATShareActivity}: android.content.res.Resources$NotFoundException: Resource ID

Addthis not working with Ajax

て烟熏妆下的殇ゞ 提交于 2019-12-03 16:23:11
问题 I am loading all articles with Ajax but Addthis functionality is not correct $thisChild.load( permLink + ' #thePostStuff', function() { And in the callback of said .load() function, I've added this code to bring in the Addthis share functionality: var script = 'http://s7.addthis.com/js/300/addthis_widget.js?domready=1#pubid=MY-PUB-ID'; if (window.addthis){ window.addthis = null; } $.getScript( script ); The code within the content of the permLink file called by the ajax request that loads the

AddThis button will not work inside AJAX, but will work normally

那年仲夏 提交于 2019-12-03 10:49:59
问题 Basically, this is what I'm doing. User visits site, loads "index.html" Within index.html, it automatically loads, through AJAX, "details.html" into a DIV. I put an ADDTHIS button on "details.html". However, for some reason , the roll-over doesn't work. When I visit details.html in the browser, the roll-over works. I'm guessing it's because of the AJAX? <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4adf7e45288f5b21"> <img src="http://s7.addthis.com/static

Change AddThis url dynamically with jQuery

China☆狼群 提交于 2019-12-03 05:55:49
I am trying to dynamically change the URL sent by addthis. When a user alters an element it updates a text area containing a custom url so they can return to that url and continue/view their work. I am creating an addthis button like so(from their API docs): var addthis_share = {url:"http://www.johndoe.com"} $(document).ready(function(){ var tbx = document.getElementById("toolbox"), svcs = {email: 'Email', print: 'Print', facebook: 'Facebook', expanded: 'More'}; for (var s in svcs) { tbx.innerHTML += '<a class="addthis_button_'+s+'">'+svcs[s]+'</a>'; } addthis.toolbox("#toolbox"); }); Then