get_value('collage_'.$CollageID.'_catalogue_'.$CatalogueID)) { $DB->query("SELECT SQL_CALC_FOUND_ROWS ID, UserID, Time, Body FROM collages_comments WHERE CollageID = '$CollageID' LIMIT $CatalogueLimit"); $Catalogue = $DB->to_array(); $DB->query("SELECT FOUND_ROWS()"); list($Posts) = $DB->next_record(); $Cache->cache_value('collage_'.$CollageID.'_catalogue_'.$CatalogueID, array($Catalogue,$Posts), 0); } //This is a hybrid to reduce the catalogue down to the page elements: We use the page limit % catalogue $Thread = array_slice($Catalogue,((POSTS_PER_PAGE*$Page-POSTS_PER_PAGE)%THREAD_CATALOGUE),POSTS_PER_PAGE,true); $DB->query("SELECT Name FROM collages WHERE ID='$CollageID'"); list($Name) = $DB->next_record(); // Start printing View::show_header('Comments for collage '.$Name, 'comments,bbcode,jquery'); ?>

Collages >

# by Report comment - Quote - Edit - Delete
full_format($Body)?>
'collageid', 'InputID' => $CollageID, 'InputAction' => 'add_comment', 'TextareaCols' => 90)); } } ?>