1 to 3 of 3
// If trying to focus on a particular comment, make sure to look at the correct page$Focus = ForceIncomingInt('Focus', 0);$PageCount = CalculateNumberOfPages($this->CommentDataCount, $this->Context->Configuration['COMMENTS_PER_PAGE']);if ($Focus > 0 && $PageCount > 1) { $this->CurrentPage = 10; $FoundComment = 0; while ($this->CurrentPage <= $PageCount && !$FoundComment) { $this->CurrentPage++; $this->CommentData = $CommentManager->GetCommentList($this->Context->Configuration['COMMENTS_PER_PAGE'], $this->CurrentPage, $DiscussionID); while ($Row = $this->Context->Database->GetRow($this->CommentData)) { if (ForceInt($Row['CommentID'], 0) == $Focus) { $FoundComment = 1; break; } } $this->CurrentPage++; } $this->Context->Database->RewindDataSet($this->CommentData);}
Bug Tracker
Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.