tumblr

tumblr masonry + infinite scrolling overlapping posts despite using desandro and new jquery

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to javascript and stuff and now I have a frustrating issue with masonry and infinite scroll on tumblr. I have read nearly all the forum questions about those issues but nothing solved my problem. So, I have a tumblr blog ( http://jessman5.tumblr.com ) and despite of using: //ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js http://masonry.desandro.com/jquery.masonry.min.js http://masonry.desandro.com/js/jquery.infinitescroll.min.js and this code: <script> $(function(){ var container = $('#container'); container.infinitescroll

Defining style per tags in Tumblr

陌路散爱 提交于 2019-12-03 08:58:59
I would like to know how to define the specific style for specific tags. For instance, I would like to have my posts render a certain style if they're tagged with Croissant or Chocolate. I think know I have to create a new class and I know I have to style this new class but I don't know how to do it. Thanks for the help! You'll need to use {TagsAsClasses} in your theme. For example, you'll need to write something like for your theme: <div id="{PostID}" class="post {PostType} {TagsAsClasses}"> <!-- ... --> </div> If your post is a photo post and has the tags Croissant and Chocolate, then your

Tumblr theming - show preview image for “link” post type?

跟風遠走 提交于 2019-12-03 08:46:02
When you add a "link" type post to Tumblr: ...your admin shows a small thumbnail of any image associated with that link: However, this doesn't show on the frontend of the site: Is there any way to pull this image through? Tumblr Link Theme Operator and Thumbnail Tumblr recently added some new theme operators to allow for link thumbnails. I presume this works the same as video thumbnails work and may only be available if the linked site creates the thumbnail. {block:Link} {block:Thumbnail} <img src="{Thumbnail}" alt="{Name}"> {/block:Thumbnail} {/block:Link} Reference: http://www.tumblr.com

jQuery - parsing JSON data - Having trouble with variable name

无人久伴 提交于 2019-12-03 07:38:50
My first delve into working with JSON data. I have a bit of experience using jQuery though. I'm posting to this URL (tumblr api): jyoseph.com/api/read/json What I'm trying to do is output the json that gets returned. What I have so far: $(document).ready(function(){ $.getJSON("http://jyoseph.com/api/read/json?callback=?", function(data) { //console.log(data); console.log(data.posts); $.each(data.posts, function(i,posts){ var id = this.id; var type = this.type; var date = this.date; var url = this.url; var photo500 = this.photo-url-500; $('ul').append('<li> ' +id+ ' - ' +type+ ' - ' +date+ ' -

Uploading Images to tumblr API from Android

半城伤御伤魂 提交于 2019-12-03 05:08:45
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 HmacSha1MessageSigner()); provider = new CommonsHttpOAuthProvider(REQUEST_TOKEN_URL,ACCESS_TOKEN_URL,AUTH_URL);

Pull the first image from a Tumblr photoset?

ぐ巨炮叔叔 提交于 2019-12-03 05:04:31
I'm designing a theme for a wedding photographer who wants to use Tumblr's Photoset functionality to create a portfolio site. How do I pull the first image from a photoset so I can create a home page with a single thumbnail preview (sized to my choosing) that links to each set? Thanks, Parri Tumblr markup: {block:Photoset} <div class="photoset-wrap"> {block:Photos} <img src="{PhotoURL-500}" /> {/block:Photos} </div> {/block:Photoset} Note: may be you need {PhotoURL-75sq} to output square preview instead of 500px image; CSS: .photoset-wrap img { display: none; } .photoset-wrap img:first-child {

get oauth token with tumblrs official php client

吃可爱长大的小学妹 提交于 2019-12-03 03:13:27
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 :/ Just so we're in the same page, you can get the user's token and secret by going through the browser sign-in flow dance.

分享解决Tumblr汤不热账号无法注册的方法

匿名 (未验证) 提交于 2019-12-02 22:56:40
小伙伴们肯定都知道tumblr这个高大上的东东,但是tumblr在中国区的apple store中下架了,下面我就给大家详细讲解下tumblr下载方法以及注册登陆的流程 第一步:下载汤不热 1.进入设置,然后点击iTunes store 与 app store 问:苹果手机在哪里可以下载tumblr应用? 答:tumblr中国的app store下架了,我自己是进的美国App store,除了中国的苹果商店,别的国家都可以下到的,如下图 问:安卓手机在哪里可以下载tumblr应用? 答:安卓下载比较简,各大下载站都有,我给大家也找了几个比较大型的下载站(手机中国、PP助手、安卓网、起点)还有Google Play,都可以下载 第二步:登陆注册汤不热账号 解说:tumblr我们下载完了,注册前,我们需要在手机上先设置一下,不设置,否则是无法注册的。原因很简单,由于地域的限制,大陆地区是不被允许访问国外网站的(这里我借助的工具是:3GIPV6加速器) 1.安卓和苹果手机设置***流程 (直接进3GIPV6官网下载手机使用)连上就可以,打开国外的所有网站 第三步、Tumblr注册 1.手机上的×××设置完了,我们现在就打开之前下载的Tumblr,开始注册吧 在下面,填上邮箱,密码,账号 2.输入完成后,会收到一封Tumblr发过来的邮件,验证一下,就算注册成功了 3. 3.然后我们就可以

Using simplexml_load_file to pull from tumblr - timing out every time

若如初见. 提交于 2019-12-02 19:35:50
问题 My site is taking ~45 seconds to load. It's because I'm pulling in some XML from tumblr, but I can't figure out if this is my server's fault, tumblr's fault, or some other factor. Can I get this script to time out in 5 seconds and echo 'tumblr is down'; instead of just timing out after nearly a minute? I'm getting this error: Warning: simplexml_load_file(http://blog.yaytalent.com/api/read?type=post&start=1&num=2) [function.simplexml-load-file]: failed to open stream: Connection timed out in

Upload image from sd-card on tumbler in Android

强颜欢笑 提交于 2019-12-02 08:09:09
问题 I have uploaded image using a http://... URL. but i dont want to use URL .I want to upload image on tumbler from local sdcard of mobile. I tried all these solutions Uploading Images to tumblr API from Android but nothing worked for me. i posted image by URL like this :- File fil = savebitmap(pattern_a); HttpPost hpost = new HttpPost("http://api.tumblr.com/v2/blog/" + strBlogName.replace(" ", "%20") + ".tumblr.com/post"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);