From 1c0d6a8a350f14f39cca4edc39fbf461b37231a5 Mon Sep 17 00:00:00 2001 From: pherum83 Date: Mon, 3 Sep 2012 23:21:44 +0000 Subject: [PATCH] r452 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ะบ 451 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@452 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 2 +- upload/misc/js/bbcode.js | 6 ++++-- upload/templates/default/viewtopic.tpl | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/upload/config.php b/upload/config.php index b9dfffb16..fbfea1b9d 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'] = 'R451'; +$bb_cfg['tp_release_state'] = 'R452'; $bb_cfg['tp_release_date'] = '04-09-2012'; // Database diff --git a/upload/misc/js/bbcode.js b/upload/misc/js/bbcode.js index afbcd3d98..55d7888cb 100644 --- a/upload/misc/js/bbcode.js +++ b/upload/misc/js/bbcode.js @@ -13,6 +13,7 @@ BBCode.prototype = { textarea: null, stext: '', quoter: null, + qouted_pid: null, collapseAfterInsert: false, replaceOnInsert: false, @@ -23,7 +24,7 @@ BBCode.prototype = { // Tag for quoting. this.addTag( '_quoter', - function() { return '[quote="'+th.quoter+'"]' }, + function() { return '[quote="'+th.quoter+'"][qpost='+th.qouted_pid+']' }, '[/quote]\n', null, null, @@ -37,10 +38,11 @@ BBCode.prototype = { }, // Insert poster name or poster quotes to the text. - onclickPoster: function(name) { + onclickPoster: function(name, post_id) { var sel = this.getSelection()[0]; if (sel) { this.quoter = name; + this.qouted_pid = post_id; this.quoterText = sel; this.insertTag('_quoter'); } else { diff --git a/upload/templates/default/viewtopic.tpl b/upload/templates/default/viewtopic.tpl index d340fc368..fc5065b63 100644 --- a/upload/templates/default/viewtopic.tpl +++ b/upload/templates/default/viewtopic.tpl @@ -276,7 +276,7 @@ ajax.callback.mod_action = function(data) {

{postrow.POSTER_AVATAR}

-

+

{postrow.POSTER_NAME} ®