I have problem with timymceeditor's image urls, facts:
1) images DO show alright in image administration page
2) images DON'T show alright in editor
3) images DON'T show always alright in editors imagelist preview
It is because image urls get messed up. They SHOULD be like:
They become (depending on different 'solution efforts' either
(see extra repetition and incorrect string concanation)
(see extra '/'-character there after http://)
Yes i know, I should get it right be following instructions on
but still i don' get.
Point is, I don't RECALL changing any of those relevant tinymceeditor's init variables before the problem occurred.
In php fusion settings like:
and phpfusion's index.php is in that folder. (Later i will direct the final domainname dirctly to that folder)
In tinyMCE init settings (administration/subheader.php) I have tried VARIOUS combinations to find solution, for example like:
remove_script_host : 'true',
Now I manually corrected the imagelist.js. It seems that list update process in image admin page doesn't work. I pushed the update link, but "changed"-timestamp in imagelist.js doesn't change forward.
Now, when image urls are corrected absolute in imagelist.js,
editor, ediror preview and article reading all work ok. This all would suggest problem in imagelist update. Maybe my site url for example for bad before, when update still worked.
// here is anyway new version of buildlist.php
// that works ok. check out function wic!
// is_dir and is_file need path from
// CURRENTLY EXECUTED FILE'S FOLDER
// to work right. without that, they always retun false.
// THIS SMALL FUNCTION HELPS US GET RID OF
// '*.PHP', '*.JS', '..' AND '.' INTRUDERS IN IMAGEARRAY
// REMEMBER: IT NEEDS RELATIVE PATH FROM CURRENT FOLDER TO WORK.
//Web Image Check
$parts = pathinfo($path);
$ext = strtolower($parts['extension']);
return(in_array($ext, array('jpg','jpeg','gif','png') && is_file($path));
You can view all discussion threads in this forum. You can start a new discussion thread in this forum. You cannot reply in this discussion thread. You cannot start on a poll in this forum. You cannot upload attachments in this forum. You cannot download attachments in this forum.