About this topic

  • Posted by WindupHarlequin 1 year ago. There are 8 posts. The latest reply is from byron.

No tags yet.

  1. If you use standard Bayesian sorting, depending on the amount of votes, you will have images with no stars appearing in front of images with one star. Obviously, whilst this is the behavior we want, from the users viewpoint it doesn't make much sense.

    In order to rectify this situation, it's a very simple fix (although it took me quite a while to work through all your functions... :P )

    In bwbps-layout.php, add this on line 421:

    if($image['bwbps_br_rating']) $rating['avg_rating'] = $image['bwbps_br_rating'];

    And that's it!

    From a UI point of view, you will need to make it clear that you're displaying the AVERAGE rating, not the user rating. But anyways, hope this helps :)

    - WindupHarlequin

  2. Cool...thanks for the code. That makes sense. I like it when it's that easy to fix!

    I wish I had a better grip on setting up a github or google code process so you guys could be working off the development code.

    Your help is really appreciated.

    BB

  3. Added to the plugin. Thanks again!

  4. BTW, still no word from uhhhh on the sql injections issue. Please keep your eyes peeled if you have a chance to dig around anymore.

  5. Awesomes :) If I find anymore quick fixes, I'll be sure to mention them.

  6. Hi WUH,

    In my testing on this, I had a problem when there was only 1 or 0 votes (and 11 images in the gallery...that'd be part of it too). Had to back it out...I've got to give it some more thought. Let me know if you have any suggestions.

    Thanks,
    Byron

  7. Hi Byron.

    Sorry if I haven't been around lately - other projects became prioritised, so I haven't had a chance to carry on poking around PhotoSmash at work.

    What are the problems you're encountering? If you let me know what you're seeing and what you'd expect to happen, I'll be able to give it a closer look.

  8. I think you found the issue (you mentioned it on the other thread).

    BB

RSS feed for this topic