<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
        <description>[code=&quot;html4strict&quot;]

I have been looking for a WYSIWYG editor, and have tried just about all of them without success until 
I found the CKEditor http://ckeditor.com 

After unzipping the files from the ckeditor.zip file, I copied the main folder and files to my Phorum
folder and modified the template files with /n  in them. 


Here is the code block I added:

             {POSTING-&gt;body}
		

			
			//, or inside a  in a
				// window.onload event handler.

				// Replace the  with an CKEditor
				// instance, using default configurations.
				CKEDITOR.replace( &#039;body&#039; );

			

 Only the template files had to be modified, no modification to Phorum core files had to be changed.

 Kyle
[/code]</description>
        <link>https://www.phorum.org/support/read.php?63,145016,145016#msg-145016</link>
        <lastBuildDate>Sat, 08 Aug 2026 08:46:57 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146344#msg-146344</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146344#msg-146344</link>
            <description><![CDATA[ Trust me: conversion of all existing messages before switching to WYSIWYG is the only sensible way.<br />
<br />
You are talking about a totally different problem to tackle here. After switching to WYSIWYG, you need to take care of letting all new messages use HTML formatting. So yes, if you do import messages from a mailinglist, then you need to run the HTML formatting on them too before inserting those messages in the database. A hack is a bad proposal, since this can easily be handled by the module / script that takes care of creating the messages. That code could even go a step further and use the HTML formatted body in case the mail client did put that in the message.<br />
<br />
You&#039;re tackling three different problems here. Don&#039;t make up a bad solution to tackle all three of them at once.<br />
<br />
And for the record: I do see ways to solve this, but I have no intention on writing the code for you to get this going. I have other parts of Phorum to work on.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Sun, 17 Oct 2010 07:30:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146340#msg-146340</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146340#msg-146340</link>
            <description><![CDATA[ Hi Maurice Makaay, <br />
After experimenting with this module for sometime, I realize that the proposed solution of - //I would in such case write a script that would convert all messages in the database to the required format, right before releasing the new editor. That route is fully fail safe.// -  is NOT fail safe, because, every new mail that lands on the phorum (from some email account or so fetched by external phorum mail) will have carriage returns in it (and not &lt;br&gt;), along with long trail mails that should be edited out by moderators. <br />
Converting the existing data in database to HTML do not provide any solution to this problem. Only a module or hack that calls the HTML conversion when the new mail lands on the phorum, or when the mail is opened for editing (by moderators) for the first time, only will solve the problem. (i.e. possibly an enhanced version of the current module itself is required to solve this issue). <br />
If HTML conversion is not handled in first edits (usually done by the moderator before approving the mail), the whole line breaks gets quashed, and either the moderator will have to do the whole re-editing or will have to approve an unreadable mail! As of now as a work around, I have reverted to the old version of this module itself which handles HTML conversion in Edits as well. (And I still have the problem of that extra line breaks coming up with multiple edits :( ) <br />
If I could get a fix for this issue, it would have been great. <br />
Thanks and Regards,  <br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Sun, 17 Oct 2010 02:52:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146298#msg-146298</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146298#msg-146298</link>
            <description><![CDATA[ Every Phorum admin in the world has his own ideas about what really should go in core, because it&#039;s so damn important. You are not an exception in that line. But we try to keep the Phorum core clean as a basic functional forum system. Bells and whistles are up to modules.<br />
<br />
1) We are not including a third party WYSIWYG editor in Phorum. Such integration should always be a module.(and I don&#039;t see why a good module implementation would not work for WYSIWYG, it&#039;s just that nobody picked up the job of making it as such till now.)<br />
<br />
2) We already have sanity checks in place for doing checks, which can also be used by modules to warn about incompatibilities. The task is not that generic, that you can easily build a clear interface around it. IMO, the place where the user should be warned about incompatbilities, is in the README or the description of the module.<br />
<br />
3) Feel free to write the module for that. It is perfectly possible to implement that, but apparently no developer felt the need to implement it. What I would use, are dedicated modules that provide some admin functionality to moderators. E.g. a module that would allow a moderator to set a user to disabled. Or a module that would allow creating new forums, based on the default forum settings. I see all that as separate functionalities that can be cleanly integrated in a targeted module.<br />
<br />
ACL sounds nice, but it is fairly useless. It overcomplicated the admin interface and still, you&#039;d have to implement new interfaces and backend scripts for the features that should show up in the control panel of the moderator user. We like contained code, hence the Phorum module system.<br />
<br />
4) Feel free to write the module for that. It is perfectly possible to implement that, but apparently no developer felt the need to implement it.<br />
<br />
5) Phorum is not and will not be a mailing list system in its core.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 05:15:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146297#msg-146297</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146297#msg-146297</link>
            <description><![CDATA[ Hi Maurice Makaay, <br />
  I appreciate this conversation and agree with you. For me this is not a major issue since our forum is just in the beginning stages and there is only a few previous messages, and also because for the existing messages since I know this issue I can avoid &#039;editing them&#039;. <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />I would in such case write a script that would convert all messages in the database to the required format, right before releasing the new editor. That route is fully fail safe. Trying to steer things from the module on-the-fly could be error prone.</div></blockquote>
Yes, this is a right statement. Usually there is no need to use two editors (BBCode and WYSIWYG) together. One of them is enough. If it is BBCode editor it is good that everything is in BBCode and if it is WYSWYG editor it is good that everything is in html. Editor switching should be a major decision and running a script for the whole database to convert the data (to BBCode or to HTMlL) should be a connected task. I agree with you on this. <br />
<br />
Note: But I think  it is already time for -<br />
1) Thinking of incorporating a third party WYSWYG editor (whether it CK Editor or TinyMCE or something else) along with Forum distribution; and also <br />
2) To clearly mention in admin control panel somewhere (possibly alongside the modules) that which modules conflicts with which other or that the functionality of which overlaps with which other. <br />
3) To provide a ACL module so that some of the selected admin functionality can be ascribed to forum moderators to be accessed (possibly) from  control panel.<br />
4) Providing a better archive search feature such as the History grid provided by yahoo groups where you can directly jump to the messages of a particular year or month etc.<br />
  <br />
Even though integrating a mailing list could be another suggestion I may present, but the above could be of more priority. <br />
<br />
These are all just suggestions/inputs  from a user&#039;s perspective.<br />
<br />
Thanks for the efforts taken, <br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 05:02:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146296#msg-146296</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146296#msg-146296</link>
            <description><![CDATA[ Yes, moving from one editor type to the other is not trivial (moving back to bbcode when coming from html would be even worse than the route that you describe).<br />
<br />
<b>What would you do?</b><br />
<br />
I would in such case write a script that would convert all messages in the database to the required format, right before releasing the new editor. That route is fully fail safe. Trying to steer things from the module on-the-fly could be error prone.<br />
<br />
Another good reason for doing the conversion on all messages, would be a scenario where one would fully deprecate a formatting module like BBcode. When doing that, you need to convert all BBcode tags, before it is possible to switch off that module.<br />
<br />
This route also makes it possible to convert back cleanly when necessary. If things would be converted on-the-fly, you would end up with a mix of formatted and unformatted messages. Writing a script that would convert all messages back to BBcode in such scenario, would give a coder a serious head ache. When doing a mass conversion, you know that all messages can be treated the same way when doing another conversion.<br />
<br />
<b>Can it be done in the module?</b><br />
<br />
&quot;Edit for the first time&quot; is not the thing here. It is &quot;Edit for the first time on a message that was written using the non-WYSIWYG editor&quot;. The module could be extended to do things like keeping a flag in the message meta data if the message was already HTML formatted or not. In such case, editing an old message, for which the flag is not set, could trigger the HTML formatting.<br />
<br />
Since I have plenty of other Phorum coding to do, I leave this or the mass message formatter as an excercise to the/a reader.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 04:33:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146295#msg-146295</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146295#msg-146295</link>
            <description><![CDATA[ This fixed the multiple &lt;br&gt; issue, but again has the disadvantage that - if I am &quot;editing&quot; an already existing post with BBCode in it for the fist time (prior to using &#039;quote&#039; etc ) then, this code will not run (i.e. BBCode will not get converted to html) and again the whole text along with bbcode will become quashed together (i.e. all line and para breaks lost; and there won&#039;t be any way to retrieve the earlier formatting)   :(<br />
 So may be the point it - when I <b>&quot;Edit&quot; for the first time</b> the already BBCode existing message too this module code should run. <br />
<br />
Note: If someone who was already using BBCode supported forum for years wants to move to WYSIWYG editor like the CK Editor, a module like this one would be a must for him, so that both the old data and new data are kept well formatted and displayed correctly. Thus certainly this module is not only going to benefit me, but many others as well for sure.<br />
<br />
Thanks and regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 04:17:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146294#msg-146294</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146294#msg-146294</link>
            <description><![CDATA[ Wow! That was an instantaneous reply! Thanks!]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 03:16:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146293#msg-146293</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146293#msg-146293</link>
            <description><![CDATA[ It happens because at every editor start, the HTML formatting is applied to the message. However, on edit this is not necessary, since the formatting was already taken care of at post time.<br />
<br />
Try the <a href="http://www.phorum.org/phorum5/file.php/download/63/4398/mod_prepare_editor_data_as_html.php" target="_blank" >updated module</a>.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 03:13:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146292#msg-146292</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146292#msg-146292</link>
            <description><![CDATA[ Hi Maurice Makaay,<br />
  Now I have a new problem (possibly caused by the above fix itself). Now every time I &#039;Edit&#039; and update a message unnecessory &lt;br&gt; tags are getting inserted into the messages. <br />
  That means for example if a messages was -<br />
<br />
hi<br />
hi<br />
<br />
Then after 3-4 edits and saves it will look like <br />
<br />
<br />
<br />
<br />
hi<br />
<br />
<br />
<br />
<br />
hi<br />
<br />
<br />
<br />
This was not intended/expected to happen. :( May be this happens because with every message/edit save the carriage returns are getting replaced by &lt;br&gt; tags I think.   Please comment. <br />
<br />
Instead of turning off this module, I would prefer to use it, because it helps in converting bbcode tags into html which might be an advantage in sending out html mails as well. The point is if there is already a &lt;br&gt; then I don&#039;t want an extra &lt;br&gt; to get inserted which possibly happens with every message edit. <br />
<br />
Thanks and regards for the help provided,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Fri, 15 Oct 2010 03:06:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146290#msg-146290</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146290#msg-146290</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
Try this single file module. It might just work. Simply drop it in your Phorum&#039;s mods folder and enable &quot;Prepare editor data as HTML&quot; in the modules screen.</div></blockquote>
<br />
Perfect! Thanks! <br />
<br />
There was still a minor problem when [quote] gets converted into &lt;blockquote&gt; that it was difficult to identify the ending of the block in CK Editor. For me I resolved this issue by enabling &quot;config.startupOutlineBlocks = true&quot; in CK Editor Config.js file. Now the text becomes well formatted even for the previously non-ckeditor edited data and also the quote blocks are becoming properly highlighted. :) Thanks. <br />
<br />
  A screen shot attached.<br />
<br />
Thanks and Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 23:26:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146284#msg-146284</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146284#msg-146284</link>
            <description><![CDATA[ Try this single file module. It might just work. Simply drop it in your Phorum&#039;s mods folder and enable &quot;Prepare editor data as HTML&quot; in the modules screen.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 09:57:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146283#msg-146283</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146283#msg-146283</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
you don&#039;t seem the programming type.</div></blockquote>
 You are right. :(]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 08:33:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146282#msg-146282</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146282#msg-146282</link>
            <description><![CDATA[ Are you asking for syntax or for a full solution? I can give you the syntax for the formatting, but that you can find in the read.php script. Only the syntax would not be enough though. This is not an issue to solve with a simple template hack. It&#039;s an issue to solve with a module. Trying to explain how that would work probably requires me to write the module, since you don&#039;t seem the programming type that can handle the task on its own.<br />
<br />
Okay, here we go. Syntax:<br />
<pre class="bbcode">
include_once &#039;./include/format_function.php&#039;;
$formatted = phorum_format_messages($unformatted);
</pre>]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 08:09:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146281#msg-146281</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146281#msg-146281</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
One approach that could work, is to run Phorum&#039;s message formatting on a message that is prepared for a new editing session. That will turn the message data into HTML. That would also convert the [quote] code to HTML. If after that the generated HTML code is fed to the editor, things will work, since the data is HTML as expected by that editor. Doing a Phorum formatting call in the preparation of a new editor is probably the most clean way to get things to work, since that will take care of handling any data that is created in the prepare phase.</div></blockquote>
Can you please provide the syntax for making such a call please. Then I will include that call just &quot;before&quot; passing the data to CK Editor in postings.tpl.<br />
Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 08:01:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146280#msg-146280</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146280#msg-146280</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
Yes, one thing I notice is that while quoting the line breaks are getting stripped off, for &quot;previously not-ckeditor formatted text. But that is a problem I can manage I think (and is mostly a ck editor related issue, I assume). </div></blockquote>
<br />
What I think is that the issue here is that, from the perspective of HTML, there are no line breaks in the formatting. There are newlines in there, but for HTML that counts as a whitespace. In HTML, you need real &lt;br/&gt; tags for getting the line breaks in there. Since you put the text in the wysiwyg HTML editor, that editor will see<br />
<pre class="bbcode">
&gt; some comment
&gt; that is quoted in
&gt; a message</pre>
as <br />
<pre class="bbcode">
&gt; some comment &gt; that is quoted in &gt; a message</pre>
To get this fixed, the quoting needs to be fed to the editor as<br />
<pre class="bbcode">
&gt; some comment&lt;br/&gt;
&gt; that is quoted in&lt;br/&gt;
&gt; a message&lt;br/&gt;</pre>
<br />
One approach that could work, is to run Phorum&#039;s message formatting on a message that is prepared for a new editing session. That will turn the message data into HTML. That would also convert the [quote] code to HTML. If after that the generated HTML code is fed to the editor, things will work, since the data is HTML as expected by that editor. Doing a Phorum formatting call in the preparation of a new editor is probably the most clean way to get things to work, since that will take care of handling any data that is created in the prepare phase.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 07:42:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146279#msg-146279</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146279#msg-146279</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
No, that is not an option. The stripping is done by first formatting the message into HTML and then stripping the HTML from the resulting message. So all HTML is removed in the end. </div></blockquote>
Yes, one thing I notice is that while quoting the line breaks are getting stripped off, for &quot;previously not-ckeditor formatted text. But that is a problem I can manage I think (and is mostly a ck editor related issue, I assume). <br />
  <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
Now whether I use CK Editor or BBCode for formatting it is appearing correctly in the forum. Mostly it is working the way I want itself - and that is why I am wondering what you mean by &quot;That is not an option&quot; etc. (Anyway the outgoing mails are stripped-off of both BBCode and HTML. If you are talking about that only then sorry for the misunderstanding)</div></blockquote>
<br />
That&#039;s what I&#039;m talking about. You requested info about stripping only the BBcode and I responded that there is no option available for that.</div></blockquote>
Got it. Thanks. <br />
Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 06:44:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146278#msg-146278</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146278#msg-146278</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
Now whether I use CK Editor or BBCode for formatting it is appearing correctly in the forum. Mostly it is working the way I want itself - and that is why I am wondering what you mean by &quot;That is not an option&quot; etc. (Anyway the outgoing mails are stripped-off of both BBCode and HTML. If you are talking about that only then sorry for the misunderstanding)</div></blockquote>
<br />
That&#039;s what I&#039;m talking about. You requested info about stripping only the BBcode and I responded that there is no option available for that.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 06:26:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146277#msg-146277</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146277#msg-146277</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
No, that is not an option. </div></blockquote>
  But that does work for me! </div></blockquote>
<br />
Okay, phrased differently: There is not an option available that you can enable to get the things working in the way that you want it. It is not a configuration option.</div></blockquote>
 Sorry, I am not getting it. What I wanted to say was that  -<br />
1)  I have enabled BBCode module without the editor tools module - It is working fine for me.<br />
2) I have enabled the HTML in Messages (version 3.0.0) - It is working fine for me.<br />
3) I have enabled the CK Editor - It is working fine for me.<br />
Now whether I use CK Editor or BBCode for formatting it is appearing correctly in the forum. Mostly it is working the way I want itself - and that is why I am wondering what you mean by &quot;That is not an option&quot; etc. (Anyway the outgoing mails are stripped-off of both BBCode and HTML. If you are talking about that only then sorry for the misunderstanding)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
For me, as of now, since I am not visibly providing the BBCode editor tools none in our forum would be using BBCode much except this quote BBCode etc. If I modify the files of module that sends out outgoing emails (for example Forum Subscription module), so that it won&#039;t be using the strip_tags function for outgoing message section, then I hope I would be possibly able to send out HTML formatted messages with just author related or so BBCode alone in those messages I hope. What would be your comment on that?</div></blockquote>
<br />
If you are planning on sending out HTML formatted messages, I would let the BBcode module do its job of formatting the [quote] tags into HTML code. </div></blockquote>
OK. Got it. So you mean to say it is a possible option - I think.  Thanks for the guidance. I will leave the BBCode module enabled as is, and will try to remove the strip_tags function used in forum subscription module (message section) I use so that HTML messages would be send out. I hope I got it correctly - or is it not?<br />
Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 06:11:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146275#msg-146275</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146275#msg-146275</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
No, that is not an option. </div></blockquote>
  But that does work for me! </div></blockquote>
<br />
Okay, phrased differently: There is not an option available that you can enable to get the things working in the way that you want it. It is not a configuration option.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sreenadh OG</strong><br />
For me, as of now, since I am not visibly providing the BBCode editor tools none in our forum would be using BBCode much except this quote BBCode etc. If I modify the files of module that sends out outgoing emails (for example Forum Subscription module), so that it won&#039;t be using the strip_tags function for outgoing message section, then I hope I would be possibly able to send out HTML formatted messages with just author related or so BBCode alone in those messages I hope. What would be your comment on that?</div></blockquote>
<br />
If you are planning on sending out HTML formatted messages, I would let the BBcode module do its job of formatting the [quote] tags into HTML code. If you want to prevent all other tags from being used in messages, you could disable those in the settings for the BBcode module, so that one will only handle [quote].]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 05:27:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146274#msg-146274</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146274#msg-146274</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
No, that is not an option. </div></blockquote>
  But that does work for me! <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
The stripping is done by first formatting the message into HTML and then stripping the HTML from the resulting message. So all HTML is removed in the end.</div></blockquote>
  Here you are speaking about removing only BBCode from outgoing emails - I understand. <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
Stripping only the BBcodes is quite an adventure, where you&#039;d have to dig deep into the tokenizing parser that I wrote for BBcode and where the parser would have to output a text representation for the BBcode tag. </div></blockquote>
  Hmm..Seems to be something complex that is not suitable for my simple brain. :(<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
Plainly stripping all bbcode would be bad, since there might be BBcodes that contain interesting info.<br />
The quote bbcode is a good example. That one would be perfect to be rendered into text, while still keeping a mentioning of the author of the quote in the text output. When bluntly stripping the bbcode tags, the autohr would get lost.</div></blockquote>
Yes, I agree. <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
This is something that I have already planned work for in the 5.3 development tree. There, I want to be able to tell the formatting code what kind of output I expect. This will provide low level control over the output (html / text / collapsed text), instead of doing stripping of messages after rendering to HTML. </div></blockquote>
Good to know that. <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Maurice Makaay</strong><br />
Unfortunately, this is not something that will be available for 5.2, so if you want this solution, you will have to wait.</div></blockquote>
That is fine. <br />
<br />
<b>Another Connected thought</b><br />
For me, as of now, since I am not visibly providing the BBCode editor tools none in our forum would be using BBCode much except this quote BBCode etc. If I modify the files of module that sends out outgoing emails (for example Forum Subscription module), so that it won&#039;t be using the strip_tags function for outgoing message section, then I hope I would be possibly able to send out HTML formatted messages with just author related or so BBCode alone in those messages I hope. What would be your comment on that?<br />
<br />
Thanks and regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 05:22:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146272#msg-146272</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146272#msg-146272</link>
            <description><![CDATA[ No, that is not an option. The stripping is done by first formatting the message into HTML and then stripping the HTML from the resulting message. So all HTML is removed in the end.<br />
<br />
Stripping only the BBcodes is quite an adventure, where you&#039;d have to dig deep into the tokenizing parser that I wrote for BBcode and where the parser would have to output a text representation for the BBcode tag. Plainly stripping all bbcode would be bad, since there might be BBcodes that contain interesting info.<br />
<br />
The quote bbcode is a good example. That one would be perfect to be rendered into text, while still keeping a mentioning of the author of the quote in the text output. When bluntly stripping the bbcode tags, the autohr would get lost.<br />
<br />
This is something that I have already planned work for in the 5.3 development tree. There, I want to be able to tell the formatting code what kind of output I expect. This will provide low level control over the output (html / text / collapsed text), instead of doing stripping of messages after rendering to HTML. Unfortunately, this is not something that will be available for 5.2, so if you want this solution, you will have to wait.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 05:04:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146270#msg-146270</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146270#msg-146270</link>
            <description><![CDATA[ Hi Maurice Makaay,<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />It is not a CK editor problem.<br />
<br />
Normally, the BBcode module takes care of nifty quoting by applying the <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br /> bbcode to it. Since the bbcode module is not available anymore, the basic text based quoting will be done by the Phorum core. This text based quoting does not contain HTML &lt;br/&gt; line breaks, causing all the lines in the quote to collapse into one, making it look bad.</div></blockquote>
Thanks for the valuable info.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />You need to write a module that handles quoting in a way that works well for use in the HTML environment that you are in now. This module must implement the &quot;quote&quot; hook to take care of converting the quoted test into good looking HTML code.</div></blockquote>
Hmm.. that is not within my current capability. :( <br />
<br />
But thanks for the clue!  ;)<br />
I have enabled the &quot;BBcode (version 2.0.10)&quot; module ON and left the &quot;Editor tools (version 1.2.3)&quot; module OFF. :) Now I don&#039;t have that BBCode toolbar, but the (BBCode will work) and the BBCode Toolbar will not appear. For me anyway as of now the outgoing mails goes without formatting and so, both the BBCodes and HTML will get stripped of in out going mails and will appear correctly in the forum pages. That seems to be fine as of now. <br />
 A question that comes to mind is - &quot;Is there a way to strip-off only BBCodes from outgoing mails and not html? <br />
<br />
Thanks Regards,<br />
Sreenadh</div></blockquote>]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 04:56:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146268#msg-146268</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146268#msg-146268</link>
            <description><![CDATA[ It is not a CK editor problem.<br />
<br />
Normally, the BBcode module takes care of nifty quoting by applying the [quote] bbcode to it. Since the bbcode module is not available anymore, the basic text based quoting will be done by the Phorum core. This text based quoting does not contain HTML &lt;br/&gt; line breaks, causing all the lines in the quote to collapse into one, making it look bad.<br />
<br />
You need to write a module that handles quoting in a way that works well for use in the HTML environment that you are in now. This module must implement the &quot;quote&quot; hook to take care of converting the quoted test into good looking HTML code.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 04:32:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146265#msg-146265</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146265#msg-146265</link>
            <description><![CDATA[ Hi klgordon,<br />
  The following are the things I have done after uploading the ckEditor code to the forum root folder. <br />
<br />
1) Enabling the CK Editor<br />
I have located the<br />
<pre class="bbcode">
&lt;textarea name=&quot;body&quot; id=&quot;body&quot; class=&quot;body&quot; rows=&quot;15&quot; cols=&quot;50&quot;&gt;{POSTING-&gt;body}&lt;/textarea&gt;</pre>
<br />
in posting.tpl and replaced that line with the code you supplied -<br />
<br />
<br />
<pre class="bbcode">
&lt;textarea name=&quot;body&quot; id=&quot;body&quot; class=&quot;body&quot; rows=&quot;15&quot; cols=&quot;50&quot;&gt;{POSTING-&gt;body}&lt;/textarea&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./ckeditor/ckeditor.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
CKEDITOR.replace( &#039;body&#039; );
&lt;/script&gt;</pre>
<br />
<br />
<br />
<br />
But note the small difference in path of ckeditor.js used. Unlike what is mentioned in your post in Phorum community if the ckeditor is copied to phorum root directory the path mentioned in posting.tpl should be &quot;&quot;./ckeditor/ckeditor.js&quot;&quot;<br />
Now the CKEditor appeared in below BBCode editor for edit/reply/quote.<br />
<br />
2) Disabling the BBCode related modules.<br />
Then I have loggedin to the admin area and disabled all the BBCode related modules such as BBcode (version 2.0.10), BBcode Flash, BBcode GeSHi, BBcode Google, BBcode Tables, BBcode Video and Editor tools. Thus all BBCode related things gone and I am left with the posting textarea with CKEditor toolbar in it.<br />
3) Enabling the HTML in Messages (version 3.0.0)<br />
Download and install the module &quot;HTML in Messages (version 3.0.0)&quot;<br />
Enable this module in admin section. In the module settings screen, in &quot;Control who can enter HTML in forum messages&quot; section choose &quot;Anyone&quot;.<br />
<br />
4) Customizing the CK Editor<br />
Now I had customize CK Editor toolbar and formatting. So I opened the &quot;config.js&quot; of the CK Editor and defined the toolbars and formatting customizations in it. I have added the following lines to config.js since I didnot want the form related buttons and want to change the positioning of some CK Editor toolbar buttons<br />
<br />
<pre class="bbcode">
CKEDITOR.config.enterMode=CKEDITOR.ENTER_BR;
config.toolbar_Full =
[
[&#039;Source&#039;,&#039;-&#039;,&#039;Save&#039;,&#039;NewPage&#039;,&#039;Preview&#039;,&#039;-&#039;,&#039;Templates&#039;],
[&#039;Cut&#039;,&#039;Copy&#039;,&#039;Paste&#039;,&#039;PasteText&#039;,&#039;PasteFromWord&#039;,&#039;-&#039;,&#039;Print&#039;, &#039;SpellChecker&#039;, &#039;Scayt&#039;],&#039;-&#039;,
[&#039;Undo&#039;,&#039;Redo&#039;,&#039;-&#039;,&#039;Find&#039;,&#039;Replace&#039;,&#039;-&#039;,&#039;SelectAll&#039;,&#039;RemoveFormat&#039;],
//[&#039;Form&#039;, &#039;Checkbox&#039;, &#039;Radio&#039;, &#039;TextField&#039;, &#039;Textarea&#039;, &#039;Select&#039;, &#039;Button&#039;, &#039;ImageButton&#039;, &#039;HiddenField&#039;],
[&#039;Image&#039;,&#039;Flash&#039;,&#039;Table&#039;,&#039;HorizontalRule&#039;,&#039;Smiley&#039;,&#039;SpecialChar&#039;,&#039;PageBreak&#039;],&#039;-&#039;,
[&#039;Maximize&#039;, &#039;ShowBlocks&#039;],&#039;-&#039;,
[&#039;Link&#039;,&#039;Unlink&#039;,&#039;Anchor&#039;],
&#039;/&#039;,
[&#039;Font&#039;,&#039;FontSize&#039;],
[&#039;TextColor&#039;,&#039;BGColor&#039;],
[&#039;Bold&#039;,&#039;Italic&#039;,&#039;Underline&#039;,&#039;Strike&#039;,&#039;-&#039;,&#039;Subscript&#039;,&#039;Superscript&#039;],
[&#039;NumberedList&#039;,&#039;BulletedList&#039;,&#039;-&#039;,&#039;Outdent&#039;,&#039;Indent&#039;,&#039;Blockquote&#039;,&#039;CreateDiv&#039;],
[&#039;JustifyLeft&#039;,&#039;JustifyCenter&#039;,&#039;JustifyRight&#039;,&#039;JustifyBlock&#039;],&#039;-&#039;,
[&#039;Styles&#039;,&#039;Format&#039;],&#039;-&#039;,
[&#039;About&#039;],
];</pre>
<br />
<br />
Now it works excellent and anyone can post using CKEditor without any problem! Great!<br />
<br />
<span style="color:#FF0000">5) One more problem!<br />
But now I am faced with a problem. If I am using the &quot;quote&quot; feature, the CKEditor is removing all my line breaks and formatting from the quoted text and quashing it to a mess (without any formatting tags and line breaks)! There must be some work around for this problem- I am searching for it. If you know a solution for this &quot;CK Editor Problem&quot; please let me know. I am certain that there would a workaround using CK Editor configuration or hack or so for this &quot;CK Editor problem&quot;.</span><br />
<br />
Note You can visit our forum with CKEditor enabled at: [<a href="http://www.ancientindianastrology.com/group/list.php?2" target="_blank"  rel="nofollow">www.ancientindianastrology.com</a>]<br />
Thanks and Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Thu, 14 Oct 2010 03:56:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146262#msg-146262</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146262#msg-146262</link>
            <description><![CDATA[ Thanks! Do you have any remaining concerns? What would be your recommendation?]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 13:28:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146261#msg-146261</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146261#msg-146261</link>
            <description><![CDATA[ The HTML module takes care of filtering out possibly malicious code. Using an editor without any protection would be bad, but that is not what Sreenadh is doing.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 13:10:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146260#msg-146260</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146260#msg-146260</link>
            <description><![CDATA[ I think of malicious code (XSS). Aren&#039;t there ways to filter content to accomplish reasonable security? If you have more complex content, it is a challenge to edit and move around these narrow BBCode brackets. But I will stay away from WYSIWYG Editors as long as it means jeopardized security. <br />
<br />
PS: I believe ZOHO forums provide an WYSIWYG editor.]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 12:50:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146258#msg-146258</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146258#msg-146258</link>
            <description><![CDATA[ Ehh... explain what a cyber-attack consists of, please.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 12:27:42 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146257#msg-146257</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146257#msg-146257</link>
            <description><![CDATA[ Good news, Sreenadh!<br />
But aren&#039;t you afraid of cyber-attacks since you apparently handle many users?]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 11:57:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?63,145016,146256#msg-146256</guid>
            <title>Re: WYSIWYG Editor for Phorum (edit: CKEditor spamvertisement)</title>
            <link>https://www.phorum.org/support/read.php?63,145016,146256#msg-146256</link>
            <description><![CDATA[ Hi klgordon,<br />
  Thanks for the excellent note! I have integrated CK Editor to our phorum installation and it works fine! Thanks to &quot;HTML in Messages (version 3.0.0)&quot; as well, which I am using along with this module. I have enabled HTML posting for anyone in the forum messages option; and disabled the BBCode related modules.  Just experimenting to see how it works out. But the primary impression is excellent!<br />
Thanks and regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Templates</category>
            <pubDate>Wed, 13 Oct 2010 09:50:21 -0500</pubDate>
        </item>
    </channel>
</rss>
