Is there or will it be available to post iamges to Tumblr?
For example, i'm posting the image-type nodes to by drupal site and i want images to appear on tumblr, instead i get the "Text Post".
Is there any way to create "Photo post" instead of text?
(url on tumblr http://www.tumblr.com/tumblelog/[blogname]/new/photo) instead of http://www.tumblr.com/tumblelog/[blogname]/new/text

Comments

lorinpda’s picture

Hi iex,
You can post images. Perform the following:

  • Log in to your Drupal site as the administrator.
  • Navigate to [Administer][Tumblr Connect Configuration Settings]
  • Verify that Story - Connect this content type to tumblr is checked. Note! We are using the standard Story content type as an example.
  • Click Submit to save any configuration change,
  • Let's create a new storry.
  • Navigate to [Create Content]
  • Click on "Story"
  • Click on "Input Format" and select Full HTML
  • Type in your Story's title text.
  • In the Body field paste <img src="http://public-action.org/sites/default/files/public_action_zen_logo.jpg"/>
  • Click the "Save" button to publish the Story both on your Drupal site and on your Tumblr Page.

.....
The process above publishes a Story with the Public-Action image-logo.
.....
Can you please elaborate and detail what "image-type nodes" means. Have you installed community based modules to extend your base Drupal installation to create a "image-type node"? If so, can you please details which modules you are using to create a "image-type node"?
.....
Hope that helps.
....
Lorin

iex’s picture

"image type" is the content type that "image" module creates when installed.
When i create it, i can attach an image, which is uploaded and then displayed inside the node.

The method you described must be working OK, BUT it is still posted on tumblr as "text post", not "photo post". In tublr it is very important that image is posted as "image", not "text" with image in it, because when tumblr user watches his Dashbord, images are not displayed, they are displayed as kinda "links" that u need to click to see the image itself.

Well, i think i'll try to look into the module to try to find some kinda solution. Thanks for your time )

lorinpda’s picture

Assigned: Unassigned » lorinpda
Status: Active » Postponed

Hi iex,
Again thank you for your detailed response :)
....
You are correct. Our current release maps to a Tumblr "regular post". Tumblr is a great service. When software is successful, folks request changes, additions, etc. When we first started our Drupal project the Tumblr API used the term "regular post".
.....
Internally our module is not "hard-coded" for a Tumblr "regular post" (I.E. now referred to as "text post"). If you review our source code listing tumblr_connection_class.inc (methods addPost() and modifyPost()), you'll see that post type is parameter (I.E. not hard coded). The current release defaults to "regular post". Thus, if someone wants to supply a patch, we will be happy to add.
......
We may add "hooks" to Tumblr Connect. Thus allowing folks to customize and add custom features.
.......
Our original use case involves a standard Drupal content type (title, body, taxonomy terms). If the body contains images, Tumblr Connect publishes the images to your Tumblr page. Per your response, our module works as designed.
......
We will keep your feature request on our agenda. We will post here when support for you enhancement is scheduled (and status).
......
Hope that helps.

iex’s picture

Thanks for your interest, i'll be waiting for your information)

lorinpda’s picture

Status: Postponed » Closed (works as designed)
tomfilepp’s picture

I'm taking a stab at trying to patch this, at least to by default be an image post. Like Iex this is definitely an important feature for me... if I can get it working at least I can share how I did it.

It looks like the way you've got this setup, it would be relatively easy to make this a dynamic choice, or, alternatively, make it so you could set the post type per content type. The admin interface side of modules is not really my forté, but I'll poke around.

In any event, this seems like the sort of thing if there's someone out there with better module chops than I, you could probably patch this and setup a dynamic way to do this in under an hour. I'll try my best.

tomfilepp’s picture

Actually just found, it seems at the point when tumblr_connect sends the post to Tumblr the node hasn't had the image field attached to it yet.

I'm referencing $node->field_image['und'][0]['uri'] which does exist as part of the node object on this content type, so I'm assuming the following message means it has not been added to the node yet.

Notice: Undefined index: uri in TumblrConnection->addPost() (line 264 of /home/site/public_html/sites/all/modules/tumblr_connect/tumblr_connection_class.inc).

I'm not sure if this also caused a malformed communication with Tumblr, because I was also presented with the message "Tumblr may not be available right now, the system will update Tumblr later." when I submitted the node as well.

So, maybe this isn't going to be as easy as I thought. Any ideas?

lorinpda’s picture

Title: Image posting » Support Additional Tumblr Content Types

Hi Tom,
Thank you for your interest and offer to help.
.......
We definitely engineered Tumblr Connect to be "changeable". Thus, as noted above we did not hard-code the Tumblr type. We defaulted to the Tumblr "regular post" (row referred to as a "text post"). Defaulting is different than hard-coding.
.......
One of the main advantages of open-source is folks can customize the software to meet your needs. Thus, that would be great if you can implement support for the Tumblr "image type".
.......
My apologies up front. We have a small development shop. In these economic times, money is tight. We have customers who are paying us for Java and Android development, leaving less than zero time for Drupal. Thus, the following comments are from memory (don't have time to do an analysis right now):
.......
With the caveat above, here are a few logical designs issues you should consider:
-- Handle a Drupal image field with multiple instances (many images). How does that map to Tumblr.
-- In Drupal an Administrator can position the image field instances relative to the rest of the content type fields by creating a custom content type view. Thus you need to export the "custom view" to Tumblr.
.........
Again there may be other issues.
.........
You need to be a programmer in order to make the appropriate changes. A standard programmer's tool is a source code debugger, For php (the language Drupal is written in), we use Xdebug. A source code debugger allows you to determine why the "Notice: Undefined index:" message is displayed. I also highly recommend using a programmer's editor that supports php (highlights' syntax errors), Always develop against a local installation, Never develop on your production installation (live public website).
.......
Finally, you should consider using your Drupal git sandbox to store your code.
........
When I get some time, I'll do a regular analysis.
.....
Hope that helps. Good Luck :)
Lorin

lorinpda’s picture

Issue summary: View changes

message was no finished