EnjoyYourPosting with FCKeditor and alogblog's interface on MT 3.3
Security Problem : While finding a solution, downloading link will be removed.
EnjoyYourPosting, a Movable Type 3.3's plugin, enables you to use nice WYSIWYG editor(FCKeditor) in entry editor, also in QuickPost's editing, and provides some MT interface styles, so called alogblog's MT interface to you.
In previous version, this plugin provided FCKeditor to only alogblg's MT interface, not to native MT interface. This is because I made alogblog's MT interface at first, and then adopted FCKeditor into it later. However some users didn't like my MT interfaces and others like Farsi language(characters from right to left) user wanted FCKeditor on "native" MT interfae.
So in this version, I decoupled alogblog's MT interface with FCKeditor itself. This means you can use FCKeditor on native MT interface, also you can use MT's editor on alogblog's MT interface, and vice versa.
And I focused in some performance issues of stlye changing and others. FCKeditor version 2.3.1 improved a problem of loading many small button images, so as a result, "EnjoyYoutPosting" could work better than previous version.
In addtion to it, I combined my FCKeditor's Tagging plugin into this Movable Type system. By tagging soem text using Tagging plugin, you can automatically insert that tag into "Keywords" or "Tags" field.
Lastly, I combined a FCKeditor plugin, "ImageManager", which enables you to process uploaded images on the fly, especially watermarking feature seems good.
Hey MT users, developing this plugin gave a little pain to my head, because I had to combine serveral elments into one and investigate new MT 3.3's interface template structures and catch new FCKeditor vesion's plugin API, and so on. As a result, I'm so exhausted now and, I think this entry seems insufficient to fully and kindly explain its usage. If you have some question, please see previous version entry at first.
I wish my humble "EnjoyYourPosting" plugin makes you really enjoy your MT posting.
Requirement
- Movable Type 3.3
- PHP, if you want to use FCKeditor's Media Browsers and optional ImageManager plugin.
- GD or ImageMagick or NetPBM tool, if you want some image processing like resizing, cropping, rotating and watermarking.
For pre-version users
In this new version, I included FCKeditor's latest version, 2.3.1, and I have no idea if it is possible or safe to overwrite this new FCKeditor files to old files. So I recommend you to temporaily rename old FCKeditor/ folder to other name, and then install this plugin. And if you have your own data file in old FCKeditor's sub folders, copy those to new FCKeditor's same sub folders.
If you are not sure this version is good for you, just try to test it in a new MT instance first.
Installation
Download this plugin and untar it under (mt home) folder like $ tar xvfz EnjoyYourPosting-3.3.02.tar.gz.
Step by step(How to use and customization)
0.
Open your any MT menu page. By default, this plugin applies "Classic" skin to MT interface. Do you hate it? Please hold on.
1.
FCKeditor will show up only when entry's Text Formatting is "FCKeditor". Although you can select it in each entry's option, you'd better set it in a blog level.
Go to "Edit Weblog Configuration -> Switch to Detailed Settings -> New Entry Defaults". In there, select "FCKeditor" as a default Text Formatting. Save it and open "New entry" page.
By default, both of Entry Body and Extended Entry area have FCKeditors. Let's try to change it.
2.
Go to "Author Profile" menu.(Just click your ID in the upper right corner.) Then you will see new section in bottom of that page. In it, you can switch other syles or restore native MT interface.
And you can customize some FCKeditor related settings. If you deselect "Use FCKeditor", then MT's editor will be used. QuickPost part also can be customized. Change it as you like, and see your entry editing page.
Yes, this configuration is applied per an author.

3.
Go to "System-wide" plugin list menu. In there, you can set emoticon URL and UserFiles URL of QuickPost. Default is (mt home)/mt-static/FCKeditor/emoticons/. If you move that emoticon folder into other place, set it in here.
Let's me explain UsefFiles URL for QuickPost. The term "UserFiles" is from FCKeditor. FCKeditor stores any uploadings into under UserFiles/'s sub folder. UserFiles/ has three sub folders, Image/, File/, and Flash/. You can set this folder per a blog.(Default is (mt home)/mt-static/FCKeditor/UserFiles/) However QuickPost has a little problem of it. QuickPost does not belong to any blogs, but it belongs to all blogs that an QuickPoster has an permission to edit. So it's impossible to set dynamically user-selected blog's UserFiles in QuickPost. As a result, I introduced system-wide UserFiles folder in (mt home)/mt-static/FCKeditor/UserFiles/. If you don't understand it, don't worry about it. Just use the default.
4.
Go to "Blog-wide" plugin list menu. In there, you can set three options. UserFiles option is like as above.
"Use blog's data" option enables a blog to have its own FCKeditor-related style/template under its blog site path. FCKeditor provide user-customizable style and template. By default, FCKeditor uses files(fck_editorarea.css, fckstyles.xml, fcktemplates.xml) under (mt home)/mt-static/FCKeditor/ folder in order to apply related menu. This means that all of your blogs use the same style/template. If you are only an author in your MT system, it might be OK. However if you want a blog has its own style/template, you should check this option. If then, of course you have to create above three files under blog site path.(You can use my add-default-template Perl tool in order to make these default template. See previous version entry)

In FCKeditor, you can use its Tagging plugin which I made. Drag some texts and select a tag meta site. Then the dragged text will be converted tag link. In addition, you can automatically enter that dragged text into "Keywords" or "Tags" fields of an entry, or into none. This option is done blog's plugin settings.

5.
Open "Create New Entry" page. Click FCKeditor's Image button, and try to upload an image or browse your server using it. Uploaded images are save under (mt home)/mt-static/FCKeditor/UserFiles/Image/ folder by default. If you fail to upload image or browse, check above folder permission.
6.
In this version, I adopted addtional "Image Manager" FCKeditor plugin in my EnjoyYourPosting. By default, FCKeditor provides Media Browser/Uploader, and you can still use it. However I added Image Manager plugin because this makes you to process uploaded images on the fly. For example, rotating, resizing, cropping, watermarking can be done in Image Manager.
You can have two methods for opening Image Manager, first is to click menu button, the other is to double-click on an image. Try to open and upload/image process an image.
In order for you to use Image Manager's processing features, you have to set its related configs in (mt home)/mt-static/FCKeditor/editor/plugins/ImageManager/config.inc.php file. By default, "GD"method for image processing is set. If you use other method like ImageMagick or NetPBM, you also have to set its location path. Refer config.inc.php.org file for its explanations.
As an example, I added my watermark images in UserFiles/Image/watermark/. Its doc. says that 24 bit PNG file is need for adopting transparency, however in my case 32 bit PNG could do.

7.
Do you frequently use QuickPost, an MT's bookmarklet tool ? My EnjoyYourPosting plugin also adds FCKeditors into editing area of QuickPost popup, and makes it a little wider.
Perhaps do you use blogging tools like Zempt, BlogJet, Zoundry Blog Writer and so on? Yes these tools are very good in general. I think, however, any other blogging tools can't do better than MT's native QuickPost method. Because above blogging tools are general tool, these have less organic intercommunication ability with Movable Type than MT itselft have. For example, is there a tool which supports MT 3.3s tag field? As far as I know, no. Oh~ no. QuickPost is such a tool although you may think it is less convienient.
QuickPost with excellent WYSIWYG like FCKeditor(moreover with my QuickImagePost plugin) could be more convienient than any other general blogging tools. With "EnjoyYourPosting" plugin, you also get nice blogging tool.![]()
Notes
- This plugin uses MT 3.3's new plugin I18N feature. Please translate plugins/alogblog/lib/alogblog/EnjoyYourPosting/L10N/ko.pm file into your language, and send it to me(alogblog dot com at gmail dot com). Thanks.
- Please refrain yourself from asking FCKeditor-related questions. If you have a problem about FCKeditor itself, please go and see FCKeditor forum. (Or you can refer my previous version entry's comments)
- If you have a problem or want to know more detail explanation about config., please go an see ImageManger page.
License
Relased under the Creative Commons License.FCKeditor(Version 2.3.1) follows its own copyright.
Version History
- 3.3.02: bug fixed.(Author's preferred language is not defined in logging step, so it printed error log)
- 3.3.01 : for MT 3.31 and other features added. Renamed to "EnjoyYourPosting"
- 3.2.05: FCKeditor's FullWindow and Tagging plugin added.
- 3.2.04: FCKeditor 2.1.1 newly added. / Error "Can't call method "preferred_language"..." fixed, thanks dusl for reporting it.
- 3.2.03: Chinese CSS version added.
- 3.2.02: Korean/Japanese CSS version added.
- 3.2.01: for MT 3.2
- 1.0 : Initial but not released, for MT3.17

Comments
Thanks for this MT 3.3 version of AlogBlog that I was using. FCKEditor is very nice. I will try to send you a french version of ko.pm when I will find some time to write it ;-)
Posted by: http://www.zeguigui.com/weblog/index.php
|
August 7, 2006 06:47 AM
So nice is it :)
I've waited it for such long time ~~
Thank you,Joon.
Posted by: Refugee.Arkardo | August 16, 2006 01:17 PM
I got the following error: (when i tried to open mt.cgi)
Can't locate object method "new" via package "HTTP::Request" at lib/MT/App/CMS.pm line 990.
Is this because of upgrading the MT to 3.3 or because the alogblog plugin?
Please help.
I think it may be not my problem.
Your error msg means you failed to load "HTTP::Request" Perl module.
This module is located in (mt)/extlib/HTTP/Request.pm ,,,
Perhaps if you open MT main(?) menu page, MT reads MT news. In that stage, MT requires HTTP::Request modules, but you failed...
So some missing might be happened in your upgrading...
Posted by: Jimmy | August 25, 2006 01:03 PM
Strangely enough, my Author Profile page doesn't show the FCKeditor settings.
Also, upgrading from an older version o MT and upgrading FCKeditor as well crashed my blog, so I did a fresh install, copied over the database THEN installed EnjoyYourPosting (EYP from now on).
I also installed BigTemplateWindow (BTW), but it doesn't work. EYP worked fine until I went to the Plugins page and selected Restore MT native template editor from the BTW settings. Since then, I've tried almost everything to get the alogblog MT interface back, but without success.
I'm now re-uploading all the files to see if I can get both EYP and BTW working. Just thought your should know, and if you do have any answers, please get back to me.
Posted by: magu
|
September 26, 2006 12:17 PM
Updating the comment above:
Re-uploading files did not work. I managed to get EnjoyYourPosting (EYP) working again by going into the database myself and erasing the lines containing configuration options related to EYP and BTW. Unfortunately, BigTemplateWindow (BTW) still doesn't work, and the FCKeditor settings still don't show up on the Author Profile page.
Posted by: magu
|
September 26, 2006 01:03 PM
Thanks for a great plugin. I do have a question though and that is getting this to work on subdomains. I cannot get it to set the paths correctly for uploading images.
Our main domain is this,
the root is http://gokboet.nu
Normally our settings from root are like this.
/home/path-to-public-html[root]/carina/
this is my subdomain which I use as my personal site on our family domain.
With that setting as path it would naturally be
/carina/UserFiles/
as I have understood the instructions.
But then it tries to find the image in http//carina.gokboet.nu/carina/UserFiles/
and not
http//carina.gokboet.nu/UserFiles/
Am I stuck in how to do this so I don´t see the forrest for all the trees.
The familymembers who have their parts of this domain as subfolders the settings works perfectly but not for me or 2 others.
Could someone please point out what I am doing wrong in the settings. The MT installation is in root as I described above and the configs work for all our MT settings but this got me stuck.
Thanks in advance.
Carina in Sweden
I guess your problem may be from FCKeditor's PHP routines. One thing I modified in FCK's PHP routine can be about that, although I'm not sure.
Open (mt)/mt-static /FCKeditor /editor /filemanager /browser /default /connectors /php /io.php file, and find "alogblog" word, and then try to comment that one line as like
// return $_SERVER['DOCUMENT_ROOT'];/*alogblog*/
If no success, search FCK forum. Perhaps many users like you have suffered that subdomain/symbolic link problems...
One curiosity: It is very isolated(?) site and my plugin is not popular. How did you know this plugin or my blog? Just from googling?
Posted by: Carina
|
October 1, 2006 04:16 PM
Hi and thanks for your answer. I will try and check FCKforum, I just assumed that there were more users with subdomains than me :)
I frequently check the pluginpage for MT and I also use your Tcode plugin and tried to get the Add default template plugin to work but it won´t, I can´t get the temaplates to be created.
Also important to say is that I have been an MT user for some years now so to keep up with possibilities in plugins from users and others is a must if I want to keep up with the possibilities that MT have and that users like yourselv make happen. I have always had the latest updates and as we are 6 users I purchased a license last year for personal use.
Concerning your plugins and hard work put into it is that I like them a lot so I, among others, do appreciate the work you put in for the rest of us who can´t make plugins our selves.
Carina
Posted by: Carina
|
October 1, 2006 05:17 PM
Just a quick update, there are no solutions for this in the FCKforums as people seem to have had a few problems with this. That strikes me as strange as I cannot only be me using subs for users.
I could not find any solution but I will keep trying to get it to work. For starters perhaps the only solution today is to have an FCKeditor folder under the subdomains but perhaps I will just screw everything upsida down then instead.
Posted by: Carina
|
October 1, 2006 05:59 PM
Sorry to be spamming your blog like this.
This error is now showing up in the server error logs (I am on a FreeBSD server)
Subroutine make_bm_link redefined at ../../lib/MT/App/CMS.pm line 1437.
Subroutine _bm_js redefined at ../../lib/MT/App/CMS.pm line 1501.
Subroutine reg_file redefined at ../../lib/MT/App/CMS.pm line 9157.
Subroutine make_bm_link redefined at lib/MT/App/CMS.pm line 1437.
Subroutine _bm_js redefined at lib/MT/App/CMS.pm line 1501.
Subroutine reg_file redefined at lib/MT/App/CMS.pm line 9157.
Subroutine make_bm_link redefined at lib/MT/App/CMS.pm line 1437.
Subroutine _bm_js redefined at lib/MT/App/CMS.pm line 1501.
Subroutine reg_file redefined at lib/MT/App/CMS.pm line 9157
I only reuploaded the addDefaultTemplates and this what I get. Very strange.
I earlier had the same errors and had to make a fresh install under a different folder name to get rid of these errors. I also used an empty database and imported all necessay files. This has been working properly untill right now when I checked. Perhaps they don´t like each other.
I think above error logs are from QuickPost or QuickImagePost. Perhaps you might use it after installing MT. Those msgs may be not related with original problems...
Posted by: Carina
|
October 1, 2006 09:16 PM
Hi, I've installed the plugin, but I cannot get the WYSIWG controls to appear and the left-hand column is replaced by a bulleted list that looks like this:
* Posting
*
*
*
* Community
*
*
*
*
* Configure
*
*
*
*
* Utilities
*
*
*
*
*
Any idea what's going on here? Thanks so much!
EYP uses its own additional CSS file which is under (mt
home /mt-static /plugins /alogblog /EnjoyYourPosting/ folder.
By default, it uses mt-classic.css file.
Please
1. check above folder and mt-classic/ peach /sky.css files.
2. open an MT menu page's HTML source in browser and find [link rel="stylesheet" href="http://.../mt-static /plugins /alogblog /EnjoyYourPosting /mt-classic.css"
type="text/css" /]
Are there those CSS files in that path?
3. If then, check that CSS files's web accessibilty by your browser.
Good luck.
Posted by: Andrew Smith | October 11, 2006 11:56 PM
I just installed this upgrade, and I have to admit that I am as thoroughly impressed with this one as I was the last. However, every time I attempt to use the Technorati button, it links to Technorati just fine... but as "undefined". I.e. I keep getting this: "http://technorati.com/tag/undefined" when what I want is this:"http://technorati.com/tag/election". The word I highlight to create the Technorati tag is "election", so I am not sure where the problem lies. Any help would be greatly appreciated :).
Posted by: Linoge
|
November 8, 2006 12:41 PM
This looks great! The only problem that I have is it seems to stop BetterFileUploader 2.0 from loading.
After loading EYP if I click the upload icon I get the standard 3.3 upload tool. Unfortunately I can't live with BetterFileUploader 2.0. ;-(
BetterFileUploader is very good plugin, I know, although I didn't
install it. I can't guarantee I will clear it, but I will install and
investigate that plugin and would try to get a solution. If it is
solved, I'd mail you.
Posted by: Ron | November 14, 2006 06:13 AM
Thanks for the fix, Mr. Lee!
Posted by: Linoge
|
November 16, 2006 09:15 AM
I'm getting "toolbar set does not exist" errors when attempting to use FckEditor. Any suggestions?
"Toolbar set 'OOOO..' does not exist" Pop-up error? I guess your browser blocked FCKeditor's related Javascripts. Please try to run while turning off ad-blocker or configuring it.
Posted by: Jon Lachnonis | November 23, 2006 08:56 AM
Hi there, for some reason when I choose the FCKeditor for the comments there is no editor added to the comment section.
Posted by: Curt
|
December 26, 2006 01:15 PM
This makes my third attempt to contact Joon Lee regarding a major security problem with this plugin over the last month with no response what-so-ever. Please respond. As distributed this plugin renders a MT site subject to hacking. It should not be used by anyone until this problem is addressed. If I don't see some kind of response in another week, I will pursue this via the SixApart site instead and see if I can get somekind of response from them.
Posted by: Benjamin Franz
|
January 31, 2007 09:17 PM