投稿フォームの改良 >>> BB Code関連のボタンを消す
■投稿フォームの改良
http://www.xugj.org/modules/QandA/index.php?topic_id=32
単純にBB Code関連のボタンを消すだけであれば該当部分をコメントアウトするだけで消えます。
例えば/class/xoopsform/formdhtmltextarea.phpの88行目をコメントアウトする。
function render() { /*$ret = "gt; gt; gt; gt; gt; gt; gt; gt; gt;\n";*/
\class\xoopsform\formdhtmltextarea.php"(88行目):
\include\xoopscodes.php"(40行目):
上記をコメントアウト。
モジュールによって、参照しているテキストフォームが違う。
<参考>イメージマネージャーボタンを残したい場合。
formdhtmltextarea.phpでは、
<img onmouseover='style.cursor=\"hand\"' onclick='javascript:openWithSelfMain(\"".XOOPS_URL."/imagemanager.php?target=".$this->getName()."\",\"imgmanager\",400,430);' src='".XOOPS_URL."/images/image.gif' alt='image' />
xoopscodes.phpでは、
<img src='".XOOPS_URL."/images/image.gif' alt='image' onmouseover='style.cursor=\"hand\"' onclick='openWithSelfMain(\"".XOOPS_URL."/imagemanager.php?target=".$textarea_id."\",\"imgmanager\",400,430);' />
を適宜移動すればよい。
<参考>newbbは独自で持っている。
\modules\newbb\include\forumform.inc.php"(258行目から):