public function doDynamicPostLink($matches) { $return = $matches[0]; $postids = kxFunc::getQuoteIds($matches[1]); if (count($postids) > 0) { $realid = $this->parentid; if ($realid === 0) { if ($this->id > 0) { $realid = $this->id; } } if ($realid !== '') { $return = '<a href="' . kxEnv::Get('kx:paths:boards:folder') . 'read.php'; if (kxEnv::Get('kx:display:traditionalread')) { $return .= '/' . $thread_board_return . '/' . $realid . '/' . $matches[1]; } else { $return .= '?b=' . $thread_board_return . '&t=' . $realid . '&p=' . $matches[1]; } $return .= '">' . $matches[0] . '</a>'; } } return $return; }