I would think you should be able to. I use Invision Power Board and was able to get CKEditor to work on it with a little bit of rigging. I imagine the process I went about doing this wouldn't be too dissimilar for phpBB, so I'll go ahead and share.
Your 1st order of business will be to open up the templates that phpBB uses to generate the pages for submitting and editing posts. Somewhere in that template will likely be a <textarea> element. After </textarea>, add this code:
And change "Post" to whatever the id attribute is of the <textarea> element. If there isn't a <textarea> element, but instead something like a call to load phpBB's built-in post editor, include the above code somewhere appropriately after that call. Then CKEditor will load into whatever <textarea> element that the standard phpBB editor generates so long as you have the <textarea> element's id attribute inputted as per above.
After you have that squared away, the 2nd thing you'll need to do is set your forum so that HTML is enabled on all posts by default. This is said to be a security risk, but there's no way to use CKEditor unless HTML posting is allowed. If it isn't, and you try to use CKEditor to make a post, you'll just see a bunch of HTML code in the post instead of what you wanted to see. As long as you trust your users, I don't think it should be a big deal. I know on Invision, most of the obvious security holes are still blocked even with HTML posting on (i.e., users can't post anything with <script> tags in it or dynamic images, etc.). There are probably similar countermeasures on phpBB.
Anyway, those are the two things I did. There are a few minor loose ends I still need to tie up, but for the most part, far as I can tell CKEditor works and interacts with the forum software just fine.
In my testing phpbb3 forum at localhost I have replaced the 'textarea' with CKEditor and I have enabled the HTML after 'submit'. However, I have problem to syncronize the 'uploaded' image of CK with phpbb3; in between them CK use Javascript and phpbb use PHP. (It seems that phpbb3 did not save the image files into its database under preview mode and it saves the image till after the user hit 'submit' button; so I guess the image was saved in cache during preview, and how JS does the same? Btw, I am still tracing phpbb3 to understand how did it select the image out from its DB to display in certain post at the moment.) Also in my testing, I have skipped the bbcodes part and use HTML directly to display the output of CK.
I used to write C/C++, not familar with PHP and never touched JS before. I wonder can anyone give me a guide how to sync the upload file of CK & phpbb3? A simple demo program or some tutor articles would be more than prefer.
Re: CKEditor for phpbb3
This board is powered by phpbb3 but no CKEditor in here!
Re: CKEditor for phpbb3
Your 1st order of business will be to open up the templates that phpBB uses to generate the pages for submitting and editing posts. Somewhere in that template will likely be a <textarea> element. After </textarea>, add this code:
And change "Post" to whatever the id attribute is of the <textarea> element. If there isn't a <textarea> element, but instead something like a call to load phpBB's built-in post editor, include the above code somewhere appropriately after that call. Then CKEditor will load into whatever <textarea> element that the standard phpBB editor generates so long as you have the <textarea> element's id attribute inputted as per above.
After you have that squared away, the 2nd thing you'll need to do is set your forum so that HTML is enabled on all posts by default. This is said to be a security risk, but there's no way to use CKEditor unless HTML posting is allowed. If it isn't, and you try to use CKEditor to make a post, you'll just see a bunch of HTML code in the post instead of what you wanted to see. As long as you trust your users, I don't think it should be a big deal. I know on Invision, most of the obvious security holes are still blocked even with HTML posting on (i.e., users can't post anything with <script> tags in it or dynamic images, etc.). There are probably similar countermeasures on phpBB.
Anyway, those are the two things I did. There are a few minor loose ends I still need to tie up, but for the most part, far as I can tell CKEditor works and interacts with the forum software just fine.
Re: CKEditor for phpbb3
do u have any suggestion other than defining bbcode tags ?!
Re: CKEditor for phpbb3
In my testing phpbb3 forum at localhost I have replaced the 'textarea' with CKEditor and I have enabled the HTML after 'submit'. However, I have problem to syncronize the 'uploaded' image of CK with phpbb3; in between them CK use Javascript and phpbb use PHP. (It seems that phpbb3 did not save the image files into its database under preview mode and it saves the image till after the user hit 'submit' button; so I guess the image was saved in cache during preview, and how JS does the same? Btw, I am still tracing phpbb3 to understand how did it select the image out from its DB to display in certain post at the moment.) Also in my testing, I have skipped the bbcodes part and use HTML directly to display the output of CK.
I did read some of articles for CK upload like http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader) and http://www.caeus.com/articles/how-to-add-and-upload-an-image-using-ckeditor/. But frankly I am not quite understand them in the BrowseUrl & UploadUrl setting parts and I do not get why should I set them?
I used to write C/C++, not familar with PHP and never touched JS before. I wonder can anyone give me a guide how to sync the upload file of CK & phpbb3? A simple demo program or some tutor articles would be more than prefer.
eko4v