PEAK XOOPS - Re: Forum with WYSIWYG Editor safely in englishin japanese

Top  >  Comments  >  News comment ()

Re: Forum with WYSIWYG Editor safely

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target News
Subject WYSIWYGエディタの使える掲示板
Summary 「WYSIWYG Editor搭載」なんて売り文句を見る度に眉をひそめてきた私ですが、いろいろとテストした限り、HTMLPurifierを信用して良さそうなので、最新の d3forum-0.77 でfckxoopsを利用できるようにしてみました。それもあえてこのサイトで運用してます。(自信の顕れ? ...
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2007/9/29 6:53
gigamaster  三等軍曹 From: Geneva, Switzerland  Posts: 94
Great work !
This is one more nice feature!
Very useful for example, academic,
or companies intranets.


Votes:4 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 3:44
kentauls  上等兵   Posts: 29
Hi GIJOE,

We were really wanted that function and are very happy to here that FCKeditor is implemented in d3forum 0.77 and later.

But unfortunately, I've been unable to activate FCKeditor on d3forum and trying many things since you released 0.77.

I’ve tried it on XCL2.1.1 and 2.1.2.
FCKeditor is available on “bulletin”.
Protector 3.14 is active, but “'allow_url_fopen' : on”.

These are optioned for the forum which I want to use FCKeditor.
default_options:smiley,xcode,number_entity,html
allow_html:1
allow_textimg:0
allow_sig:1
allow_sigimg:0
posts_per_topic:100
hot_threshold:10
topics_per_page:20
use_vote:1
use_solved:1
allow_mark:1
allow_hideuid:0
viewallbreak:10
selfeditlimit:31536000
selfdellimit:0
css_uri:{mod_url}/index.php?page=main_css
images_dir:images
body_editor:common_fckeditor
guest_vote_interval:86400

I appreciate it if you can give me advice to solve the issue.
If you need further information, please let me know.

Thank you in advance.
Votes:4 Average:7.50
Previous post - Next post | Parent - No child | Posted on 2007/10/1 4:13 | Last modified
OneOfTen  伍長   Posts: 75
Hi,

fck-editor will only be shown in the real reply-form, the fast-reply-form at the bottom of the topic will use xoopsdhtml. Your configuration of the forum seems ok. Did you already install fck-editor from here? If not download it here http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?lid=93&cid=3 and just upload it to your webspace. Only this fck-editor made by Gijoe will work with d3forum and his other modules like pico.
Votes:4 Average:7.50
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 4:27
kentauls  上等兵   Posts: 29
Thanks OneOfTen,

Of course YES.
fck-editor is enabled and html is allowed in the preferences of d3forum administration for all categories and forums.

I guess, even if we don't enable these options in the preferences in d3forum administration, these can be enable if we option them for each forum.
default_options:smiley,xcode,number_entity,html
allow_html:1
body_editor:common_fckeditor

Is that right?
Votes:4 Average:7.50
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 5:39
OneOfTen  伍長   Posts: 75
Quote:
I guess, even if we don't enable these options in the preferences in d3forum administration, these can be enable if we option them for each forum.

Yes that's right. I really don't see where the problem is because your config as you posted above looks correct. And you are sure that you uploaded fckeditor properly?
Votes:4 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/1 6:06
kentauls  上等兵   Posts: 29
I'm pretty sure I uploaded the latest verion of "FCKeditor on XOOPS" properly.

That why I'm using FCKeditor on Bulletin and Pico as body text editor.

ummm
Votes:4 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 6:16
kentauls  上等兵   Posts: 29
I just tried to work with PHP debug mode.
But no errors were ejected anywhere...
Votes:4 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 6:30
kentauls  上等兵   Posts: 29
When I worked with smarty template debug mode, these variables are checked to be assigned in {$mod_config}.

top_message => "<h1 class="d3f_title">..."
show_breadcrumbs => 1
default_options => "smiley,xcode,number_entity,html"
allow_html => 1
allow_textimg => 0
allow_sig => 1
allow_sigimg => 0
posts_per_topic => 100
hot_threshold => 10
topics_per_page => 20
use_vote => 1
use_solved => 1
allow_mark => 1
allow_hideuid => 0
viewallbreak => 10
selfeditlimit => 31536000
selfdellimit => 0
css_uri => "{mod_url}/index.php?page=main_css"
images_dir => "images"
body_editor => "common_fckeditor"
anonymous_name => "Guest"
guest_vote_interval => 86400
antispam_groups => Array (1)
  0 => ""
antispam_class => "default"
notification_enabled => 0

Do you have any ideas?
Votes:6 Average:5.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/1 20:31
OneOfTen  伍長   Posts: 75
Well, all that looks fine and is similar to my configuration. If you could make me an accoount with admin rights I may have a look at it. If you would like to, just send me a pm with the infos.
Votes:4 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/2 8:34
kentauls  上等兵   Posts: 29
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() {

Votes:6 Average:8.33

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!