Skin talk:Foreground

Jump to navigation Jump to search

About this board

Support for Font Awesome v4.7?

1
Revansx (talkcontribs)

Skin page lists "Full support of Font Awesome (v4.5)", but Font Awesome seems to be at v4.7. Not sure how complex font awesome is, but is it possible that Foreground does support Font Awesome 4.7 and the skin page is out of date?

Reply to "Support for Font Awesome v4.7?"

Moving "echo-notifications" items to the "navwrapper" div

1
Revansx (talkcontribs)

Hi, I'm running both Echo and Flow in my 1.34.x MW site using Foreground v2.3.0.

By default Foreground places the Echo and Flow Notification and Alert icons below the "navwrapper" div in a separate "echo-notifications" div as follows:

!-- If user is logged in output echo location -->
<div id="echo-notifications">
<div id="echo-notifications-alerts"></div>
<div id="echo-notifications-messages"></div>
<div id="echo-notifications-notice"></div>
</div>

My question is.. how can I get these items moved to the <div id="navwrapper"> at the top of the page.

In other words.. Is there a way to do this that does not involve making local edits to Foreground.skin.php [1]?

[1] https://github.com/jthingelstad/foreground/blob/develop/Foreground.skin.php

Reply to "Moving "echo-notifications" items to the "navwrapper" div"
LeeMChildress (talkcontribs)

I feel really ignorant but I have tried everything I know to do to change the font for the Actions button. Can someone please share with me the CSS to style the Actions button? Thank you in advance.

Kghbln (talkcontribs)

Something like this "MediaWiki:Foreground.css" should work:

a#actions-button {
    color: blue;
    background: red;
}

and

.f-dropdown li a {
    color: blue;
    background: red;
}

and

ul#actions.f-dropdown {
    background: red;
}

Change colors as required. Not that you also will have to manipulate the pseudo classes like "hover", "active", etc.

Reply to "Actions Button CSS"

Fatal error:... Foreground is not compatible with the current MediaWiki core (version 1.34.4), it requires: >= 1.35.0.

4
Noloader (talkcontribs)

I'm trying to make Foreground available in a Mediawiki 1.34.4 installation. Foreground comes from GitHub sources. However, we have to use Master because there is no REL1_34 tag (most other skins have the a REL1_34 tag). Loading the skin results in:

Fatal error:  Uncaught ExtensionDependencyError: Foreground is not compatible with the current MediaWiki core (version 1.34.4), it requires: >= 1.35.0. in /var/www/html/w/includes/registration/ExtensionRegistry.php:334 Stack trace:
#0 /var/www/html/w/includes/registration/ExtensionRegistry.php(186): ExtensionRegistry->readFromQueue(Array)
#1 /var/www/html/w/includes/Setup.php(143): ExtensionRegistry->loadFromQueue()
#2 /var/www/html/w/includes/WebStart.php(81): require_once('/var/www/html/w...')
#3 /var/www/html/w/index.php(41): require('/var/www/html/w...')
#4 {main}  thrown in /var/www/html/w/includes/registration/ExtensionRegistry.php on line 334
Kghbln (talkcontribs)

Check out version v2.3.0 to mitigate.

71.179.5.32 (talkcontribs)

Thanks @Kghbln.


I'm also seeing the same problem with <tt>REL1_35</tt>:


<pre>Updating /var/www/html/w/skins/Foreground/

HEAD is now at 778484f Merge pull request #384 from Hutchy68/circleci-nameLink

Already up-to-date.

error: pathspec 'REL1_35' did not match any file(s) known to git.</pre>


Maybe the Foreground skin can add expected tags?

Kghbln (talkcontribs)

I do not really think that REL1_35 is an expected tag. This is for extensions and skins of WMF only. There are extensions around that have REL_35 but will definitively not work for the branch. To my experience it is always best to follow the strategy of the programmer.

Reply to "Fatal error:... Foreground is not compatible with the current MediaWiki core (version 1.34.4), it requires: >= 1.35.0."

The skin covers notifications and messages icons

2
2001:8F8:1E23:1DCA:381A:B122:270A:4DD9 (talkcontribs)

The two icons are covered by this skin (icons of echo extension), notifications and messages, those two icons are just fine on vector skin, plus this skin doesn't fully support rtl language

2001:8F8:1E23:DE9:918:3F3C:9736:5CAB (talkcontribs)

there is another issue with hidden-catlinks, always showing,

Reply to "The skin covers notifications and messages icons"

Not working with mw 34 version

3
Summary by Kghbln

Tracked at GitHub with issue 353.

2409:4043:251A:82A8:E513:C913:5AEB:10CA (talkcontribs)

I have just upgraded my wiki from .28 to .34 version. The old version was using foreground as the default skin. With new version, it's giving this issue:


Fatal error: Uncaught Error: Call to undefined function wfSuppressWarnings() in /home/vikasnd/public_html/w/skins/foreground/Foreground.skin.php:60 Stack trace: #0 /home/vikasnd/public_html/w/includes/skins/SkinTemplate.php(217): foregroundTemplate->execute() #1 /home/vikasnd/public_html/w/includes/OutputPage.php(2574): SkinTemplate->outputPage() #2 /home/vikasnd/public_html/w/includes/exception/MWExceptionRenderer.php(134): OutputPage->output() #3 /home/vikasnd/public_html/w/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Object(Error)) #4 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Object(Error), 2) #5 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Object(Error)) #6 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(167): MWExceptionHandler::handleException(Object(Error)) #7 [internal function]: MWExceptionHandler::handleUncaughtException(Object(Error)) #8 in /home/vikasnd/public_html/w/skins/foreground/Foreground.skin.php on line 60


When skin is not made default in localsettings.php, mediawiki loads without any skin and gives this message at top:


Whoops! The default skin for your wiki, defined in $wgDefaultSkin as vector, is not available.

Your installation seems to include the following skins. See Manual: Skin configuration for information how to enable them and choose the default.

  • monobook / MonoBook (disabled)
  • timeless / Timeless (disabled)
  • vector / Vector (disabled)
  • foreground / foreground (enabled)


Please help in fixing. I looked if newer version of extension is available to upgrade. But couldn't find it. Thanks

2409:4043:251A:82A8:E513:C913:5AEB:10CA (talkcontribs)

I upgraded to newer foreground files from github project. But still getting the error.

I commented to suppresswarning method in foreground.skin.php file. then it loaded the wiki page. However it was failing in restore function in same file which was shown on wiki page at end. I commented that also and it's looking to work now.

I am not sure if those two functions need to be commented or why it's failing in first place. Please guide so I can use this skin normally.


Thanks

Kghbln (talkcontribs)

This is clearly a bug that needs to be fixed in the code base. I will document the incompatibility for now until this is fixed. Tracked at GitHub with issue 353

89.157.115.94 (talkcontribs)

Hi there! Great skin! I just have a question: all the text in the wiki is in bold, any idea why? Something in one of the css?


Kghbln (talkcontribs)

Should not happen by default: See the demo wiki which does not show the behaviour. Did you add something locally to MediaWiki:Common.css that could cause the issue?

89.157.115.94 (talkcontribs)

I have made some modifications but not that kind I think... See wiki.lokal-life.org

Kghbln (talkcontribs)

It appears you have found the spot. I do not see any bold text except for the headings.

2001:16B8:48F2:FE00:A852:96D9:9AAF:790 (talkcontribs)

I upgraded a 1.26 wiki to the latest stable release. And I run into a few issues.

One seems to be fixed in current development branch (no icon for "edit"), but the main issue I run into is that there is no toolbar for the editor at all. What am I missing here? Thanks!

2001:16B8:48F2:FE00:A852:96D9:9AAF:790 (talkcontribs)

Mark as solved. Due do the major version pump, I hadn't taken precaution to enable the new editor. Had nothing to do with the skin. Looking forward to the new version with all the current fixes....

Summary by Kghbln

Reported as issue 338

185.239.108.1 (talkcontribs)
Kghbln (talkcontribs)

Unfortunately Foreground is currently incompatible with MW 1.32 and later. See the docu as well as the two threads below this one.

Content not displaying on 1.32-alpha.

1
Summary by Kghbln

Reported as issue 338

73.228.29.147 (talkcontribs)

On my sandbox MediaWiki site, foreground skin stopped displaying content after an MW update to 1.32-alpha version.