21
Mamba
Re: Admin interface for theme
  • 2014/4/1 1:08

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


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


As I said, I was not done yet, but you should see some parts of it now, at least in the menu
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

22
olivee
Re: Admin interface for theme
  • 2014/4/1 20:40

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


Hi

go to /modules/system/themes/default/icons/ folder

copy icon_options.png file and rename the copied file to THEME.png

I am using default theme for admin interface.
if you want to use an other icon more reprensentative I'm interested

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


I have done a lot of exchange, now I am working to have a language file for all constant.


23
alain01
Re: Admin interface for theme
  • 2014/4/1 22:38

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


ok,
i made mambo modification
i made olivee modification
then :
Control panel /System Configuration /
i get : " Theme Builder Theme Builder, create menus, sliders and build theme for xoops"
i changed status section (green coche)
then clicked to "theme builder"

and i get :
Warning: include_once(/modules/system/language/english/admin/themebuilder.php): failed to open streamNo such file or directory in file /modules/system/include/functions.php line 68


24
olivee
Re: Admin interface for theme
  • 2014/4/1 23:13

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


like I sad I am working on it now.
you can add this file manually you can keep it empty no problem.
I will post it early

25
alain01
Re: Admin interface for theme
  • 2014/4/1 23:26

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


ok !
True,
with this empty file, no error !

26
olivee
Re: Admin interface for theme
  • 2014/4/25 9:00

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28



27
alain01
Re: Admin interface for theme
  • 2014/4/25 9:20

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Olivee, new vidéo ?

No change in https://github.com/olivee/themebuilderxoops since the last post.

28
olivee
Re: Admin interface for theme
  • 2014/4/25 9:37

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


I don't know how can I actualise in github automatically.
I tried to do but it's too complicated and need time to do so I do not know if there is a trick.

29
Mamba
Re: Admin interface for theme
  • 2014/4/25 9:56

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


This is a nice tutorial on how to use GitHub with TortoiseGit

For you probably the two most interesting parts are here, especially the second one about "Synchronizing changes with GitHub":

Quote:
Push files/changes to your local branch:
What you have now is a clone of a branch of your repository. Your current branch is probably the master branch assuming you just created a clean project. Go ahead and add files and your code to the folder. Once you're happy with your code/changes, it's time to commit these changes. You can do so by right clicking to open up the context menu in the clone's folder and selecting "Git Commit -> "master"...". This will open up a window that will allow you to add the change message and select what changes you want to commit. If its your first commit, you will want to check the "Select/Deselect All" checkbox to add all your new files. Click "OK" when you're happy to commit the changes to your branch. Note that unlike SVN, this commit is LOCAL ONLY!

Resized Image


Synchronizing changes with GitHub:
After a few commits, you might want to push your changes to GitHub. Open up the context menu in the clone's folder and selecting "TortoiseGit -> Push".

Resized Image



Here is yet another very user-friendly tutorial about GitHub

And this one is also a nice tutorial that has a pretty good overview of GitHub process flow

If you run into any problems just ask here, and we'll try to help....
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

30
olivee
Re: Admin interface for theme
  • 2014/4/25 11:55

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


great I'll see again later.
what about the video.





watch this video with better quality




edit: probleme with youtube BBcode.
[youtube=425,350]uNrjuAKakgo[/youtube]

Login

Who's Online

217 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits