Thank you for the update, very much appreciated.
I don't have access to the backend of the server concerned right now, will do later today and update this thread.
Have setup a linux+apache vm, installed joomla+dokuwiki+custom template+CKEditor, overwrote image.js.
It is looking good, the default width is good when wrapped in Joomla.
On a separate note with the Link properties (URL link, not image link), when Link Type is set to internal link or internal media the width of the textbox below the browse button is very narrow.
Regarding the ACL issue, I have found by storing some details in a cookie and using the following code in the function trustExternal, the fileBrowser works correctly but obviously this makes the site less secure.
This is more or less the function used, cookie name and password hashing have been excluded:
public function trustExternal($user, $pass, $sticky = false) {
global $USERINFO;
global $conf;
global $connection;
$sticky ? $sticky = true : $sticky = false; //sanity check
# ***** This is NOT secure *****, currently a workaround to get CKEditor fileBrowser working.
if (isset($_COOKIE['MyWiki'])) {
$USERINFO['user'] = $_COOKIE['MyWiki']['user'];
$USERINFO['mail'] = $_COOKIE['MyWiki']['mail'];
$USERINFO['grps'] = $_COOKIE['MyWiki']['grps'] == '1' ? array('admin','user') : array( 'user');
$_SERVER['REMOTE_USER'] = $USERINFO['user'];
$_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
return true;
}
define( '_JEXEC', 1 );
define('JPATH_BASE', '/var/www/html/joomla'); # Update this with the current Joomla root
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
/* Create Application */
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$user =& JFactory::getUser();
/* Check logged in or not. */
if (!$user->guest) {
$USERINFO['pass'] = --aSaltyHashOfThisAndThat--;
$USERINFO['user'] = $user->username;
$USERINFO['name'] = $user->name == '' ? $user->username : $user->name;
$USERINFO['mail'] = $user->email;
$USERINFO['grps'] = $user->username == 'admin' ? array('admin','user') : array( 'user'); # Update superuser name if required
$_SERVER['REMOTE_USER'] = $user->username;
$_SESSION[DOKU_COOKIE]['auth']['user'] = $user->username;
$_SESSION[DOKU_COOKIE]['auth']['pass'] = $USERINFO['pass'];
$_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
setcookie("MyWiki[user]", $USERINFO['user'], time()+3600);
setcookie("MyWiki[mail]", $USERINFO['mail'], time()+3600);
setcookie("MyWiki[grps]", $user->username == 'admin' ? '1' : '2', time()+3600);
return true;
} else {
return false;
}
}