<?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>tak79</title>
	<atom:link href="http://tak79.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tak79.com</link>
	<description></description>
	<lastBuildDate>Fri, 24 Jun 2011 06:58:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress custom select query with pagination</title>
		<link>http://tak79.com/wordpress-custom-select-query-with-pagination/</link>
		<comments>http://tak79.com/wordpress-custom-select-query-with-pagination/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 06:47:14 +0000</pubDate>
		<dc:creator>Tak</dc:creator>
				<category><![CDATA[Code & Stuff]]></category>

		<guid isPermaLink="false">http://tak79.com/?p=315</guid>
		<description><![CDATA[I needed to sort votes from the wp database using a custom loop select query and retain the pagination. This is how I got it done.]]></description>
			<content:encoded><![CDATA[<p>As discussed here:<br />
<a href="http://wordpress.org/support/topic/custom-loop-pagination?replies=4#post-950454">http://wordpress.org/support/topic/custom-loop-pagination?replies=4#post-950454</a></p>
<p>This never worked for me <img src='http://tak79.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But using the sort function from a small plugin called <a href="http://wordpress.org/extend/plugins/sort-query-by-post-in/">sort query by post in</a> in my functions.php file allowed me to pull the posts with the most amount of votes (stored in a &#8216;<em>wp_likes_count</em>&#8216; table, in order, and retain pagination. </p>
<p><em>functions.php</em><br />
[php]function sort_query_by_post_in( $sortby, $thequery ) {<br />
	if ( !empty($thequery-&gt;query['post__in']) &amp;&amp; isset($thequery-&gt;query['orderby']) &amp;&amp; $thequery-&gt;query['orderby'] == &#8216;post__in&#8217; )<br />
		$sortby = &quot;find_in_set(ID, &#8216;&quot; . implode( &#8216;,&#8217;, $thequery-&gt;query['post__in'] ) . &quot;&#8217;)&quot;;<br />
	    return $sortby;<br />
}[/php]</p>
<p><em>index.php</em> (or whatever). 10 posts per page.<br />
[php]<br />
&lt;?php global $wpdb;<br />
$my_posts = $wpdb-&gt;get_col(&quot;your custom query goes here, without LIMIT and OFFSET, so the total number of posts that match the query can be counted&quot;);<br />
$paged = (get_query_var(&#8216;paged&#8217;)) ? get_query_var(&#8216;paged&#8217;) : 1;<br />
$args = array(<br />
    &#8216;post__in&#8217; =&gt; $my_posts,<br />
    &#8216;paged&#8217; =&gt; $paged,<br />
    &#8216;posts_per_page&#8217; =&gt; 10,<br />
    &#8216;orderby&#8217; =&gt; &#8216;post__in&#8217;<br />
    );<br />
query_posts($args); ?&gt;</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&lt;&#8211; do your content here &#8211;&gt;<br />
&lt;?php endwhile; ?&gt;[/php]</p>
<p>This may come in handy for someone along the line <img src='http://tak79.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tak79.com/wordpress-custom-select-query-with-pagination/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XenPress 2.1 Download</title>
		<link>http://tak79.com/xenpress-download/</link>
		<comments>http://tak79.com/xenpress-download/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 08:23:05 +0000</pubDate>
		<dc:creator>Tak</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Xenforo]]></category>
		<category><![CDATA[xenpress]]></category>

		<guid isPermaLink="false">http://tak79.com/?p=277</guid>
		<description><![CDATA[The xenforo forums theme for wordpress, XenPress. ]]></description>
			<content:encoded><![CDATA[<p>The design is minimal but the rest is heavyweight. It is recommended you <a rel="nofollow" href="http://www.tutorial9.net/tutorials/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/" target="_blank">run a caching plugin</a> along with this theme. Any questions or help needed, just ask. The theme requires configuration to get it going (xenpress settings) but most is self-explanatory.</p>
<p>Install instructions.<br />
<a rel="nofollow" href="http://tak79.com/xenforo-wordpress-theme/" target="_blank">http://tak79.com/xenforo-wordpress-theme/</a><br />
Setting up the navigation menus<br />
<a rel="nofollow" href="http://tak79.com/the-xenpress-menu/" target="_blank">http://tak79.com/the-xenpress-menu/</a></p>
<p>Download link:</p>
<p><code><a href="[drain file 1 href]">[drain file 1 href] </a> (downloaded [drain file 1 hits] times)</code><br />
<code>uploaded [drain file 1 updated] | Revision [drain file 1 version]</code><br />
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.</p>
<p>Looking forward to hearing your feedback &amp; suggestions <img src='http://tak79.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tak79.com/xenpress-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress image uploading and voting script</title>
		<link>http://tak79.com/wordpress-image-uploading-and-voting-script/</link>
		<comments>http://tak79.com/wordpress-image-uploading-and-voting-script/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 07:40:10 +0000</pubDate>
		<dc:creator>Tak</dc:creator>
				<category><![CDATA[Code & Stuff]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tak79.com/?p=248</guid>
		<description><![CDATA[This is a demo *cough*clone*cough* script of a popular rating site I did a while back, written for wordpress. ]]></description>
			<content:encoded><![CDATA[<p>This is a demo *cough*clone*cough* script of a popular rating site I did a while back, written for wordpress. Recently I&#8217;ve learned a few things that brought this project back to life also.</p>
<p><a href="http://images.tak79.com" target="_blank">images.tak79.com</a></p>
<p>The idea is you upload a single image (or more if needed) and users &#8216;like&#8217; it, leaving a avatar representation of the like in a sidebar. It features a custom user profile, user profile page, custom login and registration pages, the user/member never see the back end admin panel of wordpress, they can upload avatars from their own profile page. It&#8217;s a work in progress.</p>
<p>Users submit images from the frontpage (or virtually any page) by hitting the submit button in the top nav. A drop down slider then appears with a form for the post.</p>

<a href='http://tak79.com/wordpress-image-uploading-and-voting-script/capture1/' title='Capture1'><img width="280" height="219" src="http://tak79.com/wp-content/uploads/2011/06/Capture1-280x219.png" class="attachment-thumbnail" alt="Capture1" title="Capture1" /></a>
<a href='http://tak79.com/wordpress-image-uploading-and-voting-script/capture2/' title='Capture2'><img width="280" height="212" src="http://tak79.com/wp-content/uploads/2011/06/Capture2-280x212.png" class="attachment-thumbnail" alt="Capture2" title="Capture2" /></a>

<p>A custom plugin that takes the votes was developed for me by another guy, this will take the user ID of the person who voted, the ID of the page they voted on, a count of how many votes a user makes etc, so you can bring the usual stats up, what user likes the post, rank the most popular posts, display amount of likes a user has given&#8230; it remains to be seen if I ever give this wordpress theme a release or do something with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://tak79.com/wordpress-image-uploading-and-voting-script/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>The XenPress Menu</title>
		<link>http://tak79.com/the-xenpress-menu/</link>
		<comments>http://tak79.com/the-xenpress-menu/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 10:33:32 +0000</pubDate>
		<dc:creator>Tak</dc:creator>
				<category><![CDATA[xenpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Xenforo]]></category>

		<guid isPermaLink="false">http://tak79.com/?p=143</guid>
		<description><![CDATA[How to create XenPress navigation menus in the Wordpress Appearance → Menus panel. ]]></description>
			<content:encoded><![CDATA[<p>You can now build your menu links from the admin section under &#8220;appearances &gt; Menus&#8221;. I will describe the process for creating them, so far there are six menu positions available along the navigation area.<br />
<a href="http://tak79.com/wp-content/uploads/2011/01/men1.jpg"></a></p>
<div id="attachment_144" class="wp-caption aligncenter" style="width: 730px"><a href="http://tak79.com/wp-content/uploads/2011/01/men1.jpg"><img class="size-medium wp-image-144" title="men1" src="http://tak79.com/wp-content/uploads/2011/01/men1-720x562.jpg" alt="" width="720" height="562" /></a><p class="wp-caption-text">&#39;Menu One DropDown&#39; is just for your reference, and not displayed in the theme..</p></div>
<p>Create the first menu as above by clicking the <code>+</code> at the top of the menu screen, naming it something that will remind you of what it will contain. Next, we will add the main link <em>and</em> the drop down links.</p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men2.jpg"><img class="aligncenter size-medium wp-image-145" title="men2" src="http://tak79.com/wp-content/uploads/2011/01/men2-720x479.jpg" alt="" width="720" height="479" /></a></p>
<p>As the above image create a custom linked called <strong>Forum</strong> with a link to your forum URL. Press add to menu and this will appear on the left, as shown below.</p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men3.jpg"><img class="aligncenter size-medium wp-image-146" title="men3" src="http://tak79.com/wp-content/uploads/2011/01/men3-720x481.jpg" alt="" width="720" height="481" /></a></p>
<p>Create another custom link, this will be the first link in your drop down menu. Here below it was called <strong>New Child</strong> and dragged so it is slightly to the right of the first Forum tab.</p>
<p><code>This is important! Remember to give new child a URL too.</code></p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men4.jpg"><img class="aligncenter size-medium wp-image-147" title="men4" src="http://tak79.com/wp-content/uploads/2011/01/men4-720x430.jpg" alt="" width="720" height="430" /></a></p>
<p>Now select which of the six positions you will use in the header to display the menu. When you have six, you can move the nav order around from here. Make sure you press &#8220;save menu&#8221; on the right hand side of the menu admin (not shown here) as well as the individual save areas.</p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men5.jpg"><img class="aligncenter size-full wp-image-148" title="men5" src="http://tak79.com/wp-content/uploads/2011/01/men5.jpg" alt="" width="535" height="309" /></a></p>
<p>And with a bit of luck&#8230; you have something like this.</p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men6.jpg"><img src="http://tak79.com/wp-content/uploads/2011/01/men6.jpg" alt="" title="men6" width="326" height="361" class="aligncenter size-full wp-image-149" /></a></p>
<p>Creating single links, without the drop down is done by first creating a new menu, and by giving only one custom link, save it and pick where you would like it displayed. You now have one single link in the navigation. Due to me not fully understanding the functions yet, there is no menu highlighting, I would recommend hand coding your menu (easy) and having full control over it. Another disappointment was being unable to echo the menu name to replace the <code>h3</code> text &#8220;navigation&#8221; in the drop down menu. Again, only solved so far by hand crafting the menus and naming it as as you like.</p>
<p><a href="http://tak79.com/wp-content/uploads/2011/01/men7.jpg"><img src="http://tak79.com/wp-content/uploads/2011/01/men7.jpg" alt="" title="men7" width="311" height="255" class="aligncenter size-full wp-image-150" /></a></p>
<p>All up you have a simple way of creating a navigation menu, for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://tak79.com/the-xenpress-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xenforo wordpress theme</title>
		<link>http://tak79.com/xenforo-wordpress-theme/</link>
		<comments>http://tak79.com/xenforo-wordpress-theme/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 06:58:55 +0000</pubDate>
		<dc:creator>Tak</dc:creator>
				<category><![CDATA[xenpress]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Xenforo]]></category>

		<guid isPermaLink="false">http://tak79.com/?p=11</guid>
		<description><![CDATA[How to install &#038; configure the XenPress theme for the first time. ]]></description>
			<content:encoded><![CDATA[<p>This is the release of Xenpress, a new wordpress theme designed to blend in with the default theme of xenforo forum software. Being so new, expect bugs that I&#8217;ve missed or inconsistencies, as I only have so many browsers and operating systems. This is untested on Mac/Safari so feedback would be welcomed. Opera, Chrome &amp; Firefox are good. Internet Explorer has a few buggy moments, mainly because IE is trash and it does my head in constantly &#8220;fixing things&#8221; just for it. The theme has a few hard coded features, ways of doing things etc that I&#8217;ll discuss here. There is a small set-up involved before you can go live with it. <del datetime="2011-06-20T09:59:29+00:00">Xenpress also requires a few additional plug-ins for it to function properly.</del></p>
<h1>Features</h1>
<p>Here&#8217;s a run down of what xenpress has under the hood.</p>
<ul>
<li>Nine areas for widgets. Two under the main articles, two right sidebars and four in the footer area. One on the singe pages right hand column. I&#8217;m sure that is plenty for now. You could always hard code extra loops in these positions too and separate your categories out on the mainpage.</li>
<li>Custom admin options with placement areas for nine adverts in the common places, also add your tracking codes and other various theme options.</li>
<li>Support for translation, although the <code>.po</code> file has not been created yet (working on that bit).</li>
<li><del datetime="2011-06-20T09:59:29+00:00">Individual <code>single.php</code> category based post templates. (The option is there if needed).</del></li>
<li>Pagination for custom templates.</li>
<li>Custom &#8220;no avatar&#8221; selection in wp-admin/discussions options.</li>
<li>Featured thumbnails (via wp-admin media uploader &amp; post editor) and excerpts used in the main page article. The except is then used as the header meta on <code>single.php</code> pages for better SEO.</li>
<li>Cufon font replacement for most header tags.</li>
</ul>
<h1>Recommended plugins:</h1>
<p><a href="http://tak79.com/wp-content/uploads/2010/12/wordpress-logo2.png"><img class="alignleft size-full wp-image-173" title="wordpress-logo2" src="http://tak79.com/wp-content/uploads/2010/12/wordpress-logo2.png" alt="" width="100" height="100" /></a><strong><a href="http://wordpress.org/extend/plugins/wp-postviews/">WP-PostViews</a></strong> &#8211; count the views for posts. (you don&#8217;t <em>have</em> to install this)<br />
<strong><a href="http://wordpress.org/extend/plugins/ajax-the-views/">Ajax_the_views</a></strong> &#8211; refresh wp-postviews count with AJAX, needed if you use a cache plugin.<br />
<del datetime="2011-06-20T09:59:29+00:00"><strong> </strong><strong><a href="http://wordpress.org/extend/plugins/simple-tags/">Simple Tags</a></strong> &#8211; improves on the wordpress tagging system. (you&#8217;ll get errors if not present)</del><br />
<strong><a href="http://wordpress.org/extend/plugins/if-ajax-comments-for-wordpress/">iF AJAX Comments For WordPress</a></strong> &#8211; AJAX instant comments. (smooth comments like xenforo rather then a page refresh)</p>
<p>&nbsp;</p>
<h1>Setting Xenpress up</h1>
<p>Upload the theme to your theme folder in wordpress and activate it.</p>
<ul>
<li>Under <em>Media Settings</em> in wp-admin, set the <strong>Thumbnail size</strong> to 280 width and 0 height. This is for the featured image that is now a built in wordpress function.</li>
<li>Under <em>Media Settings</em> in wp-admin, set the <strong>Medium size</strong> size to 720&#215;0. This will let you post an image the exact width of the article page.</li>
<li>You will need to open header.php and set your links up, for <del datetime="2011-06-20T09:59:29+00:00">dropdown tabs</del> extra nav links etc. You can do this in easily the wordpress theme editor.</li>
<li>Enable gravatars and set your users permissions. (if not using the the xenforo forum user bridge add on.)</li>
<li>Any questions or help needed just hit me up here in the comments or on the xenforo forums. I will reply as fast as I can.</li>
</ul>
<h1>Posting 101</h1>
<p><a href="http://tak79.com/wp-content/uploads/2010/12/Capture.jpg"><img class="alignleft size-full wp-image-171" title="Capture" src="http://tak79.com/wp-content/uploads/2010/12/Capture.jpg" alt="" width="280" height="212" /></a>You&#8217;ll see a box on the right side under the category selection in the wp-admin post editor for featured images. Upload one via the media uploader, it will be resized into the 280px thumbnail width I mentioned you set up earlier. The excerpt will be what is shown on the mainpage, think of it as a brief intro or description of the post, next to the featured image. The single page will contain the main article.</p>
<h1>Templates/Theme Files</h1>
<p>In the theme folder there is another folder called <code>single</code>. This holds the <code>single.php</code> post pages. However, say I want a video page for my category <em>video</em> with a different layout. I will simply create a new PHP file called <code>single-cat-video.php</code> and this will be used as the single post page. Same goes for categories, in the root of the theme folder you could create the file <code>category-video.php</code> and use that as a different styled category page.</p>
<p>&nbsp;</p>
<h1>Setting up the menu</h1>
<p>This turned out to be an article on its own, this is the method of using wp_nav_menu to create menus from the admin panel rather then file edits. &gt; <a href="http://tak79.com/the-xenpress-menu/"><strong>The XenPress Menu</strong></a></p>
<p><strong><br />
</strong></p>
<h1>Other Links</h1>
<p>You will need to open <code>header.php</code> and <code>index.php</code> and code your links etc, example; the three links below the nav menu, the logout links on the right hand of the nav menu and links in the personal member details that is shown on index.php to registered users. <del datetime="2011-06-20T09:59:29+00:00">Hopefully the next release will cover ALL these things and use input instead from the XenPress admin section in wp-admin.</del></p>
<p>Happy XenPressing! Feel free to contact me here, or on the xenforo forums with any questions and suggestions. <code><a href="http://xenforo.com/community/threads/xenforo-wordpress-theme.9163/">http://xenforo.com/community/threads/xenforo-wordpress-theme.9163/</a></code></p>
<p>Cheers!,<br />
- Damien.</p>
]]></content:encoded>
			<wfw:commentRss>http://tak79.com/xenforo-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

