======How to upgrade user rights to bureaucrat, sysop======
=====Manual approach=====
log in to phpMyAdmin
select wikidb
select user
Find user_id of user to be promoted
select user_groups
For full powers, insert two records:
user_id
bureaucrat
user_id
sysop
Or you may just make the user a bureaucrat or
a sysop.
=====Automated=====
* Special Pages
* User rights management
* select
sysop and/or bureaucrat
====== Backup Everything ======
[[http://www.mediawiki.org/wiki/User:Flominator/Backup_MW|backup.sh]]
======Images======
skins/common/images
======WikiMedia default settings======
See /var/www/html/aw/mediawiki/LocalSettings.php
======SEF / SEO======
This makes nicer-looking URLs.
In httpd.conf:
Alias /wiki /path/to/your/wiki/index.php
Alias /wiki /var/www/html/aw/mediawiki/index.php
======add new button to MediaWiki toolbar:======
[[http://meta.wikimedia.org/wiki/Customizing:Edit_Toolbar#Simple_way_modifying_default_toolbar_settings]]
Had to edit two system files. Will probably get wiped out in updates. :o(
/var/www/html/aw/mediawiki/includes|EditPage.php
/*
* Added by MXM, SJ--table button for editing
* NB: The blank line at the end of the sample
* is critical. The web page showed it
* as |- but that didn't work right.
*
* NB: The substitution begins with the
* comma up above after the closing paren.
*/
array(
'image' => $wgLang->getImageFile('button-table'),
'id' => 'mw-editbutton-table',
'open' => "{|",
'close' => "|}",
'sample' => ' class=wikitable border=1 cellpadding=5
|+ table name
|-
! header 1
! header 2
! header 3
|-
| row 1, cell 1
| row 1, cell 2
| row 1, cell 3
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
',
'tip' => wfMsg('table_tip'),
'key' => 'A'
)
/*
* end inserted section -- MXM
*/
/var/www/html/aw/mediawiki/languages/messages|MessagesEn.php
$imageFiles = array(
'button-bold' => 'button_bold.png',
'button-italic' => 'button_italic.png',
'button-link' => 'button_link.png',
'button-extlink' => 'button_extlink.png',
'button-headline' => 'button_headline.png',
'button-image' => 'button_image.png',
'button-media' => 'button_media.png',
'button-math' => 'button_math.png',
'button-nowiki' => 'button_nowiki.png',
'button-sig' => 'button_sig.png',
'button-hr' => 'button_hr.png',
/*
* Added by MXM, SJ -- no capital B on Button
*/
'button-table' => 'button_table.png',
);
# Edit page toolbar
'bold_sample' => 'Bold text',
'bold_tip' => 'Bold text',
'italic_sample' => 'Italic text',
'italic_tip' => 'Italic text',
'link_sample' => 'Link title',
'link_tip' => 'Internal link',
'extlink_sample' => 'http://www.example.com link title',
'extlink_tip' => 'External link (remember http:// prefix)',
'headline_sample' => 'Headline text',
'headline_tip' => 'Level 2 headline',
'math_sample' => 'Insert formula here',
'math_tip' => 'Mathematical formula (LaTeX)',
'nowiki_sample' => 'Insert non-formatted text here',
'nowiki_tip' => 'Ignore wiki formatting',
'image_sample' => 'Example.jpg', # only translate this message to other languages if you have to change it
'image_tip' => 'Embedded file',
'media_sample' => 'Example.ogg', # only translate this message to other languages if you have to change it
'media_tip' => 'File link',
'sig_tip' => 'Your signature with timestamp',
'hr_tip' => 'Horizontal line (use sparingly)',
/*
* Added by MXM, SJ
*/
'table_tip' => 'Insert table (3 by 3)',
======change wiki skin======
php userOptions.php skin --old "monobook" --new "tighar"
=======SpecialUploadLocal======
require_once("$IP/extensions/SpecialUploadLocal/SpecialUploadLocal.php");
Problem: it's looking for special upload php in the wrong folder.
MediaWiki has changed where that file is.
Find it, rewrite require_once in the .php looking for it.
This is where the file is that it is seeking:
/var/www/html/aw/mediawiki/includes/specials
get $watch declared in some #@$&%@# php component ...
======template for TIGHAR copyright notice======
%%{{tcbug}}%%
======YouTube======
[[http://www.mediawiki.org/wiki/Extension:YouTube_(Iubito)]]
===== Modify toolbox for all pages =====
http://tighar.org/wiki/MediaWiki:Common.js