xoops forums

Mamba

Moderator
Posted on: 2014/4/1 1:08
Mamba
Mamba (Show more)
Moderator
Posts: 10935
Since: 2004/4/23
#21

Re: Admin interface for theme

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.10 | Docs | Modules | Bugs

olivee

Just popping in
Posted on: 2014/4/1 20:40
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#22

Re: Admin interface for theme

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, <br /> 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.

alain01

Quite a regular
Posted on: 2014/4/1 22:38
alain01
alain01 (Show more)
Quite a regular
Posts: 383
Since: 2003/6/20
#23

Re: Admin interface for theme

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

olivee

Just popping in
Posted on: 2014/4/1 23:13
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#24

Re: Admin interface for theme

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

alain01

Quite a regular
Posted on: 2014/4/1 23:26
alain01
alain01 (Show more)
Quite a regular
Posts: 383
Since: 2003/6/20
#25

Re: Admin interface for theme

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

olivee

Just popping in
Posted on: 2014/4/25 9:00
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#26

Re: Admin interface for theme






https://www.youtube.com/watch?v=bVsNmO5wafg

alain01

Quite a regular
Posted on: 2014/4/25 9:20
alain01
alain01 (Show more)
Quite a regular
Posts: 383
Since: 2003/6/20
#27

Re: Admin interface for theme

Olivee, new vidéo ?

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

olivee

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

Re: Admin interface for theme

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.

Mamba

Moderator
Posted on: 2014/4/25 9:56
Mamba
Mamba (Show more)
Moderator
Posts: 10935
Since: 2004/4/23
#29

Re: Admin interface for theme

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.10 | Docs | Modules | Bugs

olivee

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

Re: Admin interface for theme

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]