tumblr

Tumblr theming - show preview image for “link” post type?

做~自己de王妃 提交于 2020-01-01 03:50:27
问题 When you add a "link" type post to Tumblr: ...your admin shows a small thumbnail of any image associated with that link: However, this doesn't show on the frontend of the site: Is there any way to pull this image through? 回答1: Tumblr Link Theme Operator and Thumbnail Tumblr recently added some new theme operators to allow for link thumbnails. I presume this works the same as video thumbnails work and may only be available if the linked site creates the thumbnail. {block:Link} {block:Thumbnail

Stop Tumblr from adding JS and CSS files to theme

限于喜欢 提交于 2019-12-31 03:45:09
问题 Tumblr is just flooding the blogs with loads of JS and CSS files. I don't know if these files are required or just useful. Here's a list of them The JS: - tumblelog.js & pre_tumblelog.js -> looks like this is Tumblr JS API, but do we need it? - cedexis.radar.js -> no idea what this does. - rapid-3.18.1.js The CSS: fonts/gibson/stylesheet.css And some images are also added to the page. I searched a bit, but there is no way of stopping tumblr from doing this. Is there any way we can stop Tumblr

Tumblr OAuth image post gives me 401/“Invalid OAuth credentials”

隐身守侯 提交于 2019-12-31 02:45:20
问题 I've got an iOS app thats posts images to several services, including twitter and I'm trying to extend that support to tumblr. I've adapted some open source code for the OAuth 1.0a header logic and its working well enough to be successful for twitter + twitpic and for tumblr's authentication. However image posts to tumblr are failing with status 401 and string response "Invalid OAuth credentials" To simplify, my only multipart sections are the post type and the image data. So my simple POST

User-editable HTML XSS protection (tumblr like)

别来无恙 提交于 2019-12-30 08:33:32
问题 I want my service to have such a feature: author can fully customize the page, but can't steal users' cookies. Tumblr had some troubles with that, but solved them successfully http://www.riyazwalikar.com/2012/07/stored-persistent-xss-on-tumblr.html So I need the solution with no moderation full access to html code of pages for users-authors, don't want white-list filtering and templating language (that is how it works now :( ) no opportunity to steal each others cookies (on pages of other

JQuery load content from a remote site

给你一囗甜甜゛ 提交于 2019-12-30 07:13:53
问题 I would like to load content from another site using JQuery, Unfortunately the .load() function is limited to the current domain. Is there any way around ? I would like to insert à navigation bar directly into a tumblr blog. 回答1: Have a look at Ways to circumvent the same-origin policy If you have control over the other side it is quite easy. Otherwise try Yahoos YQL. 回答2: You can take a look at cross domain ajax request with YQL and jQuery . http://net.tutsplus.com/tutorials/javascript-ajax

Tumblr like button not working after infinite scroll ajax recall

≯℡__Kan透↙ 提交于 2019-12-30 05:26:08
问题 There are a few similar posts but they are quite out of date and Tumblr has updated the like part of the API not too long ago as far as I'm aware. Creating a like button is as simple as {LikeButton} and this works great, but after the ajax recalls to get more posts from what would be the next page, the like button no longer works. I have had a look at the documentation and it states that I need to implement one of the following, I was wondering if anyone could point me in the right direction?

How to display a link to my latest Tumblr post using Javascript?

六月ゝ 毕业季﹏ 提交于 2019-12-29 09:19:06
问题 I am looking for some help and would be VERY grateful for it. I would like to use Javascript to display a link to my latest Tumblr post. For example, it would be like: <a href="http://brianjsmith.tumblr.com/post/4486283258/welcome-to-my-tumblr">Read Post</a> As you can see in the above code, the link is to my latest post. However, the latest post is (of course) going to change.... I can't seem to find anything online (I've been searching Google for a few hours) and I have been trying to

Could not cast value of type '__NSDictionaryM' to 'NSArray" [duplicate]

人盡茶涼 提交于 2019-12-29 08:22:20
问题 This question already has answers here : Swift JSON error : Could not cast value of type '__NSDictionaryM' to 'NSArray' (3 answers) Closed 3 years ago . This is my part of my code: let quotesData = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as! NSDictionary var quoteDictionary: [NSDictionary]! quoteDictionary = quotesData["response"] as! [NSDictionary] This is part of the JSON from the Tumblr API: { "meta": { "status": 200, "msg": "OK" }, "response": {

Tumblr API - how to upload multiple images to a Photoset

余生颓废 提交于 2019-12-28 12:14:42
问题 I am able to upload one picture but I can't create a photoset with multiple images using API. Documentation says: Paramater: Array (URL-encoded binary contents) One or more image files (submit multiple times to create a slide show) Does anyone know how to do it? 回答1: It's kind of a painful process, but I figured it out after studying the python code Tumblr posted. In short, it requires getting the hexadecimal for the photo and then doing some substitutions. I've created a simple iOS / iPad /

Tumblr API : “user/info” endpoint - Getting 401 - Unauthorized

十年热恋 提交于 2019-12-25 19:35:36
问题 I am getting the following error while making the "user/info" endpoint on Tumblr API. Error Response: "{"meta":{"status":401,"msg":"Unauthorized"},"response":[],"errors":[{"title":"Unauthorized","code":1016,"detail":"Unable to authorize"}]} Debugged everything(Signature and OAuth Header) and can't find the exact problem. Any sample code for Tumblr API: "user/info" endpoint with the signature and request header process in JAVA. My code: String query = "https://api.tumblr.com/v2/user/info";