RJ Ian Sevilla From Projects, Travel, Tips, Tricks, Tech or everything happen in my life..


Changing Logo on Media Wiki

I'm on research some admin task on media wiki for FOSS Toolkit for SMEs, im also trying to find how the modify the logo on the default installation and i've found this tutorial.

The $wgLogo variable specifies which graphical logo is displayed in the top left corner of all mediawiki pages.

Add the following two lines to LocalSettings.php (below the "require" statements):

$wgStylePath   = "/wiki/skins/"; 
$wgLogo = "{$wgStylePath}/common/images/wiki.png";

This replaces the default logo in the /wiki/skins/common/images/ directory.

Another option is to direct the $wgStylePath variable to the Upload Directory to be able to exchange the logo by updating uploaded files.

$wgStylePath is usually YOUR_WIKI_FOLDER/wiki/skins.

  • Note that in the example given, the $wgLogo points to /wiki/skins/common/images/wiki.png with the first part being defined by $wgStylePath. Make sure you have both correct, or $wgLogo will not point to where you think it's pointing.

Hope this will work.


Removing the Edit Tabs on Media Wiki

While editing the Media Wiki use for the test, trying to figure out how to remove the edit tabs for guest user. heres a simple trick.

Edit> localsetting.php on the root folder of media wiki. And by putting this simple code

$wgGroupPermissions['*']['edit'] = false;

Then your done. Upload it again to the same location.
Sample code below:

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgGroupPermissions['*']['edit'] = false;
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );

Filed under: CMS, FOSS, Media Wiki No Comments

Customize the Navigation Bar on Media Wiki

Heres a simple step how to modify or customize your navigation bar on Media Wiki page, but you have to login and have an administrator access to do this. Just type on the search "MediaWiki:Sidebar" Now you can edit it and modify the navigation you want.


Jump to: navigation, search

  • navigation
    • Main Page|mainpage
    • Programs|Programs
    • Event Venue|Event Venue
    • Sponsors|Sponsor
    • Organizer|Organizer
    • Committies|Committies
Filed under: CMS, FOSS, Media Wiki 1 Comment