Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

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

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?
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
by geekwright on 2021/5/6 20:50:37

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.
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
by Mamba on 2021/5/4 20:46:30

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...
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
by alain01 on 2021/5/3 13:24:52

Beep !
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
by liomj on 2021/4/22 8:36:19

good idea alain,

will be great if this can be implemented since the bootstrap will be continue to be updated from time to time

Who's Online

246 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

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

Latest GitHub Commits