About this topic

  • Posted by cloudform 1 year ago. There are 4 posts. The latest reply is from cloudform.
  • This topic is not resolved
  1. I have a page set up:
    http://www.breakingdawnmovie.org/gallery/top-rated/

    with the photosmash call:

    [photosmash gallery_type=ranked images=5000 ps_layout_id=-1]

    You'll notice on that page that the first has only one vote yet others have 3 or 5 positive votes yet are down in the ranks.

    This works on the other two pages for newest pictures:

    [photosmash gallery_type=recent images=5000 ps_layout_id=-1]

    and random pictures:

    [photosmash gallery_type=random images=5000 ps_layout_id=-1]

  2. Ah...man! I missed something there. It is sorting those by the average. It should sort by average, then Vote Count Descending. I'm working out what the change needs to be...will post here. You're going to need to fix the code until I can get the next release out. It's kind of a big release, so it's taking a while. I'll post the change when I've tested it.

    BB

  3. Hi Cloudform,

    Ok, try this....in file bwbps-layout.php, look for:

    case 4 :	// Rating
    				switch ((int)$g['poll_id'] ) {
    
    					case -2 :	// Vote up /vote down
    						$sortby = 'bwbps_br_rating '
    							. $sortorder . ', '.PSIMAGESTABLE.'.seq';
    						break;

    It should be somewhere around line 3092 (depending on version you're on), but that could be wildly different...it's in function getSortbyField($g, $sortorder), at any rate. Change it to:

    case 4 :	// Rating
    				switch ((int)$g['poll_id'] ) {
    
    					case -2 :	// Vote up /vote down
    						$sortby = 'bwbps_br_rating '
    							. $sortorder . ', '.PSIMAGESTABLE.'.votes_cnt DESC ';
    						break;

    Let me know if that works. If so, I'm putting it into the next release.

    Cheers,
    Byron

  4. Seems to have fixed it! Though, it's always showed # of votes as well as a number in brackets eg [4] which I would expect is the total of up and down votes: 4 total votes, 3 up and 1 down should show [3] in brackets. Doesn't seem to work that way.

RSS feed for this topic