tumblr

How to get first image from a tumlbr rss feed in PHP

不问归期 提交于 2019-12-08 12:04:26
问题 0Here is the relevant part of my rss feed: <channel> <description></description> <title>Untitled</title> <generator>Tumblr (3.0; @xxx)</generator> <link>http://xxx.tumblr.com/</link> <item> <title>Title</title> <description><figure><img src="https://31.media.tumblr.com/c78c7t3abd23423549d3bb0f705/tumblr_inline_nkp9z234d0uj.jpg"/></figure></description> <link>http://xxx.tumblr.com/post/99569244093</link> <guid>http://xxx.tumblr.com/post/99569244093</guid> <pubDate>Thu, 09 Oct 2014 11:19:33

Change style of most recent Tumblr post

一曲冷凌霜 提交于 2019-12-08 09:30:48
问题 Ok, I've googled this for hours with no luck. I hope you can help and appreciate you doing so. I am working on a grid theme for tumblr. I want the most recent post to be formatted differently than the rest. Namely, I want it to be full page width and have different background-color and border attributes. In essence, creating a media header that continually updates to the most recent post. A similar example is Digg.com. Their top post is 3 full page width and the rest of the "top posts" are in

Styling tumblr reblog comments

空扰寡人 提交于 2019-12-08 09:23:53
问题 I've looked everywhere for this, with no luck! I hope you guys can help me with this :) I'm making a custom tumblr theme, but one thing that I don't like it the tabular way tumblr displays its post comments. What I mean is specifically this: In the code for the tumblr theme, there isn't really a specific call to the rendering of these comments, most of the time it's just part of the post body, the picture caption, etc. I know that the strings are rendered as block quotes, so by creating

Tumblr: How to get Pinterest Widget to extract images of a photoset in Blog Post and Index Page

时光怂恿深爱的人放手 提交于 2019-12-08 08:30:26
问题 I would like to get the Pin It button to work on photosets: so when the pin it button is clicked, users can select an image from all the images from a photoset to pin. I am using the code provided by Pinterest widget generator and adding in tumblr variables as follows: <a href="//www.pinterest.com/pin/create/button/?url={URLEncodedPermalink}" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a> But when clicked it says "Sorry, couldn't find

Tumblr photoset percentage width

允我心安 提交于 2019-12-08 08:21:08
问题 I'm creating a 4 colum Tumblr theme. Each column width is 25% and using {PhotoURL-500} images shrink or expand OK regardless of the window size, the problem comes with photosets, they are static and make the columns collapse. Since I'm not working with pixels but with percentage there's a way of making photosets fit in % columns? Thanks! 回答1: Replace your current photoset block in your theme’s HTML with this: {block:Photoset} <div class="photoset content"> {block:Photos} {block:Photo1}{/block

Can I mimic Tumblr interaction such as reblog and like via their API?

对着背影说爱祢 提交于 2019-12-08 08:17:28
问题 So, I'm doing a one page site where a Tumblr should be included. I figured there were two ways to go to achieve this. Iframe Tumblr API Since Iframe feels like bad practice I figured I'd make use of the Tumblr API. With an API key I can fetch content from the Tumblr and put it on the site and mimic the look and feel of a Tumblr blog. Now I've reached the point where I want to include functionality such as Follow, Reblog and Like. These are all possible using the API and Oauth as auth method,

Change default photoset size on tumblr

元气小坏坏 提交于 2019-12-08 07:49:14
问题 I know tumblr has the defualt photoset sizes {photoset-500},{photoset-400},{photoset-250}, but I want to change the width, so that the width could be either 420, or 350. i have looked everywhere and cannot find a code to help me do this. 回答1: You can use {Photoset} which just resizes the photoset to fit the container (max size 700px). https://www.tumblr.com/docs/en/custom_themes 回答2: You cannot change default sizes of images with Tumblr markup, but you can visually change size with CSS .

Select specific Tumblr XML values with PHP

这一生的挚爱 提交于 2019-12-08 02:48:07
问题 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

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

≡放荡痞女 提交于 2019-12-08 00:46:30
问题 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

Getting only 20 posts returned through PyTumblr

蓝咒 提交于 2019-12-08 00:29:17
问题 I am using PyTumblr to return all of my posts, but it is only returning 20. I found the kwarg for the posts function, called limit, but when I specified 1000 it still returned 20. Any idea what I'm doing wrong? CLIENT = pt.TumblrRestClient(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET) all_posts = CLIENT.posts(BLOG_URL, limit=1000) 回答1: Tumblr’s API only allows to specify a limit up to 20. So your limit of 1000 is being ignored and you get 20 instead. You will have to use paging in