when i view the source, it is showing the link in 2 sets of <a href> tags. and also outputting the link as thishas started a new topic: <a href=http://32.livemembersonly.com/viewtopic ... #p3>123</a>
instead of this
while my extension outputs everything as it should in phpBB 3.1.x, it won't in 3.2 and i don't know how to go about fixing it.
here's the part of the listener that does it... maybe it's all wrong and should be fixed. i just don't know as the person that was helping me with chat has stopped
Code: Select all
$url = append_sid(generate_board_url() . '/viewtopic.' . $this->php_ext, 'f=' . $event['data']['forum_id'] . '&t=' . $event['data']['topic_id'] . '&p=' . $event['data']['post_id'] . '#p' . $event['data']['post_id']);
$username = get_username_string('full', $this->user->data['user_id'], $this->user->data['username'], $this->user->data['user_colour']);
$message = sprintf($lang, $url, $event['post_data']['post_subject']);
$uid = $bitfield = $options = '';
$allow_bbcode = $allow_urls = $allow_smilies = true;
generate_text_for_storage($message, $uid, $bitfield, $options, $allow_bbcode, $allow_urls, $allow_smilies);
$sql_ary = array(
'chat_id' => 0,
'user_id' => $this->user->data['user_id'],
'username' => $this->user->data['username'],
'user_colour' => $this->user->data['user_colour'],
'message' => $message,
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
'bbcode_options' => $options,
'time' => time(),
'forum_id' => $event['forum_id'],
'post_id' => $event['data']['post_id'],
);
$sql = 'INSERT INTO ' . CHAT_TABLE . ' ' . $this->db->sql_build_array('INSERT', $sql_ary);
$this->db->sql_query($sql);
Code: Select all
'CHAT_NEW_TOPIC' => 'has started a new topic: <a href="%1$s">%2$s</a>',