<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Bay Phillips - Web Developer</title>
	
	<link>http://bayphillips.com</link>
	<description />
	<lastBuildDate>Wed, 31 Aug 2011 00:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BayPhillips-WebDeveloper" /><feedburner:info uri="bayphillips-webdeveloper" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Fried Porkchops, Roasted Broccoli and Sweet Potato Fries</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/rPDP6ZIPJ6c/</link>
		<comments>http://bayphillips.com/2011/08/fried-porkchops-roasted-broccoli-and-sweet-potato-fries/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 00:22:48 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Food]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=260</guid>
		<description><![CDATA[And a Brooklyn Brewery Summer Ale of course]]></description>
			<content:encoded><![CDATA[<p><a href="http://bayphillips.com/wp-content/uploads/2011/08/2011-08-30_19-59-18_299.jpg"><img class="aligncenter size-medium wp-image-261" title="2011-08-30_19-59-18_299" src="http://bayphillips.com/wp-content/uploads/2011/08/2011-08-30_19-59-18_299-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p>And a Brooklyn Brewery Summer Ale of course <img src='http://bayphillips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/08/fried-porkchops-roasted-broccoli-and-sweet-potato-fries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/08/fried-porkchops-roasted-broccoli-and-sweet-potato-fries/</feedburner:origLink></item>
		<item>
		<title>Oh how I missed my childhood</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/R3RWpsOMGGc/</link>
		<comments>http://bayphillips.com/2011/08/oh-how-i-missed-my-childhood/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 21:40:56 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=254</guid>
		<description><![CDATA[I just picked up the Roller Coaster Tycoon 2 Triple Thrills pack at Good Old Games. I used to be really good at this game when I was younger, making some pretty ridiculous coasters. Here&#8217;s one (3 of them) that &#8230; <a href="http://bayphillips.com/2011/08/oh-how-i-missed-my-childhood/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just picked up the <a href="http://www.gog.com/en/gamecard/rollercoaster_tycoon_2">Roller Coaster Tycoon 2 Triple Thrills</a> pack at <a href="http://www.gog.com/">Good Old Games</a>. I used to be really good at this game when I was younger, making some pretty ridiculous coasters. Here&#8217;s one (3 of them) that I was able to make today.</p>
<p><a href="http://bayphillips.com/wp-content/uploads/2011/08/s1.png"><img class="aligncenter size-medium wp-image-255" title="s1" src="http://bayphillips.com/wp-content/uploads/2011/08/s1-300x240.png" alt="" width="300" height="240" /></a></p>
<p><a href="http://bayphillips.com/wp-content/uploads/2011/08/s2.png"><img class="aligncenter size-medium wp-image-256" title="s2" src="http://bayphillips.com/wp-content/uploads/2011/08/s2-300x240.png" alt="" width="300" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/08/oh-how-i-missed-my-childhood/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/08/oh-how-i-missed-my-childhood/</feedburner:origLink></item>
		<item>
		<title>Working on an Android App</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/A9FbIBiKTVI/</link>
		<comments>http://bayphillips.com/2011/06/working-on-an-android-app/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 01:44:54 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cigars]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=245</guid>
		<description><![CDATA[After a day of failing miserably, I have something to show for my first ever attempt at coding an Android Application: Working classes and it imports an XML file of cigar brands, cigars and sizes. So the structure is there &#8230; <a href="http://bayphillips.com/2011/06/working-on-an-android-app/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After a day of failing miserably, I have something to show for my first ever attempt at coding an Android Application:</p>
<p><a href="http://bayphillips.com/wp-content/uploads/2011/06/cigars.png"><img class="size-medium wp-image-246 alignnone" title="cigars!" src="http://bayphillips.com/wp-content/uploads/2011/06/cigars-181x300.png" alt="" width="181" height="300" /></a></p>
<p>Working classes and it imports an XML file of cigar brands, cigars and sizes. So the structure is there for a pretty easy to use cigar log&#8230;</p>
<p>More to come while I&#8217;m bored.</p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/06/working-on-an-android-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/06/working-on-an-android-app/</feedburner:origLink></item>
		<item>
		<title>Zax Portal – Event Reminders Walkthrough (with voice!)</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/Jn0FhQU9-hs/</link>
		<comments>http://bayphillips.com/2011/03/zax-portal-event-reminders-walkthrough-with-voice/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 22:21:03 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Lambda Chi Alpha]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ZAX Portal]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=243</guid>
		<description />
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/v3uSEjPBNLk" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/zax-portal-event-reminders-walkthrough-with-voice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/zax-portal-event-reminders-walkthrough-with-voice/</feedburner:origLink></item>
		<item>
		<title>ZaxPortal – Add Item to Multiple Accounts</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/-iJuy67PCYg/</link>
		<comments>http://bayphillips.com/2011/03/zaxportal-add-item-to-multiple-accounts/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 02:00:14 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Lambda Chi Alpha]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ZAX Portal]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=232</guid>
		<description />
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/j0g180KPA_s" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/zaxportal-add-item-to-multiple-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/zaxportal-add-item-to-multiple-accounts/</feedburner:origLink></item>
		<item>
		<title>ZaxPortal – Account Balances Preview</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/ViOOob1u_NY/</link>
		<comments>http://bayphillips.com/2011/03/zaxportal-account-balances-preview/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 15:03:00 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Lambda Chi Alpha]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ZAX Portal]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=223</guid>
		<description><![CDATA[What do ya think?]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/oFod0__fjEI" frameborder="0" allowfullscreen></iframe></p>
<p>What do ya think?</p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/zaxportal-account-balances-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/zaxportal-account-balances-preview/</feedburner:origLink></item>
		<item>
		<title>Already Used Variable Names in WordPress</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/rF8K7cDhfjA/</link>
		<comments>http://bayphillips.com/2011/03/already-used-variable-names-in-wordpress/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 06:20:34 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=212</guid>
		<description><![CDATA[Last week I handed over a somewhat completed plugin over to Kyjen, and I was pretty proud of it. I knew it wasn&#8217;t 100% done; however, it was a good first step. Earlier today, I got an email from them &#8230; <a href="http://bayphillips.com/2011/03/already-used-variable-names-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last week I handed over a somewhat completed plugin over to Kyjen, and I was pretty proud of it. I knew it wasn&#8217;t 100% done; however, it was a good first step. Earlier today, I got an email from them with a screenshot of a very weird bug:</p>
<p><a href="http://bayphillips.com/wp-content/uploads/2011/03/messagesmessingup.png"><img class="size-thumbnail wp-image-213 alignnone" title="messagesmessingup" src="http://bayphillips.com/wp-content/uploads/2011/03/messagesmessingup-150x150.png" alt="" width="150" height="150" /></a></p>
<p>All of the messages in my plugin were showing up in the admin/user-new.php within the WordPress Admin&#8230; Pretty weird, right?</p>
<p>After a lot of investigating, and trying to figure out where the hell my custom messages were being called, I came across this part within the admin/user-new.php:</p>
<p>&nbsp;</p>
<pre><code>if ( ! empty( $messages ) ) {
	foreach ( $messages as $msg )
		echo '&lt;div id="message"&gt;&lt;p&gt;' . $msg . '&lt;/p&gt;&lt;/div&gt;';</code></pre>
<p>Turns out, in the custom messages in my plugin, I had declared the array that held all of my messages as $messages, thus overriding the WordPress core.</p>
<p>Now I know to be more careful in my plugin variable naming. Previously, I had been careful with just my function names, but I guess it can&#8217;t hurt to be as explicit as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/already-used-variable-names-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/already-used-variable-names-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Potential new design for ZAX Portal</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/OpNs4YtHY84/</link>
		<comments>http://bayphillips.com/2011/03/potential-new-design-for-zax-portal/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 21:46:23 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[Lambda Chi Alpha]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ZAX Portal]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=209</guid>
		<description><![CDATA[What do ya think?]]></description>
			<content:encoded><![CDATA[<p>What do ya think?</p>
<p><a href="http://bayphillips.com/wp-content/uploads/2011/03/mockup3_2.png"><img class="alignleft size-thumbnail wp-image-210" title="mockup3_2" src="http://bayphillips.com/wp-content/uploads/2011/03/mockup3_2-150x150.png" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/potential-new-design-for-zax-portal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/potential-new-design-for-zax-portal/</feedburner:origLink></item>
		<item>
		<title>Reverted DohGames back to Splash Page</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/aaNAVsZMC60/</link>
		<comments>http://bayphillips.com/2011/03/reverted-dohgames-back-to-splash-page/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 22:45:07 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[DohGames]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=206</guid>
		<description><![CDATA[Yesterday I decided that I&#8217;d had enough with trying to rebuild DohGames (for the time being). I had set up new forums for DG a while back; however, I didn&#8217;t have anything to offer for the community to actually flourish. &#8230; <a href="http://bayphillips.com/2011/03/reverted-dohgames-back-to-splash-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I decided that I&#8217;d had enough with trying to rebuild DohGames (for the time being). I had set up new forums for DG a while back; however, I didn&#8217;t have anything to offer for the community to actually flourish. I found myself checking it about once a week and having to deal with spammers.</p>
<p>That said, I&#8217;m not giving up hope on DG any time soon. I have to dedicate my time to my other projects, finishing up my last semester of college, and starting my full time job in the Summer.</p>
<p>Maybe once I get everything set up, and if I find myself with more time on my hands, I&#8217;ll be able to refocus my efforts. For the time being, I&#8217;ll still be looking for anyone interested in purchasing DohGames or anyone who has ideas and is willing to work on them.</p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/03/reverted-dohgames-back-to-splash-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/03/reverted-dohgames-back-to-splash-page/</feedburner:origLink></item>
		<item>
		<title>Custom WordPress Admin Menu Pages</title>
		<link>http://feedproxy.google.com/~r/BayPhillips-WebDeveloper/~3/8tY0c4b8qbs/</link>
		<comments>http://bayphillips.com/2011/01/custom-wordpress-admin-menu-pages/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 01:32:01 +0000</pubDate>
		<dc:creator>Bay Phillips</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://bayphillips.com/?p=201</guid>
		<description><![CDATA[Today, while I was doing some work for Kyjen, I came across a situation that I wasn&#8217;t too sure how to handle: correctly utilizing the add_menu_page and add_submenu_page functions. I couldn&#8217;t figure out how to have the first submenu item &#8230; <a href="http://bayphillips.com/2011/01/custom-wordpress-admin-menu-pages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today, while I was doing some work for <a href="http://www.kyjen.com">Kyjen</a>, I came across a situation that I wasn&#8217;t too sure how to handle: correctly utilizing the add_menu_page and add_submenu_page functions.</p>
<p>I couldn&#8217;t figure out how to have the first submenu item be a different name than the parent&#8217;s name. Let me clarify what I mean.</p>
<p>When you want to add a new menu item in the admin backend of WordPress, you call the function add_menu_page. It looks something like this:</p>
<pre><code>add_menu_page( 'Plugin Home', 'Plugin Home', 0, 'myplugin_pagename', 'myplugin_functionname');</code></pre>
<p>This results in a new menu item called &#8220;Plugin Home&#8221; that you can now click on that will call the myplugin_functionname() function that you&#8217;ve delcared in your plugin. In order to add items within your new menu, you&#8217;d simply use the add_submenu_item, like this:</p>
<pre><code>add_submenu_page('myplugin_pagename', 'My Menu Item', 'My Menu item', 0, 'myplugin_mymenuitem', "myplugin_menuitemfunction");</code></pre>
<p>You would expect to only see one menu item, right? We&#8217;ve only declared one submenu item, &#8220;My Menu Item&#8221;, so it should be pretty straight forward&#8230; Well it isn&#8217;t. You actually end up having two menu items: &#8220;Plugin Home&#8221; and &#8220;My Menu Item&#8221;.</p>
<p>I understand this default functionality; however, I didn&#8217;t want it with what I am doing. I couldn&#8217;t find anything that explained how to change the first item that is listed under a custom admin menu. Even changing the two string parameters in the add_menu_page doesn&#8217;t work, as the first parameter is for the page&#8217;s title that is displayed on the actual page and the second parameter is what shows up on the actual menu. Changing the second parameter ended up changing the header, as well as the menu item.</p>
<p>I was able to finally figure out what the hell was going on by guessing at what other plugins had done, even then it wasn&#8217;t exactly apparent (at least not to me.)</p>
<p><strong>In order to replace that first menu item with different text, declare a submenu item that uses the same page name.</strong> For example:</p>
<pre><code>
// Add the menu header
add_menu_page( 'Plugin Home', 'Plugin Home', 0, 'myplugin_pagename', 'myplugin_functionname');

// Add the submenu item. Notice how they both use the myplugin_pagename page
add_submenu_page('myplugin_pagename', 'New Item Text', 'New Item Text', 0, 'myplugin_pagename', 'myplugin_menuitemfunction');
</code>
</pre>
<p>This caused me a bit of confusion, but let me know what you all think. Maybe there&#8217;s a more correct way of accomplishing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://bayphillips.com/2011/01/custom-wordpress-admin-menu-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://bayphillips.com/2011/01/custom-wordpress-admin-menu-pages/</feedburner:origLink></item>
	</channel>
</rss>

