31
alain01
Re: Admin interface for theme
  • 2014/4/25 11:58

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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




not correct...

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




not correct...

32
olivee
Re: Admin interface for theme
  • 2014/4/25 12:18

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28






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

no chance. c'est bizarre

33
Mamba
Re: Admin interface for theme
  • 2014/4/25 12:42

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23






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

34
alain01
Re: Admin interface for theme
  • 2014/4/30 1:06

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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

35
Mamba
Re: Admin interface for theme
  • 2014/4/30 2:53

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

36
kakos
Re: Admin interface for theme
  • 2014/4/30 10:57

  • kakos

  • Friend of XOOPS

  • Posts: 77

  • Since: 2002/6/6 2


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

37
olivee
Re: Admin interface for theme
  • 2014/4/30 11:51

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


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

38
alain01
Re: Admin interface for theme
  • 2014/5/26 11:50

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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 "/")


39
Mamba
Re: Admin interface for theme
  • 2014/5/26 14:10

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

40
Bleekk
Re: Admin interface for theme
  • 2014/5/26 19:29

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


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

Login

Who's Online

178 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits