FAQ Database Discussion Community


How can I use Tumblr elements with Javascript?

javascript,jquery,tumblr
How can I use Tumblr elements such as {Permalink} with Javascript? Specifically to add a link to certain elements. My javascript: <script type="text/javascript"> $('.takemethere').each(function() { var link = $(this).html(); $(this).contents().wrap('<a href="{Permalink}"></a>'); }); </script> The HTML: {block:Photo} <div class="takemethere"><img src="{PhotoURL-500}" width="50px" height="50px" alt="{PhotoAlt}"/></div> {block:caption}{Caption}{/block:Caption} {/Block:Photo} The {Permalink} element...

Enable the default image viewer on Tumblr [closed]

javascript,lightbox,tumblr
How would you go about disabling a default function which enlarges an image? I am creating a Theme for my Tumblr blog and I want to make it so that when a user clicks on the image they are redirected to the link of the actual post rather than seeing...

Make links to external tumblr blogs not clickable from the notes section of a tumblr post

tumblr
Ive recently setup a tumblr blog for a company account. On tumblr when someone reposts or comments on a post they get shown up in the comments section, which in tumblr is called notes. For an example see this post here : http://minimalist.co/post/49073058900/robert-downey-jr-by-greg-williams#notes - See the links to other tumblrs...

Remove Disqus comment box from main Tumblr page, but keep comment boxes for each post's page?

html,blogs,tumblr,disqus
I haven't found a solution to my problem on StackOverflow or Google, so I figured I'd ask. I added Disqus to my custom theme Tumblr blog, but I want to change where the Disqus comment box/system appears. In particular, I do not want it to show up on the main...

tumblr api get post by id

codeigniter,api,tumblr
I am using php tumblr api where user logins and create post stories from my site. Posting works perfectly and returns variable [response] => stdClass Object([id] => XXXXXX [status] => 201 [msg] => Created) I wanted to show the user the post he just created How can I fetch this...

Stop Tumblr from adding JS and CSS files to theme

tumblr
Tumblr is just flooding the blogs with loads of JS and CSS files. I don't know if these files are required or just useful. Here's a list of them The JS: - tumblelog.js & pre_tumblelog.js -> looks like this is Tumblr JS API, but do we need it? - cedexis.radar.js...

Hosting a Tumblr blog on Amazon Web Services as subdomain

amazon-web-services,amazon-s3,tumblr,amazon-route53
How do I use a custom (sub)domain (or secondary page) on AWS to 'host' a Tumblr blog? I'm using Amazon S3, CloudFront, and Route 53 to host a static website. The static news/blog section I've made lives under http://wavefrontbiometric.com/news.html. So far, so good. Now I've set up a blog/news page...

Get size of an unknown image and change class

javascript,html,css,image,tumblr
On my Tumblr Theme I want to use a different CSS class for portrait images. Images, by default, come in via img-tag and get's the class bilder. But if it's an portrait image, I would like to replace the builder class with the hhcoch class. HTML: <img src="{..}" /> JavaScript:...

Tumblr captions overflow container [on hold]

css,themes,tumblr
So, I found a new theme for my tumblr blog, and it had a few issues, which I mostly managed to sort out, but now I'm facing a big one. The captions, i.e. the comments and images below the content itself, are overflowing over the container that is set. Here's...

Tumblr API: Is there a way to get the number of likes a Tumblr post receives?

php,tumblr
I am writing an application that has to get the number of likes for a Tumblr post in PHP. I am using the Tumblr PHP library and have successfully authenticated and all that. I use Client::getBlogPosts() to get a list of the posts. It returns what is essentially a PHP...

Pulling posts from tumblr with ruby

ruby,json,hash,tumblr,open-uri
I am trying to figure out how to pull posts from a specific Tumblr account with ruby. My end goal would be to have a hash with the post number => text. I am only looking for the text and each post number. I tried the following (for demo.tumblr.com): require...

Get tumblr photo post content via API but arrange it differently for photoset posts

javascript,jquery,ajax,loops,tumblr
I have some code which currently loops through posts on a blog and outputs them as inside a list item as an image with link and caption text if it exists. This works fine, but when I run the code and there are photoset posts each image and caption gets...

Enabling HTTPS support on Tumblr blogs

http,ssl,https,tumblr,insecure-connection
I am trying to work out if there is a way to link to a Tumblr blog over HTTPS/SSL. When I link to my blog with HTTPS I can't access it, but it works under HTTP. I came across this post on TechCrunch from Feb 2014, which suggests that there...

Removing responsive elemets

css,tumblr
Website: http://jimouk.tumblr.com I'm attempting to remove a few responsive elements from a Tumblr theme I downloaded. I've created a few rollover effects and when the site goes below 1024px it messes them up. I also don't like how it looks, and Tumblr has its own mobile theme. This is what...

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

python,oauth,tumblr
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...

iOS Tumblr Integration using oauth

ios,oauth,uiwebview,tumblr
Trying to understand how this all works. New to oauth and api integrations. Not looking for a better way. Looking to understand and expand on what this is doing. I followed this tutorial and have it working through part 3. I kind of understand, but having a hard time connecting...

Prevent removal of DOM elements on the Tumblr dashboard

javascript,google-chrome-extension,tumblr
NOTE: This is a follow-up question to my previous one. I decided to keep the posts displayed on the dashboard by my extension inside the #posts element. Now my problem is that Tumblr automatically removes posts' content while scrolling. Here is an example of a normal post before the removal:...

Tumblr Feed using AngularJS and OAuth.io

angularjs,oauth,tumblr,oauth.io
I created an AngularJS app that displays my Tumblr dashboard. The issue I have is that there is not any data being returned in the browser. However, if I refresh the page and immediately navigate to a different tab before the page completes loading, the data will be there when...

Tumblr html code for photoset won't fit the pictures?

html,tumblr
i've been scavenging the internet for about 3 hours now trying to fix my tumblr theme's coding for photosets. My problem is, is that the themes original coding for the photoset doesn't allow the photos to fit in the borders of the post. I've tried changing the px to the...

The placement of tumblr permalink notes in the code

tumblr,tumblr-themes
So, basically what I want is to have my permalink notes to appear with my tumblr posts on every permalink page. I've heard somewhere that in order to make them appear, you have to add them to each post individually, instead of just placing them once before {/block:Posts}: e.g {block:Photo}...

How to get first image from a tumlbr rss feed in PHP

php,xml,xpath,rss,tumblr
0Here is the relevant part of my rss feed: <channel> <description></description> <title>Untitled</title> <generator>Tumblr (3.0; @xxx)</generator> <link>http://xxx.tumblr.com/</link> <item> <title>Title</title> <description>&lt;figure&gt;&lt;img src="https://31.media.tumblr.com/c78c7t3abd23423549d3bb0f705/tumblr_inline_nkp9z234d0uj.jpg"/&gt;&lt;/figure&gt;</description>...

Display Tumblr post content differently using tags

tumblr
I don't know if what I want it's possible or not, but what I'm looking for is a way of displaying content differently, using tags. If I have a post with a tag #movies, I would want to display an image of a camera. If the tag is #music, I...

Chrome extension: Could not load javascript file

google-chrome-extension,manifest,tumblr
I have posted another question regarding my Chrome extension here. But I have one more question about extensions themselves. I only need a content script for the modification of the Tumblr-Dashboard, no background page or something else, right? Here is the manifest.json file: { "name": "Tumblr - Tiled Dashboard", "version":...

List of posts on Tumblr page based on tag [closed]

javascript,api,tumblr,tumblr-themes
I'm an absolute Tumblr novice and am trying to create a list of posts based on a tag. To clarify I'm NOT trying to simply create a "Tag Page" as I see there are MILLIONS of posts about. I'm trying to create a custom page within Tumblr that has my...

How does Tumblr implement their global navigation?

javascript,security,iframe,xss,tumblr
Every blog on Tumblr has these two buttons at the top right corner of the page: This global navigation is inside an iframe which points to tumblr.com. How does Tumblr implement this feature securely? Tumblr themes can contain untrusted scripts and tumblogs can run on a custom domain (i.e not...

Change blog description using Tumblr API

tumblr,tumblr-themes
Is there a possible way to change my Tumblr Blog's description using the Tumblr API? I know I can get the description but can I change it? I want to set up a 'description queue' so it will change my description daily.