KCFinder Fixes

 
From: "Justin J" <justin@PROTECTED>
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

http://kcfinder
sunhater
com/docs/integrate#session
  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.