Thanks for that information!
I'm trying to understand that code (I'm only a beginner in PHP)...
This code seems to deal only with ascending and descending order for the posts, by date. (I assume that's what dateline means?)
What if they're sorted by thread rating or some other factor? Where is that taken into account?
The query seems to be:
PHP Code:
$getpostids = $db->query_read("
SELECT postid
FROM " . TABLE_PREFIX . "post AS post
$hook_query_joins
WHERE threadid = $threadid
AND visible = 1
$hook_query_where
ORDER BY dateline $postorder
LIMIT $limitlower, $perpage
");
-Andy.