<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Dev411 Blog: Notable social bookmarking/networking for Typo</title>
    <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>John Wang on Technology</description>
    <item>
      <title>Notable social bookmarking/networking for Typo</title>
      <description>&lt;p&gt;Benjamin Gorlick asked for  &lt;a href="http://www.calevans.com/view.php/page/notable"&gt;WP-Notable&lt;/a&gt;-style social bookmarking/networking links on the &lt;span class="fix"&gt;#typo&lt;/span&gt; IRC channel so I put one together in the form of a single view (template file). WP-Notable, by Cal Evans, displays a row of icons with links to social bookmarking/networking sites under your blog article allowing for easy posting tovarious social bookmarking sites.&lt;/p&gt;

&lt;p&gt;All the icons used here are from the WP-Notable plugin and look like the following:&lt;/p&gt;

&lt;div style="text-align:center"&gt;&lt;img src="http://www.dev411.com/images/notable/notable.icon_bar.png" alt="notable icon bar"/&gt;&lt;/div&gt;

&lt;p&gt;Without further ado, here are the 4 steps (optional 5th step) to get this on your Typo blog:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Copy the &lt;span class="fix"&gt;&lt;a href="http://www.dev411.com/typo/notable/_article_notable_v4.1.1.rhtml"&gt;_article_notable_v4.1.1.rhtml&lt;/a&gt;&lt;/span&gt; or &lt;span class="fix"&gt;&lt;a href="http://www.dev411.com/typo/notable/_article_notable_v4.0.0.rhtml"&gt;_article_notable_v4.0.0.rhtml&lt;/a&gt;&lt;/span&gt; partial include file to your Typo install's &lt;span class="fix"&gt;app/views/articles/&lt;/span&gt; directory and rename it &lt;span class="fix"&gt;_article_notable.rhtml&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;I've put the code for this all in a single template file to keep the modification in a single place since I have a growing number of mods. There is an array of information for each site. Right now it will create this array each time it is included which may be several times on the homepage. This could be put into the config file or a helper so it gets instantiated only once but I left it in the template since it means updating fewer files and the HTML pages are cached so I don't think it's a big deal. It's also possible to create a notable_link method to generate each link instead of having it created in the template.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Install the icons by extracting the png files from &lt;a href="http://www.dev411.com/typo/notable/typo_notable.tgz"&gt;typo_notable.tgz&lt;/a&gt; into your &lt;span class="fix"&gt;/images/notable&lt;/span&gt; directory. This directory is ferenced in the &lt;span class="fix"&gt;_article_notable.rhtml&lt;/span&gt; file so edit that file if you wish to change the icon locations. The tarball also includes the rhtml file just for completeness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Add the following to &lt;span class="fix"&gt;index.rhtml&lt;/span&gt; file under the &lt;span class="fix"&gt;"Read more..."&lt;/span&gt; article_link line.  This file is either in &lt;span class="fix"&gt;app/views/articles/&lt;/span&gt; or your theme directory.&lt;/p&gt;

&lt;pre&gt;&amp;lt;%= render :partial=&gt;"article_notable",:locals=&gt;{:article=&gt;article} %&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Edit the &lt;span class="fix"&gt;read.rhtml&lt;/span&gt; file and add the following line under the where the article body is rendered. In Typo 4.1.1, place this line under the &lt;span class="fix"&gt;&amp;lt;%= html(@article) %&amp;gt;&lt;/span&gt; line and in Typo 4.0.0, place this line under the &lt;span class="fix"&gt;&amp;lt;%= @article.full_html %&amp;gt;&lt;/span&gt; line. The &lt;span class="fix"&gt;read.rhtml&lt;/span&gt; file is either in &lt;span class="fix"&gt;app/views/articles/&lt;/span&gt; or your theme directory.&lt;/p&gt;

&lt;pre&gt;&amp;lt;%= render :partial=&gt;"article_notable",:locals=&gt;{:article=&gt;@article} %&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; If you want to style the notable icons, there are some CSS classes used &lt;span class="fix"&gt;typo_notable_line&lt;/span&gt;,&lt;span class="fix"&gt;typo_notable&lt;/span&gt; and &lt;span class="fix"&gt;typo_notable_icon&lt;/span&gt;. These are easy to spot in the &lt;span class="fix"&gt;_article_notable.rhtml&lt;/span&gt; file.&lt;/p&gt;

&lt;p&gt;So far I've only tested del.icio.us and digg and the links work since that's where I have accounts. Please let me know if any of the links don't work (or work) for you. Enjoy!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Thanks to Benjamin Gorlick for comments to these instructions.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Sep 2006 12:20:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:99950a82-9949-47c6-84ff-65e929f19659</guid>
      <author>John Wang</author>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo</link>
      <category>typo</category>
      <category>hacks</category>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by Val</title>
      <description>&lt;p&gt;Take a look at &lt;a href="http://www.entopica.com/" rel="nofollow"&gt;http://www.entopica.com/&lt;/a&gt;, a new social bookmarking website. It is an online system that allows you to easily access, categorize, share and store your bookmarks online. Entopica offers a free registration and it is both quick and easy. Register now and discover a whole new world of social bookmarking&lt;/p&gt;</description>
      <pubDate>Mon, 19 May 2008 19:02:14 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:7cf1a7bc-fa8d-43ec-a0e8-ea613ef55272</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-245</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by John Wang</title>
      <description>&lt;p&gt;This was originally written for Typo 4.0.0 and a number of things changed with 4.1. The article has been updated and tested with 4.1.1. Let me know if you have any other issues.&lt;/p&gt;</description>
      <pubDate>Fri, 27 Apr 2007 16:23:31 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f9e7a926-35d8-4512-b2b8-91c60a11df85</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-172</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by e9reen</title>
      <description>&lt;p&gt;This thing doesnt work in latest typo 4.1 version. there is no &amp;lt;%= @article.full_html %&amp;gt; line in the read.rhtml file and placing the recommended code in that file breaks the pages altogether, no articles show zippp.&lt;/p&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:16:18 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d2fd9c06-9a50-40d1-8828-d6c08d2a180d</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-168</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by ccboy109@gmail.com</title>
      <description>&lt;p&gt;If I change themes&#65292;I have to redo there five steps.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Feb 2007 08:14:47 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3cfb97cf-66a2-4bb1-8303-46c2ffe16c6b</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-162</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by Mike Mondragon</title>
      <description>&lt;p&gt;I whipped up an article on how to get &lt;a href="http://mondragon.cc/blog/articles/2006/10/25/wp-notable-in-a-typo-4-0-theme" rel="nofollow"&gt;WP-Notable bookmarks&lt;/a&gt; into the &lt;a href="http://quotedprintable.com/pages/scribbish" rel="nofollow"&gt;Scribbish&lt;/a&gt; theme and its derived from your article.  Still needs some work.  Thanks for posting this up.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Oct 2006 02:25:53 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d6c55eff-18d4-4c16-95bc-5ba7c59af108</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-145</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by John Wang</title>
      <description>&lt;p&gt;Thanks for catching that. I created a tarball and an extra step on installing the images.&lt;/p&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:41:10 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d6744200-fd9d-40f9-a711-5ee0f049a860</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-114</link>
    </item>
    <item>
      <title>"Notable social bookmarking/networking for Typo" by Benjamin Rails Blog</title>
      <description>&lt;p&gt;You&amp;#8217;re missing the step about downloading the images into /images/notables/&lt;/p&gt;</description>
      <pubDate>Sun, 03 Sep 2006 20:35:41 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:3ea0c7b8-d898-4b6f-bf03-4290df3a383b</guid>
      <link>http://www.dev411.com/blog/2006/09/02/notable-social-bookmarking-networking-for-typo#comment-113</link>
    </item>
  </channel>
</rss>
