Free Web Hosting is Powered by HOST1PLUS

Archive for the ‘Application Installer’ Category

How to change the font color for the headings in MediaWiki?

1. Go to the page or section you wish to edit (using the links in the navigation menu to the left of the window).
2. Click on either the edit tab at the top of the window to edit the whole page or the [edit] link that appears at the right side of the window next to the heading of the section you wish to edit.
3. To change the colour of text, you need to use HTML font colour tags. The following example shows how to add green text to your page.

An example of green text
Note: The spelling of color is in American Language.
4. Click the Save page button below the text area.

How to change the font color for the content in MediaWiki?

In order to change the font color for the content in MediaWiki, you should edit the skin’s main.css file.

For example, if you are using the default Monobook skin, the file you should edit is:

/home/user/domains/domain_name/public_html/skins/monobook/main.css

Look for the following code:
#content {
background: white;
color: black;
border: 1px solid #aaa;
border-right: none;
line-height: 1.5em;

You should edit the color:black; line. For example, if you wish to change the font color to red, the line should be changed to:

color: red;

How to change the favicon in MediaWiki?

* Simply upload your favicon.ico to the root of your domain/subdomain, make sure file name is in lower case and its name is favicon.ico
* Alternatively edit the $wgFavicon setting in LocalSettings.php and add $wgFavicon = “$wgScriptPath/path/to/your/favicon.ico”;

See Manual:$wgFavicon for more details.

Tip: The favicon image should be either 16 x 16 pixels or 32 x 32 pixels.
Rewrite Rule

If you are using a rewrite rule in .htaccess to remove “index.php” from the URL, you will also need to add an exception for .ico files. Simply add the following rule to your .htaccess:

RewriteRule .*\.ico$ – [L]

This rule must appear before the index.php rule.
Case sensitivity

When uploading the favicon file, be sure the filename is in lowercase. (That is, “favicon.ico”, not “Favicon.ico”.) A lot of servers (e.g., those on UNIX-like operating systems) will not be able to find the file unless its name is in lowercase.

How to enable HTML tags in MediaWiki?

How to enable HTML tags in MediaWiki visit: http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext

How to change the ‘Main Page’ title to something else?

The default name for the MediaWiki main page is Main Page.
You can change this by editing the MediaWiki:Mainpage page.
Go to: www.yourdomain.com/wiki/index.php?title=MediaWiki:Mainpage
and click the edit button to edit the page. Change Main Page to the new page name you wish to use and save the change.

How to change the default skin for guests in MediaWiki?

A default skin can be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file. Users can still change their skin later by going to their preferences page. To change all existing users’ skin settings, use the userOptions.php maintenance script. The syntax to use on the command line would be:

$ php userOptions.php skin –old –new

Example:

$ php userOptions.php skin –old “monobook” –new “modern”

How to disable cache in MediaWiki?

Add in your LocalSettings.php file the following lines:

$wgEnableParserCache = false;
$wgCachePages = false;

How to remove the additional footer links in MediaWiki?

By default, MediaWiki shows additional items in the footer such as the time of the last page modification, the privacy policy, etc.
You can remove these items by modifying the skins file of your MediaWiki. The default skin’s file is skins/MonoBook.php.
Open the file with a text editor and find this section:

// Generate additional footer links
?>

    $footerlinks = array(
    'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',
    'privacy', 'about', 'disclaimer', 'tagline',
    );

    The items in the array represent the footer links in your MediaWiki. If you wish to remove a certain item from your footer, you should delete its entry from the array.
    For example, if you wish to remove the Privacy policy link, you should delete the ‘privacy’ item from the array. Then open your MediaWiki in a browser and clean the page cache to see the change.

How to customize the MediaWiki sidebar?

As an administrator, edit the wiki page “MediaWiki:Sidebar”. (The editinterface permission needs to be enabled and is enabled for administrators by default; for information on assigning it to other groups, see Manual:User rights.) You may need to use the syntax //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit if you use long URLs.

If you are sure you are logged in with the relevant rights but do not see the edit link, click on the create tab at the top of the page – this will take you to the edit page.

Example sidebar code:
Sidebar example

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes
* new heading
** portal-url|portal
** http://www.mediawiki.org|MediaWiki home

How to clear the page cache in MediaWiki?

To clear the cache of a page in MediaWiki, you should add &action=purge to the end of the page’s URL in your browser’s address bar, e.g. :

http://www.yourdomain.com/wiki/index.php?title=Main_Page&action=purge

If you are not logged in the wiki, a message will come up asking you to confirm that you want to clear the cache of the page.