diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index 72e3b4a3a..917b6c1a0 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -78,7 +78,7 @@ switch($this->request['type']) // Use trim to get rid of spaces placed there by MS-SQL 2000 $quote_username = (trim($post['post_username']) != '') ? $post['post_username'] : get_username($post['poster_id']); - $message = "[quote=\"". $quote_username ."\"]". $post['post_text'] ."[/quote]\n"; + $message = "[quote=\"". $quote_username ."\"][qpost=". $post['post_id'] ."]". $post['post_text'] ."[/quote]\n"; // hide user passkey $message = preg_replace('#(?<=\?uk=)[a-zA-Z0-9]{10}(?=&)#', 'passkey', $message); // hide sid diff --git a/upload/config.php b/upload/config.php index 2d610e0ec..b9dfffb16 100644 --- a/upload/config.php +++ b/upload/config.php @@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do // Increase number of revision after update $bb_cfg['tp_version'] = '2.5 Beta'; -$bb_cfg['tp_release_state'] = 'R450'; +$bb_cfg['tp_release_state'] = 'R451'; $bb_cfg['tp_release_date'] = '04-09-2012'; // Database diff --git a/upload/includes/bbcode.php b/upload/includes/bbcode.php index b428d19cb..e5f99bc61 100644 --- a/upload/includes/bbcode.php +++ b/upload/includes/bbcode.php @@ -509,6 +509,7 @@ class bbcode "#\[url=(https?://$url_exp)\]([^?\n\t].*?)\[/url\]#isu" => '$2', "#\[url=(www\.$url_exp)\]([^?\n\t].*?)\[/url\]#isu" => '$2', "#\[email\]($email_exp)\[/email\]#isu" => '$1', + "#\[qpost=([0-9]*)\]#isu" => '$1', ); $this->str = array( diff --git a/upload/posting.php b/upload/posting.php index f8fcb419b..d87eb4c58 100644 --- a/upload/posting.php +++ b/upload/posting.php @@ -678,7 +678,7 @@ else // Use trim to get rid of spaces placed there by MS-SQL 2000 $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; - $message = '[quote="' . $quote_username . '"]' . $message . '[/quote]'; + $message = '[quote="'. $quote_username .'"][qpost='. $post_info['post_id'] .']' . $message . '[/quote]'; // hide user passkey $message = preg_replace('#(?<=\?uk=)[a-zA-Z0-9]{10}(?=&)#', 'passkey', $message); // hide sid diff --git a/upload/templates/default/page_header.tpl b/upload/templates/default/page_header.tpl index f2043ce8f..18f3171d4 100644 --- a/upload/templates/default/page_header.tpl +++ b/upload/templates/default/page_header.tpl @@ -43,7 +43,13 @@ function initQuotes(context) $('div.q', context).each(function(){ var $q = $(this); var name = $(this).attr('head'); - $q.before('