<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: WPMU: Premium Blogs</title>
	<atom:link href="http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/feed" rel="self" type="application/rss+xml" />
	<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html</link>
	<description>Dylan Reeve, on the internet!</description>
	<lastBuildDate>Thu, 11 Mar 2010 01:01:52 +1300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mostly Harmless &#187; Limiting disk space usage in Wordpress MU</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-57</link>
		<dc:creator>Mostly Harmless &#187; Limiting disk space usage in Wordpress MU</dc:creator>
		<pubDate>Sun, 27 May 2007 14:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-57</guid>
		<description>[...] looks like Dylan is also working on a Premium blogs plugin which despite being in the early stages looks really promising. I can personally envisage [...]</description>
		<content:encoded><![CDATA[<p>[...] looks like Dylan is also working on a Premium blogs plugin which despite being in the early stages looks really promising. I can personally envisage [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-10</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 21 Mar 2007 01:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-10</guid>
		<description>The following is DrMike&#039;s words, not mine, just edited to make the premium selection work with this plugin.

- Open up wp-admin/upgrade-schema.php for editing.
- Go down until you hit the function populate_options.
- See all those add_option lines? What we need to do is add in our own with a default. For example, we&#039;ll add in the following line:
add_option(&#039;premium_blog&#039;, 0);

This way when a new blog is created, it will already have the flag set in there to be negative.

But what to do with blogs already created? We&#039;re going to have to fake an upgrade.

- Open up wp-includes/version.php for editing.
- See that line that lists the current database version number? Add &#039;1&#039; to it. For example if it&#039;s currently 3845, edit it to show as 3846. Be sure to save the file afterwards. (The software checks against the version numbers. If they match, it assumes it&#039;s already been done.)
- Open up wp-admin/upgrade-functions.php for editing and go about a third of the way down. You should see a bit like the following:

if ( $wp_current_db_version  Site Admin -&gt; Blogs -&gt; Find their blog and edit it. Using thte example above, your should now have a field with &#039;Premium Blog&#039; in front of it. Change it to 1 and save.

End Dr Mike and insert me.

When you have this selected, and certain plugins designated as &quot;Premium&quot; under the Premium Menu option, all the plugins will show. The ones that are designated as Premium will not show for those who are not designated as premium.

Now, I want to do this with themes as well. Unfortunately, I am not a coder--I just experimented with DrMike&#039;s advice. (If I knew how to put together the entire plugin I would).

If someone could point me in the right direction, or explain how I could do the same thing for themes--I would appreciate the help. If I could do that, I think I would accomplish everything I need with this plugin.</description>
		<content:encoded><![CDATA[<p>The following is DrMike&#8217;s words, not mine, just edited to make the premium selection work with this plugin.</p>
<p>- Open up wp-admin/upgrade-schema.php for editing.<br />
- Go down until you hit the function populate_options.<br />
- See all those add_option lines? What we need to do is add in our own with a default. For example, we&#8217;ll add in the following line:<br />
add_option(&#8217;premium_blog&#8217;, 0);</p>
<p>This way when a new blog is created, it will already have the flag set in there to be negative.</p>
<p>But what to do with blogs already created? We&#8217;re going to have to fake an upgrade.</p>
<p>- Open up wp-includes/version.php for editing.<br />
- See that line that lists the current database version number? Add &#8216;1&#8242; to it. For example if it&#8217;s currently 3845, edit it to show as 3846. Be sure to save the file afterwards. (The software checks against the version numbers. If they match, it assumes it&#8217;s already been done.)<br />
- Open up wp-admin/upgrade-functions.php for editing and go about a third of the way down. You should see a bit like the following:</p>
<p>if ( $wp_current_db_version  Site Admin -&gt; Blogs -&gt; Find their blog and edit it. Using thte example above, your should now have a field with &#8216;Premium Blog&#8217; in front of it. Change it to 1 and save.</p>
<p>End Dr Mike and insert me.</p>
<p>When you have this selected, and certain plugins designated as &#8220;Premium&#8221; under the Premium Menu option, all the plugins will show. The ones that are designated as Premium will not show for those who are not designated as premium.</p>
<p>Now, I want to do this with themes as well. Unfortunately, I am not a coder&#8211;I just experimented with DrMike&#8217;s advice. (If I knew how to put together the entire plugin I would).</p>
<p>If someone could point me in the right direction, or explain how I could do the same thing for themes&#8211;I would appreciate the help. If I could do that, I think I would accomplish everything I need with this plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-9</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 21 Mar 2007 01:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-9</guid>
		<description>I got a fix for the inability to choose a Premium Blog.  But, of course, I do not know how to do the theme thing or anything like that.  If you need to know what I did, I am posting it on the mu-forum with a link to your download + my code, because I do not know how to properly code a plugin.</description>
		<content:encoded><![CDATA[<p>I got a fix for the inability to choose a Premium Blog.  But, of course, I do not know how to do the theme thing or anything like that.  If you need to know what I did, I am posting it on the mu-forum with a link to your download + my code, because I do not know how to properly code a plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-8</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 19 Mar 2007 22:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-8</guid>
		<description>So far--it seems nice/functional.  I can&#039;t find where to make a blog a premium blog though.  It does work on the plugins.  

Keep working on it--it is a great idea and a great start.  If you get it working where you can actually specify premium blogs please let me know!

Thanks!</description>
		<content:encoded><![CDATA[<p>So far&#8211;it seems nice/functional.  I can&#8217;t find where to make a blog a premium blog though.  It does work on the plugins.  </p>
<p>Keep working on it&#8211;it is a great idea and a great start.  If you get it working where you can actually specify premium blogs please let me know!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tito</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-6</link>
		<dc:creator>Tito</dc:creator>
		<pubDate>Sat, 10 Mar 2007 00:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-6</guid>
		<description>Hi,
this is a nice idea...
But, I&#039;ve this message :

Misc Blog Actions

Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, &#039;premium_blog::configure&#039; was given in /My/Complete/Path/wp-includes/plugin.php on line 123

And I can&#039;t specify a &quot;Premium Blog&quot;.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
this is a nice idea&#8230;<br />
But, I&#8217;ve this message :</p>
<p>Misc Blog Actions</p>
<p>Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, &#8216;premium_blog::configure&#8217; was given in /My/Complete/Path/wp-includes/plugin.php on line 123</p>
<p>And I can&#8217;t specify a &#8220;Premium Blog&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mod</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-5</link>
		<dc:creator>mod</dc:creator>
		<pubDate>Fri, 09 Mar 2007 11:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-5</guid>
		<description>Sounds like a great idea. I&#039;m trying this out now.</description>
		<content:encoded><![CDATA[<p>Sounds like a great idea. I&#8217;m trying this out now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress MU Plugin &#187; Premium Blog Plugin &#187; Blog Archive</title>
		<link>http://dylanreeve.com/code/wpmu/2007/wpmu-premium-blogs.html/comment-page-1#comment-2</link>
		<dc:creator>Wordpress MU Plugin &#187; Premium Blog Plugin &#187; Blog Archive</dc:creator>
		<pubDate>Wed, 07 Feb 2007 12:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://dylan.wibble.net/code/wpmu/2007/wpmu-premium-blogs.html#comment-2</guid>
		<description>[...] 7th, 2007   Dylan created a premium blog plugin for wordpress mu. This plugin is allow the management of a premium blog option that will control [...]</description>
		<content:encoded><![CDATA[<p>[...] 7th, 2007   Dylan created a premium blog plugin for wordpress mu. This plugin is allow the management of a premium blog option that will control [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
