mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
fixes #3656: Make the mediamanager icons available in the forum
This commit is contained in:
@@ -153,7 +153,13 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
|
||||
// Define which tinymce4 template should be used, depending if the current user is registered or a guest
|
||||
if (!deftrue('e_TINYMCE_TEMPLATE'))
|
||||
{
|
||||
define('e_TINYMCE_TEMPLATE', (USER ? 'member' : 'public')); // allow images / videos.
|
||||
}
|
||||
|
||||
|
||||
if(!empty($_POST['post']))
|
||||
{
|
||||
$text = $tp->post_toForm($_POST['post']);
|
||||
@@ -182,7 +188,8 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
||||
//$wysiwyg = ($editor === 'bbcode') ? false : null;
|
||||
$wysiwyg = is_null($editor) ? 'default' : $editor;
|
||||
|
||||
return e107::getForm()->bbarea('post',$text,'forum','_common','large', array('wysiwyg' => $wysiwyg));
|
||||
//return e107::getForm()->bbarea('post',$text,'forum','_common','large', array('wysiwyg' => $wysiwyg));
|
||||
return e107::getForm()->bbarea('post',$text,'forum','forum','large', array('wysiwyg' => $wysiwyg));
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1188,6 +1188,12 @@
|
||||
{
|
||||
global $forum, $forum_quickreply;
|
||||
|
||||
// Define which tinymce4 template should be used, depending if the current user is registered or a guest
|
||||
if (!deftrue('e_TINYMCE_TEMPLATE'))
|
||||
{
|
||||
define('e_TINYMCE_TEMPLATE', (USER ? 'member' : 'public')); // allow images / videos.
|
||||
}
|
||||
|
||||
if($forum->checkPerm($this->var['thread_forum_id'], 'post') && $this->var['thread_active'])
|
||||
{
|
||||
//XXX Show only on the last page??
|
||||
@@ -1224,7 +1230,8 @@
|
||||
$text = "
|
||||
<form action='" . $url . "' method='post'>
|
||||
<div class='form-group'>" .
|
||||
e107::getForm()->bbarea('post','','forum', '_common', 'small', array('id' => 'forum-quickreply-text', 'wysiwyg' => $editor)) .
|
||||
// e107::getForm()->bbarea('post','','forum', '_common', 'small', array('id' => 'forum-quickreply-text', 'wysiwyg' => $editor)) .
|
||||
e107::getForm()->bbarea('post','','forum', 'forum', 'medium', array('id' => 'forum-quickreply-text', 'wysiwyg' => $editor)) .
|
||||
"</div>
|
||||
<div class='center text-center form-group'>
|
||||
<input type='submit' data-token='" . e_TOKEN . "' data-forum-insert='" . $ajaxInsert . "' data-forum-post='" . $this->var['thread_forum_id'] . "' data-forum-thread='" . $this->var['thread_id'] . "' data-forum-action='quickreply' name='reply' value='" . LAN_FORUM_2006 . "' class='btn btn-success button' />
|
||||
|
Reference in New Issue
Block a user