tumblr

JS on Tumblr: “Cross-Origin Resource Sharing policy” Error

淺唱寂寞╮ 提交于 2019-12-11 08:44:22
问题 I got a canvas jQuery pluing script on my tumblr theme, I got this error on Chrome: Cross-origin image load denied by Cross-Origin Resource Sharing policy. Tumblr uploads images to http://static.tumblr.com/ Even there is no different domain between files and account, Same location, same domain... But why do I get that error? Any solution? Thank you! 回答1: what epascarello said, subdomain != same domain because you are on the same root-domain you could set the document.domain in your theme to

tumblr javascript embed with css skin

♀尐吖头ヾ 提交于 2019-12-11 08:35:34
问题 I am trying to add a single most recent tumblr post to another page. I found the easiest way is to use the Javascript code provided by tumblr here is what they offered: <script type="text/javascript" src="http://occupy837.tumblr.com/js"></script> adding ?num specifies the number of posts, so I can see that I am almost there <script type="text/javascript" src="http://occupy837.tumblr.com/js?num=1"></script> when I go to the page (www.Occupy837.com) One single post shows up! my only issue now

Custom Tumblr them with Handlebars

≯℡__Kan透↙ 提交于 2019-12-11 07:59:08
问题 Haven't been able to find out any answers to this so far but I'm trying to use handlebars within tumblr's theme system and it looks like my {{variables}} are getting overwritten from tumblr and then my content is never displayed. For example my handlebars template has <img src="{{bgimage}}" class="img-responsive"> But it will output as <img src="{}" class="img-responsive"> So it looks like tumblr is just removing it. I have seen others use handlebars within a theme however I just can't figure

Can You Use PHP in A Tumblr Theme? [closed]

一笑奈何 提交于 2019-12-11 03:21:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to use a PHP variable within a tumblr theme so that photo sizes are random. Is it possible to use PHP within a tumblr custom theme or is it its own language/API that doesn't allow PHP inline? 回答1: No because it will cause security vulnerabilities and that is the reason why they are using mustache in their

Is Python requests doing something wrong here, or is my POST request lacking something?

假装没事ソ 提交于 2019-12-11 03:05:06
问题 I'm currently writing a program which will help users to determine optimal times to make a post on tumblr. As with Twitter, most followers have so many subscriptions that there is no way they can keep up, meaning it's best to know when one's own specific following is (mostly) online. On tumblr this can be determined in two ways -- first whether they have recently shared any content which was recently posted, and secondly whether they have recently added to their liked-posts list.

Chrome extension / Oauth /Tumblr

ぐ巨炮叔叔 提交于 2019-12-11 02:49:16
问题 I am (trying to) implementing a Chrome Extension, that uses the Tumblr API. For that to work I need to authorize via OAuth (1.0a). I managed to get most of the authorization to work but I think I am missing something... My manifest.json of the Chrome Extension I am writing looks like this for now: { "name": "Tumblr - Tiled Dashboard", "version": "0.1.1", "manifest_version": 2, "description": "This extension modifies the look of your Tumblr dashboard.", "icons": { "16": "images/icon_16.png",

Cannot submit form with CasperJS - in other words cannot login

醉酒当歌 提交于 2019-12-11 01:50:03
问题 I'm trying to login into Tumblr with CasperJS using methods start , fill and waitForUrl but cannot do this. It seems to me that form wasn't submitted , because timeout in waitForUr expired everytime. Terminal response: Code I'm using is this: /*jslint browser: true, regexp: true */ // global casper, require var LOGIN_URL, LOGIN_USERNAME, LOGIN_PASSWORD, casper; casper = require('casper').create({ waitTimeout: 20000, viewportSize: { width: 1024, height: 768 }, verbose: true, logLevel: 'debug',

Flickr, Tumblr, Instagram share intent in Android

耗尽温柔 提交于 2019-12-11 01:25:41
问题 I want to share image via Flickr, Tumblr, Instagram. I want to do this with these 3 installed apps. I found for Instagram: Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); shareIntent.putExtra(Intent.EXTRA_TEXT, "" + getShareText()); shareIntent.putExtra(Intent.EXTRA_SUBJECT, "" + getShareText()); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getAbsolutePath())); shareIntent.setPackage("com.instagram.android"); Can I have Tumblr and

Problems with jQuery infinite scroll and masonry

为君一笑 提交于 2019-12-10 18:05:42
问题 I'm attempting to create a tumblr theme and I'm using the masonry and infinite scroll plugins for jquery. the masonry is working just fine. however, i cannot get the infinite scroll to work at all. here's my jQuery code: <script type="text/javascript" src="../jquery-1.7.2.min.js"></script> <script type="text/javascript" src="../masonry.js"></script> <script type="text/javascript" src="../jquery.infinitescroll.js"></script> <script type="text/javascript"> $('document').ready(function(){ $('

Getting 401 (Not Authorized), when calling Tumblr post reblog api

拟墨画扇 提交于 2019-12-10 16:13:02
问题 I am getting 401 status when calling Tumblr post reblog api, other tumblr api working fine. I followed some of Stackoverflow links but can't get ride on it. constantly-getting-401-when-trying-to-post-to-tumblr-blog tumblr-oauth-image-post-gives-me-401-invalid-oauth-credentials My code snippets : String url = String.format(REBLOG_URL, blogName); HttpPost request = new HttpPost(url); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair(