tumblr

Simple XML variable returns "0"

Ok, so im working with tumblr's API and im using SimpleXMLElement with php and ive run into a problem. Basically, when I call on a variable it just prints a zero. for instance : <?php echo $data->posts->post[0]->photo-url[5]; ?> This just breaks the page, and when I leave out the [5] it just prints zero I want to echo the photo-url...

How to make WordPress "Add/Edit Post" form more Tumblr like?

Hi, WordPress requires you give each blog post at least two fields: a title and text body content. I'm wondering how to modify WordPress admin so I can sometimes enter a single field for a blog post, in particular a URL, without WordPress requiring a title (related but not the point of this question: a custom theme would then know how ...

Display two independent Tumblr blogs on one page?

I'd like to display two independent Tumblr blogs next to each other on one page. I'd like them to look identical to their Tumblr theme. What's the best way to do this? I'm able to use JavaScript to import the content like this: <div id="tumblr1"> <script type="text/javascript" src="http://tumblr1.tumblr.com/js"&gt;&lt;/script&gt; <di...

Making a video autoplay in Tumblr's built-in video uploader

I'm developing a blog in Tumblr and can't figure out how to make a native Tumblr video (not a 3rd party embed like YouTube or Vimeo) automatically play when the page is loaded. If you have experience with the Tumblr video player, please let me know. ...

Uploading multiple images through Tumblr API

I have about 300 images I want to upload to my new Tumblr account, becuase my old wordpress site got hacked and I no longer wish to use wordpress. I uploaded one image a day for 300 days, and I'd like to be able to take these images and upload them to my tumblr site using the api. The images are currently local, stored in /images/. T...

Tumblr - Custom Domain Help.

I own the domain name, iamgabeaudick.com. It was my personal website, but I now want to use it as my tumblr domain. I've changed the DNS, and tumblr confirms that the domain is set up correctly. But when I access iamgabeaudick.com, a blank "Index of /" page appears. Any ideas why this is? Do I need to configure the ftp files in some wa...

Getting a specific number of JSON items with jQuery from tumblr feed

Hello all. I'm trying to populate a page with X entries from my tumblr feed, and I'm wondering how I can only pull that X number from the JSON object it returns. Here's my code, pulled from another Stack Overflow post and modified: //Tumblr retrieval $.getJSON("http://tumblr-address/api/read/json?callback=?", function(data) { $...

400 error when submitting tumblr post (ruby on rails)

I am having a bit of an issue with getting tumblr working within a rails app. This is the snippet of code which results in a 400 error (meaning that there was an incorrect parameter) @postcontent = @post.content.gsub(/<\/?[^>]*>/, "") post = Tumblr::Post.create(:email => 'valid@email', :password => 'mypassword', :type => 'video', :em...

Tumblr - Custom Domain Help, Part #2.

My Tumblr is now linked to my domain, iamgabeaudick.com. But each time I create a new post, iamgabeaudick.com goes blank for a few hours. Eventually, all works fine again. Is there a way to avoid the downtime and have the domains work seamlessly, though? ...

Image uploading from Python or cURL to Tumblr?

I'm working on a project that involves uploading an image to tumblr from Python. I've had luck using Tumblr's API( http://www.tumblr.com/docs/en/api ) in doing regular text-posts, but image uploads have been giving me trouble. The error messages their server returns have been limited to just telling me that there was an "Error Uploadin...

Anyone know what tumblr is written in

Does anyone know what tumblr is written in? I have been trying to figure it out. ...

Does the Tumblr write API require encoding on the 'body' of a post?

Hi guys, I'm trying to implement the Tumblr API into an app. I've hacked together their OAuth implementation but I'm having an issue with their write API. When I send a post body with no spaces in, it posts correctly. But if there is a space, I receieve an 'Invalid Oauth parameters'. Below is a rough example - I hope someone can help!...

Content as NextPage pagination link in Tumblr

I'm creating a single post per page tumblr template with the body content as the link to the next page - you can see a quick test working here: There are 4 entries but the 4th doesn't render, probably because there is no 'NextPage'. Any idea how I might get around that to render the last page? or if it is has to be blank how to render a...

Dumping a list of URLs from Twitter to Tumblr

This question has less to do with actual code, and more to do with the underlying methods. My 'boss' at my pseudointernship has requested that I write him a script that will scrape a list of links from a users' tweet (the list comes 'round once per week, and it's always the same user) and then publish said list to the company's Tumblr a...

Tumblr Vimeo Video Hack

i want to post videos from vimeo.com on tumblr.com with a width more than 500px. it exist a code for videos from youtube.com that works. (http://pastie.org/871790) <!-- Widescreen YouTube Embeds by Matthew Buchanan & Hayden Hunter http://matthewbuchanan.name/451892574 http://blog.haydenhunter.me Hacked around by Simon Starr to b...

How do I automatically post my Tumblr posts..

How do I automatically post or publish my Tumblr posts to my Facebook page? I don't mean the News Feed one, but a Facebook page. ...

How does one make a template system (like Tumblr's) in Rails?

I've looked at Liquid and the like, but I cannot find a way to make a "one file" template that can handle all situations. I don't want to reinvent the wheel, but I will if I cannot find an existing solution. The template system looks like this: {block:Text} <li class="post text"> {block:Title} <h3><a href="{Perm...

IE7 Duplicating text in tumblr blog posts

Alright, I thought I had seen every bug out there for IE7, but I've never seen this. This is my first Tumblr blog, so I have limited experience with that. I hope someone can help! In IE7 the main text for a post is duplicated just underneath of the original text. So basically each line of text appears twice. I have no idea what's happen...

Tumblr Integration: What is best practice for caching data from API?

Hello! I have a websites that has a blog section, which pulls the data using the Tumblr API. My client just updates her Tumblr blog and the website would just access the Tumblr API to populate the blog page on the website. Also, any blog items tagged as news will show up on the home page. I could be wrong, but I am sure there are limi...

Detect Current Page

Is there a code snippet that can detect the current user's page and then add <a class="active"> to an item in a ul (my menu). I am making a tumblr theme and they do not allow PHP (I usually add <?php if ( $current == "home" ) { echo "class='active'" } ?> in my menu and $current = "home" on my pages) and they do not have a standard (such ...