Just purchased the rating module and am trying to use it on on a current site I’m developing. I’ve ran into a couple problems and have a couple questions about it as well.
Problems:
1. For some reason, I’m getting some notice messages at the top of an entry which already has received a rating:
Notice: Undefined index: sum_3 in /www/eh6420/public_html/kygolfing/system/modules/rating/mod.rating.php on line 3500
Notice: Undefined index: sum_4 in /www/eh6420/public_html/kygolfing/system/modules/rating/mod.rating.php on line 3500
Here is the entry this is happening on: http://www.kentuckygolfing.com/courses/details/valhalla-golf-club
Here is another entry which has not received a rating yet (no notices): http://www.kentuckygolfing.com/courses/details/kearney-hill-golf-links
EDIT: I got the above error message to go away. I ended up just uninstalling the module and re-installing it. That seemed to fix that.
2. As you can see, at the very top of the entry (next to the Google map) I’m showing the current rating. I’m showing this current rating use the example that was given in the docs:
{exp:rating:stats entry_id="{entry_id}" theme="default" scale="5"}
{stars_overall_avg}
<p>Based on {overall_count} review{if overall_count !="1"}s{/if}</p>
{/exp:rating:stats}
It works just fine once a rating has been received: http://www.kentuckygolfing.com/courses/details/valhalla-golf-club but if a rating has not been received yet, it shows nothing. I was under the impression that it would show grayed out stars until the first rating was received? What am I doing wrong here?
-----------------------------------------------------------------------------
Questions:
1. I have removed the “return” parameter from the rating form. I’m just using the default “thank you” message with redirect. Is there any way to speed up the redirect? Seems like it took around 5 seconds to finally redirect me back to the entry.
2. On the Modules >> Rating >> Ratings Tab (Manage Entries) it isn’t showing the name and email of the user that left the rating. I’m using just the simple name and email input fields which are outlined in the docs:
<div class="formField">
<label for="name" class="labelName"><span class="requiredAst">*</span> Name:</label><br />
<input type="text" name="name" size="40" id="name" class="inputField" />
</div>
<div class="formField">
<label for="email" class="labelName"><span class="requiredAst">*</span> Email Address:</label><br />
<input type="text" name="email" size="40" id="email" class="inputField" />
</div>
Is there a way to make the name and email show up for the person that left the rating?
3. In the admin notification email, right now I’m just using the default notification email template, which shows the name, email, rating, and date of the most recent rating. What would I need to add so that I can also include a link to the entry that received the rating inside of the admin notification email?
