tumblr

Getting Equal Height Columns jQuery Plugin and Disqus to Play Nice

走远了吗. 提交于 2019-12-04 02:00:27
问题 I decided that a JS solution (The EqualHeights Plugin) to equal height columns would probably be best in this case, but I'm having trouble with Disqus. As you probably already know, Disqus loads asynchronously. That's great and all (well, not really), but because the comments are loading after everything else, including the plugin, they're being chopped off. I can't figure out how to get around this. I actually tried a CSS "hack" to get equal height columns, hoping it wouldn't conflict with

Making Tumblr Landing Page

ⅰ亾dé卋堺 提交于 2019-12-03 22:15:52
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 page. I created a custom page '/home', to use instead of the index page. I placed the normal index code

Tumblr OAuth – Missing or invalid request token

别来无恙 提交于 2019-12-03 20:18:11
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_HOST]$_SERVER[REQUEST_URI]"; // get the verifier value $verifier = $_GET['oauth_verifier']; //

Tumblr Photo/Photoset popup

拥有回忆 提交于 2019-12-03 18:16:07
问题 The theme I use lets photoset images pop up to the grey gallery slide show. If I post only a single photo nothing happens, even when I insert a clickthrough URL. I'd like to have the grey slide show gallery for all images. On the dashboard it works, but not in the theme. I think there's some code missing, but I don't know it. Could somebody have a look on it, please? I use this theme http://mindspalace.tumblr.com 回答1: There's no official way for doing this, but you could 'piggyback' tumblr's

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

笑着哭i 提交于 2019-12-03 17:26:37
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 re-sizing for these specific featured photography posts? Maybe a way to alter the behavior based on

Android Tumblr Oauth-signpost 401

我怕爱的太早我们不能终老 提交于 2019-12-03 15:48:34
Okay, so, I am making a Tumblr client for Android, I've been trying and failing to get OAuth working for about a week now. Here's how its going: User fires up the app. Main activity's onCreate does this: settings = getSharedPreferences(PREFS_NAME, 0); authToken=settings.getString("OauthToken", "none"); authTokenSecret=settings.getString("OauthSecret", "none"); if(authToken=="none" || authTokenSecret=="none"){ Intent i = new Intent(getApplicationContext(),Authentication.class); startActivity(i); } this launches an authentication activity which contains a WebView. That activity successfully gets

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

雨燕双飞 提交于 2019-12-03 15:48:10
{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, initial-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes"> This may seem like an

Uploading Images to tumblr API from Android

有些话、适合烂在心里 提交于 2019-12-03 15:33:20
问题 One assumed using the Tumblr API to upload images would be easy. It isn't. ( EDIT It is now, see Edit 2 at the end of this entry) My app is supposed to upload an image to tumblr . I would prefer doing that from a service but for now I use an activity that closes itself as soon as its done uploading. In OnCreate() the user is authenticated: consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); // It uses this signature by default // consumer.setMessageSigner(new

Unable to get OAuth “Request Token” while working with the Tumblr API using Python

我怕爱的太早我们不能终老 提交于 2019-12-03 13:46:29
问题 I've been using libraries to handle OAuth so far, but lately I've been digging deeper trying to understand the underlying OAuth process. Currently, I'm trying to connect to Tumblr API v2 using OAuth 1.0a with this simple code: import urllib, urllib2, time, random, hmac, base64, hashlib def makenonce(): random_number = ''.join( str( random.randint( 0, 9 ) ) for _ in range( 40 ) ) m = hashlib.md5( str( time.time() ) + str( random_number ) ) return m.hexdigest() def encodeparams(s): return

get oauth token with tumblrs official php client

家住魔仙堡 提交于 2019-12-03 12:57:51
问题 This is my first time playing with an api and oauth and tumblr has a php client. I have downloaded and installed the client with composer. This is the code they have to set up the client. $client = new Tumblr\API\Client($consumerKey, $consumerSecret); $client->setToken($token, $tokenSecret); I know the consumer key and secret but how do I get the token and token secret with tumblrs php client? I also know the process of oauth but I don't know how to actually implement it :/ 回答1: Just so we're