<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Solspace Support Forums</title>
    <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/" />
    <link rel="self" type="application/atom+xml" href="http://www.solspace.com/forums/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2008</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.0">ExpressionEngine</generator>
    <id>tag:solspace.com,2008:06:24</id>


    <entry>
      <title>jQuery function to handle Rating Submittal</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1036/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1036</id>
      <published>2008-06-02T15:32:11Z</published>
      <updated></updated>
      <author><name>Adam Little</name></author>
      <content type="html">
      <![CDATA[
        <p>I&#8217;ve been able to get the Ratings module/extension installed and working, but showing the drop down options and a submit button isn&#8217;t very appealing.
</p>
<p>
I&#8217;d really like to use the CSS Star Rating Redux for the star ratings on a site, but that is only part of the puzzle.&nbsp; Does anyone have the javascript (using jQuery) that can handle the rating form submittal?
</p>
<p>
Or if there is another method that works better I&#8217;d love to hear it.&nbsp; 
</p>
<p>
If someone could provide some help/insight I would greatly appreciate it!
</p>
<p>
Cheers!
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Rating and Freeform&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1084/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1084</id>
      <published>2008-06-19T07:14:38Z</published>
      <updated></updated>
      <author><name>legendar</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello.
</p>
<p>
Is it possible to use the Rating module with Freeform entries? Or is it only for weblog entries?
</p>
<p>
Thanks in advance
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>custom field search allowed in rankings</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1083/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1083</id>
      <published>2008-06-18T14:11:37Z</published>
      <updated>2008-06-18T14:14:56Z</updated>
      <author><name>don</name></author>
      <content type="html">
      <![CDATA[
        <p>I need to have several custom field searches included in my rankings list. I&#8217;m currently seeing no results though, is this not yet supported? It becomes a real showstopper for me&#8230;
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">rankings&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;segment_2&#125;"&nbsp;</span><span style="color: #0000BB">form_name</span><span style="color: #007700">=</span><span style="color: #DD0000">"review"&nbsp;</span><span style="color: #0000BB">search</span><span style="color: #007700">:</span><span style="color: #0000BB">f1</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;embed:f1&#125;"&nbsp;</span><span style="color: #0000BB">search</span><span style="color: #007700">:</span><span style="color: #0000BB">f2</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;embed:f2&#125;"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"10"&nbsp;</span><span style="color: #0000BB">category</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;embed:thecatid&#125;"&nbsp;</span><span style="color: #0000BB">status</span><span style="color: #007700">=</span><span style="color: #DD0000">"open"&nbsp;</span><span style="color: #0000BB">orderby</span><span style="color: #007700">=</span><span style="color: #DD0000">"title"&nbsp;</span><span style="color: #0000BB">sort</span><span style="color: #007700">=</span><span style="color: #DD0000">"desc"&nbsp;</span><span style="color: #0000BB">paginate</span><span style="color: #007700">=</span><span style="color: #DD0000">"bottom"</span><span style="color: #0000BB">&#125;</span>
</code></div><p>
</p>
<p>
<b>EDIT:</b> never mind, i think my own stupidity struck again!
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Simple listing of all ratings showing stars and with paginiation</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/925/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.925</id>
      <published>2008-04-28T10:53:25Z</published>
      <updated></updated>
      <author><name>KCesp</name></author>
      <content type="html">
      <![CDATA[
        <p>This code works ...
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">rankings&#125;<br /><br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">stats&nbsp;entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;entry_id&#125;"&nbsp;</span><span style="color: #0000BB">theme</span><span style="color: #007700">=</span><span style="color: #DD0000">"default"&nbsp;</span><span style="color: #0000BB">precision</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"&nbsp;</span><span style="color: #0000BB">thousands</span><span style="color: #007700">=</span><span style="color: #DD0000">","&nbsp;</span><span style="color: #0000BB">fractions</span><span style="color: #007700">=</span><span style="color: #DD0000">"."</span><span style="color: #0000BB">&#125;&#123;avg_rating&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">stats&#125;&nbsp;&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br /><br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">rankings&#125;</span>
</code></div><p>
</p>
<p>
... but isn&#8217;t quite what I am looking for.
</p>
<p>
Using this code, I have tried (by manipulating existing tags et al, unsuccessfully) to:
</p>
<p>
1. Have a simple listing (by average rating, starting with the highest rated first, then sorted by date)
<br />
2. Have the list stop at 5 and then paginate for the rest
<br />
3. Include the following tags ... &#123;rating_name&#125; / &#123;rating_date format="%d/%m/%y"&#125; / &#123;rating_date format=&#8217;%h:%i%a&#8217;&#125; ... on this page
<br />
4. Have, instead of the rating number (e.g. 5.0), show the number of stars by way of an image (just like the single entry page) - &#123;stars&#125;&#123;rating&#125;&#123;/stars&#125; ???
</p>
<p>
My questions are:
</p>
<p>
1. Pagination will work in the way I want it to?
<br />
2. Will the tags shown in 3. above work the way I would like to?
<br />
3. Can stars instead of a number be shown?
</p>
<p>
Thanks.
</p>
<p>
KCesp
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Some entries not displaying review/rating</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1055/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1055</id>
      <published>2008-06-09T12:48:27Z</published>
      <updated></updated>
      <author><name>deronsizemore</name></author>
      <content type="html">
      <![CDATA[
        <p>It&#8217;s me again, back with another weird issue with my golf site&#8230; only this time it&#8217;s with the rating module instead of the favorites.
</p>
<p>
Here are the entries that I&#8217;ve found that are not displaying ratings: 
</p>
<p>
1. http://www.kentuckygolfing.com/courses/details/persimmon-ridge-golf-club/
<br />
2. http://www.kentuckygolfing.com/courses/details/olde-stone/
</p>
<p>
Yeah, it&#8217;s Olde-Stone again! <img src="http://www.solspace.com/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" />
</p>
<p>
The weird thing is that the ratings are actually being recorded. I can go to Modules &gt;&gt; Rating and then view all the ratings and they are all there, just not showing on the live site.
</p>
<p>
Thanks
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Ratings not deleted when entry deleted&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1050/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1050</id>
      <published>2008-06-06T12:43:09Z</published>
      <updated></updated>
      <author><name>McCarthy</name></author>
      <content type="html">
      <![CDATA[
        <p>Shouldn&#8217;t ratings get deleted when the corresponding entry is deleted?&nbsp; I&#8217;m finding that when an entry is deleted, the ratings are orphaned.
</p>
<p>
For now I might add code to my own &#8216;delete_entries_loop&#8217; hook handler to take care of it, but obviously it should really be handled by Rating itself.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Email notifications when a rating has been submitted</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/884/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.884</id>
      <published>2008-04-16T03:06:25Z</published>
      <updated></updated>
      <author><name>KCesp</name></author>
      <content type="html">
      <![CDATA[
        <p>Another two queries.
</p>
<p>
1. In EE, the ‘notify me’ option (for Users) when submitting a comment is ...
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"checkbox"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"notify_me"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"&nbsp;</span><span style="color: #007700">/&gt;</span><span style="color: #0000BB">Notify&nbsp;me&nbsp;of&nbsp;additional&nbsp;ratings&nbsp;</span><span style="color: #007700">and&nbsp;</span><span style="color: #0000BB">comments</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
The only mention I can find within the Rating docs is that this option is available ... but I don’t know how to implement it (&#123;notify_me&#125;) from the info available.
</p>
<p>
Could someone please advise?
</p>
<p>
2. I (as Administrator) want to be notified – by email – of all new ratings. I am using notify="myname@myemailaddress.com" within the exp:rating:form tags, but I am not receiving anything (yes, I have checked the spam box).
</p>
<p>
Help?
</p>
<p>
Thanks in advance.
</p>
<p>
KCesp
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>How to: Have a basic AJAX submission with stars</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/606/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.606</id>
      <published>2008-02-09T09:30:56Z</published>
      <updated>2008-05-15T06:26:32Z</updated>
      <author><name>Tony Nibbles</name></author>
      <content type="html">
      <![CDATA[
        <p>Ok, I&#8217;m sure lots of people will find this useful so here are my black and white instructions on how to get nice looking stars with click-to-submit AJAX submission.
</p>
<p>
<b>Things you&#8217;ll need:</b>
</p>
<p>
1. A copy of <b><a href="http://www.prototypejs.org/">prototype.js</a></b>, probably best to get the latest build, though I am using 1.5.1.1
<br />
2. This <b><a href="http://www.uberism.net/stuff/RatingsAssets.zip">zip file of assets</a></b>. This will give you the 3 star images you need to test with, plus the .psd (CS3) should you want to make changes. There&#8217;s also the loading animation in there, though you can go <b><a href="http://www.ajaxload.info/">make your own</a></b> easily enough.
<br />
3. ExpressionEngine and an installed copy of the <b><a href="http://www.solspace.com/docs/c/Rating20">Ratings module</a></b>!
</p>
<p>
Ok, first things first: <b>upload the assets</b> to your /images/ folder.
<br />
<i>For this example, I&#8217;m going to upload them to <b>/images/assets/</b></i>
</p>
<p>
Next, <b>install prototype.js </b>
<br />
This is merely a case of copying in the javascript to a blank template of the type &#8217;<b>static</b>&#8216;.
<br />
<i>For this example I&#8217;m going to create it in <b>/_incs/prototype.js</b></i>
</p>
<p>
Now it&#8217;s time to <b>create the template to return the messages</b> that are fed back when a user submits their rating. [/size]
<br />
<i>For this example I&#8217;m going to call it <b>/_incs/ajax_rating_message</b></i>
<br />
This is another easy step, simply put this in to the template:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;message&#125;</span>
</code></div><p>
</p>
<p>
OK, now we need to <b>create our main page</b>, the weblog entry page.
<br />
You probably already have this setup, add just need to add in the new code, so I&#8217;m going to keep the template as clean as possible.
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;!</span><span style="color: #0000BB">DOCTYPE&nbsp;html&nbsp;</span><span style="color: #007700">PUBLIC&nbsp;</span><span style="color: #DD0000">"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">html&nbsp;xmlns</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://www.w3.org/1999/xhtml"</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">meta&nbsp;http</span><span style="color: #007700">-</span><span style="color: #0000BB">equiv</span><span style="color: #007700">=</span><span style="color: #DD0000">"Content-Type"&nbsp;</span><span style="color: #0000BB">content</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/html;&nbsp;charset=utf-8"&nbsp;</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">My&nbsp;rated&nbsp;entry</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;<br /><br />&lt;!--&nbsp;</span><span style="color: #0000BB">This&nbsp;is&nbsp;the&nbsp;link&nbsp;to&nbsp;your&nbsp;prototype</span><span style="color: #007700">.</span><span style="color: #0000BB">js&nbsp;file&nbsp;</span><span style="color: #007700">--&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/_incs/prototype.js"&nbsp;</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /><br /></span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br /><br /></span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"my_weblog"&nbsp;</span><span style="color: #0000BB">disable</span><span style="color: #007700">=</span><span style="color: #DD0000">"trackbacks"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"</span><span style="color: #0000BB">&#125;<br /><br />&#123;title&#125;<br /><br />&#123;summary&#125;<br /><br />&#123;body&#125;<br /><br /></span><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">NOTE</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">The&nbsp;template&nbsp;parameter&nbsp;pointing&nbsp;to&nbsp;our&nbsp;message&nbsp;template&nbsp;doesnt&nbsp;seem&nbsp;to&nbsp;like&nbsp;having&nbsp;a&nbsp;leading&nbsp;</span><span style="color: #007700">/&nbsp;</span><span style="color: #0000BB">in&nbsp;its&nbsp;path&nbsp;&nbsp;</span><span style="color: #007700">--&gt;<br /></span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">form&nbsp;entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;entry_id&#125;"&nbsp;</span><span style="color: #0000BB">form_name</span><span style="color: #007700">=</span><span style="color: #DD0000">"rating"&nbsp;</span><span style="color: #0000BB">form_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"ratingform&#123;entry_id&#125;"&nbsp;</span><span style="color: #0000BB">template</span><span style="color: #007700">=</span><span style="color: #DD0000">"_incs/ajax_rating_message"</span><span style="color: #0000BB">&#125;<br /><br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"</span><span style="color: #007700">&gt;<br />&lt;!--&nbsp;<br /><br />function&nbsp;</span><span style="color: #0000BB">starsOver</span><span style="color: #007700">(</span><span style="color: #0000BB">target</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #007700">for&nbsp;(</span><span style="color: #0000BB">i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">5</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;=&nbsp;$(</span><span style="color: #0000BB">target</span><span style="color: #007700">).</span><span style="color: #0000BB">alt</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-over.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;=&nbsp;$(</span><span style="color: #DD0000">'rating'</span><span style="color: #007700">).</span><span style="color: #0000BB">value</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-on.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-off.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&#125;<br />&nbsp;&#125;<br />&#125;&nbsp;<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">starsOut</span><span style="color: #007700">(</span><span style="color: #0000BB">target</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #007700">for&nbsp;(</span><span style="color: #0000BB">i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">5</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;=&nbsp;$(</span><span style="color: #DD0000">'rating'</span><span style="color: #007700">).</span><span style="color: #0000BB">value</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-on.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-off.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&#125;<br />&#125;&nbsp;<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">setStar</span><span style="color: #007700">(</span><span style="color: #0000BB">target</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #007700">for&nbsp;(</span><span style="color: #0000BB">i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;=</span><span style="color: #0000BB">5</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;=&nbsp;$(</span><span style="color: #0000BB">target</span><span style="color: #007700">).</span><span style="color: #0000BB">alt</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-on.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'star'</span><span style="color: #007700">+</span><span style="color: #0000BB">i</span><span style="color: #007700">).</span><span style="color: #0000BB">src&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/images/assets/star-off.png"</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&#125;<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'rating'</span><span style="color: #007700">).</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">=&nbsp;$(</span><span style="color: #0000BB">target</span><span style="color: #007700">).</span><span style="color: #0000BB">alt</span><span style="color: #007700">;<br />&nbsp;new&nbsp;</span><span style="color: #0000BB">Ajax</span><span style="color: #007700">.</span><span style="color: #0000BB">Updater</span><span style="color: #007700">(</span><span style="color: #DD0000">'ratingresult'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;onComplete</span><span style="color: #007700">:function(</span><span style="color: #0000BB">request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">json</span><span style="color: #007700">)</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;Element</span><span style="color: #007700">.</span><span style="color: #0000BB">hide</span><span style="color: #007700">(</span><span style="color: #DD0000">'ratingloading'</span><span style="color: #007700">)<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">onLoading</span><span style="color: #007700">:function(</span><span style="color: #0000BB">request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">json</span><span style="color: #007700">)</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;Element</span><span style="color: #007700">.</span><span style="color: #0000BB">show</span><span style="color: #007700">(</span><span style="color: #DD0000">'ratingloading'</span><span style="color: #007700">)<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">parameters</span><span style="color: #007700">:</span><span style="color: #0000BB">Form</span><span style="color: #007700">.</span><span style="color: #0000BB">serialize</span><span style="color: #007700">(</span><span style="color: #DD0000">'rating&#123;entry_id&#125;'</span><span style="color: #007700">),</span><span style="color: #0000BB">method</span><span style="color: #007700">:</span><span style="color: #DD0000">'post'</span><span style="color: #007700">,</span><span style="color: #0000BB">asynchronous</span><span style="color: #007700">:</span><span style="color: #0000BB">true<br />&nbsp;&#125;</span><span style="color: #007700">);&nbsp;return&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">--&gt;<br /><br /></span><span style="color: #0000BB">&lt;/script&gt;<br /><br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/spacer.gif"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star0"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"0"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/star-off.png"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star1"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"&nbsp;</span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"setStar(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/star-off.png"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star2"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"&nbsp;</span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"setStar(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/star-off.png"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star3"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"3"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"&nbsp;</span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"setStar(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/star-off.png"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star4"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"4"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"&nbsp;</span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"setStar(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/star-off.png"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"21"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"star5"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"5"&nbsp;</span><span style="color: #0000BB">onMouseOver</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOver(this.id)"&nbsp;</span><span style="color: #0000BB">onMouseOut</span><span style="color: #007700">=</span><span style="color: #DD0000">"starsOut(this.id)"&nbsp;</span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"setStar(this.id)"</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"hidden"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"rating"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"rating"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"0"</span><span style="color: #007700">/&gt;<br /><br />&lt;!--&nbsp;</span><span style="color: #0000BB">This&nbsp;is&nbsp;our&nbsp;loading&nbsp;image&nbsp;</span><span style="color: #007700">--&gt;<br />&lt;</span><span style="color: #0000BB">div&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"ratingloading"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"display:&nbsp;none"</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">img&nbsp;src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/assets/loading.gif"&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"16"&nbsp;</span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"16"&nbsp;</span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"Loading"</span><span style="color: #007700">/&gt;<br />&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br /><br />&lt;!--&nbsp;</span><span style="color: #0000BB">This&nbsp;is&nbsp;the&nbsp;div&nbsp;which&nbsp;will&nbsp;contain&nbsp;the&nbsp;text&nbsp;fed&nbsp;back&nbsp;from&nbsp;our&nbsp;message&nbsp;template&nbsp;</span><span style="color: #007700">--&gt;<br />&lt;</span><span style="color: #0000BB">div&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"ratingresult"</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br /><br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">form&#125;<br /><br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">count&nbsp;entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;entry_id&#125;"</span><span style="color: #0000BB">&#125;Number&nbsp;of&nbsp;ratings</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;rating_count&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">count&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br /><br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;&#125;<br /><br /></span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
And finally - try it out!
</p>
<p>
I am hoping this will help a few people out. 
</p>
<p>
For those of you with less experience - If you can&#8217;t get it to work, try figuring it out. Try Google, hunt for an answer and if there&#8217;s still no luck, <i>then</i> return here <img src="http://www.solspace.com/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" />
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Trying to show the URL of entry on New Rating notification email</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/1016/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.1016</id>
      <published>2008-05-23T12:58:12Z</published>
      <updated>2008-05-23T12:58:25Z</updated>
      <author><name>deronsizemore</name></author>
      <content type="html">
      <![CDATA[
        <p>I&#8217;ve had this problem before and it was answered here by Pie Man: <a href="http://www.solspace.com/forums/viewthread/770/#3353">http://www.solspace.com/forums/viewthread/770/#3353</a>
</p>
<p>
Suggestion was to simply use: http://www.site.com/template_group/template/&#123;entry_id&#125;
</p>
<p>
At the time, I did that and it worked just fine. I noticed that here recently that for whatever reason it isn&#8217;t working now in the notification emails. All I get is a url that looks like this in the notification email when a new rating is left: http://www.kentuckygolfing.com/courses/details/&#123;entry_id&#125;
</p>
<p>
Any ideas on what might be going on and what I can change to fix it? To my knowledge I&#8217;ve not changed anything to make it stop working.
</p>
<p>
Here is my rating email template:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">Someone&nbsp;has&nbsp;posted&nbsp;a&nbsp;rating</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">Here&nbsp;are&nbsp;the&nbsp;details</span><span style="color: #007700">:<br /><br /></span><span style="color: #0000BB">Entry&nbsp;Date</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;entry_date&#125;<br /><br />Entry</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//www.kentuckygolfing.com/courses/details/&#123;url_title&#125;/&nbsp;<br /></span><span style="color: #0000BB">Name</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;name&#125;<br />Email</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;email&#125;</span>
</code></div><p>
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Vote&#45;style with no commenting, hidden scores on per&#45;weblog&#45;entry&#45;basis&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.solspace.com/forums/viewthread/999/" />      
      <id>tag:solspace.com,2008:forums/viewthread/.999</id>
      <published>2008-05-20T22:51:45Z</published>
      <updated></updated>
      <author><name>Oxygen Smith</name></author>
      <content type="html">
      <![CDATA[
        <p>Quick and possibly dumb questions before I download Rating.
</p>
<p>
From reading Tony Nibbles&#8217; thread about AJAX-ifying the rating so it&#8217;s like a simple vote-rating system, I take it that it can be possible to have a vote rating without the comment box&#8230; more or less out of the box (and before AJAX-ifying it)? I&#8217;d just much much rather have weblog entry comments be a separate beast than voting.
</p>
<p>
I&#8217;d also, if it&#8217;s possible, like the votes and scores to be hidden until a certain date, on a per weblog entry basis. 
</p>
<p>
Are both of these doable? I&#8217;m guessing yes, but I just want to make sure.
</p>
<p>
Cheers! Thanks!
</p>
<p>
R o B
</p>
      ]]>
      </content>
    </entry>


</feed>