BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 5
    Gav on #38601

    PS… Is there a way to develop this to highest rated gallery using the SUM of all the media ratings per gallery?
    🙂
    Gav

  • Participant
    Level: Initiated
    Posts: 5
    Gav on #38600

    O0os!
    It works, I forgot to select any user and sitewide galleries!
    Thanks Ravi!

  • Participant
    Level: Initiated
    Posts: 5
    Gav on #38599

    Hi Ravi
    thanks for the rapid support, exceptional for a free plugin!
    I have replaced all the files on the wp site with the new download.
    Cleared all the cache, selected top rated in the widget.
    The results are completely random.
    —————————————————————–
    Media Id Total Rating Expected Position Actual Position
    4906 10 4/5 or 6 1
    5569 10 4/5 or 6 2
    5572 0 0 5
    5727 25 2 Not Displayed
    5728 10 4/5 or 6 Not Displayed
    6026 0 0 3
    6029 0 0 4
    6044 10 4/5 or 6 Not Displayed
    6045 20 3 Not Displayed
    6283 35 1 Not Displayed
    —————————————————————–
    I cant see any correlation between upload date, uploader etc. (there are more results in the excel from the DB)

    Any ideas?
    Cheers
    Gav

  • Participant
    Level: Initiated
    Posts: 5
    Gav on #38581

    Hi Ravi
    thanks for the reply.
    I think I understand why its giving the same five photos every time the page is loaded, I wonder if it might be better (to achieve what I want) to sum the ratings per media item, and display the top five of them.
    so an item may be rated 5,5,3,4,5, giving it a total of 22 from 5 ratings. another may be 5,5 5 total 15 from 3 ratings. The item with 22 should be displayed before the one with 15. In this scenario the first item has an average of 4.4 whereas the second, only rated 3 times has an average of 5 and would have priority over a more often rated item.

    hope that makes sense!
    can you help?
    cheers

  • Participant
    Level: Initiated
    Posts: 5
    Gav on #38571

    I had the same issue, used this snippet and it worked perfectly. Cheers Ravi.