ISSUE-- Getting unwanted multiple listing of ranked items. 
Posted: 14 August 2007 07:09 PM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2007-07-30

Hello:

I’m using Rating 2.10 on the most recent EE Version (July 26?). I have articles rated on a 5 star system, and am trying to put together a template page that lists all the articles from highest rating to lowest rating.

However, when I use the code below , I end up getting each of my ranked items shown 4 times like this:

Article ranked #1
Article ranked #1
Article ranked #1
Article ranked #1
Article ranked #2
Article ranked #2
Article ranked #2
Article ranked #2

and so forth.

Your insight would be most, most welcomed. smile

Kind regards,
Alec

HERE’S THE CODE:

<!-- +++++++++++ LIST BY RANKING ++++++++++++ -->
{exp:rating:rankings form_name="review" precision="2" thousands="," fractions="."}

<!-- +++++++++++ WEBLOG ENTRY ++++++++++++ -->
{exp:weblog:entries weblog="{my_weblog}"}

<!-- entry -->
<div class="entry">
<div class="entry-title">

{title}

</div>

{summary}

<!-- +++++++++++ ENTRY DETAILS ++++++++++++ -->
<div class="entry-info">
Posted by {author} on {entry_date format=’%d %M %Y’}

Category:
{categories}
{category_name}
{/categories}

<!-- +++++++++++ COMMENTS ++++++++++++ -->

{if allow_comments}
({comment_total}) Comments
{/if}

{if allow_trackbacks}
({trackback_total}) Trackbacks
{/if}
Permalink

</div> <!-- entry-info -->
</div> <!-- entry-->
<!-- entry -->
{/exp:weblog:entries}

{/exp:rating:rankings}

.

Profile
 
 
Posted: 14 August 2007 07:15 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Yep. The rankings function is a bear. I should have never wrote it. It will take a bit of time to fix. Can you write a straight exp:query in the mean time?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 14 August 2007 07:31 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  8
Joined  2007-07-30

Duh! I figured out. I’m still learning.

1. I had to add” weblog={my_weblog} in the parameters

{exp:rating:rankings form_name="review" weblog="{my_weblog}" precision="2" thousands="," fractions="."}

2. And then delete the {exp: weblog: entries} tag.

MK, your program rocks! It was an issue with this “newbie” user.

Profile
 
 
Posted: 27 August 2007 08:24 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Glad you solved it, whatever the issue.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 21 October 2007 04:56 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  15
Joined  2007-09-15

I just had a similar experience while using reverse related entries.

I placed the rankings tag inside the reverse related entries tag, and got double listings.

To stop that effect, all I had to do was to add a limit="1" parameter to the rankings tag, and it cleared right up.

And I have to say that after some of my earlier stumbles, that was absolutely thrilling!  smile

 Signature 

...Bob

Bob West

––––––––––––––––––––––––––––––––––––––––––––––
Thought Nozzle(TM)
creative consultation:
graphic design . concepts . identity . web . writing
http://www.thoughtnozzle.com/
––––––––––––––––––––––––––––––––––––––––––––––

Profile