<?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 on: Creating A Donation Meter With Donate Plus</title>
	<atom:link href="http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/feed/" rel="self" type="application/rss+xml" />
	<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/</link>
	<description>Coding Tutorials, hints &#38; tips in PHP, jQuery, CSS &#38; HTML</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ansar Shezad</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15422</link>
		<dc:creator>Ansar Shezad</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15422</guid>
		<description>ok i was trying to add this to my html website.</description>
		<content:encoded><![CDATA[<p>ok i was trying to add this to my html website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15421</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15421</guid>
		<description>That means the function &lt;code&gt;do_shortcode()&lt;/code&gt; has not been defined.

Since it is a primary WordPress function I can only think that you are either running an exceptionally old version of WordPress that doesn&#039;t have shortcode support, or you aren&#039;t running WordPress?

This tutorial is designed for Donate Plus which is a plugin for the blogging application WordPress.</description>
		<content:encoded><![CDATA[<p>That means the function <code>do_shortcode()</code> has not been defined.</p>
<p>Since it is a primary WordPress function I can only think that you are either running an exceptionally old version of WordPress that doesn&#8217;t have shortcode support, or you aren&#8217;t running WordPress?</p>
<p>This tutorial is designed for Donate Plus which is a plugin for the blogging application WordPress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansar Shezad</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15420</link>
		<dc:creator>Ansar Shezad</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15420</guid>
		<description>im getting the following error now:

Fatal error: Call to undefined function do_shortcode() 


[php]


&lt;? php
 $target = 1200;
 $total = do_shortcode(&quot;[donatetotal prefix=&#039;0&#039; suffix=&#039;0&#039; type=&#039;0&#039;]&quot;); 
 $total = intval($total);



 //Add any fund additions here

 if($total != 50) {
   $percent = ($total / $target) * 100;
   $fill = round((132 / 100) * $percent);
 } else {
   $percent = 0;
   $fill = 0;
 }
?&gt;


&lt;div class=&quot;outer_bar&quot;&gt;
&lt;div class=&quot;total_display&quot;&gt;£&lt;?php echo $total; ?&gt; / £&lt;?php echo $target; ?&gt;&lt;/div&gt;
&lt;div class=&quot;inner_bar&quot; style=&quot;width:&lt;?php echo $fill; ?&gt;px;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

[/php]</description>
		<content:encoded><![CDATA[<p>im getting the following error now:</p>
<p>Fatal error: Call to undefined function do_shortcode() </p>
<pre class="brush: php;">

&lt;? php
 $target = 1200;
 $total = do_shortcode(&quot;[donatetotal prefix='0' suffix='0' type='0']&quot;);
 $total = intval($total);

 //Add any fund additions here

 if($total != 50) {
   $percent = ($total / $target) * 100;
   $fill = round((132 / 100) * $percent);
 } else {
   $percent = 0;
   $fill = 0;
 }
?&gt;

&lt;div class=&quot;outer_bar&quot;&gt;
&lt;div class=&quot;total_display&quot;&gt;£&lt;?php echo $total; ?&gt; / £&lt;?php echo $target; ?&gt;&lt;/div&gt;
&lt;div class=&quot;inner_bar&quot; style=&quot;width:&lt;?php echo $fill; ?&gt;px;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15419</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15419</guid>
		<description>You&#039;ve missed your PHP tags out. I can&#039;t put them in as WordPress doesn&#039;t like them, and I kind of assume you&#039;ll know to put them in.

The code should be in:
[php]
&lt;? php
code is here
?&gt;
[/php]
Take out the space from between the &lt;code&gt;?&lt;/code&gt; and the &lt;code&gt;php&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve missed your PHP tags out. I can&#8217;t put them in as WordPress doesn&#8217;t like them, and I kind of assume you&#8217;ll know to put them in.</p>
<p>The code should be in:</p>
<pre class="brush: php;">
&lt;? php
code is here
?&gt;
</pre>
<p>Take out the space from between the <code>?</code> and the <code>php</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansar Shezad</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15418</link>
		<dc:creator>Ansar Shezad</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15418</guid>
		<description>sorry here it is....

[php]
 $target = 1200;
 $total = do_shortcode(&quot;[donatetotal prefix=&#039;0&#039; suffix=&#039;0&#039; type=&#039;0&#039;]&quot;); //remove the spaces...
 $total = intval($total);



 //Add any fund additions here

 if($total != 0) {
   $percent = ($total / $target) * 100;
   $fill = round((132 / 100) * $percent);
 } else {
   $percent = 0;
   $fill = 0;
 }



&lt;div class=&quot;outer_bar&quot;&gt;
&lt;div class=&quot;total_display&quot;&gt;£&lt;?php echo $total; ?&gt; / £&lt;?php echo $target; ?&gt;&lt;/div&gt;
&lt;div class=&quot;inner_bar&quot; style=&quot;width:&lt;?php echo $fill; ?&gt;px;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

[/php]</description>
		<content:encoded><![CDATA[<p>sorry here it is&#8230;.</p>
<pre class="brush: php;">
 $target = 1200;
 $total = do_shortcode(&quot;[donatetotal prefix='0' suffix='0' type='0']&quot;); //remove the spaces...
 $total = intval($total);

 //Add any fund additions here

 if($total != 0) {
   $percent = ($total / $target) * 100;
   $fill = round((132 / 100) * $percent);
 } else {
   $percent = 0;
   $fill = 0;
 }

&lt;div class=&quot;outer_bar&quot;&gt;
&lt;div class=&quot;total_display&quot;&gt;£&lt;?php echo $total; ?&gt; / £&lt;?php echo $target; ?&gt;&lt;/div&gt;
&lt;div class=&quot;inner_bar&quot; style=&quot;width:&lt;?php echo $fill; ?&gt;px;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15417</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15417</guid>
		<description>Not around the code on your website, the code that you paste in here. If you don&#039;t I won&#039;t be able to see what is going wrong as WordPress strips code that looks like PHP.</description>
		<content:encoded><![CDATA[<p>Not around the code on your website, the code that you paste in here. If you don&#8217;t I won&#8217;t be able to see what is going wrong as WordPress strips code that looks like PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansar Shezad</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15416</link>
		<dc:creator>Ansar Shezad</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15416</guid>
		<description>Yes i have done that, it doesnt display, i have added [php] and [/php] around the PHP section of the code. still nothing appears on my website.</description>
		<content:encoded><![CDATA[<p>Yes i have done that, it doesnt display, i have added
<pre class="brush: php;"> and </pre>
<p> around the PHP section of the code. still nothing appears on my website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15415</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15415</guid>
		<description>Can you put the code between [ php ] [ /php ] tags. If you don&#039;t WP will strip the code or break it (as it has done). Remember to take the spaces out.</description>
		<content:encoded><![CDATA[<p>Can you put the code between [ php ] [ /php ] tags. If you don&#8217;t WP will strip the code or break it (as it has done). Remember to take the spaces out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansar Shezad</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15414</link>
		<dc:creator>Ansar Shezad</dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15414</guid>
		<description>HI Paul

Sorry for the trouble, this is exactly my code and nothing appears on the website:


 $target = 1200;
 $total = do_shortcode(&quot;[donatetotal prefix=&#039;0&#039; suffix=&#039;0&#039;  type=&#039;0&#039;]&quot;); 
 $total = intval($total);


 //Add any fund additions here

 if($total != 0) {
   $percent = ($total / $target) * 100;
   $fill = round((132 / 100) * $percent);
 } else {
   $percent = 0;
   $fill = 0;
 }




£ / £
&lt;div class=&quot;inner_bar&quot; style=&quot;width:px;&quot;&gt;
</description>
		<content:encoded><![CDATA[<p>HI Paul</p>
<p>Sorry for the trouble, this is exactly my code and nothing appears on the website:</p>
<p> $target = 1200;<br />
 $total = do_shortcode(&#8220;[donatetotal prefix='0' suffix='0'  type='0']&#8220;);<br />
 $total = intval($total);</p>
<p> //Add any fund additions here</p>
<p> if($total != 0) {<br />
   $percent = ($total / $target) * 100;<br />
   $fill = round((132 / 100) * $percent);<br />
 } else {<br />
   $percent = 0;<br />
   $fill = 0;<br />
 }</p>
<p>£ / £<br />
&lt;div class=&quot;inner_bar&quot; style=&quot;width:px;&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/creating-a-donation-meter-with-donate-plus/comment-page-1/#comment-15413</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 13:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1487#comment-15413</guid>
		<description>[php]
$total = do_shortcode(&quot;[ donatetotal prefix=&#039;0&#039; suffix=&#039;0&#039;  type=&#039;0&#039; ]&quot;); //remove the spaces…
[/php]

You haven&#039;t removed the spaces as said in the comment. It should be:
[php]
$total = do_shortcode(&quot;[donatetotal prefix=&#039;0&#039; suffix=&#039;0&#039;  type=&#039;0&#039;]&quot;); //remove the spaces…
[/php]</description>
		<content:encoded><![CDATA[<pre class="brush: php;">
$total = do_shortcode(&quot;[ donatetotal prefix='0' suffix='0'  type='0' ]&quot;); //remove the spaces…
</pre>
<p>You haven&#8217;t removed the spaces as said in the comment. It should be:</p>
<pre class="brush: php;">
$total = do_shortcode(&quot;[donatetotal prefix='0' suffix='0'  type='0']&quot;); //remove the spaces…
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
