On Fri, 04 Feb 2011 15:01:20 +0100, Krinkle wrote:
Op 3 feb 2011, om 22:42 heeft Dan Nessett het volgende geschreven:
On Thu, 03 Feb 2011 21:19:58 +0000, Dan Nessett wrote:
Our site has 4 skins that display the logo - 3 standard and 1 site- specific. The site-specific skin uses rounded edges for the individual page area frames, while the standard skins use square edges. This means a logo with square edges looks fine for the standard skins, but not for the site-specific skin. A logo with rounded edges has the opposite characteristic.
The programmer who designed the site-specific skin solved this problem with a hack. The absolute url to a different logo with rounded edges is hardwired into the skin code. Therefore, if we want to reorganize where we keep the site logos (which we have done once already), we have to modify the site-specific skin code.
While it is possible that no one else has this problem, I would imagine there are skins out there that would look better if they were able to use a skin specific logo (e.g., using a different color scheme or a different font).
My question is: has this issue been addressed before? If so, and there is a good solution, I would appreciate hearing of it.
Regards,
I need to correct a mistake I made in this post (sorry for replying to my own question). The site-specific skin keeps its skin specific logo in the skin directory and the skin code uses <?php $this-
text('stylepath') ?>/<?
php $this->text('stylename') ?> to get to that directory. So, the url is not hardwired.
However, we would like to keep all of the logos in one place, so I think the question is still pertinent.
-- -- Dan Nessett
You could upload a file to your wiki (say, at [[File:Wiki.png]]) and then put the full path to that in LocalSettings.php in $wgLogo.
ie. $wgLogo = "/w/images/b/bc/Wiki.png";
And then use that variable in the skins (The default skins use it already)
That's an interesting idea. But, probably the definition should be (e.g.):
$wgLogo = "$wgUploadPath/b/bc/Wiki.png";