diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index 63044ee45..0cbf6ddc9 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -885,5 +885,51 @@ function sc_message() return $thread->message; } + function sc_quickreply() + { + global $forum, $forum_quickreply; + +if ($forum->checkPerm($this->var['thread_forum_id'], 'post') && $this->var['thread_active']) +{ + //XXX Show only on the last page?? + if (!vartrue($forum_quickreply)) + { + $ajaxInsert = ($thread->pages == $thread->page || $thread->pages == 0) ? 1 : 0; + // $ajaxInsert = 1; + // echo "AJAX-INSERT=".$ajaxInsert ."(".$thread->pages." vs ".$thread->page.")"; + $frm = e107::getForm(); + + $urlParms = array('f'=>'rp','id'=>$this->var['thread_id'], 'post'=>$this->var['thread_id']); + $url = e107::url('forum','post', null, array('query'=>$urlParms));; // ."?f=rp&id=".$thread->threadInfo['thread_id']."&post=".$thread->threadInfo['thread_id']; + + return " +
+
+ +
+
+ + +
+ +
"; + + if(E107_DEBUG_LEVEL > 0) + { + // echo "
Thread id: ".$threadId."
"; + // print_a($this); + } + + + + // Preview should be reserved for the full 'Post reply' page.   + } + else + { + return $forum_quickreply; + } +} + } + } ?> \ No newline at end of file