681
Mamba
Re: Most current Xoops 2.5.11
  • 2021/9/27 18:35

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Unfortunately, we don't have any unit tests included in 2.5.11, as this version is pretty much in a "maintenance mode".

There are some in the upcoming "next generation" XOOPS 2.6.0

You can find them here

However, if you could add some unit tests to XOOPS 2.5.11, we would definitely appreciate it!

I did ported once XOOPS 2.5.9 to Docker, and Geekwright ported XOOPS 2.5.10 to Docker and MySQL 8, so feel free to update any of them to XOOPS 2.5.11, if it helps. Personally I'm using WampServer for my local development.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



682
dejadingo
Re: Most current Xoops 2.5.11
  • 2021/9/27 12:54

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


@Mamba: Thanks, that's much closer to your fork than the version I initially found, not quite sure how.

Is there a standard set of System/Unit tests and a test environment I can install, other than just my local server installation?



683
heyula
Re: THEME CONSTRA
  • 2021/9/27 8:11

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Which module blocks do you want to use?



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

  • Mamba

  • Moderator

  • Posts: 11373

  • 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



685
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



686
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: 530

  • 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



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

  • Mamba

  • Moderator

  • Posts: 11373

  • 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



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



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

  • Mamba

  • Moderator

  • Posts: 11373

  • 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



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

  • alain01

  • Just can't stay away

  • Posts: 530

  • 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




TopTop
« 1 ... 66 67 68 (69) 70 71 72 ... 29425 »



Login

Who's Online

1076 user(s) are online (318 user(s) are browsing Support Forums)


Members: 0


Guests: 1076


more...

Donat-O-Meter

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

Latest GitHub Commits