i Download again the project from
GitHub.
- I copy "system" directory to /modules/system,
- I add in the /modules/system/constants.php file :
define("XOOPS_SYSTEM_THEME", 18);
- 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.php, before line 44 add following:
//Theme Builder
define("XOOPS_SYSTEM_THEME", 18);
-
\modules\system\xoops_version.php, add 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;
- Go to
/modules/system/themes/default/icons/ folder
and copy icon_options.png file and rename the copied file to THEME.png
- you have to add also in your language file in line 67, 68
\modules\system\language\english\admin.php define("_AM_SYSTEM_THEME","Theme Builder");
define("_AM_SYSTEM_THEME_DESC","Theme Builder,
create menus, sliders and build theme for xoops");
- You can create manually
/modules/system/language/english/admin/themebuilder.php (just empty file)
But i still get errors :
Quote:
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_Index - assumed '_AM_SYSTEM_THEMEBUILDER_Index' in file /modules/system/admin/themebuilder/main.php line 19
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_DASHBOARD - assumed '_AM_SYSTEM_THEMEBUILDER_DASHBOARD' in file /modules/system/admin/themebuilder/main.php line 22
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_Menu - assumed '_AM_SYSTEM_THEMEBUILDER_Menu' in file /modules/system/admin/themebuilder/main.php line 25
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_Slider - assumed '_AM_SYSTEM_THEMEBUILDER_Slider' in file /modules/system/admin/themebuilder/main.php line 28
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_Options - assumed '_AM_SYSTEM_THEMEBUILDER_Options' in file /modules/system/admin/themebuilder/main.php line 31
Notice: Use of undefined constant _AM_SYSTEM_THEMEBUILDER_ThemeBuilder - assumed '_AM_SYSTEM_THEMEBUILDER_ThemeBuilder' in file /modules/system/admin/themebuilder/main.php line 34
...
???
My XOOPS : XOOPS 2.5.6 / PHP 5.4.15 / MySQL 5.6.11 / "root directory : /XOOPS_256/" (not "/")