Closed (won't fix)
Project:
Latest and Greatest
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2006 at 18:53 UTC
Updated:
8 Apr 2006 at 01:36 UTC
I've been trying to modify the latest & greatest module to work with forum posts, rather than aggregator items... but i haven't been successful. Has anyone else modified this module in a similar manner?
It seems like it ought to be pretty easy to modify (not a lot of database queries) if i was a programmer.
here the code that needs to be modified
function _latestgreatest_latest_items() {
$threshold = variable_get('latestgreatest_threshold', 20);
$result = db_query_range('SELECT i.*, b.promoted FROM {aggregator_category_item} ci ' .
'LEFT JOIN {aggregator_item} i ON ci.iid = i.iid ' .
'LEFT JOIN {latestgreatest_voting} b ON i.iid = b.iid ' .
'WHERE ci.cid = %d ORDER BY i.timestamp DESC, i.iid DESC',
variable_get('latestgreatest_category', '0'), 0, variable_get('latestgreatest_dated', 20));Anyone else think this would be a useful mod for many users, not just me?
Comments
Comment #1
eaton commentedLatest and Greatest exists mostly because aggregator items are NOT nodes, and need some mechanism for voting/rating other than the other node rating/voting solutions that are already out there. It's more likely that 'top rated content' lists will be rolled directly into the VotingAPI in the next version. For now, Latest and Greatest will stay as is.