/** * Rewrite URLs in Similar Topics Extension * * @param object $event The event object * @return null * @access public */ public function similartopics_modify_topicrow($event) { $this->forum_title = $event['row']['forum_name']; $this->forum_id = $event['row']['forum_id']; $this->topic_title = $event['row']['topic_title']; $this->topic_id = $event['row']['topic_id']; $topic_row = $event['topic_row']; $u_view_topic = $this->base->generate_topic_link($this->forum_id, $this->forum_title, $this->topic_id, $this->topic_title); $topic_row['U_VIEW_TOPIC'] = append_sid($u_view_topic); $topic_row['U_VIEW_FORUM'] = append_sid($this->base->generate_forum_link($this->forum_id, $this->forum_title)); $topic_row['U_LAST_POST'] = append_sid($this->base->generate_lastpost_link($topic_row['TOPIC_REPLIES'], $u_view_topic) . '#p' . $event['row']['topic_last_post_id']); $event['topic_row'] = $topic_row; }
/** * Rewrite the topic URL for the headline of the topic page and the link back to forum * * @param object $event The event object * @return null * @access public */ public function viewtopic_get_post_data($event) { $data = $event['topic_data']; $this->template->assign_vars(array('U_VIEW_TOPIC' => append_sid($this->base->generate_topic_link($event['forum_id'], $data['forum_name'], $event['topic_id'], $data['topic_title'], $event['start'])), 'U_VIEW_FORUM' => append_sid($this->base->generate_forum_link($event['forum_id'], $data['forum_name'])), 'S_POLL_ACTION' => append_sid($this->base->generate_topic_link($event['forum_id'], $data['forum_name'], $event['topic_id'], $data['topic_title'], $event['start'])))); }