Editing
Help
:
Contents
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====LocalSettings.php==== This becomes the most important and useful file to change the apperance and customize the wiki site. Everything else can be done through the interface of the wiki site itself. Within this file, one can change the navigation bar on the left margin, the logo appearing in the upper left corner, the login restrictions, the name of the site, the ability to upload files, the name of the site, the contact information and address of the site administrator, among others. *Navigation bar - For a detailed explanation on editing the Navigation bar, see [http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_change_the_contents_of_the_navigation_toolbar.3F MediaWiki Navigation Help] :Summary: :*The following array should be moved to LocalSettings, from <code>includes/DefaultSettings.php </code>. It specifies the pages which hold the text to be displayed in the navigation bar and the pages which hold the link of where each navigation bar tab points to. In other words, what appears here, in this array is not necessarily what will appear in the navigation bar; they are pages on the wiki site (or pointers within the database) to where this information is stored. $wgNavigationLinks = array ( array( 'text'=>'mainpage', 'href'=>'mainpage' ), array( 'text'=>'portal', 'href'=>'portal-url' ), array( 'text'=>'currentevents', 'href'=>'currentevents-url' ), array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ), array( 'text'=>'randompage', 'href'=>'randompage-url' ), array( 'text'=>'help', 'href'=>'helppage' ), array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ), ); For example, one line in the navigation array for this site is: ::<code>array( 'text'=>'howto', 'href'=>'howto-url' ) </code> If this was a new page you wanted to add, you'd have to log in as a SYSOP and then in the browser URL type <code>bonewiki.ucalgary.ca/~skboyd/wiki/index.php/MediaWiki:howto</code> *On the wiki site, there is a page <code>..../index.php/MediaWiki:howto</code> which holds the text to be displayed on the navigation bar. The text on this page is: ::<code> How To's</code> *There's another page on this wiki site, <code>..../index.php/MediaWiki:howto-url</code> which holds the page address of this navigation link's target. ::<code> How To </code> :*The next step is to add the desired text and target to the pages on the wiki site, that are mentioned in the navigation array. These will initially be empty pages and must be edited for the navigations to work. *Logo - This is the picture which appears in the top left corner throughout the site. At all times, this acts as a link returning to the mainpage. To customize this logo, replace the location of the logo picture in the following line of LocalSettings: ::<code>$wgLogo = "$wgScriptPath/myfavoritepicture.gif";</code> :(Could use another file type for the image, such as .png). *Enable File Uploading - To enable file uploading, uncomment the following line, in LocalSettings. ::<code>$wgDisableUploads = false;</code> : - Then change the permissions on the image directory so that it is writable. ::<code>$chmod a+w images </code>
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Help page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information