Using this code, I have tried (by manipulating existing tags et al, unsuccessfully) to:
1. Have a simple listing (by average rating, starting with the highest rated first, then sorted by date)
2. Have the list stop at 5 and then paginate for the rest
3. Include the following tags ... {rating_name} / {rating_date format="%d/%m/%y"} / {rating_date format=’%h:%i%a’} ... on this page
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) - {stars}{rating}{/stars} ???
My questions are:
1. Pagination will work in the way I want it to?
2. Will the tags shown in 3. above work the way I would like to?
3. Can stars instead of a number be shown?
To be honest, this is driving me round the bend ... Having tried what seems like every combination I can think of, I still can’t get the page to rank by rating with pagination.
My ‘current’ code ranks everything 5 star to 1 star but without pagination ...
I already have a page which lists, by date, with pagination, all of the weblog entries which have received a rating. That works perfectly.
This discussion is about me wanting to have another page which lists, by the number number of stars awarded (starting with the 5’s, then the 4s, then the 3s etc. etc.), with pagination, all of the weblog entries which have received a rating.
The problem I am having is that the page is not paginating, in spite of your advice and my own combinations of tag placement.
The problem I am having is that the page is not paginating, in spite of your advice and my own combinations of tag placement.
I apologize… I thought you were after paginating the Rankings loop.
I’ve thought of a several ways you might be after doing this, and none of them are currently possible.
Filtering by rating is not possible.
If you want to have all Groups of ratings on the same page, with Pagination for each, it’s not possible.... maybe with Ajax though.
The trouble is that there’s no way to filter out entries by rating.... with a parameter anyways.
You could perhaps use a conditional though…
Except the downside to that is that you would never get a “precise” list, including pagination
For example, if you want to display 5 entries with ratings of “4”, and paginate rest, you would do so by setting the parameters as such
Say you have 15 entries… of that three of them are rated as “4”. If you had a conditional that went something like this: {if rating_average == “4"} stuff {/if}
all it would do is not show the rest of the entries not rated “4”. Meanwhile, your Parameters don’t take this into account, so they would want to display all 15 entries. What would happen is, and of course depending on how you order them, you might get results like this:
Page 1 [blank] Entry A [blank] [blank] [blank]
Page 2 [blank] [blank] Entry B Entry C [blank]
Page 3 [blank] [blank] [blank] [blank] [blank]
Of course, to your visitors, it would appear like this:
Page 1 Entry A
Page 2 Entry B Entry C
Page 3
I will submit a feature request for a rating filtering parameter
OK. Thanks for that and all of your previous input - I appreciate it.
I’ll give what you said some thought ... I’ll be looking out for the ‘rating filtering parameter’ in the meantime though! I can’t be the only one who would like to see that in action on their site.
Ok I re-installed the module and cleared all my cache / cookies and the limit is working properly now. However the pagination is still only showing one page. :(
There was a bug with this. It has been corrected for Rating 2.2.0 (which should be released very shortly).
I have it loaded on my test server, and was able to successfully get your code to work
We just have a little bit of fine tuning left to do, including some intense optimization which should get the module running 10 times faster that normal.