Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-16 19:33:59

Eri
Member
Registered: 2011-03-18
Posts: 977

[FIXED] Top rated videos

I do not know if this is a bug or not but i am posting it here smile

When i go to top rated videos i am getting to rated by number and not by stars.
The best top rated system must be first 5 stars videos with most rates then the 4,5 stars with most rates.............e.t.c

Or having a different system of rating like/dislike that will make the script faster smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-05-16 20:24:40

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED] Top rated videos

Top Rated is calculated by rating  and rated_by, thats why in some cases, videos might appear with 4.5 stars, because there are more votes. I'll try to figure out a way though.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-05-31 09:02:43

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [FIXED] Top rated videos

Fixed that smile
at /modules/video/components/browse.php

Replace

            case 'rated':
                $sql       .= ' ORDER BY (v.rating*v.rated_by) DESC';
                $order_name = __('top-rated');
                break;

With

case 'rated':
                $sql       .= ' ORDER BY v.rating DESC, v.rated_by DESC';
                $order_name = __('top-rated');
                break;

Last edited by Eri (2011-06-08 23:14:57)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2011-07-08 12:28:51

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [FIXED] Top rated videos

Also per category top rated at /modules/video/components/category.php
Replace

 case 'rated':
                $sql       .= ' ORDER BY (v.rating*v.rated_by) DESC';
                $order_name = __('top-rated');
                break;

With

 case 'rated':
                $sql       .= ' ORDER BY v.rating DESC, v.rated_by DESC';
                $order_name = __('top-rated');
                break;

Last edited by Eri (2011-07-08 12:29:10)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#5 2011-07-12 13:08:41

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED] Top rated videos

Fixed in RC3.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB