21
Quote:
but i cant see the new icon in the admin panel...
But i can go to the page /modules/system/admin.php?fct=themebuilder
What is the trouble ? why the icon doesnt appear ?
There are few changes needed to the XOOPS itself to make it run. I did it partially about month ago, but didn't finish yet, so maybe later this week I'll upload to GitHub the required changes.
in the meantime, you can do this:
in your language file (here I have English)
\modules\system\language\english\modinfo.phpafter line 39 add:
define('_MI_SYSTEM_ADMENU18',"Theme Builder");
\modules\system\constants.phpbefore line 44 add following:
//Theme Builder
define("XOOPS_SYSTEM_THEME", 18);
\modules\system\xoops_version.phpadd after line 94:
$modversion['templates'][] = array( 'file' => 'system_themebuilder.html', 'description' => '', 'type' => 'admin' );
and in the end of the file add:
// theme builder
$i++;
$modversion['config'][$i]['name'] = 'active_themebuilder';
$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_ACTIVE_THEME';
$modversion['config'][$i]['description'] = '';
$modversion['config'][$i]['formtype'] = 'yesno';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = '1';
$i++;
$modversion['config'][$i]['name'] = 'themebuilder_pager';
$modversion['config'][$i]['title'] = '_MI_SYSTEM_PREFERENCE_THEME_PAGER';
$modversion['config'][$i]['description'] = '';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = 20;
As I said, I was not done yet, but you should see some parts of it now, at least in the menu