t.Time"; $Title = 'Comments left on your torrents'; $Header = 'Comments left on your uploads'; if($Self) $OtherLink = 'Display comments you\'ve made'; } else { $Conditions = "WHERE tc.AuthorID = $UserID"; $Title = 'Comments made by '.($Self?'you':$Username); $Header = 'Torrent comments left by '.($Self?'you':format_username($UserID, false, false, false)).''; if($Self) $OtherLink = 'Display comments left on your uploads'; } $Comments = $DB->query("SELECT SQL_CALC_FOUND_ROWS tc.AuthorID, t.ID, t.GroupID, tg.Name, tc.ID, tc.Body, tc.AddedTime, tc.EditedTime, tc.EditedUserID as EditorID FROM torrents as t JOIN torrents_comments as tc ON tc.GroupID = t.GroupID JOIN torrents_group as tg ON t.GroupID = tg.ID $Conditions GROUP BY tc.ID ORDER BY tc.AddedTime DESC LIMIT $Limit; "); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $Pages=get_pages($Page,$Results,$PerPage, 11); $DB->set_query_id($Comments); $GroupIDs = $DB->collect('GroupID'); $Artists = get_artists($GroupIDs); show_header($Title,'bbcode'); $DB->set_query_id($Comments); ?>

next_record()) { $UserInfo = user_info($UserID); ?> ' id="post">
# by on
' width='150' alt="'s avatar" /> Default avatar full_format($Body) ?>

Last edited by