Hi OneOfTen and GIJOE,
Finally I could find the reason why FCKeditor didn't appear on d3forum.
It was quite simple, the template file "d3forum_main_post_form.html" was not update correctly.
Following is the code from altsys.
But I'm really wondering why the template file was not updated correctly... New file was over written by old file. It can be possible?
It was caused by my wrong operation or system error ?
Then I've found GIJOE's module "altsys" is amazing! It helped me a lot to find the solution and to recover the code with ease. If I didn't use it, I would spend much more time.
Thanks GIJOE!
And OneOfTen, you helped me a lot!
@@ -101,27 +101,33 @@
</tr>
<tr valign="top" align="left">
<th class="d3f_head"><label for="message"><{$smarty.const._MD_D3FORUM_TH_BODY}></label></th>
<td class="even">
- <{if $body_wysiwyg}>
- <{$body_wysiwyg}>
- <{else}>
- <input type="checkbox" id="message_bbcode_onoff" onclick="if(this.checked){xoopsGetElementById('message_bbcode_buttons_pre').style.display='block';xoopsGetElementById('message_bbcode_buttons_post').style.display='block'}else{xoopsGetElementById('message_bbcode_buttons_pre').style.display='none';xoopsGetElementById('message_bbcode_buttons_post').style.display='none'};" /><label for="message_bbcode_onoff"><{$smarty.const._MD_D3FORUM_LABEL_INPUTHELPER}></label>
- <br />
- <{xoopsdhtmltarea name="message" cols="60" rows="15" value=$message pre_style="display:none;" post_style="display:none;"}>
- <{/if}>
+ <input type="checkbox" id="message_bbcode_onoff" onclick="if(this.checked){xoopsGetElementById('message_bbcode_buttons_pre').style.display='block';xoopsGetElementById('message_bbcode_buttons_post').style.display='block'}else{xoopsGetElementById('message_bbcode_buttons_pre').style.display='none';xoopsGetElementById('message_bbcode_buttons_post').style.display='none'};" /><label for="message_bbcode_onoff"><{$smarty.const._MD_D3FORUM_LABEL_INPUTHELPER}></label>
+ <br />
+ <{xoopsdhtmltarea name="message" cols="60" rows="15" value=$message pre_style="display:none;" post_style="display:none;"}>
<{if $reference_quote}>
<br />
<input type="button" name="quote" id="quote" onclick="d3forum_quote_message();" value="<{$smarty.const._MD_D3FORUM_BTN_QUOTE}>" />
<{/if}>
</td>
</tr>
<tr valign="top" align="left">
<th class="d3f_head"><{$smarty.const._MD_D3FORUM_OPTIONS}></th>
<td class="even">
<!-- approval -->
- <{if $forum.isadminormod && $mode == "edit" && ! $post.approval}>
+ <{if $forum.isadminormod && ! $approval}>
<input type="checkbox" name="approval" id="approval" value="1" <{$approval_checked}> /><label for="approval"><{$smarty.const._MD_D3FORUM_LABEL_DOAPPROVAL}></label>
<br />
<{/if}>
@@ -215,11 +221,9 @@
function xoopsFormValidate_postform() {
myform = window.document.postform;
if ( myform.subject.value.replace(/^\s+|\s+$/g,"") == "" ) { window.alert("<{$smarty.const._MD_D3FORUM_SUBJECT|string_format:$smarty.const._FORM_ENTER}>"); myform.subject.focus(); return false; }
- <{if ! $body_wysiwyg}>
if ( myform.message.value.replace(/^\s+|\s+$/g,"") == "" ) { window.alert("<{$smarty.const._MD_D3FORUM_ERR_NOMESSAGE}>"); myform.message.focus(); return false; }
- <{/if}>
<{$antispam.js_in_validate_function}>
return true;
}
function d3forum_quote_message() {