<?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>The Mighty Mo! Design Co. LLC</title>
	<atom:link href="http://www.themightymo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themightymo.com</link>
	<description>Wordpress Design and Development</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:48:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to Add, Remove, and Change the Order Of BuddyPress Component Menu</title>
		<link>http://www.themightymo.com/2012/01/26/how-to-add-remove-and-change-the-order-of-buddypress-component-menu/</link>
		<comments>http://www.themightymo.com/2012/01/26/how-to-add-remove-and-change-the-order-of-buddypress-component-menu/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 06:51:06 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[BuddyPress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1368</guid>
		<description><![CDATA[Today I needed to change three things in a BuddyPress installation: Change the title of &#8220;Groups&#8221; to &#8220;My Conversations&#8221; in the BuddyPress component menu. Remove the &#8220;Forums&#8221; menu item from the BuddyPress component menu. Change the order of the BuddyPress component menu such that the &#8220;Messages&#8221; link is in a different place. To accomplish these [...]]]></description>
			<content:encoded><![CDATA[<p>Today I needed to change three things in a BuddyPress installation:</p>
<ol>
<li>Change the title of &#8220;Groups&#8221; to &#8220;My Conversations&#8221; in the BuddyPress component menu.</li>
<li>Remove the &#8220;Forums&#8221; menu item from the BuddyPress component menu.</li>
<li>Change the order of the BuddyPress component menu such that the &#8220;Messages&#8221; link is in a different place.</li>
</ol>
<p>To accomplish these three things, I added the following to my theme&#8217;s functions.php file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">// Setup the navigation</span>
<span style="color: #666666; font-style: italic;">// Props to http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item for helping me figure this out</span>
<span style="color: #666666; font-style: italic;">// http://themekraft.com/customize-profile-and-group-menus-in-buddypress/</span>
<span style="color: #000000; font-weight: bold;">function</span> my_setup_nav<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$bp</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Change the order of menu items</span>
      <span style="color: #000088;">$bp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bp_nav</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'messages'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'position'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Remove a menu item</span>
      <span style="color: #000088;">$bp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bp_nav</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'conversations'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Change name of menu item</span>
      <span style="color: #000088;">$bp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bp_nav</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'communities'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'My Conversations'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_setup_nav'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_setup_nav'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1000</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Pretty nifty, eh?</p>
<p>By the way, if you want to see all of your options for editing the components menu, just throw the following into functions.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> bp_dump<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$bp</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span><span style="color: #000088;">$bp</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;strong&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">': &lt;/strong&gt;&lt;br /&gt;;'</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">die</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><em>(Thanks <a href="http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item">ThemeKraft</a>!)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/26/how-to-add-remove-and-change-the-order-of-buddypress-component-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add a New Menu Item to the BuddyPress Component Menu</title>
		<link>http://www.themightymo.com/2012/01/25/how-to-add-a-new-menu-item-to-the-buddypress-component-menu/</link>
		<comments>http://www.themightymo.com/2012/01/25/how-to-add-a-new-menu-item-to-the-buddypress-component-menu/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 05:42:59 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1365</guid>
		<description><![CDATA[Today I needed to add a new menu item to the BuddyPress components menu (the menu under the profile with &#8220;Settings&#8221;, &#8220;Groups&#8221;, &#8220;Forums&#8221;, &#8220;Profile&#8221;, etc.). In my example below, the menu item will be called, &#8220;My Conversations&#8221;, and it will link to the &#8220;Groups&#8221; template. &#60;?php // Setup the navigation // Props to http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item for [...]]]></description>
			<content:encoded><![CDATA[<p>Today I needed to add a new menu item to the BuddyPress components menu (the menu under the profile with &#8220;Settings&#8221;, &#8220;Groups&#8221;, &#8220;Forums&#8221;, &#8220;Profile&#8221;, etc.).  </p>
<p>In my example below, the menu item will be called, &#8220;My Conversations&#8221;, and it will link to the &#8220;Groups&#8221; template.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Setup the navigation</span>
<span style="color: #666666; font-style: italic;">// Props to http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item for helping me figure this out</span>
<span style="color: #666666; font-style: italic;">// and http://themekraft.com/customize-profile-and-group-menus-in-buddypress/</span>
<span style="color: #000000; font-weight: bold;">function</span> my_setup_nav<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$bp</span><span style="color: #339933;">;</span>
&nbsp;
      bp_core_new_nav_item<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> 
            <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'My Conversations'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'buddypress'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
            <span style="color: #0000ff;">'slug'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'my-all-conversations'</span><span style="color: #339933;">,</span> 
            <span style="color: #0000ff;">'position'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">75</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">'screen_function'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'my_all_conversations_link'</span><span style="color: #339933;">,</span>
	    <span style="color: #0000ff;">'show_for_displayed_user'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	    <span style="color: #0000ff;">'default_subnav_slug'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'my-all-conversations'</span><span style="color: #339933;">,</span>
	    <span style="color: #0000ff;">'item_css_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'my-all-conversations'</span>
      <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_setup_nav'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_setup_nav'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1000</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_all_conversations_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'My Conversations'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_all_conversations_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;div id=&quot;groups-dir-list&quot; class=&quot;groups dir-list&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> locate_template<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'groups/groups-loop.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;&lt;!-- #groups-dir-list --&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_all_conversations_link <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_template_title'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_all_conversations_title'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_template_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_all_conversations_content'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	bp_core_load_template<span style="color: #009900;">&#40;</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_core_template_plugin'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'members/single/plugins'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>That&#8217;s it!  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/25/how-to-add-a-new-menu-item-to-the-buddypress-component-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Import PodPress Audio URLs</title>
		<link>http://www.themightymo.com/2012/01/18/how-to-import-podpress-audio-urls/</link>
		<comments>http://www.themightymo.com/2012/01/18/how-to-import-podpress-audio-urls/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 05:38:47 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1357</guid>
		<description><![CDATA[I ran into a real bugger of a problem tonight when attempting to import a WordPress site using the Importer plugin. The problem arose, because the importer does not get all of the data out of the &#8220;wp_postmeta&#8221; table. In fact, it misses or messes up the audio urls that PodPress uses. The solution I [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a real bugger of a problem tonight when attempting to import a WordPress site using the <a href="http://wordpress.org/extend/plugins/wordpress-importer/">Importer plugin</a>.  The problem arose, because the importer does not get all of the data out of the &#8220;wp_postmeta&#8221; table.  In fact, it misses or messes up the audio urls that PodPress uses.</p>
<p>The solution I found was the following:</p>
<ol>
<li>MAKE A BACKUP OF BOTH YOUR OLD SITE&#8217;S AND NEW SITE&#8217;S DATABASES!!!  (Following the steps below can seriously and permanently mess up your site.  Call a WordPress pro if this message scares you.  Seriously.)</li>
<li>Go into the old site&#8217;s phpMyAdmin and export the &#8220;wp_postmeta&#8221; and &#8220;wp_posts&#8221; tables.</li>
<li>Go into the new site&#8217;s phpMyAdmin and import the &#8220;wp_postmeta&#8221; and &#8220;wp_posts&#8221; tables that you just saved in step 1 above.  (Note: If your target installation uses the same &#8220;wp_&#8221; prefix, then you will need to change the title of the tables before importing them.)</li>
<li>In the new site&#8217;s phpMyAdmin, run the following query:
<p>REPLACE<br />
   INTO wp_posts<br />
SELECT *<br />
   FROM wp_ww_posts<br />
      ;</p>
</li>
<p>That did it for me.  How about you?</p>
<p>(Thanks, <a href="http://stackoverflow.com/questions/725556/how-can-i-merge-two-mysql-tables">FCW</a> and <a href="http://wordpress.org/support/topic/plugin-podpress-moving-host-want-to-keep-podpress-stats#post-2437079">NTM</a>!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/18/how-to-import-podpress-audio-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add a Special Class to Every BuddyPress Page</title>
		<link>http://www.themightymo.com/2012/01/17/how-to-add-a-special-class-to-every-buddypress-page/</link>
		<comments>http://www.themightymo.com/2012/01/17/how-to-add-a-special-class-to-every-buddypress-page/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:43:21 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1352</guid>
		<description><![CDATA[Sometimes I need to style everything that BuddyPress creates differently than regular WordPress stuff. For example, I might need to style all groups, forums, profile pages, etc. a certain way and have different styling for blogs and WordPress multi-site home pages. My solution is to tap into the body_class() function and add a special class [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need to style everything that BuddyPress creates differently than regular WordPress stuff.  For example, I might need to style all groups, forums, profile pages, etc. a certain way and have different styling for blogs and WordPress multi-site home pages.</p>
<p>My solution is to tap into the body_class() function and add a special class called, &#8220;buddypress&#8221; to all BuddyPress pages.  Just add the following to your theme&#8217;s functions.php file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Add &quot;buddypress&quot; to body_class function if we are on a BuddyPress-generated page</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'body_class'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'add_buddypress_body_classes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> add_buddypress_body_classes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$classes</span><span style="color: #339933;">,</span> <span style="color: #000088;">$class</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>bp_is_blog_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// add 'my-class' to the $classes array</span>
	<span style="color: #000088;">$classes</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'buddypress'</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// return the $classes array</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$classes</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Or if you need to target specific BuddyPress components, you can do it this way:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Add &quot;buddypress&quot; to body_class function if we are on a BuddyPress-generated page</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'body_class'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'add_buddypress_body_classes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> add_buddypress_body_classes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$classes</span><span style="color: #339933;">,</span> <span style="color: #000088;">$class</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> 
	bp_is_profile_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_activity_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_blogs_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_messages_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_friends_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_groups_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
	bp_is_settings_component<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
&nbsp;
	<span style="color: #666666; font-style: italic;">// add 'my-class' to the $classes array</span>
	<span style="color: #000088;">$classes</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'buddypress'</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// return the $classes array</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$classes</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Hooray!</p>
<p><em>(Thanks to <a href="http://buddydev.com/forums/topic/conditional-tag-for-bp-generated-pages">this thread</a> for making me aware of the bp_is_blog_page function.)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/17/how-to-add-a-special-class-to-every-buddypress-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Force WordPress Multi-Site to Use Subdirectories Instead of Subdomains</title>
		<link>http://www.themightymo.com/2012/01/12/how-to-force-wordpress-multi-site-to-use-subdirectories-instead-of-subdomains/</link>
		<comments>http://www.themightymo.com/2012/01/12/how-to-force-wordpress-multi-site-to-use-subdirectories-instead-of-subdomains/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 03:51:20 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1346</guid>
		<description><![CDATA[I was trying to run WordPress multi-site from a subdomain today and ran into an issue where WordPress wants to force me to use subdomains for my url structure.  So, my sites would look like &#8220;site1.subdomain.maindomain.com&#8221; rather than my preference of &#8220;subdomain.maindomain.com/site1&#8243;. To fix this, I implimented the fix found here. Specifically, in wp-config.php I [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to run WordPress multi-site from a subdomain today and ran into an issue where WordPress wants to force me to use subdomains for my url structure.  So, my sites would look like &#8220;site1.subdomain.maindomain.com&#8221; rather than my preference of &#8220;subdomain.maindomain.com/site1&#8243;.</p>
<p>To fix this, I implimented the fix found <a href="http://journalxtra.com/websiteadvice/wordpress/how-to-force-multi-site-to-use-subdirectories-2427">here</a>.</p>
<p>Specifically, in wp-config.php I needed to change</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'SUBDOMAIN_INSTALL'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'SUBDOMAIN_INSTALL'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>and replace my .htaccess file&#8217;s content with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># BEGIN WordPress
</span><span style="color: #339933;">&lt;</span>IfModule mod_rewrite<span style="color: #339933;">.</span>c<span style="color: #339933;">&gt;</span>
RewriteEngine On
RewriteBase <span style="color: #339933;">/</span>
RewriteRule ^index\<span style="color: #339933;">.</span>php$ <span style="color: #339933;">-</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># uploaded files
</span>RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>_0<span style="color: #339933;">-</span>9a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+/</span><span style="color: #009900;">&#41;</span>?files<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span> wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>ms<span style="color: #339933;">-</span>files<span style="color: #339933;">.</span>php?<span style="color: #990000;">file</span><span style="color: #339933;">=</span>$<span style="color:#800080;">2</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># add a trailing slash to /wp-admin
</span>RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>_0<span style="color: #339933;">-</span>9a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+/</span><span style="color: #009900;">&#41;</span>?wp<span style="color: #339933;">-</span>admin$ $1wp<span style="color: #339933;">-</span>admin<span style="color: #339933;">/</span> <span style="color: #009900;">&#91;</span>R<span style="color: #339933;">=</span><span style="color: #cc66cc;">301</span><span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span>
&nbsp;
RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span> <span style="color: #339933;">-</span>f <span style="color: #009900;">&#91;</span>OR<span style="color: #009900;">&#93;</span>
RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span> <span style="color: #339933;">-</span>d
RewriteRule ^ <span style="color: #339933;">-</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
RewriteRule  ^<span style="color: #009900;">&#91;</span>_0<span style="color: #339933;">-</span>9a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+/</span><span style="color: #009900;">&#40;</span>wp<span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>content<span style="color: #339933;">|</span>admin<span style="color: #339933;">|</span>includes<span style="color: #009900;">&#41;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span> $<span style="color:#800080;">1</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
RewriteRule  ^<span style="color: #009900;">&#91;</span>_0<span style="color: #339933;">-</span>9a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span>\<span style="color: #339933;">.</span>php<span style="color: #009900;">&#41;</span>$ $<span style="color:#800080;">1</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
RewriteRule <span style="color: #339933;">.</span> index<span style="color: #339933;">.</span>php <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span>
<span style="color: #339933;">&lt;/</span>IfModule<span style="color: #339933;">&gt;</span>
<span style="color: #666666; font-style: italic;"># END WordPress</span></pre></div></div>

<p>Pretty nifty!</p>
<p>p.s. You might need to update your permalinks after making the changes above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/12/how-to-force-wordpress-multi-site-to-use-subdirectories-instead-of-subdomains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Set Up Wildcard Domains on Hostgator for WordPress Multi-Site</title>
		<link>http://www.themightymo.com/2012/01/09/how-to-set-up-wildcard-domains-on-hostgator-for-wordpress-multi-site/</link>
		<comments>http://www.themightymo.com/2012/01/09/how-to-set-up-wildcard-domains-on-hostgator-for-wordpress-multi-site/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 16:08:30 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1338</guid>
		<description><![CDATA[I ran into an issue on Hostgator today whereby I could not get my sub-domains working in a fresh WordPress multi-site installation. mydomain.com was working fine, but subsite.mydomain.com was displaying the default Hostgator page. The issue was that my wildcard sub-domain was pointing to the &#8220;/public_html&#8221; document root. When I changed that to &#8220;/public_html/mydomain.com&#8221; everything [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue on Hostgator today whereby I could not get my sub-domains working in a fresh WordPress multi-site installation.</p>
<p>mydomain.com was working fine, but subsite.mydomain.com was displaying the default Hostgator page.</p>
<p>The issue was that my wildcard sub-domain was pointing to the &#8220;/public_html&#8221; document root. When I changed that to &#8220;/public_html/mydomain.com&#8221; everything worked fine.</p>
<div id="attachment_1340" class="wp-caption alignnone" style="width: 310px"><a href="http://www.themightymo.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-09-at-10.00.30-AM.jpg"><img class="size-medium wp-image-1340" title="How to make wildcard domains work with WordPress multi-site on Hostgator" src="http://www.themightymo.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-09-at-10.00.30-AM-300x216.jpg" alt="How to make wildcard domains work with WordPress multi-site on Hostgator" width="300" height="216" /></a><p class="wp-caption-text">(click image to enlarge) How to make wildcard domains work with WordPress multi-site on Hostgator</p></div>
<p>I hope this post saves someone in this world from a headache! <img src='http://www.themightymo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.blakeimeson.com/enable-wordpress-multisite-with-subdomains-hostgator/#comment-85">Thanks, Shawn</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2012/01/09/how-to-set-up-wildcard-domains-on-hostgator-for-wordpress-multi-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Zip a Folder Using Terminal or Command Line</title>
		<link>http://www.themightymo.com/2011/12/15/how-to-zip-a-folder-using-terminal-or-command-line/</link>
		<comments>http://www.themightymo.com/2011/12/15/how-to-zip-a-folder-using-terminal-or-command-line/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 04:04:30 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1317</guid>
		<description><![CDATA[I have been having fun with the command line the last couple of days.  Being a command line noob, I am starting to see why all my geeky friends love working in it.  I used to play around with BASIC back in the day, and the command line has a certain nostalgia about it in addition to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been <a href="http://www.themightymo.com/2011/12/13/how-to-update-php-ini-via-terminal-command-line/">having fun with the command line</a> the last couple of days.  Being a command line noob, I am starting to see why all my geeky friends love working in it.  I used to play around with <a href="http://en.wikipedia.org/wiki/BASIC">BASIC</a> back in the day, and the command line has a certain nostalgia about it in addition to being powerfully efficient in many ways.  On to the fun&#8230;</p>
<p>I have a rather large BuddyPress + WordPress Multi-site installation that BackupBuddy has been choking on.  All of my uploads total around 600MB, which is more than my server can zip up in one sitting.</p>
<p>So, I decided to try out the command line&#8217;s zip functionality, and it worked swimmingly!  Below are the steps I took to zip up my blogs.dir directory (the folder that has all my uploads in it).</p>
<p>Step 1: SSH into your website root via Terminal (on Mac) or your command line tool of choice.</p>
<p>Step 2: Navigate to the parent folder of the folder that you want to zip up using the &#8220;cd&#8221; command.</p>
<p>Step 3: Use the following command:   <em>zip -r mynewfilename.zip foldertozip/   </em>or<em>   <a href="http://snipplr.com/view/7144/">tar -pvczf BackUpDirectory.tar.gz /path/to/directory</a> </em> for gzip compression<br />
In my case, I typed <em>zip -r blogs.dir.zip blogs.dir/ </em></p>
<p>That&#8217;s it!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2011/12/15/how-to-zip-a-folder-using-terminal-or-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Update php.ini Via Terminal (Command Line)</title>
		<link>http://www.themightymo.com/2011/12/13/how-to-update-php-ini-via-terminal-command-line/</link>
		<comments>http://www.themightymo.com/2011/12/13/how-to-update-php-ini-via-terminal-command-line/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 17:06:31 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1315</guid>
		<description><![CDATA[Today I needed to increase the file upload limit in a WordPress multi-site + BuddyPress installation.  The limit was set by php.ini on the server, so there was no way to increase the limit within WordPress. The solution is a bit complex if you are a command line noob like me, and it does require [...]]]></description>
			<content:encoded><![CDATA[<p>Today I needed to increase the file upload limit in a WordPress multi-site + BuddyPress installation.  The limit was set by php.ini on the server, so there was no way to increase the limit within WordPress.</p>
<p>The solution is a bit complex if you are a command line noob like me, and it does require a basic understanding of command line stuff as well as root access to your server.  That said, with some guidance from someone like <a href="http://dpedesign.com/">Dave</a>, you can be rolling on the command line in no time!</p>
<p>Step 1: SSH into your website root via Terminal (on Mac) or your command line tool of choice.</p>
<p>Step 2: Find your php.ini file by typing something like this - <em>grep -i php.ini</em></p>
<p>Step 3: Make sure you are in the same directory as your php.ini file and then edit your php.ini file by typing <em>nano php.ini</em></p>
<p>Step 4: Edit the <em>upload_max_filesize</em>, <em>post_max_size</em>, and <em>memory_limit</em> properties in your php.ini file</p>
<p>Step 5: Save php.ini by exiting Nano</p>
<p>Step 6: Restart Apache by typing the following into Terminal: <em> /etc/init.d/httpd restart</em></p>
<p>&nbsp;</p>
<p>That&#8217;s it!</p>
<p>Many thanks to <a href="http://dpedesign.com/">Dave</a> for his help!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2011/12/13/how-to-update-php-ini-via-terminal-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inc Magazine Article Quoteths Me!</title>
		<link>http://www.themightymo.com/2011/12/13/inc-magazine-article-quoteths-me/</link>
		<comments>http://www.themightymo.com/2011/12/13/inc-magazine-article-quoteths-me/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 09:29:34 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1311</guid>
		<description><![CDATA[I actually don&#8217;t know if &#8220;quoteth&#8221; is a word.  If it isn&#8217;t, it should be. I have been co-working at CoCo for almost 2 years now, and the experience has been amazing.  I was working there the other day when I bumped into Inc Magazine&#8217;s, Christina DesMarais, who interviewed me for a nice, little article [...]]]></description>
			<content:encoded><![CDATA[<p>I actually don&#8217;t know if &#8220;quoteth&#8221; is a word.  If it isn&#8217;t, it should be.</p>
<p>I have been co-working at <a href="http://www.cocomsp.com">CoCo</a> for almost 2 years now, and the experience has been amazing.  I was working there the other day when I bumped into Inc Magazine&#8217;s, <a href="http://twitter.com/#!/salubriousdish">Christina DesMarais</a>, who interviewed me for a <a href="http://www.inc.com/christina-desmarais/6-reasons-to-build-your-startup-in-coworking-space.html">nice, little article about co-working</a>.</p>
<p>Check out <a href="http://www.inc.com/christina-desmarais/6-reasons-to-build-your-startup-in-coworking-space.html">the article</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2011/12/13/inc-magazine-article-quoteths-me/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Force Users to Login to View BuddyPress Content</title>
		<link>http://www.themightymo.com/2011/12/08/force-users-to-login-to-view-buddypress-content/</link>
		<comments>http://www.themightymo.com/2011/12/08/force-users-to-login-to-view-buddypress-content/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 05:10:02 +0000</pubDate>
		<dc:creator>toby</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.themightymo.com/?p=1304</guid>
		<description><![CDATA[I have a BuddyPress-based website that I needed to require logins for. There are a number of plugins that force people to login to view content, but I couldn&#8217;t find one that forces people to login to see BuddyPress content while leaving all other content public. So, I built this &#8220;BuddyPress Force Login&#8221; plugin. It [...]]]></description>
			<content:encoded><![CDATA[<p>I have a BuddyPress-based website that I needed to require logins for.  There are a number of plugins that force people to login to view content, but I couldn&#8217;t find one that forces people to login to see BuddyPress content while leaving all other content public.</p>
<p>So, I built this &#8220;BuddyPress Force Login&#8221; plugin.  It requires people to login in order to view all the BuddyPress stuff &#8211; forums, groups, profiles, etc.</p>
<p>I would like to submit it to the WordPress repository, so please provide some suggestions for improvement.</p>
<p><a href='http://www.themightymo.com/wp-content/uploads/2011/12/buddypress-force-login.zip'>DOWNLOAD</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themightymo.com/2011/12/08/force-users-to-login-to-view-buddypress-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 3.888 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-03 00:26:46 -->
<!-- Compression = gzip -->
