August 7, 201313 yr Can anyone help me with the Tumblr share button. I have added the Twitter, Facebook & Google+ buttons with counters on to each page of my site by using their easy forms which include the url for each page. I am finding Tumblr tricky! I would like to add one of the Tumblr share buttons from their official page: http://www.tumblr.com/buttons My site is a Flash-based site. If my URL was http://www.mpeople-heathersmall.co.uk Name: M People & Heather Small - Latest News Descritpion: Read the latest news about M People & Heather Small. What would the code look like? Not sure which to use PHP, Java etc. Plus all I do is add a html widget/frame on my site, I don't have to add code to the page like other sites. Any help would be great!! Plus if anyone knows of a Tumblr share widget with a counter that would be great too! (Also the new Myspace).
August 8, 201313 yr I think Tumblr doesn't provide counter widget. They just provide share widget which is available on their official widget page.
August 13, 201313 yr <a href="http://www.tumblr.com/share/link?url=http%3A%2F%2Fmpeople-heathersmall.co.uk&name=YOURTITLE&description=YOURDESCRIPTION">Share to Tumblr</a> Tumblr share code is more annoying than it has to be! Customise this link to suit your needs
August 17, 201313 yr Author I used the Java Script code in the end and it works Thanks for the replies <script src="http://platform.tumblr.com/v1/share.js"></script> <!-- Put this tag wherever you want your button to appear --> <span id="tumblr_button_abc123"></span> <!-- Set these variables wherever convenient --> <script type="text/javascript"> var tumblr_link_url = "http://www.mpeople-heathersmall.co.uk"; var tumblr_link_name = "M People & Heather Small – Latest News"; var tumblr_link_description = "The latest news about Heather Small and M People. Includes announcements of music releases, tours, performances, TV & radio appearances and interviews."; </script> <!-- Put this code at the bottom of your page --> <script type="text/javascript"> var tumblr_button = document.createElement("a"); tumblr_button.setAttribute("href", "http://www.tumblr.com/share/link?url=" + encodeURIComponent(tumblr_link_url) + "&name=" + encodeURIComponent(tumblr_link_name) + "&description=" + encodeURIComponent(tumblr_link_description)); tumblr_button.setAttribute("title", "Share on Tumblr"); tumblr_button.setAttribute("style", "display:inline-block; text-indent:-9999px; overflow:hidden; width:70px; height:25px; background:url('http://platform.tumblr.com/v1/share_2.png') top left no-repeat transparent;"); tumblr_button.innerHTML = "Share on Tumblr"; document.getElementById("tumblr_button_abc123").appendChild(tumblr_button); </script> Edited August 17, 201313 yr by mpeoplefansite
Create an account or sign in to comment