Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tumblr Plugin
#1
This plugin provides a simple way to place a tumblr http://www.tumblr.com/ stream in your GetSimple CMS.

Consider it a quick way to include micro-blog capability.

This version ONLY will list the one page (number can be adjusted) of the most recent tumblr posts.

http://get-simple.info/extend/plugin/simpletumblr/170/

The backend config is shown in the attached image.

A demo page can be seen at http://testbed.cartocopia.com/tumblr which is carrying the stream from http://cartocopia.tumblr.com/

The plugin comes with a css file that will match the "Default Simple" theme.

-Rob A>
Reply
#2
version 0.2 now in extend, provides pagination support.

-Rob A>
Reply
#3
haha I started this a few months back but never finished, i think i had actually hacked up your comments plugin. I am using my copy at http://www.shoutinginfrench.com
Reply
#4
samrocksc Wrote:haha I started this a few months back but never finished, i think i had actually hacked up your comments plugin. I am using my copy at http://www.shoutinginfrench.com


Glad you find it useful! (I thought no comments here meant no interest Sad )

-Rob A>
Reply
#5
God no, I've been using my hacked up one for a long time, I'm glad someone with actual knowledge did it. I wasn't able to display photos and links on my webpage for the past 4 months. Check it out: http://www.shoutinginfrench.com

You and mvleck are my 2 favorite plug-in authors for GS.

RobA Wrote:
samrocksc Wrote:haha I started this a few months back but never finished, i think i had actually hacked up your comments plugin. I am using my copy at http://www.shoutinginfrench.com


Glad you find it useful! (I thought no comments here meant no interest Sad )

-Rob A>
Reply
#6
I guess my main question, is that did they update the API for tumblr to be more user friendly. For the life of me, I could not figure out how to query all 6 different categories at the same time.
Reply
#7
samrocksc Wrote:I guess my main question, is that did they update the API for tumblr to be more user friendly. For the life of me, I could not figure out how to query all 6 different categories at the same time.

That still sucks, single queries for single types, of specify type "" for all.

In my plugin I dropped the conversation type, but might put it back in if I could get the threading of it working right.

-Rob A>
Reply
#8
right on, I have modified it a little bit on my end to match http://www.loficoffee.com. The CSS is pretty clean, I had some problems pulling 2 different queries on the same page but thats not too big of a problem.
Reply
#9
Cool! Allthough I don't know if I'm going to use it...
Reply
#10
Hi, is it at all possible to move the post date below the post title? Also how would I go around making the post title the link to the post rather than the date?

Thanks!
Reply
#11
macky Wrote:Hi, is it at all possible to move the post date below the post title?
You would have to change the simpletumblr.js code.

Move this section:
Code:
// Create a link to Tumblr post
                    postDate = document.createElement("div");
                    postDate.className = "tumblr_post_date";
                                    
                    postLink = document.createElement("a");
                    postLink.href = post.url;
                    postLink.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
                    postDate.appendChild(postLink);
                    
                    listItem.appendChild(postDate);

                    // Apply list item to list
                    list.appendChild(listItem);

to just after the line:
Code:
text = post["regular-body"] || post["photo-caption"] || post["quote-source"] || post["link-text"] || post["link-url"] || post["video-caption"] || "";

(and before the if statements).

It might also be possible with your CSS - as everything is in nested DIVs...

macky Wrote:Also how would I go around making the post title the link to the post rather than the date?

Thanks!

That's problematic, as not all post even have a title, so in many cases there would be nothing to make the link from. (every tumbler post will have a post date/time, that is why it is normally used as the link)

But you could modify the js file to change this as well.

-Rob A>
Reply
#12
Rob,

What section would I need to modify if I don't want the reader to be redirected at all?

Also, just to clarify, the complete tumbler post shows, not just an excerpt right?

Thanks - you produce some great plugins, bro.

Boz
Reply
#13
Boz Wrote:Rob,

What section would I need to modify if I don't want the reader to be redirected at all?

Also, just to clarify, the complete tumbler post shows, not just an excerpt right?

Thanks - you produce some great plugins, bro.

Boz

Haven't used this is a while, but a quick looks tells me that you need to modify the javascript lines:
Code:
// Create a link to Tumblr post
                    postDate = document.createElement("div");
                    postDate.className = "tumblr_post_date";
                                    
                    postLink = document.createElement("a");
                    postLink.href = post.url;
                    postLink.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
                    postDate.appendChild(postLink);
                    
                    listItem.appendChild(postDate);

This is inserting a link. Instead, you should be able to do something like this (untested):
Code:
// Add the date
                    postDate = document.createElement("div");
                    postDate.className = "tumblr_post_date";

                    postDate.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
                    
                    listItem.appendChild(postDate);

-Rob A>
Reply
#14
Do you think it's possible to display different tumblr blogs in the same site with your plugin?
Reply
#15
lucamusolesi Wrote:Do you think it's possible to display different tumblr blogs in the same site with your plugin?

Not without some modification. Currently, the setting are global. They could be moved to the actual call with a little work, i.e. (% simpletumbler username %)

-Rob A>
Reply
#16
I don't seem to be able to get the plugin to work, and I can't find the image this references "The backend config is shown in the attached image." from the first post.
Reply
#17
I think we lost attachments when we converted the forums.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#18
This is what my back end config looks like (attached). You will have to say more than 'doesn't work' if you are looking for help.

Last time I put a tumblr feed in a non GS site the procedure was totally simple, so you could always try doing it without a plugin


Attached Files Thumbnail(s)
   
Reply
#19
Thanks this what i needed. I'm just getting used to the structure of the CMS and how to add tags/code. Does the tumblr tag (% simpletumblr %) go in the editor box, or in the template? I placed it in the editor but I dont see my feed. It may be how I have tumblr setup. I'll try adding a regular tumblr feed.
Reply




Users browsing this thread: 3 Guest(s)