tumblr

Anyone know what tumblr is written in

☆樱花仙子☆ 提交于 2019-12-05 15:17:28
问题 Does anyone know what tumblr is written in? I have been trying to figure it out. 回答1: It's PHP... http://www.marco.org/55384019 spiteshow: I wonder if the Tumblr guys are using a framework or if it is all home brew. Both: it’s a homebrew framework to add MVC structure and a useful secondary function library to PHP 5 that we started in 2006 and have constantly evolved into a very finely tuned framework for our needs. The same framework runs some of Davidville’s former consulting-client sites

Making Tumblr Landing Page

*爱你&永不变心* 提交于 2019-12-05 06:45:56
问题 On Tumblr, I am trying to make a landing page with, for example, an "Enter" button that brings the user to the home page. I found the following code that redirects the site to a /welcome page, which I placed in the index page. <script type="text/javascript"> if(location.href == 'http://ihadcats.tumblr.com/') location.replace('http://ihadcats.tumblr.com/welcome');; </script> Of course, on the 'welcome' page, when you press <a href="http://ihadcats.tumblr.com" it just loops back to the welcome

Image uploading from Python or cURL to Tumblr?

半腔热情 提交于 2019-12-05 04:33:13
问题 I'm working on a project that involves uploading an image to tumblr from Python. I've had luck using Tumblr's API( http://www.tumblr.com/docs/en/api ) in doing regular text-posts, but image uploads have been giving me trouble. The error messages their server returns have been limited to just telling me that there was an "Error Uploading Photo", which has been less than helpful. Since their API seems to be based in using standard HTTP POST operations, I know that there has to be a way to do

Tumblr OAuth – Missing or invalid request token

两盒软妹~` 提交于 2019-12-05 02:47:14
问题 Having some problems with authorizing against Tumblrs API via OAuth. This is what's going on in my callback.php : require_once('../vendor/autoload.php'); // some variables that will be pretttty useful $consumerKey = 'xxx'; $consumerSecret = 'xxx'; $client = new Tumblr\API\Client($consumerKey, $consumerSecret); $requestHandler = $client->getRequestHandler(); $requestHandler->setBaseUrl('https://www.tumblr.com/'); // Fetch the current URL which holds important data $link = "http://$_SERVER[HTTP

Can you customize the format of a Tumblr post based on its tag?

微笑、不失礼 提交于 2019-12-05 02:26:01
问题 Doing a custom Tumblr theme that will have a mix of the usual Tumblr post-types (text, pics, links, etc). I'd also like to do a special post type once in awhile that'll feature my photography, but I don't want it to be resized, rather I'd like to feature the photo in high res at the full width of the theme (about 1140px wide). I've read about {block:HighRes} {/block:HighRes} but it seems this is for having the 500px image click-through to the original. Is there a way to disable this automatic

What is the {block:Hidden} and when is it used?

十年热恋 提交于 2019-12-05 01:36:08
问题 {block:Hidden} <meta name="if:Sliding header" content="1"> <meta name="if:Collapse navigation" content="1"> <meta name="if:Endless scrolling" content="1"> <meta name="select:Layout" content="regular" title="Regular"> <meta name="select:Layout" content="narrow" title="Narrow"> <meta name="select:Layout" content="grid" title="Grid"> <meta name="text:Disqus shortname" content=""> <meta name="text:Google analytics ID" content=""> {/block:Hidden} <meta name="viewport" content="width=device-width,

Tumblr — getting the 8 digit reblog code on home page (nearly there…)

旧巷老猫 提交于 2019-12-04 21:43:48
I've seen two sites in the wild which manage to get Like and Reblog buttons on their homepages via hacks. This seems to be the best one to reference: http://cicerontheme.tumblr.com/ Somehow, they manage to get the reblog URL, how, i have no idea. I've been rummaging through their code and all I find is this for the like button: $('a.likeLink').click(function() { var post = $(this).closest('.post'); var id = post.attr('id'); var oath = post.attr('rel').slice(-8); var like = 'http://www.tumblr.com/like/'+oath+'?id='+id; $('#likeit').attr('src', like); }); It's discussed a little in this Stack

tumblr post specification container

[亡魂溺海] 提交于 2019-12-04 21:38:09
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

Infinite scroll breaks flash

谁说胖子不能爱 提交于 2019-12-04 20:59:16
I am nearly finished creating the tumbler theme below. The theme uses the infinite scroll plugin and this works fine for posts that don't contain flash (photo, text, ...). Video and audio posts use flash and when the infinite scroll kicks in loading more posts it doesn't load in the flash posts. I can't under stand why, can anyone please help as a deadline is looming? http://penguinenglishlibrary.tumblr.com/ Turns out I needed to loop through the posts and call the tumblr api to get the embed code for the audio post. I have put the code in below hopefully it will help someone: I have the

Filtering posts by tag on Tumblr page?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 20:17:50
I am trying to ensure only posts of a certain tag show up on my homepage of my tumblr, (i.e. posts tagged "News"). Can it be done, and how? Definitely possible but would involve using Tumblr's API. Below is an example using the JSON API and jQuery... $.getJSON("http://{Name}.tumblr.com/api/read/json?tagged='[WHATEVER TAG YOU SPECIFY]'&callback=?", function(data) { // Rest of code here... }); The {Name} tag automatically places the tumblr's name into the API URL. From here you would likely use jQuery to append to the resultant post data to somewhere on your page like a "Featured Posts" div.