From:
Justin J <justin@dadamailproject.com>
Subject:
KCFinder Fixes
Date:
August 14th 2012
I'm looking at some problems with the KCFinder not well, working at all, when used in Dada Mail. KCFinder is what should allow you to browse files on your server, and upload images to be included in HTML email messages. It's really cool, slick and it's free - which CKFinder is not. KCFinder uses sessioning to control who's allowed to upload files/images (as well as browse your server), instead of, well, NO security that FCKeditor "affords". That was the big reasoning for me to move away from FCKeditor and work on CKeditor and Tiny MCE, which support for KCFinder.
The main trick to get KCFinder working with Dada Mail is to understand that Dada Mail is written in Perl and all the server side stuff of KCFinder is in PHP. KCFinder uses PHP Sessioning to allow/disallow you to use it. Dada Mail has to speak "PHP Sessioning" to work with this - and it does, to an extend. One thing it doesn't do, is create the initial PHP session cookie - no session cookie, no way to look up any of the sessioning info needed by KCFinder, and then, nothing works.
So, now I've made it so that Dada Mail makes that session cookie.
The other thing I've done is explicitly set the directory under which php sessions are created for Dada Mail/KCFinder. It may be that specific PHP's are configured to use a different directory other than, "/tmp" to hold your sessioning info, or even a different way to save sessions, other than a file-based way (SQL?) - not sure (bang head on wall)! If it's the latter, there's a chance that this all won't work.
Anyways, my work on this, and other bugs can be found here:
https://github.com/justingit/dada-mail/tree/bugfixes-5_2_1
I'll release some sort of beta of all this, if anyone is interested in giving it a shot. You will need to upgrade Dada Mail using the Dada Mail installer, for this all to work out. All I can say is, "It's working for me!" and if you're using a cPanel-based hosting account, it'll work for you, too.
And if anyone knows more than more complete shot in the dark guesses on PHP sessioning, I could really use the help.
Some background:
http://dadamailproject.com/support/documentation-5_2_0/features-wysiwyg_editors.pod.html
|
<< Previous: authorized senders and moderation |
| Archive Index | |
Next: Re: KCFinder Fixes >> |
This mailing list is to discuss the nerdy programming development of Dada Mail -
If you are just looking for support Dada Mail, consult the message boards at:
http://dadamailproject.com/support/boards
To post to this list, send a message to:
All subscribers of this list may post to the list itself.
Some on topic... topics include:
At the moment, there aren't many people with CVS access for Dada Mail - if you would like CVS access, please first talk about the changes you propose and how it will affect the program. If the idea is sound and agreed upon, the change will be comitted. A good track record of this will allow you to have CVS access. Some reasons that patches will not be accepted is if the patch breaks compatibility with a previous version of the program, the patch is too centric to your own problem or the patch simply isn't very good.
Please, please please familiarize yourself with the documentation at:
http://dadamailproject.com/support/documentation/
Since no one wants to answer the same question twice.
Another sneaky reason for this mailing list is to test out the discussion list capabilities of Dada Mail, since Dada Mail is used for the mailing list itself.
NOTE - because of this, there may be times that this list will be somewhat broken. Although we're not planning on breaking the program by using it, we're giving you the heads up that this may well happen anyways.