731
Mamba
Re: THEME CONSTRA
  • 2021/9/27 6:29

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


You will need to change the templates.

There are some templates already adjusted in the theme itself, in:

/themes/constra/modules/

For other modules, you should copy the templates from the module that you want to change, to the folder above. For example, for the module Contact, you should copy the file from:
/modules/contact/templates/
to
/themes/constra/modules/contact/templates/

and then make the required changes there.

There is an excellent book about XOOPS themes and templates: Designing for XOOPS

You can also check out this presentation in Spanish: Adapting HTML and CSS Templates to XOOPS.
You can download the slides here
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



732
afalkay93
THEME CONSTRA
  • 2021/9/26 21:24

  • afalkay93

  • Just popping in

  • Posts: 1

  • Since: 2021/9/26


Good evening,

I use "CONSTRA" as the theme of my site. I would like to change the following:

HOME WGGALLERY XMCONTENT XMNEWS XOOPS FAQ PROJECTS
CONTACT

how can i do it?
im a BEGINNER .

thank you



733
alain01
Re: Need help to add a dark/light button in a theme
  • 2021/9/25 23:46

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Yes, I saw that when I was confronted with the problem I am indicating here.
So I looked it up but didn't understand the code for switching colours.
We use the style variable (values : orange / silver / dark) but how does it work ???

In fact I found Richard's code very simple for the toggling of Display / Hide toolbar and the display of the associated icon in the xswatch4 theme



734
Mamba
Re: Most current Xoops 2.5.11
  • 2021/9/25 19:04

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


You can download the code from GitHub: https://github.com/XOOPS/XoopsCore25

Or you can click here for the Zip file:
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



735
dejadingo
Most current Xoops 2.5.11
  • 2021/9/25 17:58

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Can anyone say what is the most current version of Xoops 2.5.11?

I would like to test/use ModuleBuilder version 3.x but the description seems to indicate it only works with Xoops 2.5.11. It looks like the Master version still reports itself as 2.5.10 while the Beta-2 version posted by Mamba reports itself as 2.5.11, and many files in the Beta-2 version seem more correct than those from the Master.

Thanks for the assistance.



736
Mamba
Re: Need help to add a dark/light button in a theme
  • 2021/9/24 20:34

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


In the "Default" Admin theme, there were on top-right three buttons to switch to different color: "Orange, Silver, Dark"

Maybe this will help you?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



737
alain01
Need help to add a dark/light button in a theme
  • 2021/9/24 13:20

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Hi,
Firstly,
I am completely new to this.

I had an idea:
Offer a button on the theme to switch from light to dark mode.
I was inspired by what Richard did with the xSwatch4 theme and the toggle to show or hide the toolbar

I started the code based on his work but I have no javascript skills.

Here is what I did:
In the nav-menu.tpl file
I added line 6:
<class="btn btn-secondary" href="javascript:xswatchLightingToggle();" role="button"><span id="xswatch-lighting-ind">span>a>


then at the end of the same file, I added a script:

<script type="text/javascript">
    
// Alain
    
    
function xswatchLightingIndLight() {
        $(
'#xswatch-lighting-ind').attr('class''fa fa-sun-o fa-fw');
    
//    $('#xswatch-lighting').show();
        
$('#$xswatchCss == 'css-cerulean');
    }
    function xswatchLightingIndDark() {
        $('
#xswatch-lighting-ind').attr('class', 'fa fa-moon-o fa-fw');
    //  $('#xswatch-lighting').hide();
        
$('#xswatchDarkCss == 'css-slate');
    }
    function xswatchLightingToggle() {
        var lighting_cookie = Cookies.get('
xswatch-lighting');
        if (lighting_cookie == '
off') {
            lighting_cookie = '
on';
            xswatchLightingIndLight();
        } else {
            lighting_cookie = '
off';
            xswatchLightingIndDark();
        }
        Cookies.set('
xswatch-lighting', lighting_cookie, { expires: 365, sameSite: 'strict' });
    }
    // set initial conditions based on cookie
    var lighting_cookie = Cookies.get('
xswatch-lighting');
    if (lighting_cookie == '
off') {
        xswatchLightingIndDark();
    } else {
        xswatchLightingIndLight();
    }


I know that the code
$('#xswatchDarkCss == 'css-slate');

is not correct, but i dont know How to do that...

So I need some help !

Thank you



738
alain01
Tutorial "Using WAMP Neard with XOOPS"
  • 2021/9/23 14:26

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Now, you can read in english language this tutorial :

Using WAMP Neard with XOOPS

Enjoy it !



739
alain01
Re: Using Font Awesome icons in a XOOPS theme
  • 2021/9/22 10:15

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


1 from Italia, 1 from Austria !
Nice

Hey Goffy, did you read it in french or in english language ?



740
goffy
Re: Using Font Awesome icons in a XOOPS theme
  • 2021/9/22 7:59

  • goffy

  • Just can't stay away

  • Posts: 542

  • Since: 2010/12/27


great, thank you




TopTop
« 1 ... 71 72 73 (74) 75 76 77 ... 29430 »



Login

Who's Online

364 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 364


more...

Donat-O-Meter

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

Latest GitHub Commits