<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Schneimi's Dev Weblog</title>
	<atom:link href="http://schneimi.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://schneimi.wordpress.com</link>
	<description>Experiences in software development</description>
	<lastBuildDate>Mon, 02 Nov 2009 19:11:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Star rating plugin for CakePHP by schneimi</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-136</link>
		<dc:creator>schneimi</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-136</guid>
		<description>Thx for showing the css problem, with two small changes on the plugin the problem can also be solved.

rating\views\helpers\rating.php: line 58
[sourcecode language=&quot;php&quot;]
$output .= $this-&gt;Form-&gt;label($model.&#039;.rating&#039;, 
                              $htmlImage, 
                              array(&#039;for&#039; =&gt; $model.&#039;Rating&#039;.ucfirst($options[&#039;name&#039;]).$id.$i,
                                    &#039;class&#039; =&gt; &#039;rating&#039;));
[/sourcecode]

rating\vendors\css\rating.css
[sourcecode language=&quot;php&quot;]
div.rating label {
  display: inline;
}
[/sourcecode]</description>
		<content:encoded><![CDATA[<p>Thx for showing the css problem, with two small changes on the plugin the problem can also be solved.</p>
<p>rating\views\helpers\rating.php: line 58</p>
<pre class="brush: php;">
$output .= $this-&gt;Form-&gt;label($model.'.rating',
                              $htmlImage,
                              array('for' =&gt; $model.'Rating'.ucfirst($options['name']).$id.$i,
                                    'class' =&gt; 'rating'));
</pre>
<p>rating\vendors\css\rating.css</p>
<pre class="brush: php;">
div.rating label {
  display: inline;
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by schneimi</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-135</link>
		<dc:creator>schneimi</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-135</guid>
		<description>Hi Robin,

the notice is catched in the latest version 2.2, I just forgot to update the blog, you can download it now.</description>
		<content:encoded><![CDATA[<p>Hi Robin,</p>
<p>the notice is catched in the latest version 2.2, I just forgot to update the blog, you can download it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by Robin</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-134</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Mon, 02 Nov 2009 10:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-134</guid>
		<description>&quot;In my application, the rating is displayed vertically.&quot; 
-&gt; This problem occurred because of the default style of Cake PHP. 

I  commented  &#039;display: block; &#039; for label class in cake.generic.css and its working fine now.
label {
	/*display: block; */
}</description>
		<content:encoded><![CDATA[<p>&#8220;In my application, the rating is displayed vertically.&#8221;<br />
-&gt; This problem occurred because of the default style of Cake PHP. </p>
<p>I  commented  &#8216;display: block; &#8216; for label class in cake.generic.css and its working fine now.<br />
label {<br />
	/*display: block; */<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by Robin</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-133</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Mon, 02 Nov 2009 09:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-133</guid>
		<description>Schneimi,

In my application, the rating is displayed vertically. Should I change any configuration to display it vertically ?</description>
		<content:encoded><![CDATA[<p>Schneimi,</p>
<p>In my application, the rating is displayed vertically. Should I change any configuration to display it vertically ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by Robin</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-132</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Mon, 02 Nov 2009 09:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-132</guid>
		<description>Hi schneimi, 
 Thanx for this great plugin. It works fine for me.. Everything looks great except it  throws a Notice 

Notice (8): Undefined index:  fallback [APP\plugins\rating\controllers\ratings_controller.php, line 189]</description>
		<content:encoded><![CDATA[<p>Hi schneimi,<br />
 Thanx for this great plugin. It works fine for me.. Everything looks great except it  throws a Notice </p>
<p>Notice (8): Undefined index:  fallback [APP\plugins\rating\controllers\ratings_controller.php, line 189]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by Francis</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-123</link>
		<dc:creator>Francis</dc:creator>
		<pubDate>Thu, 20 Aug 2009 15:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-123</guid>
		<description>Thanks
Maybe if it shows as warning and not an error will be less confusing. ;)</description>
		<content:encoded><![CDATA[<p>Thanks<br />
Maybe if it shows as warning and not an error will be less confusing. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by schneimi</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-122</link>
		<dc:creator>schneimi</dc:creator>
		<pubDate>Thu, 20 Aug 2009 08:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-122</guid>
		<description>Yes, you should set showErrors to false, this is just for installation to check if it works when the user is logged in. I will think about how to make this less confusing.

The User.id 0 should not be used as a valid user, thx for that information I will fix it.

The &quot;Please login to rate&quot; message appears on mouse over if showMouseOverMessages is set true and no User.id is found in session.</description>
		<content:encoded><![CDATA[<p>Yes, you should set showErrors to false, this is just for installation to check if it works when the user is logged in. I will think about how to make this less confusing.</p>
<p>The User.id 0 should not be used as a valid user, thx for that information I will fix it.</p>
<p>The &#8220;Please login to rate&#8221; message appears on mouse over if showMouseOverMessages is set true and no User.id is found in session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by Francis</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-121</link>
		<dc:creator>Francis</dc:creator>
		<pubDate>Wed, 19 Aug 2009 18:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-121</guid>
		<description>I dont know hoy to make an user not logged in not to vote!
If i dont write the User.id in the Session I get the error The User id was not found at &quot;User.id&quot; in the session

And if I set the user.id session to an id that does not exist like 0 for example, then it takes it as valid and let it votes and saves it on the ratings with user_id 0

Should I just left the session blank and place the show errors to false? how does the &#039;Please login to rate&#039; message activates?

Hope i explained myself rigth, i apologize for my english</description>
		<content:encoded><![CDATA[<p>I dont know hoy to make an user not logged in not to vote!<br />
If i dont write the User.id in the Session I get the error The User id was not found at &#8220;User.id&#8221; in the session</p>
<p>And if I set the user.id session to an id that does not exist like 0 for example, then it takes it as valid and let it votes and saves it on the ratings with user_id 0</p>
<p>Should I just left the session blank and place the show errors to false? how does the &#8216;Please login to rate&#8217; message activates?</p>
<p>Hope i explained myself rigth, i apologize for my english</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by peter</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-120</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 29 Jul 2009 23:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-120</guid>
		<description>Thanks :)</description>
		<content:encoded><![CDATA[<p>Thanks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Star rating plugin for CakePHP by schneimi</title>
		<link>http://schneimi.wordpress.com/2009/05/25/star-rating-plugin-for-cakephp/#comment-119</link>
		<dc:creator>schneimi</dc:creator>
		<pubDate>Tue, 28 Jul 2009 20:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://schneimi.wordpress.com/?p=140#comment-119</guid>
		<description>Hi, 

this is not possible by default, but you just have to do two quick changes to reach that behavior.

1)  add a new setting in app/config/plugin.rating.php
[sourcecode language=&quot;php&quot;]
$config[&#039;Rating.disable&#039;] = true;
[/sourcecode]

2) use it in the condition in the rating/views/view.ctp
[sourcecode language=&quot;php&quot;]
  // decision to enable or disable the rating
  $enable = $session-&gt;check(Configure::read(&#039;Rating.userIdInSession&#039;)) &amp;&amp; !Configure::read(&#039;Rating.disable&#039;)
              &amp;&amp; (Configure::read(&#039;Rating.allowChange&#039;) &#124;&#124; (!Configure::read(&#039;Rating.allowChange&#039;) &amp;&amp; $data[&#039;userRating&#039;] == 0));
[/sourcecode]</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>this is not possible by default, but you just have to do two quick changes to reach that behavior.</p>
<p>1)  add a new setting in app/config/plugin.rating.php</p>
<pre class="brush: php;">
$config['Rating.disable'] = true;
</pre>
<p>2) use it in the condition in the rating/views/view.ctp</p>
<pre class="brush: php;">
  // decision to enable or disable the rating
  $enable = $session-&gt;check(Configure::read('Rating.userIdInSession')) &amp;&amp; !Configure::read('Rating.disable')
              &amp;&amp; (Configure::read('Rating.allowChange') || (!Configure::read('Rating.allowChange') &amp;&amp; $data['userRating'] == 0));
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
