2,906 bytes added
, 21:36, 19 May 2017
== Media Wiki Howtos ==
== Navigationbar edit ==
open URL Sample:
<pre>
https://wiki.linuxonlinehelp.de/index.php/?title=MediaWiki:Sidebar
</pre>
or enter into search box:
<pre>
MediaWiki:Sidebar
</pre>
== User Password reset ==
1. Login via SSH to the Webspace
2. go Maintenance Path
<pre>
cd /maintenance/
</pre>
3. enter
<pre>
php changePassword.php --user=user --password=newpass
</pre>
== Create New User as Admin ==
<pre>
https://wiki.linuxonlinehelp.de/index.php/Special:CreateAccount
</pre>
== Disable Account Create by everyone ==
edit LocalSettings.php
set:
<pre>
$wgGroupPermissions['*']['createaccount'] = false;
</pre>
== Disable edit by anonymous ==
edit localsettings.php set:
<pre>
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = false;
</pre>
More Details:
[https://www.mediawiki.org/wiki/Manual:User_rights https://www.mediawiki.org/wiki/Manual:User_rights]
== Change Username on MySQL Console ==
login into the MySQL Server, change database and enter:
<pre>
update user set user_name = 'NewName' where user_name = 'OldName';
update revision set rev_user_text = 'NewName' where rev_user_text = 'OldName';
update recentchanges set rc_user_text = 'NewName' where rc_user_text = 'OldName';
</pre>
== Disable Talk at Mediawiki (Spam) ==
Anyway, if you want to disable Talk in media wiki follow the next steps.
1. cd your_mediawiki_dir/include
2. cp SkinTemplate.php SkinTemplate.back (just in case)
3. mcedit/vi SkinTemplate.php
4. search for <strong>$content_actions['talk']</strong>
5. uncomment this lines:
<pre>
/* $content_actions['talk'] = $this->tabAction(
$talkpage,
'talk',
$this->mTitle->isTalkPage() &&
!$prevent_active_tabs,
'',
true);
*/
</pre>
or login as Admin User and enter into Searchbox:
<pre>
MediaWiki:Common.css
</pre>
set:
<pre>
#ca-talk {
display: none !important;
}
</pre>
== Change Main Page ==
Login as Admin User and enter into Searchbox:
<pre>
MediaWiki:Common.css
</pre>
edit here the Common.css and paste:
<pre>
.page-Wiki_Home .mw-redirectedfrom {
display: none;
}
</pre>
now go to Main Page and select "move to" new article post! Save and logout! Check the new Index Page! (Refresh Browsers Cache F5)
== Add a new Site to Media Wiki ==
[[ Howto ]]
== Enable Mobile Frontend for MediaWiki ==
Install the Frontende Extension to Extensions Folder and enable on LocalSettings.php
Source: [https://www.mediawiki.org/wiki/Special:ExtensionDistributor/MobileFrontend Download MediaWiki Mobile Extension]
<pre>
wfLoadExtension( 'MobileFrontend' );
$wgMFAutodetectMobileView = true;
</pre>
== Protect MediaWiki after Setup ==
If you have Setup the MediaWiki successful by URL Sample:
<pre>
https://wiki.linuxonlinehelp.de/w/mw-config/index.php
</pre>
don't forget to purge or rename the mw-config Folder!!
Alternate set:
<pre>
$sudo chmod 000 mw-config
</pre>