<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for WPsites</title>
	<atom:link href="http://www.wpsites.co.uk/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpsites.co.uk</link>
	<description>Wordpress hosting &#38; development</description>
	<lastBuildDate>Fri, 02 Dec 2011 20:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Gravity Forms &#8211; adding UK specific address fields by Ciaran Mahoney</title>
		<link>http://www.wpsites.co.uk/468-gravity-forms-adding-uk-specific-address-field.php#comment-489</link>
		<dc:creator>Ciaran Mahoney</dc:creator>
		<pubDate>Fri, 02 Dec 2011 20:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpsites.co.uk/?p=468#comment-489</guid>
		<description>Thanks for the code! I modified to suit Australia... Hope this helps someone else looking like I was! Cheers

add_filter(&quot;gform_address_types&quot;, &quot;aus_address&quot;, 10, 2);
function aus_address($address_types, $form_id){
$address_types[&quot;australia&quot;] = array(
&quot;label&quot; =&gt; &quot;Australia&quot;,
&quot;country&quot; =&gt; &quot;Australia&quot;,
&quot;zip_label&quot; =&gt; &quot;Postcode&quot;,
&quot;state_label&quot; =&gt; &quot;State&quot;,
&quot;states&quot; =&gt; array(&quot;NT&quot;=&gt;&quot;NT&quot;, &quot;ACT&quot;=&gt;&quot;ACT&quot;,&quot;NSW&quot;=&gt;&quot;NSW&quot;, &quot;QLD&quot;=&gt;&quot;QLD&quot;, &quot;VIC&quot;=&gt;&quot;VIC&quot;, &quot;WA&quot;=&gt;&quot;WA&quot;,&quot;SA&quot;=&gt;&quot;SA&quot;, &quot;TAS&quot; =&gt; &quot;TAS&quot;)
);
return $address_types;
}</description>
		<content:encoded><![CDATA[<p>Thanks for the code! I modified to suit Australia&#8230; Hope this helps someone else looking like I was! Cheers</p>
<p>add_filter(&#8220;gform_address_types&#8221;, &#8220;aus_address&#8221;, 10, 2);<br />
function aus_address($address_types, $form_id){<br />
$address_types["australia"] = array(<br />
&#8220;label&#8221; =&gt; &#8220;Australia&#8221;,<br />
&#8220;country&#8221; =&gt; &#8220;Australia&#8221;,<br />
&#8220;zip_label&#8221; =&gt; &#8220;Postcode&#8221;,<br />
&#8220;state_label&#8221; =&gt; &#8220;State&#8221;,<br />
&#8220;states&#8221; =&gt; array(&#8220;NT&#8221;=&gt;&#8221;NT&#8221;, &#8220;ACT&#8221;=&gt;&#8221;ACT&#8221;,&#8221;NSW&#8221;=&gt;&#8221;NSW&#8221;, &#8220;QLD&#8221;=&gt;&#8221;QLD&#8221;, &#8220;VIC&#8221;=&gt;&#8221;VIC&#8221;, &#8220;WA&#8221;=&gt;&#8221;WA&#8221;,&#8221;SA&#8221;=&gt;&#8221;SA&#8221;, &#8220;TAS&#8221; =&gt; &#8220;TAS&#8221;)<br />
);<br />
return $address_types;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gravity Forms &#8211; adding UK specific address fields by Simon</title>
		<link>http://www.wpsites.co.uk/468-gravity-forms-adding-uk-specific-address-field.php#comment-488</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 28 Nov 2011 17:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpsites.co.uk/?p=468#comment-488</guid>
		<description>I can&#039;t see a way to do that using the &#039;gform_address_types&#039; filter as above. 

To modify the city label you&#039;ll probably need to use the &#039;gform_address_city&#039; filter. Returning the text you&#039;d like it to be: &#039;Town/City&#039;</description>
		<content:encoded><![CDATA[<p>I can&#8217;t see a way to do that using the &#8216;gform_address_types&#8217; filter as above. </p>
<p>To modify the city label you&#8217;ll probably need to use the &#8216;gform_address_city&#8217; filter. Returning the text you&#8217;d like it to be: &#8216;Town/City&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gravity Forms &#8211; adding UK specific address fields by Sam Cranwell</title>
		<link>http://www.wpsites.co.uk/468-gravity-forms-adding-uk-specific-address-field.php#comment-487</link>
		<dc:creator>Sam Cranwell</dc:creator>
		<pubDate>Mon, 28 Nov 2011 16:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpsites.co.uk/?p=468#comment-487</guid>
		<description>Awesome fix! Works a treat - can the label for the City field be changed too?

I tried adding this into the php you wrote but nothing:

&quot;city_label&quot; =&gt; &quot;Town/City&quot;,

Cheers, Sam</description>
		<content:encoded><![CDATA[<p>Awesome fix! Works a treat &#8211; can the label for the City field be changed too?</p>
<p>I tried adding this into the php you wrote but nothing:</p>
<p>&#8220;city_label&#8221; =&gt; &#8220;Town/City&#8221;,</p>
<p>Cheers, Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing shortcodes in TinyMCE with a graphic by Anonymous</title>
		<link>http://www.wpsites.co.uk/435-replacing-inserted-shortcodes-in-tinymce-with-a-graphic.php#comment-486</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 29 Oct 2011 09:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpsites.co.uk/?p=435#comment-486</guid>
		<description>I put the code together as an example for anyone who maintains a plugin that uses short codes. I suppose really short codes are just that &quot;code&quot;, that should only be visible in the code view, in the visual view there should be a nice user friendly graphic.

If you wanted to use this in your spots plugin you could maybe even take it a step further. Instead of using the spots icon to replace the short code you could use an image attached to the spot template (spot-templatename.png), defaulting to the standard icon. So then a user would be able to see easily what type/style of spot they have inserted.

On this site http://www.theweddingcatchers.com/ for instance, I used the spots plugin for the testimonials on the right. So the user only has to create an unordered list and the spot plugin and spot template take care of the styling. Then whoever implements the spots plugin and creates the spot templates can add a small graphic to represent that particular style of spot (see attached image)

You can also hook into the click event of your short code graphic to display further options similar to what the gallery does. So you guys could show an overlaid edit icon on your short code graphic that when clicked would open the same window that configured the spot initially.</description>
		<content:encoded><![CDATA[<p>I put the code together as an example for anyone who maintains a plugin that uses short codes. I suppose really short codes are just that &#8220;code&#8221;, that should only be visible in the code view, in the visual view there should be a nice user friendly graphic.</p>
<p>If you wanted to use this in your spots plugin you could maybe even take it a step further. Instead of using the spots icon to replace the short code you could use an image attached to the spot template (spot-templatename.png), defaulting to the standard icon. So then a user would be able to see easily what type/style of spot they have inserted.</p>
<p>On this site <a href="http://www.theweddingcatchers.com/" rel="nofollow">http://www.theweddingcatchers.com/</a> for instance, I used the spots plugin for the testimonials on the right. So the user only has to create an unordered list and the spot plugin and spot template take care of the styling. Then whoever implements the spots plugin and creates the spot templates can add a small graphic to represent that particular style of spot (see attached image)</p>
<p>You can also hook into the click event of your short code graphic to display further options similar to what the gallery does. So you guys could show an overlaid edit icon on your short code graphic that when clicked would open the same window that configured the spot initially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing shortcodes in TinyMCE with a graphic by Robert O 'Rourke</title>
		<link>http://www.wpsites.co.uk/435-replacing-inserted-shortcodes-in-tinymce-with-a-graphic.php#comment-485</link>
		<dc:creator>Robert O 'Rourke</dc:creator>
		<pubDate>Fri, 28 Oct 2011 15:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpsites.co.uk/?p=435#comment-485</guid>
		<description>Awesome :) Really useful stuff Simon, we&#039;ll be sure to get this into a release as soon as we can.

Thanks for coming to SWIG as well, was good to meet you (however briefly!)</description>
		<content:encoded><![CDATA[<p>Awesome <img src='http://www.wpsites.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Really useful stuff Simon, we&#8217;ll be sure to get this into a release as soon as we can.</p>
<p>Thanks for coming to SWIG as well, was good to meet you (however briefly!)</p>
]]></content:encoded>
	</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.wpsites.co.uk @ 2012-02-08 07:40:29 -->
