As Dirk suggest in the bugs tracker some code from the old config.php are missing to allow advanced-editor to work. This code was:
Text Formatted Code
/* Optional HTML Tags that will be enabled if advanced editor is enabled
* Posible to add tags to the allowable general USER $_CONF['user_html'] as well
*/
if ($_CONF['advanced_editor']) {
$_CONF['admin_html']['a'] = array('href' => 1, 'title' => 1, 'id' => 1, 'lang' => 1, 'name' => 1, 'type' => 1, 'rel' => 1);
$_CONF['admin_html']['hr'] = array ('style' => 1);
$_CONF['admin_html']['ol'] = array ('style' => 1);
$_CONF['admin_html']['ul'] = array ('style' => 1);
$_CONF['admin_html']['caption'] = array ();
$_CONF['admin_html']['table'] = array ('class' => 1, 'id' => 1, 'style' => 1, 'align' => 1, 'width' => 1,
'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1);
$_CONF['admin_html']['tbody'] = array ();
$_CONF['admin_html']['img'] = array('src' => 1, 'width' => 1, 'height' => 1, 'vspace' => 1, 'hspace' => 1,
'dir' => 1, 'align' => 1, 'valign' => 1, 'border' => 1, 'lang' => 1,
'longdesc' => 1, 'title' => 1, 'id' => 1, 'alt' => 1);
$_CONF['admin_html']['font'] = array('face' => 1, 'size' => 1, 'style' => 1);
}
So, if you need advanced editor to work with pictures you can hack for exemple your lib-story.php and add this code in the beginning of the STORY_renderArticle function (near line 67) like this:
Text Formatted Code
function STORY_renderArticle( &$story, $index='', $storytpl='storytext.thtml', $query='')
{
global $_CONF, $_TABLES, $_USER, $LANG01, $LANG05, $LANG11, $LANG_TRB,
$_IMAGE_TYPE, $mode;
static $storycounter = 0;
/* Optional HTML Tags that will be enabled if advanced editor is enabled
* Posible to add tags to the allowable general USER $_CONF['user_html'] as well
*/
if ($_CONF['advanced_editor']) {
$_CONF['admin_html']['a'] = array('href' => 1, 'title' => 1, 'id' => 1, 'lang' => 1, 'name' => 1, 'type' => 1, 'rel' => 1);
$_CONF['admin_html']['hr'] = array ('style' => 1);
$_CONF['admin_html']['ol'] = array ('style' => 1);
$_CONF['admin_html']['ul'] = array ('style' => 1);
$_CONF['admin_html']['caption'] = array ();
$_CONF['admin_html']['table'] = array ('class' => 1, 'id' => 1, 'style' => 1, 'align' => 1, 'width' => 1,
'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1);
$_CONF['admin_html']['tbody'] = array ();
$_CONF['admin_html']['img'] = array('src' => 1, 'width' => 1, 'height' => 1, 'vspace' => 1, 'hspace' => 1,
'dir' => 1, 'align' => 1, 'valign' => 1, 'border' => 1, 'lang' => 1,
'longdesc' => 1, 'title' => 1, 'id' => 1, 'alt' => 1);
$_CONF['admin_html']['font'] = array('face' => 1, 'size' => 1, 'style' => 1);
}
Maybe it will be not the right place for the bug fix... but now it's working
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS