<?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>Richard Pargeter - SEO, Web Development &#38; Affiliate Marketing &#187; Web Development</title>
	<atom:link href="http://rjpargeter.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://rjpargeter.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Sep 2009 17:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Removing wp_head() elements (rel=&#8217;start&#8217;, etc.)</title>
		<link>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/</link>
		<comments>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 16:37:36 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Affiliate Related]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://rjpargeter.com/?p=178</guid>
		<description><![CDATA[In customising Wordpress you may find a need to occasionally remove or add to the Link elements that Wordpress automatically outputs in the function call wp_head().  I&#8217;ve recently had a need to remove the rel=&#8217;prev&#8217; and rel=&#8217;next&#8217; link elements and in trying to avoid customising the core Wordpress functions the following solutions works.
Ensure you [...]]]></description>
			<content:encoded><![CDATA[<p>In customising Wordpress you may find a need to occasionally remove or add to the Link elements that Wordpress automatically outputs in the function call wp_head().  I&#8217;ve recently had a need to remove the rel=&#8217;prev&#8217; and rel=&#8217;next&#8217; link elements and in trying to avoid customising the core Wordpress functions the following solutions works.</p>
<p>Ensure you have a functions.php file in your theme directory that you are using.  If not create the file and edit the file.  The following lines will help remove select lines from your wp_head() function:<br />
<code><br />
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Removes the links to the extra feeds such as category feeds<br />
remove_action( 'wp_head', 'feed_links', 2 ); // Removes links to the general feeds: Post and Comment Feed<br />
remove_action( 'wp_head', 'rsd_link'); // Removes the link to the Really Simple Discovery service endpoint, EditURI link<br />
remove_action( 'wp_head', 'wlwmanifest_link'); // Removes the link to the Windows Live Writer manifest file.<br />
remove_action( 'wp_head', 'index_rel_link'); // Removes the index link<br />
remove_action( 'wp_head', 'parent_post_rel_link'); // Removes the prev link<br />
remove_action( 'wp_head', 'start_post_rel_link'); // Removes the start link<br />
remove_action( 'wp_head', 'adjacent_posts_rel_link'); // Removes the relational links for the posts adjacent to the current post.<br />
remove_action( 'wp_head', 'wp_generator'); // Removes the Wordpress version i.e. - WordPress 2.8.4<br />
</code><br />
Don&#8217;t remove these items unless you have a need to.  The Wordpress generator removal could be useful if you are not religiously upgrading your Wordpress install as it helps hide the WP version from potential hackers to a certain degree.</p>
]]></content:encoded>
			<wfw:commentRss>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>RGB to HEX Converter</title>
		<link>http://rjpargeter.com/2008/12/rgb-to-hex-converter/</link>
		<comments>http://rjpargeter.com/2008/12/rgb-to-hex-converter/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 00:29:58 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://rjpargeter.com/?p=89</guid>
		<description><![CDATA[

Working with CSS I am constantly trying to convert RGB values from Photoshop to their hex equivalent.  There is probably a setting in PhotoShop that I have missed, but the following small form will quickly convert RGB values to the HEX equivalent.  You can then use these values in CSS with # at [...]]]></description>
			<content:encoded><![CDATA[<p><script language="JavaScript">
<!--
function RGBtoHexConverter(R,G,B) {
return (convertToHex(R)+convertToHex(G)+convertToHex(B));
}
function convertToHex(val) {
 if (val==null) return "00";
 N=parseInt(val); if (val==0 || isNaN(val)) return "00";
 N=Math.max(0,val); N=Math.min(val,255); N=Math.round(val);
 return "0123456789ABCDEF".charAt((val-val%16)/16)
     + "0123456789ABCDEF".charAt(val%16);
}
//-->
</script></p>
<p>Working with CSS I am constantly trying to convert RGB values from Photoshop to their hex equivalent.  There is probably a setting in PhotoShop that I have missed, but the following small form will quickly convert RGB values to the HEX equivalent.  You can then use these values in CSS with # at the beginning.</p>
<p>Let me know if you find this useful:</p>
<form name=rgb>
R:<br />
<input type=text name=r size=3 value=255><br/><br />
G:<br />
<input type=text name=g size=3 value=255><br/><br />
B:<br />
<input type=text name=b size=3 value=255><br/></p>
<input type=button name=btn value="Convert to Hex" onCLick="this.form.hexVal.value=RGBtoHexConverter(this.form.r.value,this.form.g.value,this.form.b.value)"> :<br />
<input type=text name=hexVal size=8>
</form>
]]></content:encoded>
			<wfw:commentRss>http://rjpargeter.com/2008/12/rgb-to-hex-converter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Determine URL of an ImagePlaceholder</title>
		<link>http://rjpargeter.com/2008/11/determine-url-of-an-imageplaceholder/</link>
		<comments>http://rjpargeter.com/2008/11/determine-url-of-an-imageplaceholder/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 06:01:32 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[MCMS]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://rjpargeter.com/?p=55</guid>
		<description><![CDATA[I came across a problem recently whereby I wanted to determine the MCMS URL of an image stored in the MCMS Resource gallery.  The script had several image placeholders, some of which may of had images bound to them.
My requirements involved determining the URL of any given image and then to use this in some [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a problem recently whereby I wanted to determine the MCMS URL of an image stored in the MCMS Resource gallery.  The script had several image placeholders, some of which may of had images bound to them.</p>
<p>My requirements involved determining the URL of any given image and then to use this in some CSS styling.   Faced with this scenario the following code should help:</p>
<p><code><br />
//Setup placeholder object and string for URL<br />
Placeholder pl;<br />
string imgSrcUrl = "";</p>
<p>//setup default CSS string<br />
string FeatureCSS = ””;</p>
<p>pl = ImageX.BoundPlaceholder;//get the bound placeholder for this control<br />
if (pl!=null){//test the placholder is not null<br />
  imgSrcUrl = ((ImagePlaceholder)pl).Src ;//get the source url from the placholder<br />
  if (imgSrcUrl!=null &#038;&#038; imgSrcUrl!=”"){<br />
    FeatureCSS = “&lt;style type=\”text/css\”&gt;\n#section {\nheight: 232px;\nbackground: url(”+imgSrcUrl+”) no-repeat -26px 0;\n}\n&lt;/style&gt;”;<br />
  }<br />
  else doSomethingElse();<br />
}<br />
else doSomethingElse();<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rjpargeter.com/2008/11/determine-url-of-an-imageplaceholder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
