XoopsCore25 icon indicating copy to clipboard operation
XoopsCore25 copied to clipboard

New admin theme

Open GregMage opened this issue 4 years ago • 12 comments

The current themes (administration) are not responsive and they are not practical in mobile reading. I think it would be interesting to offer a bt4 theme for the administration.

GregMage avatar Feb 23 '21 10:02 GregMage

I've worked on bt4 admin theme 10 months ago, but i need help from dev to continue this theme.

here : https://github.com/alain01/cockpit-by-monxoops

alain01 avatar Feb 23 '21 18:02 alain01

And thread here : https://xoops.org/modules/newbb/viewtopic.php?post_id=365014

alain01 avatar Feb 23 '21 18:02 alain01

You could also look at the admin theme developed by Eduardo, as part of his RMCommon framework: https://github.com/bitcero/rmcommon

mambax7 avatar Feb 23 '21 20:02 mambax7

Alain, could you document what you've learned from trying to port the this admin them to XOOPS? For example, the API of the XOOPS Admin, and what should be consider by people trying to port an Admin theme to XOOPS?

mambax7 avatar Feb 24 '21 00:02 mambax7

hum, my work is empiric, I'm not developper so I 've just used includes files.

I 've see the Eduardo work (rmcommon) ! Nice but too complex for me. I know that if someone help me with my work on a new Bootstrap 4 theme, I could continue to work on it. You can test my cockpit theme. It's easy to install, follow instruction in the README.md file. I know it's not finish but i think it's a good base to work on it (or i hope that). I can add print screen.

alain01 avatar Feb 25 '21 16:02 alain01

Capture d’écran 2021-02-25 230123 cockpit-3cockpit-4cockpit-5cockpit-6cockpit-7

alain01 avatar Feb 25 '21 22:02 alain01

cockpit-8 cockpit-9 cockpit-10 cockpit-11 cockpit-12

alain01 avatar Feb 25 '21 22:02 alain01

I really like your theme in progress!

I looked at the block issue you mentioned. That's a mess :smile:

There is a comment noting the two distinct XoopsBlock implementations: https://github.com/XOOPS/XoopsCore25/blob/ee340d1fd84fee9280bbfc743c199a650e6d678a/htdocs/kernel/block.php#L27

That particular issue is resolved in the next generation. There are a lot of structural changes, so it isn't a straight forward backport. There is a plan for next generation that includes promoting blocks to a higher level, giving them unique names and moving each to its own class instead of the present messy code scrap functions.

The reason I bring this up is that there is a significant issue on relying on a block id. If it is a stock system block that existed when the system was installed, that is safe, but in any case outside of that, the block id can and will vary from system to system. The smarty_function_block codes work fine when you are building one system, but fail when distributed across systems.

geekwright avatar Feb 26 '21 18:02 geekwright

So, what should I understand, what should I do?

alain01 avatar Mar 01 '21 09:03 alain01

| So, what should I understand, what should I do?

Testing with #968 would be a good start. :smile_cat:

If I were doing it, I would consider adding a file with defines for any block_id being used. That would make it easier to modify in case of any problems. It looks like it is probably safe without that.

geekwright avatar Mar 10 '21 20:03 geekwright

Heyyyyyy Magical Richard ! Now, blocs are display on this admin theme ! But just title, I cant modify them. See and move block, no edit. Capture d’écran 2021-03-11 025153

alain01 avatar Mar 11 '21 01:03 alain01

Seems to have some sort of conflict involving the class="tooltip" on the anchor elements. Disabling those on each brings the images back. Things like edit seem to work once you can see the icons.

geekwright avatar Mar 11 '21 06:03 geekwright