<?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>Useful tips and stuff that matters &#187; template</title>
	<atom:link href="http://www.theusefulblog.com/tag/template/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theusefulblog.com</link>
	<description>Tips and tricks and stuff that matters for computers, internet, and many others.</description>
	<lastBuildDate>Thu, 26 Nov 2009 08:13:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Make WordPress K2 Themes Refresh Faster</title>
		<link>http://www.theusefulblog.com/post/make-wordpress-k2-themes-refresh-faster/</link>
		<comments>http://www.theusefulblog.com/post/make-wordpress-k2-themes-refresh-faster/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 23:08:19 +0000</pubDate>
		<dc:creator>angelchen1111</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[k2]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.theusefulblog.com/2006/12/07/make-wordpress-k2-themes-refresh-faster/</guid>
		<description><![CDATA[The pages with wordpress K2 theme loads fast when you click them, but if you try to refresh the page it will be very slow to load, while other themes don&#8217;t have this problem. To fix this follow this guide taken from K2&#8217;s forum:
find the folder js inside the K2 folder, then for each .js.php [...]]]></description>
			<content:encoded><![CDATA[<p>The pages with wordpress K2 theme loads fast when you click them, but if you try to refresh the page it will be very slow to load, while other themes don&#8217;t have this problem. To fix this follow this guide taken from K2&#8217;s forum:</p>
<p>find the folder <strong>js</strong> inside the <strong>K2</strong> folder, then for each <strong>.js.php</strong> file comment out the <strong>&#8216;require(&#8230;.. wp-blog-header.php)&#8217; </strong>line and replace <strong>&#8216;!get_settings(&#8217;gzipcompression&#8217;)&#8217; </strong>with <strong>&#8216;( ob_get_length() === FALSE)&#8217;</strong>. After that the first few lines should look like this:<br />
<code><br />
//require(dirname(__FILE__)."/../../../../wp-blog-header.php");<br />
// check to see if the user has enabled gzip compression in the WordPress admin panel<br />
if ( (ob_get_length() === FALSE) and !ini_get('zlib.output_compression') and ini_get('output_handler') != 'ob_gzhandler' and ini_get('output_handler') != 'mb_output_handler' ) {<br />
ob_start('ob_gzhandler');<br />
}<br />
</code><br />
Then add the following lines on the top of the files <strong>livesearch.js.php</strong> and <strong>rollingarchives.js.php</strong> after the php tag:<br />
<code><br />
// Echo a translated string.<br />
function _e($text, $domain = 'default') {<br />
global $l10n;</code></p>
<p>if (isset($l10n[$domain]))<br />
echo apply_filters(&#8217;gettext&#8217;, $l10n[$domain]-&gt;translate($text), $text);<br />
else<br />
echo $text;<br />
}</p>
<p>For <strong>livesearch.js.php, <del>comments.js.php</del></strong>:<br />
replace all<br />
<code>bloginfo("template_url")</code><br />
with<br />
<code>echo str_replace($_SERVER['DOCUMENT_ROOT'],'',realpath(dirname(__FILE__) . '/../'))</code><br />
There are two instances of these in <del>comments.js.php</del>, and one in livesearch.js.php.</p>
<p>After all these the pages will refresh very fast.</p>
<p><a href="http://getk2.com/forum/showthread.php?t=1934">Original post in which this guide is taken from&#8230;</a></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://www.theusefulblog.com/post/make-wordpress-k2-themes-refresh-faster/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Today I changed my blog&#8217;s template to TripleK2</title>
		<link>http://www.theusefulblog.com/post/today-i-changed-my-blogs-template-to-triplek2/</link>
		<comments>http://www.theusefulblog.com/post/today-i-changed-my-blogs-template-to-triplek2/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 03:32:23 +0000</pubDate>
		<dc:creator>angelchen1111</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[k2]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.theusefulblog.com/2006/11/16/today-i-changed-my-blogs-template-to-triplek2/</guid>
		<description><![CDATA[Today I changed my blog&#8217;s template to TripleK2, a theme based on K2 but with three columns, with a very nice style TechnoBlue(found in the same website). Now I have one sidebar on the left and one on the right. The theme is similar to 3k2, but I didn&#8217;t use 3k2 since the last time [...]]]></description>
			<content:encoded><![CDATA[<p>Today I changed my blog&#8217;s template to <a href="http://www.johntp.com/2006/09/17/triplek2-a-three-column-k2-mod-for-wordpress/">TripleK2</a>, a theme based on K2 but with three columns, with a very nice style <a href="http://www.johntp.com/2006/09/17/triplek2-a-three-column-k2-mod-for-wordpress/">TechnoBlue</a>(found in the same website). Now I have one sidebar on the left and one on the right. The theme is similar to 3k2, but I didn&#8217;t use 3k2 since the last time it&#8217;s updated is like half years ago, it uses a much older version of K2 which probably has some bugs that cause trouble. I really liked the style TechnoBlue, since it looks very nice and neat, if you&#8217;re looking for a three-column K2 with a nice style it should be your choice.<br />
<img src="http://static.flickr.com/107/299158893_386f8fcbb6.jpg?v=0" alt="" align="middle" /></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://www.theusefulblog.com/post/today-i-changed-my-blogs-template-to-triplek2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to add social bookmarking in wordpress</title>
		<link>http://www.theusefulblog.com/post/how-to-add-social-bookmarking-in-wordpress/</link>
		<comments>http://www.theusefulblog.com/post/how-to-add-social-bookmarking-in-wordpress/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 05:56:15 +0000</pubDate>
		<dc:creator>angelchen1111</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.theusefulblog.com/2006/11/14/how-to-add-social-bookmarking-in-wordpress/</guid>
		<description><![CDATA[In the entry Let Your Blog Be Social nongeek talked about the advantage of social bookmarking and how to add bookmark area in blogger&#8217;s template. You can also do that in wordpress too, using the same way he said in that post, but substitute Blogger&#8217;s template tags with wordpress&#8217;s tags. For example, if you want [...]]]></description>
			<content:encoded><![CDATA[<p>In the entry <a href="http://nongeeksight.blogspot.com/2006/10/let-your-blog-be-social.html">Let Your Blog Be Social</a> nongeek talked about the advantage of social bookmarking and how to add bookmark area in blogger&#8217;s template. You can also do that in wordpress too, using the same way he said in that post, but substitute Blogger&#8217;s template tags with wordpress&#8217;s tags. For example, if you want a &#8220;Submit to del.icio.us&#8221; line you should add</p>
<p><code>Submit to: &lt;a href=&quot;http://del.icio.us/post?url=&lt;?php the_permalink()<br />
?&gt;;title=&lt;?php the_title(); ?&gt;&quot; &gt;del.icio.us&lt;/a&gt;</code></p>
<p>instead of</p>
<p><code>Submit to: &lt;a href=&quot;http://del.icio.us/post?url=&lt;$BlogItemPermalinkURL$&gt;;title=&lt;$BlogItemTitle$&gt;&quot;<br />
&gt;del.icio.us&lt;/a&gt;</code></p>
<p>to your template&#8217;s php file before or after the line <code>&lt;?php the_content('something'); ?&gt;</code> depending on if you want it to appear before or after the posts.</p>
<p>If you want to submit to Digg there&#8217;s a great WordPress plugin called <a href="http://dev.lipidity.com/feature/digg-this-wordpress-plugin-reloaded">Digg This for WordPress Reloaded</a> that lets you to add a very cool &#8220;Digg This button&#8221; like the one I have in the posts, without changing the template&#8217;s codes. It also comes with a Complete admin interface with options for many customizations, like positioning the button, what pages to show the button, the style of the button , and many others.</p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://www.theusefulblog.com/post/how-to-add-social-bookmarking-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to make links to open in a target frame</title>
		<link>http://www.theusefulblog.com/post/how-to-make-links-to-open-in-a-target-frame/</link>
		<comments>http://www.theusefulblog.com/post/how-to-make-links-to-open-in-a-target-frame/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 20:31:00 +0000</pubDate>
		<dc:creator>angelchen1111</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.tipspedia.info/2006/09/14/how-to-make-links-to-open-in-a-target-frame/</guid>
		<description><![CDATA[To make links in a web page to open in a target frame or new window all you need is to add target=&#8221;_blank&#8221; in between the &#60;a href=&#8221;***&#8221;&#62; section of the html code, where *** is the default target frame.
target=&#8221;_blank&#8221; Opens a page in new windowtarget=&#8221;_self&#8221; Opens a page in the same frametarget=&#8221;_top&#8221; Opens a [...]]]></description>
			<content:encoded><![CDATA[<p>To make links in a web page to open in a target frame or new window all you need is to add <strong>target=&#8221;_blank&#8221;</strong> in between the <strong>&lt;a href=&#8221;***&#8221;&gt;</strong> section of the html code, where <strong>***</strong> is the default target frame.</p>
<blockquote><p><strong>target=&#8221;_blank&#8221;</strong> Opens a page in new window<br /><strong>target=&#8221;_self&#8221;</strong> Opens a page in the same frame<br /><strong>target=&#8221;_top&#8221;</strong> Opens a page in the top page breaking all frames<br /><strong>target=&#8221;_parent&#8221;</strong> Opens a page in parent frame</p>
</blockquote>
<p>We can also use <strong>target=&#8221;frame or iframe&#8217;s name&#8221;</strong> to make the link to open in that frame or iframe.</p>
<p>To make links to open in a target frame or new window by default add <strong>&lt;base target=&#8221;***&#8221;&gt;</strong> in between the <strong>&lt;head&gt;</strong> section of the code. This also works for Blogger&#8217;s templates, for Blogger Beta&#8217;s templates since it had to be XML compliant you have to add the closing tag <strong>&lt;/base&gt;</strong> at the end to <strong>&lt;base target=&#8221;***&#8221;&gt; </strong>to make it work.</p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://www.theusefulblog.com/post/how-to-make-links-to-open-in-a-target-frame/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Something about Blogger&#8217;s template format and tips to show html code in posts</title>
		<link>http://www.theusefulblog.com/post/something-about-bloggers-template-format-and-tips/</link>
		<comments>http://www.theusefulblog.com/post/something-about-bloggers-template-format-and-tips/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 21:20:00 +0000</pubDate>
		<dc:creator>angelchen1111</dc:creator>
				<category><![CDATA[blogger]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.tipspedia.info/2006/08/23/something-about-bloggers-template-format-and-tips/</guid>
		<description><![CDATA[Did you know that Blogger.com&#8217;s template is just a special HTML file with some special template tags in between? That means you can customize your blog just like editing a web page.
That gives you the maximum flexibility to customize the blog&#8217;s design. You can add and change anything you want from top to bottom. To [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that <a href="http://www.blogger.com">Blogger.com</a>&#8217;s template is just a special HTML file with some special template tags in between? That means you can customize your blog just like editing a web page.</p>
<p>That gives you the maximum flexibility to customize the blog&#8217;s design. You can add and change anything you want from top to bottom. To learn more about the template tags and what they do please visit <a href="http://help.blogger.com/bin/answer.py?answer=42095">http://help.blogger.com/bin/answer.py?answer=42095</a>.</p>
<p>I found it useful to put &lt;meta name=&#8221;description&#8221; content=&#8221;&lt;$BlogDescription$&gt;&#8221;&gt; into your template&#8217;s &lt;head&gt; section, so that search engines will show your website&#8217;s description in their result instead of some stupid message like &#8220;Notify Blogger about objectionable content. What does this mean? Blogger · Send As SMS · Get your own blog · Flag Blog · Next blog&#8221; if you have <a href="http://help.blogger.com/bin/answer.py?answer=952">NavBar</a> on.</p>
<p>If you want to put HTML codes in your blog to let others copy you can&#8217;t paste them directly in the Edit Posts window, it will give you some error message, here&#8217;s a way to get around it:</p>
<ul>
<li>Copy the codes you want to paste into the post and paste it into a HTML editor (like FrontPage)&#8217;s design section.</li>
</ul>
<ul>
<li>Check the source code of the contents you just pasted, you will notice that the symbols &#8220;&lt;&#8221;, &#8220;&gt;&#8221;, or others became &amp;??; now you can copy those codes with &amp;??; and paste them in the posts, although you still see &amp;??; now, when you published your post the &amp;??; will become the appropriate symbol again when it show in the blog.</li>
</ul>
<p>Note: You can&#8217;t get away with it by putting the unmodified codes inside the text box, Blogger&#8217;s editor still won&#8217;t let you save it even if you do that.</p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://www.theusefulblog.com/post/something-about-bloggers-template-format-and-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
