Beispiel #1
0
 /**
  * Rewrite mini post img link
  *
  * @param	object	$event	The event object
  * @return	null
  * @access	public
  */
 public function viewtopic_modify_post_row($event)
 {
     $row = $event['post_row'];
     $start = $this->request->variable('start', 0);
     $data = $event['topic_data'];
     $row['U_MINI_POST'] = append_sid($this->base->generate_topic_link($data['forum_id'], $data['forum_name'], $data['topic_id'], $data['topic_title'], $start) . '#p' . $event['row']['post_id']);
     $event['post_row'] = $row;
 }
Beispiel #2
0
 /**
  * Rewrite URLs in Top 5 Extension
  *
  * @param	object	$event	The event object
  * @return	null
  * @access	public
  */
 public function topfive_modify_tpl_ary($event)
 {
     $tpl_ary = $event['tpl_ary'];
     $replies = $this->base->get_count('topic_posts', $event['row'], $event['row']['forum_id']) - 1;
     $u_view_topic = $this->base->generate_topic_link($event['row']['forum_id'], $event['row']['forum_name'], $event['row']['topic_id'], $event['row']['topic_title']);
     $tpl_ary['U_TOPIC'] = append_sid($this->base->generate_lastpost_link($replies, $u_view_topic) . '#p' . $event['row']['topic_last_post_id']);
     $event['tpl_ary'] = $tpl_ary;
 }