tumblr

Can I have a <pre> Tag inside a <p> tag in Tumblr?

泄露秘密 提交于 2019-11-30 17:33:15
today I played around a little bit with Tumblr. I tried to add a preformatted text into a description paragraph block like so: {block:Description} <p id="description">{Description}</p> {/block:Description} However, the <pre> element gets rendered just after the <p> element and not within it which was my intention. Am I doing something wrong here or is it a bug? You cannot nest block-level elements, such as <pre> , inside <p> in HTML. So Tumblr is behaving correctly. You should close your paragraph before inserting the pre-formatted text. If you want teletype-style text, try the <tt> tag, but

How to Post image or Text in Tumblr Android [closed]

若如初见. 提交于 2019-11-30 16:45:51
I am Working on Tumblr integration in Android but not able to login Downloded the SDK from following Url:- http://www.tumblr.com/tagged/android-sdk now i need to login and post image or text in Tumblr. Download Tumblr Example Set CONSUMER_KEY and CONSUMER_SECRET and Get Started! About posting text and photos see Tumblr API #Posting Text Post API Url : http://api.tumblr.com/v2/blog/blogname.tumblr.com/post Replace blogname with your BlogName. Params : 1) type = "text" 2) title = "MyTitle" 3) body = "My Message" Photo Post with text API Url : http://api.tumblr.com/v2/blog/blogname.tumblr.com

In tumblr, show only posts with a certain tag in the home page

情到浓时终转凉″ 提交于 2019-11-30 15:43:51
问题 In tumblr, is it possible to show only posts with a certain tag in the home page? If so, how is it done? 回答1: I just wrote up the solution to the opposite problem here: How to hide the posts with a given tag from the homepage. You can take inspiration from there and implement the opposite. Alternatively, you can simply add a "hidden" tag to each one of the things that you don't want displayed on the homepage. 回答2: I know that this topic is quite old, but I figured I'd share what I did for

In tumblr, show only posts with a certain tag in the home page

半城伤御伤魂 提交于 2019-11-30 15:10:51
In tumblr, is it possible to show only posts with a certain tag in the home page? If so, how is it done? I just wrote up the solution to the opposite problem here: How to hide the posts with a given tag from the homepage . You can take inspiration from there and implement the opposite. Alternatively, you can simply add a "hidden" tag to each one of the things that you don't want displayed on the homepage. I know that this topic is quite old, but I figured I'd share what I did for anyone who is still looking for an answer to this problem. First, paste the following code after the "</title>" in

What is the URL schema of Tumblr images?

雨燕双飞 提交于 2019-11-30 11:24:26
问题 What is the schema of a image-file at Tumblr? (I don't mean HTTP ) I've only figured out that the domain of the servers where images are stored is <n>.media.tumblr.com , where n is a number between 1 and 31 and the name of the image file is prefixed with " tumblr_ . I'm asking because I want to find URLs that refer to the same image. EDIT: I'm also processing URLs from other sources, not only Tumblr. 回答1: Overview When you upload an image to Tumblr, multiple sizes (of the same image) are

Integrating tumblr blog with website

不想你离开。 提交于 2019-11-30 10:52:09
问题 I would like to integrate my tumblr feed in to my website. It seems that tumblr has an API for this, but I'm not quite sure how to use it. From what I understand, I request the page, and tumblr returns an xml file with the contents of my blog. But how do I then make this xml into meaningful html? Must I parse it with php, turning the relevant tags into headers and so on? I tell myself it cannot be that painful. Anyone have any insights? 回答1: You can use PHPTumblr, an API wrapper written in

How to query multiple tags in Tumblr's read api?

你。 提交于 2019-11-30 10:36:59
I'm trying to include Tumblr feeds on a webpage roughly as follows $.ajax({ url: 'http://mypage.tumblr.com/api/read/json?tagged=interesting+tag', type: 'GET', dataType: 'jsonp', success: renderStuff, error: function () { alert('D\'oh'!) } }); Now, this works fine: I get all entries with the tag 'interesting tag'. My question is: How do I ask for multiple tags? Changing the query string like this 'http://mypage.tumblr.com/api/read/json?tagged=tag1&tagged=tag2&tagged=tag3' only returns entries with 'tag3'. Is there some trick to 'AND' or 'OR' tag-names together? If not, I'd be happy to just

Tumblr “like-heart-button” script on homepage [closed]

僤鯓⒐⒋嵵緔 提交于 2019-11-30 08:53:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . How to make a 'like' button for each post without going on permalink page? I mean, even in the homepage, which script can I use to have something like the heart on this page? (mouseover the photos, there's a heart to like the post) 回答1: From the page, they're using the javascript: $

What is the URL schema of Tumblr images?

风流意气都作罢 提交于 2019-11-30 01:40:04
What is the schema of a image-file at Tumblr? (I don't mean HTTP ) I've only figured out that the domain of the servers where images are stored is <n>.media.tumblr.com , where n is a number between 1 and 31 and the name of the image file is prefixed with " tumblr_ . I'm asking because I want to find URLs that refer to the same image. EDIT: I'm also processing URLs from other sources, not only Tumblr. mikedidthis Overview When you upload an image to Tumblr, multiple sizes (of the same image) are generated and stored across their network. Once uploaded, you can use template tags to request this

displaying a div only on tumblr blog homepage?

余生长醉 提交于 2019-11-30 01:39:15
I have a fairly novice understanding of CSS and HTML, and I'm trying to do something that I think should be relatively simple (in a custom tumblr theme I'm creating), but I can't find a straightforward answer. I have a feeling there might be a super easy way to do what I want in JavaScript. I'd like to display a DIV only on the main index page (i.e. homepage) of the tumblr blog. It seems the documentation tumblr provides allows you to do this to some extent (through the {Block:IndexPage} variable), but the problem is the code within this element displays on all index pages (i.e. instead of