Home » » Image not displaying uploaded through FCK editor

Image not displaying uploaded through FCK editor

Written By 1 on Monday, September 5, 2011 | 5:47 AM

Whenever we upload any image through FCK editor. It is start display in editor as well as IN view and other pages of our site.

When we display all the content in our site it works fine.
But when we send all the contents to email then all work except image means image was not displaying.
Reason behind this is that image have relative path.

Now for this, there should be absolute path in image source. So, that it work in our site as well as in emails.

for this just do the follow lines.
1) open app/webroot/js/editor/filemanager/connectors/php/config.php
2) replace
Code:
$Config['UserFilesPath'] = '/app/webroot/files/'; 

$Config['UserFilesAbsolutePath']='';



WITH

Code:

$Config['UserFilesPath'] = "http://".$_SERVER['HTTP_HOST']."/app/webroot/files/";

$Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT']."/app/webroot/files/";



3) Clear the cache from

Code:

/app/tmp/cache/

/app/tmp/cache/persistent

/app/tmp/cache/views

0 Comment:

Post a Comment