Something weird going on with blocks & summary reports
| Project: | Kudos |
| Version: | 5.x-1.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Hi
Thanks for the great module. I've got it up and running on my production site. People are giving and receiving Kudos nicely. Now I want to show some summary blocks to the endusers however there's definitely some weird things going on in that area...
First off, the blocks don't render. I've tried lot's of different things -- but that's OK because if I enter the following into a PHP block I can get them to render...
print kudos_content_summary('user', 'all');That's cool, but the problem is now the display. This list called by the above should show the top receivers of the kudo types. However that fails -- it shows this weird display.
Top Kudos Awarded to Content
* inspiring [3] user/1010102(1)
* inventive [4] user/1002829(1)
* funny [1] user/1000733(1)
* great writing [6] user/1008314(1)
* pro tip [5] user/1000992(1)Not sure how these users are being selected but there's definitely people with higher kudo counts than one. I can see them in the kudos_cache table.
I suspect there problem is somewhere in the SQL query in _kudos_get_content_summary.
So a couple questions then to get this conversation going:
1. Has anybody gotten any of the summary reports working in the 5.x version?
2. Has anybody had the problems I have and worked out a solution?
3. in _kudos_get_content_summary why is there a limit of 100 on the select?
Any input / ideas greatly appreciated!
Mike
