Here is a quick review of the latest simplywiki 1.1.1 on XOOPS 2.4.4. Hope its helpful:
preferences updated properly
When updating preferences using the icon/link from the left column
http://localhost/portal/modules/system/admin.php?fct=preferences&op=showmod&mod=85http://localhost/portal/modules/system/admin.php?fct=preferencesWhen updating preferences using the module icon on the right column
http://localhost/portal/modules/simplywiki/admin/admin.php?fct=preferenceshttp://localhost/portal/modules/simplywiki/admin/preferences.phpi get this at header instead:
_AM_SWIKI_SYS_CFG
need keep/display tables when comparing
also what about keeping the content formatting when comparing. probably just indicate what was added or removed using the left section where the - or + signs appear in green or red, in this way the content formatting such as font size, text color, tables, images (images displaying ok now just need to enter a return to ensure the image and text are seprated in a new line) can be displayed when comparing.
PDF work ok when creating PDF from pages with text and tables only, I get an error when printing a page with images:
FPDF error: Missing or incorrect image file:
http://localhost/portal/../../uploads/img4b610fab4ec06.jpgUpdate Editors for XOOPS 2.4.4 as follows or you will get a blank page at front end i.e. when creating or editing pages:
in /simplywiki/index.php edit as follows
replace this code
/* switch ($editor) {
default:
case 0 : // standard xoops
$t_area = new XoopsFormDhtmlTextArea(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '30', '70');
break;
case 1 : // XoopsEditor
include_once (XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php');
$editorhandler = new XoopsEditorHandler();
$editor_name = ($editOptions != '') ? $editOptions : $xoopsModuleConfig['XoopsEditor'];
$options['caption'] = _MD_SWIKI_BODY_FLD;
$options['name'] ='body';
$options['value'] = $pageObj->body;
$options['rows'] = 25;
$options['cols'] = 60;
$options['width'] = '100%';
$options['height'] = '400px';
$t_area = & $editorhandler->get($editor_name, $options, 'textarea');
if($t_area){
$editorhandler->setConfig(
$t_area,
array(
'filepath' => XOOPS_UPLOAD_PATH.'/'.$xoopsModule->getVar('dirname'),
'upload' => true,
'extensions' => array('txt', 'jpg', 'zip')
));
}
break;
case 2 : // Spaw class
include XOOPS_ROOT_PATH.'/class/xoopseditor/spaw/formspaw.php';
$t_area = new XoopsFormSpaw(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '100%', '400px');
break;
case 3 : // HTMLArea class
include XOOPS_ROOT_PATH.'/class/htmlarea/formhtmlarea.php';
$t_area = new XoopsFormHtmlarea(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '100%', '400px');
break;
case 4 : // Koivi
include XOOPS_ROOT_PATH . '/class/koivi/formwysiwygtextarea.php';
$t_area = new XoopsFormWysiwygTextArea( _MD_SWIKI_BODY_FLD, 'body', $pageObj->body , '100%', '400px','');
break;
case 5 : // FCK class
include XOOPS_ROOT_PATH.'/class/fckeditor/formfckeditor.php';
$t_area = new XoopsFormFckeditor(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '100%', '400px');
break; */
With this code
switch ($editor) {
default:
case '0' : // standard xoops
$t_area = new XoopsFormDhtmlTextArea(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '30', '70');
break;
case '1' : // XoopsEditor
include_once (XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php');
$editorhandler = new XoopsEditorHandler();
$editor_name = ($editOptions != '') ? $editOptions : $xoopsModuleConfig['XoopsEditor'];
$options['caption'] = _MD_SWIKI_BODY_FLD;
$options['name'] ='body';
$options['value'] = $pageObj->body;
$options['rows'] = 25;
$options['cols'] = 60;
$options['width'] = '100%';
$options['height'] = '400px';
$t_area = & $editorhandler->get($editor_name, $options, 'textarea');
if($t_area){
$editorhandler->setConfig(
$t_area,
array(
'filepath' => XOOPS_UPLOAD_PATH.'/'.$xoopsModule->getVar('dirname'),
'upload' => true,
'extensions' => array('txt', 'jpg', 'zip')
));
}
break;
case '2' : // Spaw class
include XOOPS_ROOT_PATH.'/class/xoopseditor/spaw2/formspaw.php';
$t_area = new XoopsFormSpaw(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '100%', '400px');
break;
case '3' : // HTMLArea class
include XOOPS_ROOT_PATH.'/class/htmlarea/formhtmlarea.php';
$t_area = new XoopsFormHtmlarea(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '100%', '400px');
break;
case '4' : // Koivi
include XOOPS_ROOT_PATH . '/class/xoopseditor/koivi/formkoivi.php';
$t_area = new XoopsFormKoivi( _MD_SWIKI_BODY_FLD, 'body', $pageObj->body , '100%', '400px','');
break;
case '5' : // FCK class
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php')) {
include XOOPS_ROOT_PATH.'/class/xoopseditor/fckeditor/formfckeditor.php';
$t_area = new XoopsFormFckeditor(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '25', '60', '100%', '400px');
//$t_area = new XoopsFormFckeditor( _MD_SWIKI_BODY_FLD, 'body', $pageObj->body , '100%', '400px','' );
}
//$t_area = new XoopsFormFckeditor(_MD_SWIKI_BODY_FLD, 'body', $pageObj->body, '25', '60', '100%', '400px');
break;