<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Hive &#124; Front End Development, WordPress and Drupal Developer&#187; CMS</title>
	<atom:link href="http://tech-hive.com/topic/reviews/cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech-hive.com</link>
	<description>Mae Paulino &#124; Web Designer and Front End Developer</description>
	<lastBuildDate>Mon, 01 Aug 2011 05:29:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>On creating themes and going out of your comfort zone</title>
		<link>http://tech-hive.com/reviews/cms/on-creating-themes-and-going-out-of-your-comfort-zone-20091002/</link>
		<comments>http://tech-hive.com/reviews/cms/on-creating-themes-and-going-out-of-your-comfort-zone-20091002/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 04:55:42 +0000</pubDate>
		<dc:creator>Mae</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[cms themes]]></category>
		<category><![CDATA[lifestream]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[sample codes]]></category>
		<category><![CDATA[sweetcron]]></category>

		<guid isPermaLink="false">http://tech-hive.com/?p=63</guid>
		<description><![CDATA[I have always been a WordPress girl, but you have to admit that there are instances where you just have to use something that specializes in that area. I&#8217;ve recently overhauled Last Leaf and turned it into a lifestream. I have stopped blogging there since the start of the year and have always thought of turning it into just that but I haven&#8217;t because creating themes for another CMS seemed intimidating. At first, I thought of writing my own lifestream, it should have been my way of learning more about RoR but until now, all I have in my folder is the basic install (which I have forgotten how I was able to produce) so I turned to the next best thing: Sweetcron. It&#8217;s been months since I have looked at Sweetcron, I remember that I found it so unfriendly to customize to one&#8217;s needs before. Turns out, all I &#8230; <a href="http://tech-hive.com/reviews/cms/on-creating-themes-and-going-out-of-your-comfort-zone-20091002/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have always been a WordPress girl, but you have to admit that there are instances where you just have to use something that specializes in <em>that</em> area. </p>
<p>I&#8217;ve recently overhauled <a href="http://lastleaf.org/items/view/180/new-last-leaf">Last Leaf</a> and turned it into a lifestream. I have stopped blogging there since the start of the year and have always thought of turning it into just that but I haven&#8217;t because creating themes for another CMS seemed intimidating.</p>
<p>At first, I thought of writing my own lifestream, it should have been my way of learning more about RoR but until now, all I have in my folder is the basic install (which I have forgotten how I was able to produce) so I turned to the next best thing: <a href="http://sweetcron.com">Sweetcron</a>. It&#8217;s been months since I have looked at Sweetcron, I remember that I found it so unfriendly to customize to one&#8217;s needs before. Turns out, all I really needed was to read a <a href="http://net.tutsplus.com/misc/building-a-custom-lifestream-website-with-sweetcron/" title="Nettuts: Building a Custom Lifestream Website with Sweetcron">good documentation</a>, a lot of focus and plenty of time to test things out. It&#8217;s a pleasant exercise, and it&#8217;s something I know I&#8217;ll do again.</p>
<p>And so, with the intro done and over with, I suggest that you try and do something you haven&#8217;t tried before once in a while, if you&#8217;re not yet ready to commit full-time to something really big (RoR for me) then do some little things (like theme customizations, I think I want to try Drupal next) and so, here are the notes I made myself remember while writing Last Leaf&#8217;s theme:</p>
<ul>
<li>
<h2>Base your first theme on one of the default ones</h2>
<p>Most of the time, you already have almost everything you need in the default theme, the developers won&#8217;t include that otherwise, I think. Trying to edit the defaults also make the learning curve more enjoyable because you know you won&#8217;t just break something because it acts as your guide in the process.</p>
<p>My first WordPress theme was something based on <a href="http://www.wordpresstheme.com/themes/theme-wordpress-classic/">WordPress Classic</a>, I have little to no knowledge in CSS that time and that&#8217;s the best thing I could come up with. It helped me get familiar with the CMS&#8217; templating system (man, I sound so pretentious) as well as taught me what this CSS shenanigan is. With Sweetcron, I used the Boxy Theme. As soon as you were able to stop the nauseous feeling whenever you see a PHP snippet, you&#8217;d realize that it&#8217;s pretty straightforward. </p>
<p><img src="http://tech-hive.com/wp-content/uploads/2009/09/Picture-3.png" alt="Social Media" title="Social Media" width="160" height="110" class="alignright size-full wp-image-66" /> I had a great time styling the individual boxes, it got a little confusing after a while though, what with all those accounts, so I made a separate file for each one of them like what you can see on the image, it made _activity_feeds.php less cluttered and made isolating the problem easier.
	</li>
<li>
<h2>Experiment</h2>
<p>I wanted to get just the image within the post because I&#8217;m not planning on directing people into the single page of every items and all I really want to show sometimes are the <a href="http://lastleaf.org/items/site/google.com">interior decors</a> I love. At first I used this: <code>&lt;?php echo $item-&gt;item_data[$item-&gt;get_feed_class()]['image']['m']?&gt;</code> which is something you need to call the images you uploaded in Flickr but won&#8217;t work anywhere else. Thankfully, somewhere in the _activity_feeds.php file is <code>&lt;?php echo $item-&gt;get_image()?&gt;</code> and that&#8217;s what I used for my Tumblr and Google Reader posts.</p>
<p>However, I don&#8217;t post images there all the time so I need a way to retrieve the text if the image doesn&#8217;t exist and so, there goes the only thing I&#8217;m good at, if-else statement:</p>
<pre>
<code>&lt;?php if ($item->get_image() == ''):?&gt;
     &lt;?php //display your text here ?&gt;
&lt;?php else: ?&gt;
     &lt;?php //and this is for your photo ?&gt;
&lt;?php endif; ?&gt;</code>
</pre>
</li>
<li>
<h2>Search and then ask</h2>
<p>I would&#8217;ve probably given up on Sweetcron the second time have I not found that <a href="http://net.tutsplus.com/misc/building-a-custom-lifestream-website-with-sweetcron/" title="Nettuts: Building a Custom Lifestream Website with Sweetcron">Nettuts tutorial</a>, all you really need to do is keep your cool if you can&#8217;t find a solution to your problem. And if you can&#8217;t find the solution through searching, go to the usergroup/website of the CMS.
</li>
</ul>
<p>Sweetcron is still new and AFAIK, there&#8217;s only one <a href="http://yongfook.com" title="Yongfook, developer of Sweetcron">developer</a> so it&#8217;s understandable if there&#8217;s no documentation on the site like: is there a way to retrieve the tags I added in my starred items in Google Reader? How do I truncate the title? (&lt;?php echo word_limiter($item-&gt;get_title(), 20) ?&gt; doesn&#8217;t work :() Is it possible that I could host the images in my own server instead of relying on other sites? However, the <a href="http://groups.google.com/group/sweetcron" title="Sweetcron Google Group">community</a> behind it is very, very friendly and you&#8217;re sure to find answers you&#8217;re looking for there, unless you&#8217;re too shy to ask for it. :P</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-hive.com/reviews/cms/on-creating-themes-and-going-out-of-your-comfort-zone-20091002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

