|
Install
IntroductionWelcome to In-Link, a widget that helps you display a “Related Posts” area beneath your individual posts, with a very easy to use yet customizable format. Tumblr is a great platform, but it doesn’t have (yet) the functionality to display related items on your page, something very useful for the usability of your Tumblr-Blog. Recently I had discovered a widget which was doing more or less this process, but I wanted to have something more, so I already customized that project for my usage. But I’ve expanded its functionalities and releasing it for your usage. It is still be considered in beta test, so please report any issues you may find. The project is also hosted on Google Code where more technical information are available. New version 2.0 releasedFollowing the availability of the new version 2.0 of the Tumblr API I’ve recoded the In-Link widget, including a couple of new interesting features:
DetailsIn order to install this widget, you need to be able to access the HTML of your theme. If you don’t have enough HTML knowledge, or you don’t want to mess up your theme, please don’t go any further. Otherwise here are the instructions. Access your Theme, and find the following lines of code. These can go anywhere you want within the {block:Posts} … {/blockPosts} tags. {block:Permalink}
{block:HasTags}
<!— Start In-Link widget —>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script src="http://tumblr-in-link.googlecode.com/svn/trunk/js/tumblr-in-link.1.0.js?num=5&len=60&css=dark&title=Some Related Posts&tags={block:Tags}{Tag},{/block:Tags}" type="text/javascript"></script>
<!— End In-Link widget —>
{/block:HasTags}
{/block:Permalink}Wrapping the widget code into the {block:HasTags} … {/blockHasTags} tags will ensure the widget is displayed only for posts that have tags. Difference installation for Version 2.0. As of the availability of Version 2.0 installation instructions are similar, you only have to change the script URL which is: http://tumblr-in-link.googlecode.com/svn/branches/Version 2.0/js/tumblr-in-link.2.0.js?num=5&len=60&css=dark&title=Some Related Posts&tags={block:Tags}{Tag},{/block:Tags}All the rest of the coding is the same. Please note: if you’ve already the jQuery code used somewhere else in the theme, you may not need to add the reference to that code. But this plugin requires at least jQuery version 1.5.0. OptionsYou can implement many different options by simply using the JavaScript variables appended in the Widget string. How? Simply change the values that are available in this string: http://tumblr-in-link.googlecode.com/svn/trunk/js/tumblr-in-link.1.0.js?num=5&len=60&css=dark&title=Some Related Posts&tags={block:Tags}{Tag},{/block:Tags} Here the various options:
| |