<?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/"
	>

<channel>
	<title>The Newsroom &#187; WPMU Hacks</title>
	<atom:link href="http://wpmupremium.com/news/category/wpmu-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpmupremium.com/news</link>
	<description>WordPress News &#38; Resources</description>
	<pubDate>Tue, 30 Jun 2009 11:02:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ozh&#8217;s Theme Toolkit - MU Compatible?</title>
		<link>http://wpmupremium.com/news/2008/12/20/ozhs-theme-toolkit-mu-compatible/</link>
		<comments>http://wpmupremium.com/news/2008/12/20/ozhs-theme-toolkit-mu-compatible/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 11:31:49 +0000</pubDate>
		<dc:creator>WPMUP TEAM</dc:creator>
		
		<category><![CDATA[WPMU Hacks]]></category>

		<guid isPermaLink="false">http://wpmupremium.com/news/?p=62</guid>
		<description><![CDATA[Having once been known to cause major problems with Wordpress MU, Ozh’s WPs Theme Development Toolkit, which allows designers to easily add theme options into the back end seems to be working relatively well with Wordpress MU, which is why we have added it under this category.]]></description>
			<content:encoded><![CDATA[<p>Having once been known to cause major problems with Wordpress MU, <a href="http://planetozh.com/blog/my-projects/wordpress-theme-toolkit-admin-menu/" target="_blank">Ozh&#8217;s Wordpress Theme Development Toolkit</a>, which allows designers to easily add theme options into the back end seems to be working relatively well with Wordpress MU these days, which is why we have added it under this category.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpmupremium.com/news/2008/12/20/ozhs-theme-toolkit-mu-compatible/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Detailed WPMU Site Stats</title>
		<link>http://wpmupremium.com/news/2008/12/20/detailed-wpmu-site-stats/</link>
		<comments>http://wpmupremium.com/news/2008/12/20/detailed-wpmu-site-stats/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 11:24:13 +0000</pubDate>
		<dc:creator>WPMUP TEAM</dc:creator>
		
		<category><![CDATA[WPMU Hacks]]></category>

		<guid isPermaLink="false">http://wpmupremium.com/news/?p=58</guid>
		<description><![CDATA[In this updated hack, and should you be brave enough to edit the functions.php file, you will not only be able to provide the total number of blogs and users, but will also be able to display the five most recently added blogs with a description of each blog and a link to it...]]></description>
			<content:encoded><![CDATA[<p>If you are brave enough to add the following code to your functions.php file:</p>
<div class="box-code">function get_last_five_updated( $display = false ) {<br />
global $wpdb;<br />
return $wpdb-&gt;get_results( &quot;SELECT blog_id, domain, path FROM $wpdb-&gt;blogs WHERE site_id = &#39;$wpdb-&gt;siteid&#39; AND public = &#39;1&#39; AND archived = &#39;0&#39; AND mature = &#39;0&#39; AND spam = &#39;0&#39; AND deleted = &#39;0&#39; AND last_updated != &#39;0000-00-00 00:00:00&#39; ORDER BY last_updated DESC limit 0,5&quot;, ARRAY_A );<br />
}</div>
<p>&#8230;(changing the number 5 in the limit as required), you will be able to use the following code within your Wordpress MU theme:</p>
<div class="box-code">&lt;?php<br />
$blogs = get_last_five_updated();<br />
if( is_array( $blogs ) ) {<br />
?&gt;<br />
&lt;?php $stats = get_sitestats(); echo &quot;This site presently have &quot;.$stats[ &#39;blogs&#39; ].&quot; different kinds of blogs within it&#39;s network shared amongst &quot;.$stats[ &#39;users&#39; ].&quot; unique users.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Our five most recent members include:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&quot;; ?&gt;<br />
&lt;ul&gt;<br />
&lt;?php foreach( $blogs as $details ) {<br />
?&gt;&lt;li&gt;&lt;a href=&quot;http://&lt;?php echo $details[ &#39;domain&#39; ] . $details[ &#39;path&#39; ] ?&gt;&quot;&gt;&lt;?php echo get_blog_option( $details[ &#39;blog_id&#39; ], &#39;blogname&#39; ) ?&gt;&lt;/a&gt;&lt;br /&gt;&lt;?php echo get_blog_option( $details[ &#39;blog_id&#39; ], &#39;blogdescription&#39; ) ?&gt;&lt;br /&gt;&lt;/li&gt;&lt;?php<br />
}<br />
?&gt;<br />
&lt;/ul&gt;<br />
&lt;?php<br />
}<br />
?&gt;</div>
<p>This will not only provide a total number of blogs and users, but will also display the five most recently added blogs with a description of that blog and a link to it, as seen on <a href="http://djkaspa.moodols.tv" target="_blank">Moodols.tv</a> and clicking on the Recent Members tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpmupremium.com/news/2008/12/20/detailed-wpmu-site-stats/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WPMU Site-Stats</title>
		<link>http://wpmupremium.com/news/2008/12/14/wpmu-site-stats/</link>
		<comments>http://wpmupremium.com/news/2008/12/14/wpmu-site-stats/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 07:48:36 +0000</pubDate>
		<dc:creator>WPMUP TEAM</dc:creator>
		
		<category><![CDATA[WPMU Hacks]]></category>

		<guid isPermaLink="false">http://wpmupremium.com/news/?p=21</guid>
		<description><![CDATA[Although this is strictly speaking a built-in function of Wordpress MU, it sometimes get forgotten, when all it takes is a few lines of code to produce some interesting results, such as how many blogs and users you have...]]></description>
			<content:encoded><![CDATA[<p>Although this is strictly speaking a <a href="http://codex.wordpress.org/WPMU_Functions/get_sitestats">built-in</a> function of Wordpress MU, it sometimes get forgotten, when all it takes is:</p>
<div class="box-code">&lt;?php<br />
&lt;h2 class=&#8221;storytitle&#8221;&gt;Site Stats&lt;/h2&gt;&#8221;;<br />
echo &#8220;There are currently &#8220;.$stats[ 'blogs' ].&#8221; blogs running on this server and &#8220;.$stats[ 'users' ].&#8221; users.&lt;br /&gt;&#8221;;<br />
?&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://wpmupremium.com/news/2008/12/14/wpmu-site-stats/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
