901
alain01
xswatch5 and theme_autorun.php
  • 2021/5/7 20:22

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Hi
I'm working on xswatch5
and for now, i keep the original file theme_autorun.php from xswatch4.

In this file :
xoops_load('XoopsFormRendererBootstrap4');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());

Should we had a new file
XoopsFormRendererBootstrap5.php
in the /class/xoopsform/renderer directory ?



902
alain01
Re: Bootstrap stable version 5 soon
  • 2021/5/7 10:16

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


hhttps://github.com/alain01/xswatch5

1st step :
- Add 4 news themes
- Updated bootstrap.min.css + bootstrap.bundle.min.js + bootstrap.bundle.min.js.map to Bootstrap v5.0.0.
- Removed the templates in the modules directory



903
alain01
Re: Bootstrap stable version 5 soon
  • 2021/5/7 9:04

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Bootswatch v5 :

21 themes yet known + 4 new themes :
- Morph (neumorphism design theme)
- Quartz (glass design theme)
- Vapor (dark theme)
- Zephyr (light theme)



904
alain01
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
  • 2021/5/7 5:28

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Ok thank you, Mamba and Richard for your answer !

Quote:
This sounds more like education and standardization needs, not a code change.

ok, can we standardize the structure of the available themes that accompany the package of a module?



905
geekwright
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation

I agree with Mamba.

There is no way to know for sure what a theme is using. Even if the bootstrap js files are present in some directory, that doesn't mean that is what it is loading. Best we could ever do is guess, and that sort of decision needs to be made by the site owner, not some buggy algorithm.

Two other points, the module install and updates are NOT interactive. Both are a single function call that either works or fails. Many things depend on this behavior, and it won't be changing. Also, the themes directory is NOT required to be writable by the web server. This is a very good thing for security. On a well secured XOOPS, you won't be able to copy the files without some extra effort.

This sounds more like education and standardization needs, not a code change.



906
goffy
Re: Bootstrap stable version 5 soon
  • 2021/5/6 15:52

  • goffy

  • Just can't stay away

  • Posts: 542

  • Since: 2010/12/27


great news, thank you



907
alain01
Re: Bootstrap stable version 5 soon
  • 2021/5/6 9:35

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Boostrap V5.0.0 is available now !

And bootwatch with bt5 since today ! (https://bootswatch.com/ )

So,
My first objective is to update xswatch 4 to xswatch5.

I'm starting with the heart of the theme,
After that, I will check the overloaded templates for modules.

I think I will need help for the overloaded templates for modules.

I will come back here with a link on a repository.



908
Mamba
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
  • 2021/5/4 20:46

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


I see a potential issues with it - the module doesn't know which version of Bootstrap the currently selected theme is using.

And what happens when the user/admin changes the theme to a different one? Should the Core go through all installed modules and check if there are the templates for this theme? But the Core should be first aware of the Bootstrap version used by the theme.

This would probably require a major rewrite of the Core...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



909
Mamba
Re: Tutorial for wgSimpleAcc
  • 2021/5/4 20:37

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


Very nice work, Goffy! Congratulations!

And thank you for sharing!!!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



910
goffy
Tutorial for wgSimpleAcc
  • 2021/5/4 14:20

  • goffy

  • Just can't stay away

  • Posts: 542

  • Since: 2010/12/27


Hallo to all

the tutorial for wgSimpleAcc is now available in english

https://xoops.gitbook.io/wgsimpleacc-tutorial/english




TopTop
« 1 ... 88 89 90 (91) 92 93 94 ... 29430 »



Login

Who's Online

546 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 546


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