Unable to use ratings:rankings or ratings:stats tags
Posted: 01 July 2007 07:23 AM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2006-06-25

Hello - I am trying to use the ratings and stats tags in my pages (both multi and single entry pages) but for some reason I am not able to.

The rating entries are viewable in the rating modules management area using this:

{exp:rating:form entry_id="{entry_id}" form_name="rating_form" require_membership="no" anonymous="yes" return="/<?php echo $seg1;?>/<?php echo $seg2;?>/{url_title}"}
<input type="hidden" name="name" value="{screen_name}" />
<
input type="hidden" name="email" value="{email}" />
<
label for="rating_form">Your Rating</label>

<
p>
<
select name="rating_form" class="rating">
<
option value=" " selected>+ rate +</option>
<
option value="1">1</option>
<
option value="2">2</option>
<
option value="3">3</option>
<
option value="4">4</option>
<
option value="5">5</option>
</
select>
<
label for="rating_review">Your Review</label>
<
textarea name="rating_review" rows="5" cols="40"></textarea>
<
input  class="button" type="submit" name="submit" value="Submit" />
</
p>

{/exp:rating:form}

but I cannot access the ratings using this:

{exp:rating:rankings form="rating_form" orderby="rating" weblog="cowfiles" precision="1" thousands="," fractions="." status="open" sort="asc" limit="10"}
{title}
{
/exp:rating:rankings}

Also when i view the phpMyAdmin tables for rating_stats it is empty (though I know you said that this would remain unpopulated until the rankings tag was called.

I can acces the ratings using the entries tag but it doesnt add all the ratings for each entry_id but rather shows all results (as expected)

EDIT: I am using version 2.0.9 and have installed and removed the module a number of times - I have upgraded from 1.8 though so there is a possibility the tables havent all updated correctly - i dunno, im no expert…

Profile
 
 
Posted: 02 July 2007 01:57 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Why, what are you getting if you try? Nothing at all?

Try to break it down to the simplest rankings tag possible:

{exp:rating:rankings form_name="rating_form" precision="2" thousands="," fractions="."}
{title}
{
/exp:rating:rankings}

What does that produce?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 02 July 2007 02:59 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2006-06-25

I have manually removed some tables using phpmyadmin and reinstalled things - a bit hairy but i have got it working now - thanks for your help.

There is stilll the issue of the stats but i expect that i may be able to rectify it

Profile
 
 
Posted: 02 July 2007 03:49 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

So it was a db issue after all? They can be a bit tricky to rack down, so I’m certainly glad that’s solved. Don’t hesitate to post if you need additional assistance.

 Signature 

Ingmar Greil

Profile