Mediawiki and logo

Mediawiki and logo

Posted by: mohnkern
Posted on: 2007-11-30 10:59:00

I'm trying to figure out how to change the logo in the upper right hand corner in Mediawiki.

I know you're supposed to set $wpLogo in LocalSettings.php. There's one in wikmedia's home directory but it doesn't seem to have any effect. I tried putting $wpLogo=""; at the beginning of the php code, but the logo still appears.


Re: Mediawiki and logo

Posted by: monkeyboy7706
Posted on: 2007-11-30 14:01:00

You could just find the image file and change that to what you want.


Re: Mediawiki and logo

Posted by: CalebBrown
Posted on: 2007-11-30 15:56:00

Is that upper *left*? You have to put your new logo image in the correct consistent location. Also you should change it where it already is in LocalSettings.php.

$wgStylePath = "$wgScriptPath/skins";
$wgLogo = "$wgStylePath/common/images/your-picture.png";

$wgScriptPath = "/your-directory";


The

Re: Mediawiki and logo

Posted by: mohnkern
Posted on: 2007-12-01 09:47:00

Oddly

$wgStylePath = "$wgScriptPath/skins";
$wgLogo = "$wgStylePath/common/images/your-picture.png";


Doesn't appear in LocalSettings.php

In includes/DefaultSettings.php I found this:

$wgLogo = false; /// defaults to "{$wgStylePath}/common/images/wiki.png"


$wgStylePath = "$wgScriptPath/skins";
$wgLogo = "$wgStylePath/common/images/your-picture.png";

So it look like $wgScriptPath/skins/common/images/wiki.png is the current logo, if I set $wgLogo from false to some file, it should point to the logo there, yes?




Re: Mediawiki and logo

Posted by: CalebBrown
Posted on: 2007-12-01 10:28:00

"your-picture" was an edit of "wiki"

Since you're having some difficulty adjusting Localsettings, I'd fall back to the earlier suggestion to copy your logo to wiki.png. Find it and copy over it.

There are links to help pages in Localsettings and Defaultsettings.

The

Re: Mediawiki and logo

Posted by: mohnkern
Posted on: 2007-12-01 10:48:00

Yeah, which is really strange, because the files were exactly what the dreamhost installer put in. I'll probably see if I add the fields to LocalSettings.php if they take, if not, I'll put them in includes/DefaultSettings.php

Though true, if I do an update (aka when) it'll overwrite that, but I can change that back.

Thanks for the help. It surprises me that Wikimedia hasn't gone to a web admin page like you see with Wordpress/Joomla/PhpBB/Moodle, etc.



Tags: mediawikiphp codehome directory