It looks like you're new here. If you want to get involved, click one of these buttons!
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
Find:
DiscussionModel->SQL->OrderBy('d.CountViews', 'desc'); (for me it was line 458)
DiscussionModel->SQL->OrderBy('d.CountViews', 'desc');
Comment out and insert: $DiscussionModel->SQL->OrderBy('COALESCE(d.Score,0)', 'desc');
$DiscussionModel->SQL->OrderBy('COALESCE(d.Score,0)', 'desc');
Now you will have it sorted by vote.
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Find:
DiscussionModel->SQL->OrderBy('d.CountViews', 'desc');(for me it was line 458)Comment out and insert:
$DiscussionModel->SQL->OrderBy('COALESCE(d.Score,0)', 'desc');Now you will have it sorted by vote.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •