tumblr

Tumblr ignores open graph tags

假如想象 提交于 2019-12-04 19:38:20
I have some social sharing buttons on a site. I've been able to use the open graph tags to specify exactly what I want shared. They work with every major social network except Tumblr. Does anyone know why or what I should be doing instead? Thanks! Even though this is an older post, I came across it and figured I'd post a reply for future folks. I hope the OP found a more timely answer. It depends how your open graph tags set up - on your index page? Or on your permalink pages? Facebook does not allow you to pass it parameters, it can only grab what is on the page. So on the index page it can

How do I add Google Adsense every x posts?

浪尽此生 提交于 2019-12-04 18:22:14
I found this example http://wearevanity.co where the new ads are loaded in every page. In addition to the maximum number of posts allowed by Tumblr . The ads are automatically adjusted to the layout of the page, which makes them add to the look of the blog. Does anyone know how to achieve this? If so, would you please explain it to us, step by step? Use {block:Post6} and {block:Post12} to show content on the 6th and 12th posts. Documentation here Example usage: {block:Posts} {block:Photo}Your content blocks here{/block:Photo} {block:Video}Your content blocks here{/block:Video} {block:Post6}

Responsive Tumblr videos not working

馋奶兔 提交于 2019-12-04 15:57:14
问题 I'm trying to make videos on my Tumblr theme responsive. I am using fitvids.js to resize Vimeo and YouTube embeds. However, it won't work with Tumblr's native video player. The Tumblr native video player uploads an iframe at a fixed width — I can change this, but then the formatting of the controls are very wonky (they must depend on the fixed height or width). Also, the iframe src is hidden ( about:blank ), and Tumblr must do something custom to replace it: <iframe width="500" height="281"

Defining style per tags in Tumblr

混江龙づ霸主 提交于 2019-12-04 14:35:37
问题 I would like to know how to define the specific style for specific tags. For instance, I would like to have my posts render a certain style if they're tagged with Croissant or Chocolate. I think know I have to create a new class and I know I have to style this new class but I don't know how to do it. Thanks for the help! 回答1: You'll need to use {TagsAsClasses} in your theme. For example, you'll need to write something like for your theme: <div id="{PostID}" class="post {PostType}

How to add a tag cloud on Tumblr?

拥有回忆 提交于 2019-12-04 12:45:18
I have been using Tumblr for quite a while but I couldn't figure out how to display the Tumblr tag cloud on the blog. I would like to ask how to display a tag cloud on my Tumblr blog? A third-party JavaScript solution: http://rive.rs/projects/tumblr-tag-clouds This is a tag cloud generator for Tumblr. It uses the Tumblr API to generate a tag cloud each time your site is accessed. Another variant (claiming to be faster): http://post-theory.com/tumblr-tag-cloud-javascript 来源: https://stackoverflow.com/questions/12277304/how-to-add-a-tag-cloud-on-tumblr

How to setup the callback URL in the OauthSwift library

ぃ、小莉子 提交于 2019-12-04 12:41:22
I am working on a project where I am implementing the OAuthSwift library to connect to several different social networking sites that use both OAuth1 and OAuth2. I have the application set up to load a web view that takes me to my social networking site, but I can't get the application to redirect back. Once I load my credentials, it asks for me to give permission to authorize the application, but once I do, it loads my homepage for the social networking site. I can navigate back to the application, but it does not register that it has received permission to access my account. This is my first

First image only from photoset on indexpage, then all on permalinkpage

微笑、不失礼 提交于 2019-12-04 12:37:29
Hello - I've been playing around with tumblr photosets and currently i'm using a masonry based theme. With the photosets, i wish to just show the first image of the photoset on the index page but on the permalink page i wish for all the images of the photoset to be shown. Thanks graygilmore You just need to adjust how you display it depending on if you're on the Index or Permalink. On the index, you'll loop through all of the photos and hide all of them except the first one via CSS. First, you'll add in a CSS hook so you know you're on the Index page (should do this anyways): <body class="

Tumblr API get current AVATAR URL

旧时模样 提交于 2019-12-04 10:53:49
Everyone knows? about avatar url in tumblr api / read / json? like for example the facebook? http://graph.facebook.com/[your facebook id]/picture?type=normal <?php $tumblog = 'natadec0c0'; // change to your username // if your Tumblog is self hosted, you need to change the base url to the location of your tumblog $baseurl = 'http://' . $tumblog . '.tumblr.com'; $request = $baseurl . '/api/read/json'; $ci = curl_init($request); curl_setopt($ci,CURLOPT_RETURNTRANSFER, TRUE); $input = curl_exec($ci); curl_close($ci); // Tumblr JSON doesn't come in standard form, some str replace needed $input =

Start GIF On Mouse Hover and Pause Otherwise?

☆樱花仙子☆ 提交于 2019-12-04 10:53:14
So I'm trying to have these images on the sidebar of a page I'm building that are static but when you mouseover they animate as gifs. My current setup is to have the background-image css property image be a static jpg normally but change to an animated gif on mouseover. Here's the code, to illustrate my point better. CSS: #segments li a.fnb { background-image: url(http://dl.dropbox.com/u/8808984/2.0/SegmentThumbs/fnb%21-small.jpg); /*fallback*/ } #segments li a.whhu { background-image: url(http://dl.dropbox.com/u/8808984/2.0/SegmentThumbs/still.jpg); } #segments li a.fnb:hover { background

composer does not autoload

你说的曾经没有我的故事 提交于 2019-12-04 06:10:37
问题 I followed the composer instructions and installed composer successfully. I want to use tumblr's brand new php api client. My folder structure: vendor/ composer.json composer.lock myfile.php composer.json : { "require": { "tumblr/tumblr": "0.0.2" } } myfile.php : require 'vendor/autoload.php'; $client = new Tumblr\API\Client(CONSUMER_KEY, CONSUMER_SECRET); Installing using php composer.phar install works great as well. But when executing myfile.php the class could not be found. Fatal error: