<?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/" version="2.0">

<channel>
	<title>Googpress - the vanweerd sandbox</title>
	
	<link>http://googpress.com</link>
	<description>the vanweerd sandbox</description>
	<lastBuildDate>Wed, 12 Oct 2011 08:02: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/googpress" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="googpress" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">googpress</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>My First DokuWiki Plugin</title>
		<link>http://vanweerd.com/my-first-dokuwiki-plugin/</link>
		<comments>http://vanweerd.com/my-first-dokuwiki-plugin/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:48:25 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[DokuWiki]]></category>

		<guid isPermaLink="false">http://googpress.com/2010/my-first-dokuwiki-plugin/</guid>
		<description><![CDATA[Well who would have thought I&#8217;d start writing DokuWiki plugins for a change. It&#8217;s a bit of a workaround plugin, due to an issue in a WordPress &#8211; DokuWiki login bridge that I&#8217;ve implemented. All wiki content was being escaped (addslashes), so that &#8220;you&#8217;re&#8221; became &#8220;you\&#8217;re&#8221;. I have yet to find a real solution for [...]]]></description>
			<content:encoded><![CDATA[<p>Well who would have thought I&#8217;d start writing <a href="http://www.dokuwiki.org/dokuwiki">DokuWiki</a> plugins for a change. It&#8217;s a bit of a workaround plugin, due to an issue in a <a href="http://keeyai.com/projects-and-releases/dokuwiki-tools/dokuwiki-and-wordpress-integration/">WordPress &#8211; DokuWiki login bridge</a> that I&#8217;ve implemented. All wiki content was being escaped (addslashes), so that &#8220;you&#8217;re&#8221; became &#8220;you\&#8217;re&#8221;. I have yet to find a real solution for this, whether it is the bridge, or dokuwiki, but for the time being, I can move on without polluting the wiki pages by using this plugin:</p>
<p>[download id="4"]<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/my-first-dokuwiki-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix WordPress search widget (x)html validation errors</title>
		<link>http://vanweerd.com/fix-wordpress-search-widget-xhtml-validation-errors/</link>
		<comments>http://vanweerd.com/fix-wordpress-search-widget-xhtml-validation-errors/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 18:04:56 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[General News]]></category>
		<category><![CDATA[WordPress General]]></category>

		<guid isPermaLink="false">http://googpress.com/?p=73</guid>
		<description><![CDATA[As it turns out, the standard WordPress issued search widget generates xhtml validation errors, by using the form role keyword. For reason way beyond me, WordPress staff can find more time tracking the issue, changing it to a &#8220;future release&#8221; milestone, then decide to change the status from &#8220;new&#8221; to &#8220;closed&#8221;, set the resolution to [...]]]></description>
			<content:encoded><![CDATA[<p>As it turns out, the standard WordPress issued search widget generates xhtml validation errors, by using the <code>form role</code> keyword.</p>
<p>For reason way beyond me, WordPress staff can find more time tracking the issue, changing it to a &#8220;future release&#8221; milestone, then decide to change the status from &#8220;new&#8221; to &#8220;closed&#8221;, set the resolution to &#8220;wontfix&#8221; (what a great resolution!), and then remove the milestone &#8220;Future Release&#8221;, and add the bold comment: &#8220;we&#8217;ll reopen if/when we&#8217;re interested.&#8221; source: <em><a href="http://core.trac.wordpress.org/ticket/10108">WordPress Trac</a></em></p>
<p>I&#8217;m sure it must have been easier to remove the erroneous code: <code>role="search"</code> from the function that generates the search widget.</p>
<p>Here&#8217;s a quick trick to avoid these validation errors</p>
<h3>Create your own search form</h3>
<p>By creating your own searchform.php, you override the one WordPress uses by default, so it&#8217;s an easy fix. Using a text editor, like notepad, create a new file, and simply insert the following code:</p>
<p>[php]&lt;form method=&quot;get&quot; class=&quot;search-form&quot; id=&quot;search-form&quot; action=&quot;&lt;?php bloginfo( &#8216;home&#8217; ); ?&gt;/&quot;&gt;<br />
    &lt;div&gt;<br />
    &lt;label class=&quot;screen-reader-text&quot; for=&quot;s&quot;&gt;&lt;?php _e(&#8216;Search for:&#8217;); ?&gt;&lt;/label&gt;<br />
    &lt;input class=&quot;search-text&quot; type=&quot;text&quot; name=&quot;s&quot; id=&quot;search-text&quot; value=&quot;&lt;?php _e(&#8216;Search this site&#8217;); ?&gt;&quot; /&gt;<br />
    &lt;input class=&quot;search-submit&quot; type=&quot;submit&quot; name=&quot;submit&quot; id=&quot;search-submit&quot; value=&quot;&lt;?php _e(&#8216;Search&#8217;); ?&gt;&quot; /&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
[/php]</p>
<p>then save this file in your theme folder, and name it <code>searchform.php</code>.</p>
<p>From now on, your custom searchform will be used by the widget, and there will be no more validation errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/fix-wordpress-search-widget-xhtml-validation-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page template for iCompany without a grey bar</title>
		<link>http://vanweerd.com/page-template-for-icompany-without-a-grey-bar/</link>
		<comments>http://vanweerd.com/page-template-for-icompany-without-a-grey-bar/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 13:21:05 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iThemes]]></category>
		<category><![CDATA[Page template]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://googpress.com/?p=68</guid>
		<description><![CDATA[As requested in this post on the iThemes support forum, here are the instructions to create a page template for the iCompany Theme series by iThemes (these instructions will most likely work for iCar and iRealEstate as well). This template will not have the grey bar and the featured area, and the main content will [...]]]></description>
			<content:encoded><![CDATA[<p>As requested in <a href="http://forum.ithemes.com/index.php?topic=6496.0">this post</a> on the iThemes support forum, here are the instructions to create a page template for the <a href="http://ithemes.com/purchase/icompany-web-theme/">iCompany</a> Theme series by <a href="http://ithemes.com/">iThemes</a> (these instructions will most likely work for iCar and iRealEstate as well). This template will not have the grey bar and the featured area, and the main content will expand to the right until the right tabber sidebar.</p>
<p><span id="more-68"></span></p>
<p>In the following steps we will:</p>
<ul>
<li><a href="#Create_template">Step 1: Create a new page template based on page.php</a></li>
<li><a href="#Modify_template">Step 2: Modify the new page template</a></li>
<li><a href="#Page_template">The finished code</a></li>
</ul>
<blockquote><p>Note, this code is provided &#8220;as is&#8221; by me, not officially endorsed or supported by iThemes. Furthermore, I do NOT vouch for support for IE6. I have tested this code in IE7, IE8, Firefox, Google Chrome Safari and Opera. If it works in IE6, that&#8217;s great, if it doesn&#8217;t: bad luck.</p></blockquote>
<h3>All modifications in one file</h3>
<p>This time, I have decided to keep all required modifications within the page template. Although some will argue that CSS code has no place inside the main page code (and will actually generate a validation warning), it will make upgrading the theme a lot easier. If you do not want the code inside the page template, you will need to modify the stylesheet style.css AND the header file header.php. On request, I can add instructions to do so at a later stage.</p>
<p>By keeping all code in one file, there is no risk of overwriting your modifications during a theme upgrade, nor do you have to re-apply the modifications after such an upgrade.</p>
<h3>Prerequisites:</h3>
<ul>
<li><a href="http://ithemes.com/purchase/icompany-web-theme/">iCompany/iCar or iRealEstate theme</a> (version 1.6.2 used for this example) installed on WordPress</li>
<li>ability to use the WordPress theme editor: <a href="http://codex.wordpress.org/Editing_Files">WordPress codex on Editing Files</a></li>
<li>ability to upload a file to your WordPress theme folder</li>
</ul>
<p><a id="Create_template" name="Create_template"></a></p>
<h3>Step 1: Create a new page template</h3>
<p>Use the base code from the <code>page.php</code> file to create a new page template. Name the file <code>page_tabber_only.php</code> and upload/save the file in your theme folder.</p>
<p>More: <a href="http://codex.wordpress.org/Pages#Page_Templates">WordPress codex on Page templates</a><br />
<br />
<a id="Modify_template" name="Modify_template"></a></p>
<h2>Step 2: Modify the new page template</h2>
<p>Apply the following changes:</p>
<ul>
<li>Add the header info to indicate this is a page template<br />
[php]<br />
&lt;?php<br />
/*<br />
Template Name: Page tabber only<br />
*/<br />
?&gt;<br />
&lt;?php get_header(); ?&gt;</p>
<p>&lt;!&#8211; &lt;?php echo basename( __FILE__ ); ?&gt; &#8211;&gt;<br />
[/php]</p>
</li>
<li>Add the required CSS code
<p>This will ensure that the grey sidebar will not show by using another background image, and that the content will span the available width (700px).</p>
<p>[php]&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;<br />
/*********************************************<br />
    css for page_tabber_only page template<br />
*********************************************/<br />
#container {<br />
        background: url(&lt;?php bloginfo(&#8216;stylesheet_directory&#8217;); ?&gt;/images/container-bg.gif) top center repeat-y;<br />
}</p>
<p>#inner_tabber_only {<br />
	display: block;<br />
	float: left;<br />
	width: 100%;<br />
	margin: 0px; padding: 10px 15px;<br />
}<br />
&lt;/style&gt;[/php]</p>
</li>
<li>Change the div containers <code>content</code> and <code>inner</code>:
<p>remove the <code>inner</code> class from the <code>content</code> div, and replace the <code>inner</code> div with <code>inner_tabber_only</code>.</p>
<p>[php]&lt;div id=&quot;content&quot; class=&quot;clearfix&quot;&gt;</p>
<p>&lt;div id=&quot;inner_tabber_only&quot;&gt;[/php]
</li>
<li>Remove the inclusion of the <code>r_sidebar_page.php</code> file</li>
</ul>
<p><a id="Page_template" name="Page_template"></a></p>
<h2>The finished code</h2>
<p>Your entire page template now should look like this:</p>
<p>[php]<br />
&lt;?php<br />
/*<br />
Template Name: Page tabber only<br />
*/<br />
?&gt;<br />
&lt;?php get_header(); ?&gt;</p>
<p>&lt;!&#8211; &lt;?php echo basename( __FILE__ ); ?&gt; &#8211;&gt;</p>
<p>&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;<br />
/*********************************************<br />
    css for page_tabber_only page template<br />
*********************************************/<br />
#container {<br />
        background: url(&lt;?php bloginfo(&#8216;stylesheet_directory&#8217;); ?&gt;/images/container-bg.gif) top center repeat-y;<br />
}</p>
<p>#inner_tabber_only {<br />
	display: block;<br />
	float: left;<br />
	width: 100%;<br />
	margin: 0px; padding: 10px 15px;<br />
}<br />
&lt;/style&gt;</p>
<p>&lt;div id=&quot;content&quot; class=&quot;clearfix&quot;&gt;</p>
<p>&lt;div id=&quot;inner_tabber_only&quot;&gt;</p>
<p>	&lt;?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?&gt;</p>
<p>	&lt;!&#8211;post title&#8211;&gt;<br />
	&lt;h1 id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;</p>
<p>	&lt;!&#8211;post text with the read more link&#8211;&gt;<br />
	&lt;?php the_content(); ?&gt;</p>
<p>	&lt;!&#8211;for paginate posts&#8211;&gt;<br />
	&lt;?php link_pages(&#8216;&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; &#8216;, &#8216;&lt;/p&gt;&#8217;, &#8216;number&#8217;); ?&gt;</p>
<p>    &lt;?php //comments_template(); // uncomment this if you want to include comments template ?&gt;</p>
<p>	&lt;?php endwhile; // end of one post ?&gt;<br />
	&lt;?php else : // do not delete ?&gt;</p>
<p>	&lt;h3&gt;Page Not Found&lt;/h3&gt;<br />
    &lt;p&gt;We&#8217;re sorry, but the page you are looking for isn&#8217;t here.&lt;/p&gt;<br />
    &lt;p&gt;Try searching for the page you are looking for or using the navigation in the header or sidebar&lt;/p&gt;</p>
<p>    &lt;?php endif; // do not delete ?&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;?php include(TEMPLATEPATH.&quot;/tabber.php&quot;); ?&gt;</p>
<p>&lt;!&#8211;include footer&#8211;&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
[/php]</p>
<p>And that should be it.</p>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/page-template-for-icompany-without-a-grey-bar/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Widgets in Flexx</title>
		<link>http://vanweerd.com/widgets-in-flexx/</link>
		<comments>http://vanweerd.com/widgets-in-flexx/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 13:56:49 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[iThemes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://googpress.com/2009/widgets-in-flexx/</guid>
		<description><![CDATA[There is some confusion about the widgets used in Flexx themes. I will try to explain what the standard setup is. Initially, Flexx was shipped without the additional Page Templates. Once these were implemented, we felt that we could increase functionality, by creating separate widget sections for these pages. That is when the Page widgets [...]]]></description>
			<content:encoded><![CDATA[<p>There is some confusion about the widgets used in Flexx themes. I will try to explain what the standard setup is.</p>
<p>Initially, Flexx was shipped without the additional Page Templates. Once these were implemented, we felt that we could increase functionality, by creating separate widget sections for these pages. That is when the Page widgets where created.<br />
<span id="more-65"></span><br />
The following image shows the original Flexx setup, widget sections indicated in the Red Box. The additional widget sections that were added when the page templates were added, are in the Blue box.</p>
<p><img src="http://googpress.com/images/FlexxWidgetsOverview.png" alt="Flexx Widgets Overview" /></p>
<p>So all &#8220;normal&#8221; pages (those using the default Page template), and pages such as the home page, the posts, single post pages, archive and category pages all use the widgets from the Red section.</p>
<p>Pages using any of the Page templates </p>
<ul>
<li>Page with Left Sidebar (narrow layout)</li>
<li>Page with Left Sidebar (wide layout)</li>
<li>Page with no Sidebars (narrow layout)</li>
<li>Page with no Sidebars (wide layout)</li>
<li>Page with Right Sidebar (narrow layout)</li>
<li>Page with Right Sidebar (wide layout)</li>
<li>Page with Split Sidebars (wide layout)</li>
</ul>
<p>will use the same Top and Bottom widget sections, but different widget section for the sidebar. These are indicated in blue.</p>
<p>So, with that in mind, here&#8217;s how the widgets on pages using a Page template are populated:</p>
<p><img src="http://googpress.com/images/FlexxPageTemplateWidgets.png" alt="Flexx Page Template Widgets" /></p>
<p>In a default and fresh theme installation of Flexx, the option to &#8220;Identify Widget Areas&#8221; is set to yes. This will indicate on each page where widgets may appear, and what widget section is used.</p>
<p>So we realise that the extra <strong>Flex</strong> that we wanted to put in Flexx has created some confusion. We also realise that the confusion will increase once you change your theme to another iThemes theme, and then perhaps back to a Flexx theme, or when you change the layout in the theme settings. There may be residu from the previous setup that can create an issue in the new setup. To solve this, the <code>reset options</code> function has been added to the theme settings. Using that function will reset your entire widget setup, so you need to be aware of that.</p>
<p><img src="http://googpress.com/images/resetoptions.png" alt="Reset Theme Options" /></p>
<p>Other issues:<br />
In some cases, the fancy drag-and-drop in WP 2.8+ will not work as expected. This is a WordPress issue, and to circumvent that, WordPress has introduced <code>accessibility mode</code></p>
<p>To activate accessibility mode, click on <code>screen options</code> in the right top of your widgets panel, and <code>enable accessibility mode</code>:</p>
<p><img src="http://googpress.com/images/accessibility.png" alt="accessibility" /></p>
<p>Finally, other issues may arise from file and folder permission settings. This is neither a WordPress nor a theme issue, but can cause unpredictable results. I always suggest to install and activate the <a href="http://wordpress.org/extend/plugins/wp-security-scan/">WP security Scan plugin</a>, and check the scanner settings to identify any of these.</p>
<p>I hope, as usual, this helps a bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/widgets-in-flexx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheets in WordPress</title>
		<link>http://googpress.com/2009/spreadsheets-in-wordpress/</link>
		<comments>http://googpress.com/2009/spreadsheets-in-wordpress/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 10:48:33 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://googpress.com/2009/spreadsheets-in-wordpress/</guid>
		<description><![CDATA[The spreadsheet here]]></description>
			<content:encoded><![CDATA[<p>The <a id="aptureLink_jmT9EJsglE" href="http://www.scribd.com/doc/17454913">spreadsheet</a> here</p>
<div id="ipaperempty" class="simpler-ipaper-embed"></div>
<script type="text/javascript">
iPaper_embed('empty', 'empty', '600', '450');
</script>
]]></content:encoded>
			<wfw:commentRss>http://googpress.com/2009/spreadsheets-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip for fixing WordPress 2.8 widget issues</title>
		<link>http://googpress.com/2009/quick-tip-for-fixing-wordpress-28-widget-issues/</link>
		<comments>http://googpress.com/2009/quick-tip-for-fixing-wordpress-28-widget-issues/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 19:21:18 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://googpress.com/?p=36</guid>
		<description><![CDATA[If you have just upgraded to WordPress 2.8 and are experiencing issues with your widgets, a potential solution is to go to the Appearance &#62; Themes screen and select and activate another theme (any theme will do). Then go back into theme selection, and re-select your desired theme. Upon activation, you will see this message [...]]]></description>
			<content:encoded><![CDATA[<p>If you have just upgraded to WordPress 2.8 and are experiencing issues with your widgets, a <strong>potential</strong> solution is to go to the Appearance &gt; Themes screen and select and activate another theme (any theme will do).</p>
<p>Then go back into theme selection, and re-select your desired theme. Upon activation, you will see this message at the top of the screen.</p>
<p><img src="http://www.vanweerd.com/images/manage_themes.png" alt="Manage Themes" /></p>
<p>Click the <code>widgets settings page</code> link, and you should be able to gain back control over your widgets.</p>
]]></content:encoded>
			<wfw:commentRss>http://googpress.com/2009/quick-tip-for-fixing-wordpress-28-widget-issues/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Wave announced at Google I/O</title>
		<link>http://vanweerd.com/google-wave-announced-at-google-io/</link>
		<comments>http://vanweerd.com/google-wave-announced-at-google-io/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 23:06:35 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[News Snippets]]></category>

		<guid isPermaLink="false">http://googpress.com/?p=17</guid>
		<description><![CDATA[Google Wave announced at Google I/O, watch a 1&#8217;20&#8243; video on this amazing product, can&#8217;t wait to get my hands on it! It&#8217;s IM, e-mail, twitter, calendar, scheduler and more in one collaboration application. Not in a suit of applications, but integrated into one application. Google Wave will be released end 2009, so be prepared. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wave.google.com/">Google Wave</a> announced at Google I/O, watch a 1&#8217;20&#8243; video on this amazing product, can&#8217;t wait to get my hands on it!</p>
<p>It&#8217;s IM, e-mail, twitter, calendar, scheduler and more in one collaboration application. Not in a suit of applications, but integrated into one application. Google Wave will be released end 2009, so be prepared. API developers can already get there hands on it and request <a href="http://code.google.com/apis/wave/">sandbox access</a>.</p>
<p><span id="more-17"></span></p>
<p>Watch the video here:</p>
<div align="center">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/v_UyVmITiYQ" frameborder="0" allowFullScreen="true"> </iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/google-wave-announced-at-google-io/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bSocial Page without sidebars</title>
		<link>http://vanweerd.com/bsocial-page-without-sidebars/</link>
		<comments>http://vanweerd.com/bsocial-page-without-sidebars/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 22:15:12 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iThemes]]></category>
		<category><![CDATA[Page template]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://googpress.com/?p=7</guid>
		<description><![CDATA[Here are the instructions to create a landing page without sidebar and (optionally) the footer blocks (about and navigation) for iThemes‘ bSocial theme. Follow these steps carefully and you will have a page with header, a white page, and footer credits only. In the following steps we will: Step 1: Create a new page template [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the instructions to create a landing page without sidebar and (optionally) the footer blocks (about and navigation) for iThemes‘ <a href="http://bsocial.ithemes.com/">bSocial theme</a>.</p>
<p><span id="more-7"></span></p>
<p>Follow these steps carefully and you will have a page with header, a white page, and footer credits only.</p>
<p>In the following steps we will:</p>
<ul>
<li><a href="#Create_template">Step 1: Create a new page template based on page.php</a></li>
<li><a href="#Modify_template">Step 2: Modify the new page template</a></li>
<li><a href="#Modify_CSS">Step 3: Add styling to the stylesheet</a></li>
<li><a href="#Modify_footer">Step 4: Modify footer.php to take out the bottom blocks</a></li>
</ul>
<blockquote><p>Note, this code is provided &#8220;as is&#8221; by me, not officially endorsed or supported by iThemes. Furthermore, I do NOT vouch for support for IE6. I have tested this code in IE7, IE8, Firefox, Google Chrome Safari and Opera. If it works in IE6, that&#8217;s great, if it doesn&#8217;t: bad luck.</p></blockquote>
<p><strong>Prerequisites:</strong></p>
<ul>
<li>bSocial theme (version 1.1.0 used for this example) installed on WordPress</li>
<li>ability to use the WordPress theme editor: <a href="http://codex.wordpress.org/Editing_Files">WordPress codex on Editing Files</a></li>
<li>ability to upload a file to your WordPress theme folder</li>
</ul>
<p><a id="Create_template" name="Create_template"></a></p>
<h2>Step 1: Create a new page template</h2>
<p>Use the base code from the file page.php to create a new page template. Name the file page_no_sidebar.php and upload/save the file in your theme folder.</p>
<p>More: <a href="http://codex.wordpress.org/Pages#Page_Templates">WordPress codex on Page templates</a><br />
<br />
<a id="Modify_template" name="Modify_template"></a></p>
<h2>Step 2: Modify the new page template</h2>
<p>Apply the following changes:</p>
<ul>
<li>Add the header info to indicate this is a page template</li>
<li>Change div container <code>inner</code> to <code>inner_wide</code></li>
<li>Change div container <code>content</code> to <code>content_wide</code></li>
<li>Comment out the inclusion of the sidebar.php file</li>
<li>Comment out the horizontal line with the shadow</li>
</ul>
<p>Your page template should look like this:</p>
<pre>
<div id="inner_wide" class="clearfix">
<div id="content_wide">
<!--page.php-->

<!--post title-->
&lt;h1 id=&quot;post-"&gt;</h1>

<!--post text with the read more link-->
<h3></h3>
</div>

<!--include sidebar-->
</div>

&lt;!--
<hr class="shadow" /> --&gt;

<!--include footer-->
</pre>
<p><a id="Modify_CSS" name="Modify_CSS"></a></p>
<h2>Step 3: Add styling to the stylesheet</h2>
<p>We need to add styling for the wide content areas. The vertical line that borders the current content left and right is contained in an image. We will take out that image so that leaves us with a plain white area spanning the entire site width.</p>
<p>Add the following code to the end of your stylesheet style.css:</p>
<p>[css]<br />
/*********************************************<br />
Additional Styling for page without sidebars<br />
*********************************************/</p>
<p>#content_wide {<br />
float: left;<br />
margin: 0px;<br />
padding: 25px 50px;<br />
width: 90%;<br />
display: block;<br />
border: 0px solid black;<br />
}</p>
<p>#inner_wide {<br />
background: #fff;<br />
}</p>
<p>#content_wide h1 {<br />
font-family: &quot;Arial Black&quot;, Arial, Helvetica, Sans-Serif;<br />
font-size: 14px;<br />
line-height: 46px;<br />
text-transform: uppercase;<br />
margin: 0px 0px 10px 0px;<br />
padding: 0px 15px;<br />
color: #FFF;<br />
background: #000 url(images/filmstrip.gif) repeat-x;<br />
}<br />
[/css]</p>
<p><a id="Modify_footer" name="Modify_footer"></a></p>
<h2>Step 4: Modify footer.php to take out the bottom blocks</h2>
<p>If you wish to take out the footer blocks with the &#8220;About&#8221; and &#8220;Navigation&#8221; area as well, you should add a condition to the code to make sure this code will only be included IF the page template is not the one you&#8217;ve created here. This will ensure that the footer will be displayed as intended on all other pages.</p>
<p>It is vital that you use the exact same name as you did in <a href="#Create_template">the first step</a>, so in this case <code>page_no_sidebars.php</code>.</p>
<p>In order to achieve this, we use conditional tags, in this case, the <a href="http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template">is_page_template?</a> condition.</p>
<p>Your footer code should look like this.</p>
<p>[php]<br />
&lt;?php global $wp_theme_options; ?&gt;</p>
<p>&lt;?php if (!is_page_template(&#8216;page_no_sidebar.php&#8217;) ) { ?&gt;</p>
<p>&lt;div id=&quot;bottom&quot; class=&quot;clearfix&quot;&gt;<br />
&lt;?php if(is_home()) : ?&gt;<br />
&lt;div id=&quot;video&quot;&gt;<br />
&lt;h3&gt;Video of the Week&lt;/h3&gt;<br />
&lt;div class=&quot;videowrap&quot;&gt;<br />
&lt;?php echo stripslashes($wp_theme_options['feature_video']); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div id=&quot;about&quot;&gt;<br />
&lt;h3&gt;About&lt;/h3&gt;<br />
&lt;?php echo stripslashes(nl2br(nls2p($wp_theme_options['about']))); ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>&lt;div id=&quot;nav&quot; class=&quot;clearfix&quot;&gt;<br />
&lt;h3&gt;Navigation&lt;/h3&gt;<br />
&lt;div id=&quot;navwrap&quot; class=&quot;clearfix&quot;&gt;<br />
&lt;div id=&quot;navcats&quot;&gt;<br />
&lt;ul&gt;<br />
&lt;?php if($wp_theme_options['include_pages']['0'] == &#8216;home&#8217;) { ?&gt;<br />
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_settings(&#8216;home&#8217;); ?&gt;&quot;&gt;&lt;?php _e(&quot;Home&quot;); ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php //Lists pages, only pages selected in theme options ?&gt;<br />
&lt;?php if($wp_theme_options['include_pages']) $include = implode(&quot;,&quot;, $wp_theme_options['include_pages']); ?&gt;<br />
&lt;?php $my_pages = &quot;title_li=&amp;depth=1&amp;sort_column=menu_order&amp;include=&quot;.$include; wp_list_pages($my_pages); ?&gt;<br />
&lt;/ul&gt;<br />
&lt;ul&gt;<br />
&lt;?php //Lists categories, only categories selected in theme options ?&gt;<br />
&lt;?php if($wp_theme_options['include_cats']) $include = implode(&quot;,&quot;, $wp_theme_options['include_cats']); ?&gt;<br />
&lt;?php $my_cats = &quot;title_li=&amp;number=7&amp;hide_empty=0&amp;hierarchical=0&amp;orderby=ID&amp;include=&quot;.$include; wp_list_categories($my_cats); ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&quot;navsocial&quot;&gt;<br />
&lt;?php<br />
$Social = array( &#8216;twitter_url&#8217;=&gt;$wp_theme_options['twitter_url'], &#8216;technorati_url&#8217;=&gt;$wp_theme_options['technorati_url'], &#8216;facebook_url&#8217;=&gt;$wp_theme_options['facebook_url'], &#8216;feedburner_url&#8217;=&gt;$wp_theme_options['feedburner_url'], &#8216;youtube_url&#8217;=&gt;$wp_theme_options['youtube_url'], &#8216;delicious_url&#8217;=&gt;$wp_theme_options['delicious_url'], &#8216;myspace_url&#8217;=&gt;$wp_theme_options['myspace_url'], &#8216;digg_url&#8217;=&gt;$wp_theme_options['digg_url'], &#8216;flickr_url&#8217;=&gt;$wp_theme_options['flickr_url'], &#8216;stumble_url&#8217;=&gt;$wp_theme_options['stumble_url'], &#8216;netvibes_url&#8217;=&gt;$wp_theme_options['netvibes_url'], &#8216;newsvine_url&#8217;=&gt;$wp_theme_options['newsvine_url']);<br />
$i = 1; foreach((array)$Social as $label=&gt;$social) {<br />
if($social &amp;&amp; $i &lt;= 10) {<br />
echo &#8216;&lt;a href=&quot;&#8217;.$social.&#8217;&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;&#8217;.get_bloginfo(&#8216;template_directory&#8217;).&#8217;/images/social/&#8217;.$label.&#8217;.gif&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&#8217;.&quot;\n&quot;; $i++;<br />
} } ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>&lt;?php } ?&gt;</p>
<p>&lt;div id=&quot;footer&quot;&gt;<br />
&lt;!&#8211;footer.php&#8211;&gt;<br />
© &lt;?php print date(&#8216;Y&#8217;); ?&gt; &lt;?php bloginfo(&#8216;name&#8217;); ?&gt; :: &lt;?php _e(&quot;Powered by&quot;); ?&gt; &lt;a href=&quot;http://wordpress.org/&quot;&gt;WordPress&lt;/a&gt; :: &lt;a href=&quot;http://churchtheme.com/bchurch/&quot;&gt;bChurch Theme&lt;/a&gt;.</p>
<p>&lt;!&#8211;necessary&#8211;&gt;<br />
&lt;?php wp_footer(); ?&gt;<br />
&lt;/div&gt;</p>
<p>&lt;/div&gt;&lt;!&#8211;end #wrap&#8211;&gt;<br />
&lt;/div&gt;&lt;!&#8211;end #container&#8211;&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/php]</p>
]]></content:encoded>
			<wfw:commentRss>http://vanweerd.com/bsocial-page-without-sidebars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world, Hello BuddyPress, Hello WPMU</title>
		<link>http://googpress.com/2009/hello-world/</link>
		<comments>http://googpress.com/2009/hello-world/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:49:15 +0000</pubDate>
		<dc:creator>Ronald</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false" />
		<description><![CDATA[the vanweerd sandbox. For visual spectacle, this is not the right place, but I am excited to find out what BuddyPress and WordPress can do.]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_9" class="wp-caption alignleft" style="width: 536px"><img src="http://googpress.com/files/2009/06/colourcomposition1.jpg" alt="experimental, crayon on paper" width="526" height="383" class="size-full wp-image-9" /><p class="wp-caption-text">experimental, crayon on paper</p></div>the vanweerd sandbox. For visual spectacle, this is not the right place, but I am excited to find out what BuddyPress and WordPress can do. </p>
]]></content:encoded>
			<wfw:commentRss>http://googpress.com/2009/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

