public function getPostHREF(GWF_ForumPost $post, $term = '') { $module = Module_Forum::getInstance(); $ipp = $module->getPostsPerThread(); $tid = $this->getID(); $cut = $post->getVar('post_date'); $nItems = $post->countRows("post_tid={$tid} AND post_date<'{$cut}'"); $page = GWF_PageMenu::getPagecount($ipp, $nItems + 1); return $this->getPageHREF($page, $term) . '#post' . $post->getID(); }