MediaWiki cheat sheet: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
*Skin (Vector) の設定 | *Skin (Vector) の設定 | ||
(余計なフッターを隠す) | (余計なフッターを隠す) MediaWiki:Vector.css の設定 | ||
MediaWiki:Vector.css の設定 | |||
<pre> | <pre> | ||
#ca-talk { display:none!important; } | #ca-talk { display:none!important; } | ||
Line 51: | Line 50: | ||
</pre> | </pre> | ||
MediaWiki:Privacy | MediaWiki:Privacypage | MediaWiki:Aboutsite | MediaWiki:Aboutpage | MediaWiki:Disclaimers | MediaWiki:Disclaimerpage にハイフン '-' を設定 | (余計なフッターを隠す) MediaWiki:Privacy | MediaWiki:Privacypage | MediaWiki:Aboutsite | MediaWiki:Aboutpage | MediaWiki:Disclaimers | MediaWiki:Disclaimerpage にハイフン '-' を設定 | ||
- | - | ||
MediaWiki:Common.css の設定 | (余計なフッターを隠す) MediaWiki:Common.css の設定 | ||
<pre> | <pre> | ||
#f-poweredbyico { display:none; } | #f-poweredbyico { display:none; } | ||
Line 62: | Line 61: | ||
</pre> | </pre> | ||
skins/Vector.php の変更 | (ログインユーザにのみ特別ページを見せる) skins/Vector.php の変更 | ||
<pre> | <pre> | ||
@@ -267,7 +267,11 @@ | @@ -267,7 +267,11 @@ |
Revision as of 21:38, 13 April 2012
この MediaWiki の設定・運用メモ(忘れるので...)
- Update を確認
MediaWiki.org
- 使っている extentions も確認
Extension:HTMLets Extension:SyntaxHighlight GeSHi
- LocalSettings.php の設定
PHP のメモリー設定
ini_set( 'memory_limit', '128M' );
MemCached の設定
$wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array('127.0.0.1:11211'); $wgSessionsInMemcached = true; $wgUseMemCached = true;
匿名ユーザの制限
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgDefaultUserOptions ['editsection'] = false; $wgDisableAnonTalk = true;
外部リンク画像ファイルの表示
$wgAllowExternalImages = true;
varnish の設定
$wgUseSquid = true; $wgSquidServers = array( 'xxx.xxx.xxx.xxx' , 'xxx.xxx.xxx.xxx' ); $wgSquidServersNoPurge = array('127.0.0.1');
不要な情報を隠す
$wgDisableCounters = true; $wgShowIPinHeader = false;
- Skin (Vector) の設定
(余計なフッターを隠す) MediaWiki:Vector.css の設定
#ca-talk { display:none!important; } #ca-history { display:none!important; } #ca-viewsource { display:none!important; } /* #footer-info-lastmod { display:none; } */ #footer-info-copyright { display:none; } #footer-places-privacy { display:none; } #footer-places-about { display:none; } #footer-places-disclaimer { display:none; } #footer-poweredbyico { display:none; }
(余計なフッターを隠す) MediaWiki:Privacy | MediaWiki:Privacypage | MediaWiki:Aboutsite | MediaWiki:Aboutpage | MediaWiki:Disclaimers | MediaWiki:Disclaimerpage にハイフン '-' を設定
-
(余計なフッターを隠す) MediaWiki:Common.css の設定
#f-poweredbyico { display:none; } #footer-icon-poweredby { display:none; } #footer-icon-poweredbyico { display:none; } #footer-poweredbyico { display:none; }
(ログインユーザにのみ特別ページを見せる) skins/Vector.php の変更
@@ -267,7 +267,11 @@ $portals['SEARCH'] = true; } if ( !isset( $portals['TOOLBOX'] ) ) { - $portals['TOOLBOX'] = true; + if($this->data['loggedin']) { + $portals['TOOLBOX'] = true; + } else { + $portals['TOOLBOX'] = false; + } } if ( !isset( $portals['LANGUAGES'] ) ) { $portals['LANGUAGES'] = true;