close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ckeditor absolute file path for images

Thread began 11/01/2015 12:29 pm by CraigR | Last modified 12/08/2015 11:32 am by Ray Borduin | 4060 views | 9 replies |

CraigRBeta Tester

ckeditor absolute file path for images

I am writing an email campaign editor for mailchimp api v2.0 which uses ckeditor, and i want the option to add images to the email.

Is there a way I can configure ckeditor to change the file path of the inserted image to an absolute path, which is needed to display the image ?

Sign in to reply to this post

Ray BorduinWebAssist

Yes. You can set the path in the configuration file and have it include the full URL. It would be the /webassist/kfm/configuration.php file. Just update the "$kfm_userfiles_output" setting to be the full url to the image folder you are uploading to like:

$kfm_userfiles_output = "http://www.yoursite.com/uploadedimages/";

Sign in to reply to this post
Did this help? Tips are appreciated...

CraigRBeta Tester

Thanks Ray, I'll do that

Sign in to reply to this post

CraigRBeta Tester

Partial success

When i set this on my local testing server, it worked straight away.

I have now uploaded the changes to my live server, and when i click on the 'browse server button' in the imag properties modal, i get the following errors...

Strict Standards: Declaration of MDB2_Driver_Common::raiseError() should be compatible with & PEAR::raiseError($message = NULL, $code = NULL, $mode = NULL, $options = NULL, $userinfo = NULL, $error_class = NULL, $skipmsg = false) in path/webassist/kfm/includes/pear/MDB2.php on line 986

Strict Standards: Declaration of MDB2_Driver_mysql::setTransactionIsolation() should be compatible with MDB2_Driver_Common::setTransactionIsolation($isolation, $options = Array) in /path/webassist/kfm/includes/pear/MDB2/Driver/mysql.php on line 1122

Strict Standards: Redefining already defined constructor for class kfmSession in path/webassist/kfm/classes/kfmSession.php on line 58

Strict Standards: Non-static method MDB2::fileExists() should not be called statically, assuming $this from incompatible context in path/webassist/kfm/includes/pear/MDB2.php on line 1838

Sign in to reply to this post

Ray BorduinWebAssist

Turn off E_STRICT error reporting... it looks like it is enabled on your live server and I believe if the errors weren't written to the page they could just be ignored.

Sign in to reply to this post
Did this help? Tips are appreciated...

CraigRBeta Tester

ultimately, i needed to add

error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED);

to the pear/MDB2.php and pear/MDB2/Driver/mysql.php pages to get it working

but work it does !

any update on when you are moving away from kfm, its been a while coming ?

Thanks

Sign in to reply to this post

tvtaylor

URL Path

I've made the update to configuration.php file as you suggested, but in the URL path it's adding a "/" in front of the path and removing a "/" in the http://www. part. See attached image. Can you suggest a fix? Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

Can I see a copy of your /webassist/ckeditor/configuration.php file? I'll take a look.

Sign in to reply to this post
Did this help? Tips are appreciated...

tvtaylor

configuration.php file

see attached

Sign in to reply to this post

Ray BorduinWebAssist

The code looks correct to me... if you can provide a URL where I can reproduce the problem and FTP access to your files I will debug it and get it fixed for you.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...