The forum operates in read-only mode. Please head to StackOverflow for support.
$INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"/files/Image/', ' src=\"'.$SYSTEM['full_site_domain'].'/files/Image/', $INCOME_VARS['textarHtmlDyn_body']); $INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"../files/Image/', ' src=\"'.$SYSTEM['full_site_domain'].'/files/Image/', $INCOME_VARS['textarHtmlDyn_body']); $INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"/'.$SYSTEM['base_path'].'/fckeditor/editor/images/', ' src=\"'.$SYSTEM['full_site_domain'].'/'.$SYSTEM['base_path'].'/fckeditor/editor/images/', $INCOME_VARS['textarHtmlDyn_body']);
$Config['UserFilesPath'] = "http://www.yourdomain.com/imagefolder/";
<script type="text/javascript"> $('img').error(function () { if ($(this).attr('src').indexOf('http') < 0 && $(this).attr('src').indexOf('/') == 0) { $(this).attr('src', 'http://yoururl.com/' + $(this).attr('src')); } }); </script>
<script type="text/javascript"> $('.your-container img').error(function () { if ($(this).attr('src').indexOf('http') < 0 && $(this).attr('src').indexOf('/') == 0) { $(this).attr('src', ''http://yoururl.com/'' + $(this).attr('src')); } }); </script>
Re: How to display the absolute path of the image?
Re: How to display the absolute path of the image?
Re: How to display the absolute path of the image?
$INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"/files/Image/', ' src=\"'.$SYSTEM['full_site_domain'].'/files/Image/', $INCOME_VARS['textarHtmlDyn_body']); $INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"../files/Image/', ' src=\"'.$SYSTEM['full_site_domain'].'/files/Image/', $INCOME_VARS['textarHtmlDyn_body']); $INCOME_VARS['textarHtmlDyn_body'] = str_replace(' src=\"/'.$SYSTEM['base_path'].'/fckeditor/editor/images/', ' src=\"'.$SYSTEM['full_site_domain'].'/'.$SYSTEM['base_path'].'/fckeditor/editor/images/', $INCOME_VARS['textarHtmlDyn_body']);Re: How to display the absolute path of the image?
I'm still quite the noob at this, so could you be a leetle more specific?
Is this appended to an existing php file, and if so, which?
or is it a new php file, and if so, do I need to edit any other files?
Thanks again
Re: How to display the absolute path of the image?
Re: How to display the absolute path of the image?
http://docs.fckeditor.net/FCKeditor_2.x ... JavaScript
Re: How to display the absolute path of the image?
Re: How to display the absolute path of the image?
[path to editor]/editor/filemanager/connectors/php/config.php$Config['UserFilesPath']
exactly
http://expressionengine.com/wiki/FCKEditor/
Re: How to display the absolute path of the image?
<script type="text/javascript"> $('img').error(function () { if ($(this).attr('src').indexOf('http') < 0 && $(this).attr('src').indexOf('/') == 0) { $(this).attr('src', 'http://yoururl.com/' + $(this).attr('src')); } }); </script><script type="text/javascript"> $('.your-container img').error(function () { if ($(this).attr('src').indexOf('http') < 0 && $(this).attr('src').indexOf('/') == 0) { $(this).attr('src', ''http://yoururl.com/'' + $(this).attr('src')); } }); </script>