tumblr

Embedding HTML5 video in Tumblr (dashboard and blog)

强颜欢笑 提交于 2019-12-13 05:50:42
问题 Bit curios about the possibility to embed a custom HTML5 video player into Tumblr. How it works now is basically that you put in an URL or embed code to Youtube or any other service and it'll load up the video and show it in the dashboard feed and on your blog. I just checked with Vimeo, and in that case it seems like it fetches a vimeo iframe with the video (I guess it's their embed code) and inject it into the DOM when the play button is pressed. Would it be possible to mimic this behaviour

Javascript breaking audio players

断了今生、忘了曾经 提交于 2019-12-13 05:31:27
问题 I know about this issue in tumblr, the code gets stripped out and the audio players are broken. I'm using flexslider.js now but the problem is pretty much the same. I fixed it with this setTimeout(function() { $('.audio').each(function(){ var audioID = $(this).parent().attr("id"); var $audioPost = $(this); $.ajax({ url: '/api/read/json?id=' + audioID, dataType: 'jsonp', timeout: 50000, success: function(data){ if ($audioPost.html().indexOf("is required to") != -1) { $audioPost.append('<div

post to tumblr using php

空扰寡人 提交于 2019-12-13 05:19:00
问题 Could anyone help me figure out how to post to tumblr using php. I tried googling for a library or a sample code but couldn't find one. all I can find is this here https://github.com/alexdunae/tumblr-php/blob/master/Tumblr.php and it doesnt seem to work also I looked and tried the code on v1 api at tumblr website that doesnt work either .... function post($data){ if(function_exists("curl_version")){ $data["email"] = $this->email; $data["password"] = $this->password; $data["generator"] = $this

Tumblr: photoUrl-(size) - size depending on class?

二次信任 提交于 2019-12-13 01:26:42
问题 I have a Tumblr Site where the width of each post is determined by a tag. If a post is tagged with #width200 , the css class .width200 is assigned. The problem is, though the posts have different widths, they all load the same size photo using the theme operator: {{PhotoURL-500}} . This works, but for the smaller photos, it's a waste of bandwidth. I could use the theme operator {{PhotoUrl-250}} but this makes larger photos look bad. Is there any way around this using theme operators or

Force Tumblr to use http link instead of https

自闭症网瘾萝莉.ら 提交于 2019-12-13 01:00:44
问题 I'm aware that it is promoted to use Secure sockets and HTTPS should be used instead of simple HTTP . But the website I developed is hosted on a server, that has definitions for http only. Https would pop out a 404, that is why I want to use http:// instead of https:// . I am currently editing the theme for Tumblr blog of mine, I'm using this code, <div class="each-object"> <h4> <a href="http://www.aceinternationals.com" target="_blank">2. Ace Internationals</a> </h4> </div> But when I save

Accessing tumblr posts with JSON/JSONP

ぐ巨炮叔叔 提交于 2019-12-12 18:06:57
问题 Here is a fiddle I'm working on. I'm trying to load the posts from ftsstudios.tumblr.com with JSONP, and then using that data on a post reader. get_data = function (data) { FTSPosts.raw = data; }; $.ajax({ url: "//api.tumblr.com/v2/blog/ftsstudios.tumblr.com/posts?api_key=myapikey&limit=20&jsonp=get_data", dataType: "jsonp" }); The above snippet should set FTSPosts.raw to the response obtained. The problem with this is that the data retrieved by get_data returns undefined . What is the

Scroll bar not appearing?

别来无恙 提交于 2019-12-12 13:10:35
问题 I'm developing a theme for Tumblr and the scrollbar isn't appearing for some reason? This is the url for the blog. The code for the theme can be found on the page source from the right click (all but the html as it gets messed up by Tumblr filling in the {} blanks) <body> <div id="titlebox"> <div id="title"><b>{Title}</b><div> {block:IfHeaderImage}<img src="{image:Header}" class="avatar"/>{/block:IfHeaderImage} <div id="description">{Description}</div> {block:Pages}{block:HasPages}<div id=

tumblr post specification container

被刻印的时光 ゝ 提交于 2019-12-12 09:27:33
问题 This is my first attempt at a custom tumblr theme. Currently I have a 3 column layout - and above it I have a feature post section. Is it possible to filter the posts with the most recent in the "featured section" and then as other posts come in populate the other columns? Any links or guidance would be greatly appreciated! Thank you. 来源: https://stackoverflow.com/questions/14756575/tumblr-post-specification-container

How can I make a Tumblr background image only for one page?

扶醉桌前 提交于 2019-12-12 03:38:59
问题 I would like the first page on my Tumblr website to have a background image that fills the entire screen, but for that page only...the other pages will have a white background. Website Please help, I have been at this for a long time..no luck! 回答1: inside the body add a wrapper (around your header, content and footer) and give it an id. set the background image of this id (e.g #page1) to whatever you like, in your case the tumblr image. 回答2: So, the way I would do it is like this: Create a

“Cross-Origin Resource Sharing policy” Between Subdomains in JS?

烈酒焚心 提交于 2019-12-12 03:34:42
问题 I have a Tumblr theme that includes a canvas script. The Cross-Origin Resource Sharing policy doesn't allow context.getImageData() to work. Script is located at user.tumblr.com , images are located at static.tumblr.com . Is there any solution for this? Thank you! 回答1: document.domain will be your friend there. I haven't studied the canvas security model closely, but if it follows the rest of Javascript, setting document.domain = tumblr.com might help. (Googling for document.domain canvas may