xoops forums

alain01

Quite a regular
Posted on: 2/19 1:32
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#1

Need some information to clone system theme

Hi,
i want to work on a new theme for the system module (backoffice), for XOOPS 2.5.9.

I found "/modules/system/images/icons" to change the icon sets.
It 's easy to clone the directory transition to a new directory and changes icones in it.
Need to reload the system module to see in the icon sets list the new directory.
Ok for that

Now, i want to work on the system theme, not the icon set.
i see /modules/system/themes/ then transition, zetadigme.

My 1st idea is to clone transition to a new directory.
What should i modifiy to see "mynewtheme" in the preferences option, "Control Panel GUI For backend" ?

Mamba

Moderator
Posted on: 2/19 5:08
Mamba
Mamba (Show more)
Moderator
Posts: 10740
Since: 2004/4/23
#2

Re: Need some information to clone system theme

First, change in your new folder "mynewtheme" the name of the file "transition.php" to "mynewtheme"

Then change also the name of the class inside the file from " XoopsGuiTransition" to "XoopsGuiMynewtheme"
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

alain01

Quite a regular
Posted on: 2/19 14:23
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#3

Re: Need some information to clone system theme

Thank you for that, it works !
I get now in the list admin theme my new theme "mynewtheme"...

Humm but hard to understand how it's built.
I want to modifiy the main admin page but i cant find which file i should open...

Is there any docs on the backoffice theme ?

Edit :
hummm, what a noob !
"Check templates for modifications?
If this option is enabled, modified templates will be automatically recompiled when they are displayed. You must turn this option off on a production site. to ON .

Mamba

Moderator
Posted on: 2/19 15:14
Mamba
Mamba (Show more)
Moderator
Posts: 10740
Since: 2004/4/23
#4

Re: Need some information to clone system theme

Quote:
Is there any docs on the backoffice theme ?

I'm afraid, there is none. The best way is probably to compare the various themes there and see the difference between them.

The "default" and the "transitions" are definitely the best there.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

alain01

Quite a regular
Posted on: 2/19 15:18
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#5

Re: Need some information to clone system theme

lol ok !
I modify files in xotpl directory and watch the results !
This is my doc !

I start from transition...

alain01

Quite a regular
Posted on: 2/19 17:19
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#6

Re: Need some information to clone system theme

ok,
\modules\system\themes\mynewtheme\xotpl\xo_icons.tpl is my best friend !
Humm,
i try to group some icons by function.
icons are show by alphabetical order (name's directory : /modules/system/admin/...)

I want to group :
- Groups + users for example
- avatars / smilies / banner
-...

I can use a class like xo-index-option for that (like help/waitings contents/ new members / top poster / comments, on the top right)

Problem is here (cause for each)
<{foreach item=op from=$mod_options}>
            <
class="tooltip" href="<{$op.link}>" title="<{$op.desc}>">
                <
img src='<{$op.icon|default:"$theme_icons/icon_options.png"}>' alt="<{$op.desc}>"/>
                <
br><span><{$op.title}></span>
            </
a>
        <{/foreach}>

I should modifiy code for each tool but i dont know how.

i try for avatars :
<class="tooltip" href="<{xoAppUrl modules/system/admin.php?fct=avatars}>" title="<{$smarty.const._AM_SYSTEM_AVATARS_DESC}>">
            <
img src='<{"$theme_icons/avatar.png"|default:"$theme_icons/icon_options.png"}>'/>
            <
br><span><{$smarty.const._AM_SYSTEM_AVATARS}></span>
        </
a>


Dont know if it's the same... (same for the page, but the code is correct ?
And what about the if ($modversion['hasAdmin']) test ?

Mamba

Moderator
Posted on: 2/20 2:20
Mamba
Mamba (Show more)
Moderator
Posts: 10740
Since: 2004/4/23
#7

Re: Need some information to clone system theme

Unfortunately, I'm not that familiar with the admin themes, so I'm afraid, I won't be able to help here

You might try to contact Eduardo, who developed the Transition theme.

Or you might try first to create the theme as similar to the default, and then tackle the more difficult issues, knowing that the basic structure is working.....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs