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

eaton’s picture

Status: Active » Closed (won't fix)

Latest 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.