<?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; k2</title>
	<atom:link href="http://www.theusefulblog.com/tag/k2/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>Sun, 05 Dec 2010 01:06:23 +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>
	</channel>
</rss>

