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

  • alain01

  • Just can't stay away

  • Posts: 528

  • 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 :
<?php
xoops_load
('XoopsFormRendererBootstrap4');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());

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

2
goffy
Re: xswatch5 and theme_autorun.php
  • 2021/5/8 14:44

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


I would say: yes

if it is the same for the moment it doesn't matter, if me have to make changes we have aleady a start

3
alain01
Re: xswatch5 and theme_autorun.php
  • 2021/5/9 16:00

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20



4
alain01
Re: xswatch5 and theme_autorun.php
  • 2021/5/10 7:43

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Humm,
the PR is done,
and I just modified the theme_autorun.php
as :
<?php
xoops_load
('XoopsFormRendererBootstrap5');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap5());

I updated system module and use maintenance, but i get this error :
Quote:
Error : Error: Class 'XoopsFormRendererBootstrap5' not found


I missed something ?

5
geekwright
Re: xswatch5 and theme_autorun.php

Quote:

alain01 wrote:
...
I missed something ?


I missed it, too! Sorry.

A table in XoopsLoad needed to be updated with the new name. Fix is in the pipeline.

6
alain01
Re: xswatch5 and theme_autorun.php
  • 2021/5/10 15:20

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Oh ! ok !
/class/xoopsload.php

Ok Richard, I'm ready for bt6 now

7
alain01
Re: xswatch5 and theme_autorun.php
  • 2021/5/10 16:07

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Changes BT4 to BT5 :

1 - convert all spacing (margin/padding) with
l (left) to s (start)
r (right) to e (end)

2 - convert text-*
text-left to text-start
text-right to text-end

3 - Dropdown menu
In navbar : data-toggle="dropdown" to data-bs-toggle="dropdown"

4 - Forms
Dropped .input-group-append and .input-group-prepend. You can now just add buttons and .input-group-text as direct children of the input groups.


let's go on...

8
Mamba
Re: xswatch5 and theme_autorun.php
  • 2021/6/8 1:40

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Good overview of some of the changes:

https://help.blocsapp.com/knowledge-base/migrate-from-bootstrap-4-to-bootstrap-5/
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

243 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

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

Latest GitHub Commits