ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
114 stars 62 forks source link

$egChameleonThemeFile does't work #254

Closed theRightHooprod closed 3 years ago

theRightHooprod commented 3 years ago

I already seted up an bootstwatch theme and doesn't seems to work. I already added

$egChameleonThemeFile = __DIR__ . '/themes/united.scss';

and

$egChameleonExternalStyleModules = [
    __DIR__ . '/themes/united_bootswatch.scss' => 'afterMain',
];

(copy-pasted from my LocalSettings.php)

Screen shot: https://imgur.com/VC8MN6Z

and setted up the files in

mediawiki\themes\united.scss

and

mediawiki\themes\united_bootswatch.scss

Screen shot: https://imgur.com/nt0YSVX

That I already downloaded from Bootswatch

malberts commented 3 years ago

Can you show a screenshot of the wiki? Are you getting an error? Or is it not styled correctly?

Also are you running the latest master branch of Chameleon? The theme support has not had an official release (3.2.0) yet.

You'll also need to ensure the cache is cleared.

theRightHooprod commented 3 years ago

The page just doesn't change the colors. I already performed the cache cleaned to the united theme with the following:

\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/united.scss' );

and

\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/united_bootswatch.scss' );

And the page doesn't change the color

Here is the screenshot of the wiki:

https://imgur.com/DBmIP0c

malberts commented 3 years ago

Can you confirm which version of Chameleon you have according to the Special:Version page?

That asterisk icon in the navbar looks like an issue that was present in 3.1.0 but has since been fixed (#193) but not yet released. I'll add an explicit note to the documentation in the meantime.

theRightHooprod commented 3 years ago

Yup! My version is 3.1

I need this to work :( Thanks a lot bro!

Can you tell me where do I downloaded the fixed version pls?

malberts commented 3 years ago

How did you get it originally? There are 2 ways to do it right now:

I'm going to try to get the new release wrapped up in the next week, so keep an eye on that and then run the original command to lock it back to 3.x. Otherwise you are always going to pull unreleased code when you update with Composer.

theRightHooprod commented 3 years ago

Thanks men! I'm gonna close the issue <3