81
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 ?



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

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


https://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



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

  • alain01

  • Just can't stay away

  • Posts: 528

  • 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)



84
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: 528

  • 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?



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

  • alain01

  • Just can't stay away

  • Posts: 528

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



86
alain01
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
  • 2021/5/3 13:24

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Beep !



87
alain01
Re: user and group maintenance help
  • 2021/4/22 10:46

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Interresting,

I 've tryed but my MYSQL courses are too far in my head...

I understand what we should do it but not in SQL !

1 - find all uid with with groupid = 5 (easy : SELECT * FROM `xe07_groups_users_link` WHERE `groupid` = 5)
2 - List for each uid with groupid=5, and find their other groupid <> 5
3 - delete these lines

So you keep all uid with groupid = 5

I want to see the SQL request

"remove duplicate occurrence in SQL" but dont keep the first occurrence (keep the occurence with groupid = 5 )



88
alain01
Re: wgGallery 1.15 RC2 ready for testing
  • 2021/4/22 9:28

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Humm,
so,
there is a bug in the overloaded templates system... with admin templates,
or
a bug in your module...

That is the question.



89
alain01
Re: wgGallery 1.15 RC2 ready for testing
  • 2021/4/22 9:14

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Quote:

goffy wrote:please copy the folder "/modules/wggallery/templates/admin/" into "/themes/xswatch4/modules/wggallery/"
?
Goffy,
if the overloaded files are not present, the module use the initial templates by default, admin too.
Why not here ?



90
alain01
Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
  • 2021/4/22 7:01

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,
I noticed that some modules offer in addition to basic templates, templates in Bootstrap3, bootstrap4 and soon in Bootstrap5.

Sometimes, it's on the extra directory (extra/Templates for bootstrap 4)
or
/templates_bootstrap/bootstrap4/ (+ /templates_bootstrap/bootstrap3)
or
/EXTRA/themes/xbootstrap/ (+ /EXTRA/themes/templates_fulldiv_opacity/)

I have no preference but 2 points :
1 - for a serious structure, is it possible to normalize the path for the overloaded templates in new adn updateted modules ?

The point 1 is not very important. It's ok for me, whaterver the path

2 - Automatically push overloaded in the theme during installation :

I notice that sometimes the default templates (neither bt3 nor bt4, so not responsive) make the module look really old.
I'm afraid that many webmasters install the modules as is, without knowing that you have to copy the bt3 / bt4 overloads in the theme folder used and therefore see a rather "old" module interface (default templates)

Could we not add a process in the installation of the module which would ask the following question:
(If overload available in the extra folder (other folder)
Do you want to use the overload in your main theme?
----(if yes)
-------- Be careful, if your theme is using bt3, use bt3 overloaded, if it's bt4, use bt4
-------- (if bt3 available) : copy "bt3 templates" ? (end if)
---------(if bt4 available) : copy "bt4 templates" ? (end if)
----(end if)
(end if)


I dont know if my idea is clear,
but remember,
lot of webmasters download modules, install them, then use them as is (default templates)




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 38 »



Login

Who's Online

251 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 251


more...

Donat-O-Meter

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

Latest GitHub Commits