I use Version 1.34.1 and the wiki says An absolute url to the image to use for the icon, this is recommended but not required, but absolute does not mean an foreign/remote url here. It works for me only, if I have this icon on the server. I tried to use a remote one, because my hoster offers some icons (for sponsoring).
Manual talk:$wgFooterIcons/Flow
What error do you get? What's the generated URL of the icon? Maybe the external host doesn't allow hotlinking.
The "error" is, it doesn't show anything. My hoster offers hotlinking explicit via c&p source code for including. What do you mean with 'generated URL' ?
You'll have to inspect the HTML where the icon is supposed to be present (but it doesn't display for you) and see what's the URL it points to, or if there's no icon URL at all.... Open that URL on your browser and see if the image gets displayed or you see an error instead...
The img-URL is accessable direcly in the browser. If I use the FF-tool 'analyse item' and I hover the 'img scr' it says 'Couldn't load graphic'. So I can't find any concrete problem.
You can look at the network tab of the developer console and see what's the server response for that particular URL when requested from the page.
Thanks for the decisive hint! It doesn't show the icon due to my AdBlocker!
This is not documented and acutally I cannot find this parameter in the codebase either but it works:
$wgFooterIcons['poweredby']['exampleorg'] = [ 'src' => "$wgScriptPath/images/badge.png", 'url' => 'https://example.org/', 'alt' => 'Example Organization', 'style' => 'margin-left: 5px;' ];
Perhaps this is useful to know for others, too.
I was trying to add an icon to my footer and could not figure it out for multiple hours, so in case it will help someone else, I am making a note here. The place to add this is in LocalSettings.php.
What do I add exactly? I tried adding at the bottom of the local settings but the logo just disappears:
$wgFooterIcons = [
"copyright" => [
"copyright" => [], // placeholder for the built in copyright icon
],
"poweredby" => [
"Magentrix" => [
// Defaults to point at
// "$wgResourceBasePath/resources/assets/poweredby_mediawiki_176x62.png"
// plus srcset for 1.5x, 2x resolution variants.
"src" => null,
"url" => "https://www.mediawiki.org/",
"alt" => "Powered by MediaWiki",
]
],
];
isn't Manual:$wgFooterIcons#Site_customization customizable enough?
From 1.27.0 it may not be ideal to use unset unset( $wgFooterIcons['copyright'] );
to disable CopyrightIcon. It may cause PHP Notice: Undefined index: copyright in /usr/share/webapps/mediawiki/includes/skins/Skin.php on line 783.
Workaround: Do not unset $wgFooterIcons['copyright'], leave it as it is.
Set $wgRightsIcon to null value (default).
Ok, I've changed that
same error in MW 1.28.0. & set $wgRightsIcon to null value (default) does not work for me
Seems to related to extension pageimages. Once I disable this extension when $wgRightsIcon to null value, error message disappear.
It's strange because nothing in the code of Extension:PageImages references $wgFooterIcons. Maybe your first change to LocalSettings.php where you set it to null instead of unset wasn't actually saved?
Retest this problem with no extensions and all cache disabled. Confirmed that Extension:PageImages do no effect on Undefined index error.
The previous problem might caused by cache....
After upgrading to this version, the text is still to be seen, but the icon is not found any more. Please asssist
Hi, I can add some text in the footer by adding this to LocalSettings :
$wgFooterIcons['block'] = array('my text here');
But I can't manage to insert a Mediawiki variable like SiteStats::articles() ... It's probably due to my lack of PHP skills ! What's the easy way to do that ? Thanks
I checked the code for SMW, but it uses the $tpl->set( 'poweredbyico'... method. Is it still possible to override this here? What is the key-string to access it?
SMW should be using wfFooterIcons already:
True for trunk, I forgot to mention that I checked our 1.18 version. But will wait thus wait until we can update to 1.20. Many thanks! G.Hagedorn (talk) 20:19, 23 August 2012 (UTC)
PS: Key for the icon is then ['poweredby']['semanticmediawiki']
There are no older topics