tumblr

Tumblr quick like button not working

落爺英雄遲暮 提交于 2019-12-12 02:58:02
问题 EDIT, April 2013: Old code no longer nedeed. Use Tumblr's new shortcodes for 'like' and 'reblog' buttons instead! http://developers.tumblr.com/post/49193689915/attn-fantastic-theme-developers-tumblr-users-can Old code: I'm using @ThinkingStiff's code (https://stackoverflow.com/a/9048446/351320). Here's the live example: http://themelab01.tumblr.com/ My html code: {block:Posts} {block:Text} <li id="{PostID}" class="post text"> {block:Title} <h3><a href="{Permalink}">{Title}</a></h3> {/block

API to post on Tumblr

北城余情 提交于 2019-12-12 02:36:16
问题 I've been trying to upload an image to Tumblr from my iOS application for a little while now, but I can't get my method to work properly. My current method uses ASIHTTPRequest and OAuthConsumer according to this guide. However, I end up getting a 401 error (Authentication needed). You can find the explanation for my problem here. But my question is : Is there any other mean/API to post on Tumblr for iOS? I saw that OAuthConsumer was not fully functional on that side, and I didn't find

Python 3 with Requests trying to use Tumblr API, I get error 401?

旧巷老猫 提交于 2019-12-12 01:48:51
问题 I have Python 3 and I am trying to post to Tumblr via API link to API documentation. I keep getting an error 401 despite feeling like I am doing everything correctly. There is an official API client in Python 2 but that feels a bit hard to follow and all other mentions of it seem to be in PHP or Java. I also am not sure of the format to post in after the 401 error because the documentation doesn't give any explicit examples other than /post. My code: import requests from requests_oauthlib

change default tumblr like and reblog button

偶尔善良 提交于 2019-12-12 01:25:30
问题 Is it possible to change the tumblr default like/reblog buttons and insert an img? I'm trying to change my like button to http://38.media.tumblr.com/tumblr_m7wvvwuZdH1r17mw1.png (excuse the link. I can't post images yet because of reputation/I'm a newbie.) . here is what my like/reblog button code looks like <div id="buttons"> <div class="buttoned">{LikeButton size="14" color="black"}</div> <div class="buttoned">{ReblogButton size="14" color="black"}</div> and /* BUTTONS */ #buttons { width:

I inserted a metadata section on my Tumblr theme but it's not showing up. Is there anyway I can fix that?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 21:05:19
问题 This is the code I have. {block:Date} <section class="metadata"> <ul class="index"> <li>Date Posted: <a href="{Permalink"><time datetime="{MonthNumberWithZero}-{DayOfMonthWithZero}-{Year}">{Month} {DayOfMonth}, {Year}</time></a></li> {block:ContentSource} <li>{lang:Source}:<a href="{SourceURL}">{block:NoSourceLogo}{SourceTitle}{/block:NoSourceLogo} {block:SourceLogo}<img src="{BlackLogoURL}" width="{LogoWidth}"height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}</a></li> {/block

How to share text over to Tumblr using Xcode

不羁的心 提交于 2019-12-11 20:18:42
问题 I am working on an iOS application which has sharing functionality like Facebook, Twitter and Tumblr Sharing. I have done all sharing besides the Tumblr. I've worked a lot on this. I have done a lot of googling, but found nothing on Tumblr Sharing. Here is my code currently using for sharing text over Tumblr : - (void)shareOvertumblr:(id)sender { NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString:@"http://www.tumblr.com/api/write"]]; [request

How to disable the photoset in tumblr theme

穿精又带淫゛_ 提交于 2019-12-11 18:30:06
问题 I wanna disable the photoset and just show one image in the grid box,I used {block:Photos}{/block:Photos} outside img tag, however, it still doesn't work, I don't know why. Code: {block:photoset} {block:Photos} <img src="{PhotoURL-500}" border="0" /> {/block:Photos} {block:Caption} <div class="entry"> <blockquote>{Caption}</blockquote> </div> {/block:Caption} {/block:photoset} 回答1: If you only want to show the first image of a Photoset you'll have to do this: HTML: {block:Photoset} <div class

Script doesn't work on elements loaded with infinite scrolling

和自甴很熟 提交于 2019-12-11 18:16:05
问题 I'm using this script on my tumblr page, which gives posts different random text colors: function get_random_color() { var letters = '0123456789ABCDEF'.split(''); var color = '#'; for (var i = 0; i < 6; i++ ) { color += letters[Math.round(Math.random() * 15)]; } return color;} $(function() { $(".post").each(function() { $(this).css("color", get_random_color()); }); }); The thing is the script isn't working for elements loaded with infinite scrolling. Can anyone help me rewrite this code? I

Magnific popup and infinite scrolling

自作多情 提交于 2019-12-11 09:07:44
问题 I have a tumblr blog whit infine scrolling and magnific-popup to visualize the image. When I scroll to the bottom and load new posts, magnific-popup doesn't works in the new posts loaded but only in the old. If I try to go to "page-2" manually everything works. Is there a way to reload magnific-popup on load posts or something similar? Many thanks 回答1: All you need to do is call the .magnificPopup method on the new elements when infinitescroll is loaded, this way: $YOUR_CONTAINER

Tumblr white bar appears on top of my mobile theme after disabling Follow button through code

谁都会走 提交于 2019-12-11 09:05:50
问题 So, as of 4/12/15 , Tumblr has changed something in their code and the "Promote Tumblr!" buttons reappeared on my blog, even if I had them disabled in the advanced settings... I searched and found this code: iframe:first-child { display: none !important; } that worked for me, but now on the mobile version of the site, I get a plain white bar on top, right where the Tumblr Promote buttons used to be... On desktop, everything works ok... I attached the screenshots of before and after here: