tumblr

Allow my Tumblr blog's content to be accessed by another page

佐手、 提交于 2019-12-06 12:19:02
问题 I'm attempting to copy all of the actual content from my Tumblr blog using a script I wrote on a different web page, but I'm having a bit of trouble with gaining access to the content. My ajax call is as follows: $.ajax({ url: "http://solacingsavant.tumblr.com/", dataType: 'jsonp', success: function(data) { var elements = $("<div>").html(data)[0].getElementsByTagName("ul")[0].getElementsByTagName("li"); for(var i = 0; i < elements.length; i++) { var theText = elements[i].firstChild.nodeValue;

Different style per tagged page on Tumblr

馋奶兔 提交于 2019-12-06 12:07:32
问题 I'm trying to change the style of a tagged page on Tumblr (as in the page that collects all the specific tags - for example). At the moment all the tagged pages look the same. This is the code I've used - {block:TagPage} <div id="sp"> <div class="container"> <div class="row"> <h1 class="main-logo"><a href="/"> <img src="http://static.tumblr.com/bw1wxme/p5cn7shd5/logo_web.png" alt="" /> </a></h1> </div><!-- row --> </div><!-- /container --> </div><!-- /portrwrap --> {/block:TagPage} Working

Making a POST request to Tumblr's API inside a Chrome Extension

谁说胖子不能爱 提交于 2019-12-06 11:38:04
I'm trying to make a text post to Tumblr using their API and chrome_ex_oauth. API: http://www.tumblr.com/docs/en/api/v2#posting chrome_ex_oauth: http://code.google.com/chrome/extensions/tut_oauth.html The whole process of getting authorized works. What I can't get to work is doing a POST. I'm doing the following: Edit: I've updated the code to reflect Rob W's correct suggestion about the body field var stringify = function (parameters) { var params = []; for(var p in parameters) { params.push(encodeURIComponent(p) + '=' + encodeURIComponent(parameters[p])); } return params.join('&'); }; var

Custom domain in Tumblr

落花浮王杯 提交于 2019-12-06 11:32:49
I setup this domain's A-record to point to this tumblr: emmaraviv.com :: timeoftstretched.tumblr.com Which works fine, but www.emmaraviv.com does not. In tumblr, I have the "custom domain" set to "emmaraviv.com". I don't see a way to specify multiples. i.e. "emmaraviv.com", "www.emmaraviv.com". I added another A-record for www., point to the same IP (the one Tumblr tells you to use). But when you try to go to this records address specifically (www.emmaraviv.com.ryan-orourke.com -- it's under my primary domain on my host) it resolves to Tumblr, but not her site. Which makes me think the issue

Select specific Tumblr XML values with PHP

拟墨画扇 提交于 2019-12-06 11:32:00
My goal is to embed Tumblr posts into a website using their provided XML. The problem is that Tumblr saves 6 different sizes of each image you post. My code below will get the first image, but it happens to be too large. How can I select one of the smaller-sized photos out of the XML if all the photos have the same tag of <photo-url> ? → This is the XML from my Tumblr that I'm using: Tumblr XML . → This is my PHP code so far: <?php $request_url = "http://kthornbloom.tumblr.com/api/read?type=photo"; $xml = simplexml_load_file($request_url); $title = $xml->posts->post->{'photo-caption'}; $photo

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

一个人想着一个人 提交于 2019-12-06 08:55:45
问题 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 回答1: 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 content every 3 posts on Tumblr

社会主义新天地 提交于 2019-12-06 08:22:01
问题 I would like to know if there is a way to put content after 3rd post on every page so I can render something... I don't find anything on tumblr theme API 回答1: Specific Post With API If you are using the API to gather / append posts this would be left for you to do. A simple loop / count should be enough to determine the third post. Specific Post With Themes If you are creating a Tumblr theme, there is a theme operator / block to cater for this: {block:Post[1-15]} /* Add something to the post

Respond.js on Subdomain using Tumblr

為{幸葍}努か 提交于 2019-12-06 07:54:39
My website is responsive. The blog section uses a subdomain pointing to Tumblr, but the cross-domain version of Respond.js isn't working. I'm doing this: <script src="http://www.stevechab.com/scripts/respond.min.js"></script> <link href="http://www.stevechab.com/scripts/respond-proxy.html" id="respond-proxy" rel="respond-proxy"> <link href="http://www.stevechab.com/scripts/respond.proxy.gif" id="respond-redirect" rel="respond-redirect"> <script src="http://www.stevechab.com/scripts/respond.proxy.js"></script> I assume the problem is that respond.proxy.gif and respond.proxy.js aren't on blog

How to add a tag cloud on Tumblr?

末鹿安然 提交于 2019-12-06 07:52:31
问题 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? 回答1: 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:/

How to setup the callback URL in the OauthSwift library

亡梦爱人 提交于 2019-12-06 06:43:39
问题 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