xoops forums

alain01

Quite a regular
Posted on: 2014/4/25 11:58
alain01
alain01 (Show more)
Quite a regular
Posts: 334
Since: 2003/6/20
#31

Re: Admin interface for theme

[youtube=425,350]http://youtu.be/uNrjuAKakgo[/youtube]




not correct...

[youtube=425,350]uNrjuAKakgo[/youtube]




not correct...

olivee

Just popping in
Posted on: 2014/4/25 12:18
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#32

Re: Admin interface for theme





[youtube=425,350]uNrjuAKakgo[/youtube]

no chance. c'est bizarre

Mamba

Moderator
Posted on: 2014/4/25 12:42
Mamba
Mamba (Show more)
Moderator
Posts: 10838
Since: 2004/4/23
#33

Re: Admin interface for theme





WOW!!! This Theme Builder is getting better and better!!!!

This is truly an AMAZING and very CREATIVE work. I can only imagine how many new and cool themes will be now possible to create for XOOPS, thanks to your work!

The code for YouTube should be like this:

[youtube=425,350]http://www.youtube.com/watch?v=uNrjuAKakgo[/youtube]
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

alain01

Quite a regular
Posted on: 2014/4/30 1:06
alain01
alain01 (Show more)
Quite a regular
Posts: 334
Since: 2003/6/20
#34

Re: Admin interface for theme

ok, a new comit done, Mamba, olivee.
Can i try it or is it unstable version ?

Mamba

Moderator
Posted on: 2014/4/30 2:53
Mamba
Mamba (Show more)
Moderator
Posts: 10838
Since: 2004/4/23
#35

Re: Admin interface for theme

You can always try it, but do it on your test machine.

I have submitted some bug fixes and changes to Olivee, but I didn't look yet which of them he merged into his code. I didn't have the time yet to test it, so if you have time, please do and let us know how you like it...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

kakos

Friend of XOOPS
Posted on: 2014/4/30 10:57
kakos
kakos (Show more)
Friend of XOOPS
Posts: 73
Since: 2002/6/6 2
#36

Re: Admin interface for theme

The whole project looks amazing! Why not use the bootstrap grid ...

olivee

Just popping in
Posted on: 2014/4/30 11:51
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#37

Re: Admin interface for theme

you're right I note this on my list todo.

alain01

Quite a regular
Posted on: 2014/5/26 11:50
alain01
alain01 (Show more)
Quite a regular
Posts: 334
Since: 2003/6/20
#38

Re: Admin interface for theme

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.php

after 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, <br /> 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 "/")

Mamba

Moderator
Posted on: 2014/5/26 14:10
Mamba
Mamba (Show more)
Moderator
Posts: 10838
Since: 2004/4/23
#39

Re: Admin interface for theme

You need to check if these language variables have been defined.

They might be also misspelled, e.g. maybe

_AM_SYSTEM_THEMEBUILDER_Slider

should be:

_AM_SYSTEM_THEMEBUILDER_SLIDER

The XOOPS convention is that all of them should be in CAPITAL letters..
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Bleekk

Theme Designer
Posted on: 2014/5/26 19:29
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 934
Since: 2002/12/14
#40

Re: Admin interface for theme

copy all language variables
from language/english/themebuilder.php
to language/english/admin.php