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.
Pages: 1
I do not know if this is a bug or not but i am posting it here
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
Offline
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
Fixed that
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)
Offline
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)
Offline
Fixed in RC3.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1