mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Show bbcodes in submitnews
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/submitnews.php,v $
|
| $Source: /cvs_backup/e107_0.8/submitnews.php,v $
|
||||||
| $Revision: 1.1.1.1 $
|
| $Revision: 1.2 $
|
||||||
| $Date: 2006-12-02 04:33:09 $
|
| $Date: 2007-02-11 19:39:07 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("class2.php");
|
require_once("class2.php");
|
||||||
@@ -165,6 +165,10 @@ if ($pref['subnews_htmlarea'])
|
|||||||
require_once(e_HANDLER . "tiny_mce/wysiwyg.php");
|
require_once(e_HANDLER . "tiny_mce/wysiwyg.php");
|
||||||
echo wysiwyg("item");
|
echo wysiwyg("item");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
require_once(e_HANDLER."ren_help.php");
|
||||||
|
}
|
||||||
|
|
||||||
$insertjs = (!$pref['subnews_htmlarea'])?"rows='15' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'" : "rows='25' ";
|
$insertjs = (!$pref['subnews_htmlarea'])?"rows='15' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'" : "rows='25' ";
|
||||||
$text .= "
|
$text .= "
|
||||||
@@ -172,8 +176,12 @@ $text .= "
|
|||||||
<tr>
|
<tr>
|
||||||
<td style='width:20%' class='forumheader3'>" . LAN_135 . "</td>
|
<td style='width:20%' class='forumheader3'>" . LAN_135 . "</td>
|
||||||
<td style='width:80%' class='forumheader3'>
|
<td style='width:80%' class='forumheader3'>
|
||||||
<textarea class='tbox' id='item' name='item' cols='80' style='width:95%' $insertjs></textarea>
|
<textarea class='tbox' id='item' name='item' cols='80' style='width:95%' $insertjs></textarea>";
|
||||||
</td>
|
if (!$pref['subnews_htmlarea'])
|
||||||
|
{
|
||||||
|
$text .= display_help("helpb", 'news');
|
||||||
|
}
|
||||||
|
$text .= " </td>
|
||||||
</tr>\n";
|
</tr>\n";
|
||||||
if ($pref['subnews_attach'] && $pref['upload_enabled'] && check_class($pref['upload_class']) && FILE_UPLOADS)
|
if ($pref['subnews_attach'] && $pref['upload_enabled'] && check_class($pref['upload_class']) && FILE_UPLOADS)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user