<?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>Power On Communications &#187; Development</title>
	<atom:link href="http://www.poweron.co.uk/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.poweron.co.uk</link>
	<description>...mobile friendly websites and more</description>
	<lastBuildDate>Fri, 27 Jan 2012 13:47:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to remove mysterious blank lines in Dreamweaver</title>
		<link>http://www.poweron.co.uk/how-to-remove-mysterious-blank-lines-in-dreamweaver/</link>
		<comments>http://www.poweron.co.uk/how-to-remove-mysterious-blank-lines-in-dreamweaver/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 11:01:42 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/how-to-remove-mysterious-blank-lines-in-dreamweaver/</guid>
		<description><![CDATA[I don&#8217;t understand why it happens, but after uploading and downloading files, via ftp, occasionally blank lines appear every other line in my code. I do however understand how to get rid of them with Dreamweaver. Using the Find and [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t understand why it happens, but after uploading and downloading files, via ftp, occasionally blank lines appear every other line in my code. I do however understand how to get rid of them with Dreamweaver.</p>
<p>Using the <strong>Find and Replace</strong> function (Ctrl+F)</p>
<p>Making sure that <em>&#8216;use regular expression&#8217;</em> is checked</p>
<p><strong>Find</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">[\r\n]{2,}</pre></div></div>

<p><strong>Replace</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">\n</pre></div></div>

<p>Then select <em>&#8216;replace all&#8217;</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/how-to-remove-mysterious-blank-lines-in-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Output Page Variables</title>
		<link>http://www.poweron.co.uk/output-page-variables/</link>
		<comments>http://www.poweron.co.uk/output-page-variables/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 10:53:46 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/output-page-variables/</guid>
		<description><![CDATA[Output the variables of a particular WordPress page or post echo &#34;&#60;pre&#62;&#34;; print_r&#40;$wp_query-&#62;query_vars&#41;; echo &#34; &#8220;;]]></description>
			<content:encoded><![CDATA[<p>Output the variables of a particular WordPress page or post</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;&lt;pre&gt;&quot;</span>; <span style="color: #000066;">print_r</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$wp_query</span>-<span style="color: #66cc66;">&gt;</span><span style="color: #006600;">query_vars</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;</span></pre></div></div>

<p>&#8220;;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/output-page-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poweron.co.uk is now mobile friendly!</title>
		<link>http://www.poweron.co.uk/poweron-co-uk-is-now-mobile-friendly/</link>
		<comments>http://www.poweron.co.uk/poweron-co-uk-is-now-mobile-friendly/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 14:59:31 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/?p=1063</guid>
		<description><![CDATA[As more and more people are using their mobile phones to browse the internet, we decided to make Poweron.co.uk mobile friendly. The issues with our regular site on a mobile browser were layout, load times, user experience and general compatibility. [...]]]></description>
			<content:encoded><![CDATA[<p>As more and more people are using their mobile phones to browse the internet, we decided to make Poweron.co.uk mobile friendly. The issues with our regular site on a mobile browser were layout, load times, user experience and general compatibility. In order to rectify this we have created a new WordPress theme for mobiles that will be condensed, light on graphics and file size, and most importantly, user friendly.</p>
<h2>Theme Switcher</h2>
<p>First we have to redirect web traffic that arrives at our website via mobile devices to the new theme. As is generally the case, there is already a plug-in for this function. <a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/" target="_blank">WordPress mobile pack</a> lets us select the new theme and automatically loads it for mobile traffic. It also lets us view the site with the mobile theme in any browser, which is handy for testing and/or development.</p>
<h2>The New Theme</h2>
<p>We bought a <a href="http://www.wordpressmobiletheme.com/" target="_blank">theme</a> template with a simple layout, and then customised it by changing the tabs for navigating through our three main categories. Features include: a drop-down menu to show our main-page links; a twitter feed for our latest updates; and social-networking links in the footer. We changed the colour of the tabs to tie-in with the &#8216;mother&#8217; website. Other changes include: less images; no slide-show; more &#8216;chunky&#8217; links for touch screen devices; and less scripts.</p>
<h2>Testing</h2>
<div id="attachment_1095" class="wp-caption alignright" style="width: 318px"><img class="size-full wp-image-1095 colorbox-1063" style="border-top: 4px solid #904098; border-bottom: 4px solid #904098;" title="Mobile Theme" src="http://www.poweron.co.uk/wp-content/uploads/2010/12/mobiletheme1.png" alt="" width="308" height="423" /><p class="wp-caption-text">New mobile theme</p></div>
<p>Our goal was not to have the theme work for every mobile device out there. Instead, our focus was to have it working well on the currently popular smartphone devices which have the majority of mobile web browsing. We concentrated on the iphone, devices running Android OS, the BlackBerry smartphones, and some of the Nokia devices. We don&#8217;t know what this new theme will look like on every mobile phone, and probably never will, however we can test a large number of them via Adobe Device Central. This program emulates the different mobile devices available and enables us to see what works and what (ahem) doesn&#8217;t.</p>
<p>So now what we have is a mobile-friendly website, with all the same content controlled from the one WordPress install.</p>
<p>Got a mobile? Try it out and let us know what you think.</p>
<p>Have you got a website that would benefit from a mobile-specific theme? Feel free to <a href="http://www.poweron.co.uk/contact/">contact us</a> &#8211; we would be happy to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/poweron-co-uk-is-now-mobile-friendly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Buddypress Admin bar</title>
		<link>http://www.poweron.co.uk/remove-buddypress-admin-bar/</link>
		<comments>http://www.poweron.co.uk/remove-buddypress-admin-bar/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:44:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/remove-buddypress-admin-bar/</guid>
		<description><![CDATA[define&#40; 'BP_DISABLE_ADMIN_BAR', false &#41;;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000066;">define</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'BP_DISABLE_ADMIN_BAR'</span>, <span style="color: #000000; font-weight: bold;">false</span> <span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/remove-buddypress-admin-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popular posts by comments</title>
		<link>http://www.poweron.co.uk/popular-posts-by-comments/</link>
		<comments>http://www.poweron.co.uk/popular-posts-by-comments/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:43:45 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/popular-posts-by-comments/</guid>
		<description><![CDATA[1 2 3 4 &#60;?php $pop = $wpdb-&#62;get_results&#40;&#34;SELECT id, post_title, comment_count FROM {$wpdb-&#62;prefix}posts WHERE post_type='post' ORDER BY comment_count DESC LIMIT 10&#34;&#41;; foreach&#40;$pop as $post&#41; : ?&#62; &#60;?php echo $post-&#62;post_title; ?&#62; &#60;?php endforeach; ?&#62;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #0000ff;">$pop</span> = <span style="color: #0000ff;">$wpdb</span>-<span style="color: #66cc66;">&gt;</span><span style="color: #006600;">get_results</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;SELECT id, post_title, comment_count FROM {$wpdb-&gt;prefix}posts WHERE post_type='post' ORDER BY comment_count DESC LIMIT 10&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$pop</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$post</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$post</span>-<span style="color: #66cc66;">&gt;</span><span style="color: #006600;">post_title</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> endforeach; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/popular-posts-by-comments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Call jquery in wordpress</title>
		<link>http://www.poweron.co.uk/call-jquery-in-wordpress/</link>
		<comments>http://www.poweron.co.uk/call-jquery-in-wordpress/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:43:04 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/call-jquery-in-wordpress/</guid>
		<description><![CDATA[1 &#60;?php wp_enqueue_script&#40;&#34;jquery&#34;&#41;; ?&#62;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_enqueue_script<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;jquery&quot;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/call-jquery-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress blogroll or links import and export</title>
		<link>http://www.poweron.co.uk/wordpress-blogroll-or-links-import-and-export/</link>
		<comments>http://www.poweron.co.uk/wordpress-blogroll-or-links-import-and-export/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:42:19 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/wordpress-blogroll-or-links-import-and-export/</guid>
		<description><![CDATA[wp-links-opml.php if you put that after the site URL you can then save the code and import in to new site (using blogroll import) and it will bring in the blogroll wp-links-opml.php if you put that after the site URL [...]]]></description>
			<content:encoded><![CDATA[<p>wp-links-opml.php if you put that after the site URL you can then save the code and import in to new site (using blogroll import) and it will bring in the blogroll</p>
<p>wp-links-opml.php if you put that after the site URL you can then save the code and import in to new site (using blogroll import) and it will bring in the blogroll</p>
]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/wordpress-blogroll-or-links-import-and-export/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3 Multisite Network</title>
		<link>http://www.poweron.co.uk/wordpress-3-multisite-network/</link>
		<comments>http://www.poweron.co.uk/wordpress-3-multisite-network/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:40:35 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/wordpress-3-multisite-network/</guid>
		<description><![CDATA[/** Sets up WordPress Network for multisite. */ 1 define&#40;'WP_ALLOW_MULTISITE', true&#41;;]]></description>
			<content:encoded><![CDATA[<p>/** Sets up WordPress Network for multisite. */</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000066;">define</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'WP_ALLOW_MULTISITE'</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/wordpress-3-multisite-network/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove WordPress Generator Meta</title>
		<link>http://www.poweron.co.uk/remove-wordpress-generator-meta/</link>
		<comments>http://www.poweron.co.uk/remove-wordpress-generator-meta/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:38:58 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/remove-wordpress-generator-meta/</guid>
		<description><![CDATA[Add to the functions 1 remove_action&#40;'wp_head', 'wp_generator'&#41;;]]></description>
			<content:encoded><![CDATA[<p>Add to the functions</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">remove_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wp_head'</span>, <span style="color: #ff0000;">'wp_generator'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/remove-wordpress-generator-meta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove a category from the RSS feed</title>
		<link>http://www.poweron.co.uk/remove-a-category-from-the-rss-feed/</link>
		<comments>http://www.poweron.co.uk/remove-a-category-from-the-rss-feed/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 16:37:30 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.poweron.co.uk/?p=838</guid>
		<description><![CDATA[Add this to the function.php file: 1 2 3 4 5 6 7 8 &#60;?php function myFeedExcluder&#40;$query&#41; &#123; if &#40;$query-&#62;is_feed&#41; &#123; $query-&#62;set&#40;'cat','-143'&#41;; &#125; return $query; &#125; add_filter&#40;'pre_get_posts','myFeedExcluder'&#41;; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Add this to the function.php file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> myFeedExcluder<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$query</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$query</span>-<span style="color: #66cc66;">&gt;</span><span style="color: #006600;">is_feed</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0000ff;">$query</span>-<span style="color: #66cc66;">&gt;</span><span style="color: #006600;">set</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cat'</span>,<span style="color: #ff0000;">'-143'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$query</span>;
<span style="color: #66cc66;">&#125;</span>
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'pre_get_posts'</span>,<span style="color: #ff0000;">'myFeedExcluder'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.poweron.co.uk/remove-a-category-from-the-rss-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.poweron.co.uk @ 2012-02-05 14:42:20 -->
