tumblr

Unable to post a photo using the Tumblr SDK example

邮差的信 提交于 2020-01-06 15:16:23
问题 I'm trying to upload a photo using the example: PhotoPostExample given by Tumblr (https://github.com/tumblr/TMTumblrSDK) I can't seem to upload a photo. I can already post a text post and view the user info, so I think the app is already authenticated. I've already checked if the photo referred to in the NS Bundle exists, and it does. I've even reduced the photo to make it smaller in file size and still it won't upload. It shows this error: Error Domain=Request failed Code=401 "The operation

Tumblr Masonry with PXU Photoset Issue

三世轮回 提交于 2020-01-06 08:39:14
问题 I have this issue with PXU Photoset Extended not loading properly when I use Masonry for my Tumblr Theme. I know what causes it, I just sadly have no clue how to fix it. The only thing I found that reduced flickering while Masonry loaded, was to hide the container with CSS (display:none) and then unhide it when loading the Masonry script. It seems this had the odd side-effect of the PXU Photoset script not rendering images properly (they're mostly cut off and they jump into their real size

URI changes without reload?

不打扰是莪最后的温柔 提交于 2020-01-05 05:52:15
问题 How did they accomplish this function in the theme, where you click on the permalink (eyeball) button the uri changes, with out a hash (#) How is this done? is it ajax? or something else. I assume it's calling the page but no reload? theme: http://thingslog-theme.tumblr.com/ (click the eyeball at the bottom of each post) I'm stumped and help? 回答1: They use a code of this kind : $('a').click(function() { link = $(this).attr('href') history.pushState({}, '', link); $('#content').load('/content

How To Get Tumblr Access Token Using oAuth

笑着哭i 提交于 2020-01-05 02:45:07
问题 Can anyone tell me how i can get 'Tumblr' access token using oAuth 1.0 or 2. I've read tumblr documentation but i think there is no proper documentation of authentication. I also worked on Instagram, linkedin and etc using oAuth, but cant understand Tumblr authentication steps. And don't want use tumblr 'sdk' or sample app. 来源: https://stackoverflow.com/questions/48056353/how-to-get-tumblr-access-token-using-oauth

How To Get Tumblr Access Token Using oAuth

孤者浪人 提交于 2020-01-05 02:45:06
问题 Can anyone tell me how i can get 'Tumblr' access token using oAuth 1.0 or 2. I've read tumblr documentation but i think there is no proper documentation of authentication. I also worked on Instagram, linkedin and etc using oAuth, but cant understand Tumblr authentication steps. And don't want use tumblr 'sdk' or sample app. 来源: https://stackoverflow.com/questions/48056353/how-to-get-tumblr-access-token-using-oauth

Position Relative to the window

爷,独闯天下 提交于 2020-01-03 07:11:12
问题 I have a Tumblr account and I'm working on editing the html of it. My question is this: how do I make my side bar be in a certain position but then I scroll down on the page, it stays where it is relative to my browser? For an example of what I'm talking about, click "ask a question" and look at "similar questions" then scroll. I would prefer for it to be in CSS. I have already tried everything I can think of. 回答1: set the elements css position attribute to fixed and user top / left and

Tumblr Style Keyboard Navigation

前提是你 提交于 2020-01-03 02:36:04
问题 I don't know much about how it works. My guess is JavaScript, but anyway. When you go to your dashboard in Tumblr you can go back and forth between pages in your feed with your keyboard. ← to go forward to newer posts and → to go to older posts. Can someone help me figure out how they do this. 回答1: Well, what you have do is set up a "keyup" event listener for your document element that reads which key your user pressed, then execute an action if the keycode matches the code for your left or

Change the font based on language CSS

前提是你 提交于 2020-01-02 20:10:53
问题 Please check this code; I am trying to change the font and text-align based on language : The style <style> .quotebod { padding: 10px 10px 10px 10px; line-height: 22px; font-size: 20px; } :lang(ar) { text-align:right; font-family:'Droid Arabic Kufi'; } .quotebod:lang(ar) { padding: 10px 10px 10px 10px; line-height: 30px; font-size: 20px; text-align:right; font-family:'Droid Arabic Kufi'; }</style> <body><p class="quotebod">{Quote}</p></body> **{Quote}: a tumblr variable but it's text too **

Custom domain in Tumblr

醉酒当歌 提交于 2020-01-02 18:37:49
问题 I setup this domain's A-record to point to this tumblr: emmaraviv.com :: timeoftstretched.tumblr.com Which works fine, but www.emmaraviv.com does not. In tumblr, I have the "custom domain" set to "emmaraviv.com". I don't see a way to specify multiples. i.e. "emmaraviv.com", "www.emmaraviv.com". I added another A-record for www., point to the same IP (the one Tumblr tells you to use). But when you try to go to this records address specifically (www.emmaraviv.com.ryan-orourke.com -- it's under

Filtering posts by tag on Tumblr page?

瘦欲@ 提交于 2020-01-01 19:13:54
问题 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? 回答1: 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