Difference between revisions of "User:Cowiki"
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==?== | ==?== | ||
[[LibSat]] {{#allow-groups:staff}} | [[LibSat]] {{#allow-groups:staff}} | ||
Line 48: | Line 13: | ||
* http://www.mediawiki.org/wiki/Extension:SkinPerNamespace | * http://www.mediawiki.org/wiki/Extension:SkinPerNamespace | ||
* http://www.mediawiki.org/wiki/Extension:RandomImage | * http://www.mediawiki.org/wiki/Extension:RandomImage | ||
− | * http://www.mediawiki.org/wiki/Extension: | + | * http://www.mediawiki.org/wiki/Extension:CustomNavBlocks |
+ | * http://www.mediawiki.org/wiki/Extension:FooterManager | ||
+ | |||
Email tracking: | Email tracking: | ||
Line 91: | Line 58: | ||
===Hide Toolbox=== | ===Hide Toolbox=== | ||
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Vector_-_Hide_Toolbox_for_Anonymous_Users | http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Vector_-_Hide_Toolbox_for_Anonymous_Users | ||
+ | |||
+ | |||
+ | http://www.mwusers.com/forums/showthread.php?17872-Hide-toolbox-from-sidebar-for-a-specified-user-or-usergroup | ||
+ | private function renderPortals( $portals ) { | ||
+ | global $wgUser; | ||
+ | // Force the rendering of the following portals | ||
+ | if ( !isset( $portals['SEARCH'] ) ) { | ||
+ | $portals['SEARCH'] = true; | ||
+ | } | ||
+ | if ( !isset( $portals['TOOLBOX'] ) && (in_array('bureaucrat', $wgUser->getGroups()))) { | ||
+ | $portals['TOOLBOX'] = true; | ||
+ | } | ||
+ | ... | ||
+ | |||
===Hide Tabs=== | ===Hide Tabs=== |
Revision as of 12:33, 5 April 2013
Contents |
?
LibSat {{#allow-groups:staff}}
Possible Extensions:
- http://www.mediawiki.org/wiki/Extension:EmailPage
- Extension:HTML5Media
- http://en.wikibooks.org/wiki/Help:Collections
- http://www.mediawiki.org/wiki/Extension:Social_Sidebar
- <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FCounting-Opinions%2F264443126922943&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font=arial&height=21" scrolling="no" frameborder="0" style="border:none; padding:10px; overflow:hidden; height:21px;" allowTransparency="true"></iframe>
- http://www.mediawiki.org/wiki/Extension:SkinPerNamespace
- http://www.mediawiki.org/wiki/Extension:RandomImage
- http://www.mediawiki.org/wiki/Extension:CustomNavBlocks
- http://www.mediawiki.org/wiki/Extension:FooterManager
Email tracking:
http://www.mediawiki.org/wiki/Manual_talk:$wgUsersNotifiedOnAllChanges Or maybe support? $wgUsersNotifiedOnAllChanges = array('staff');
$wgExtensionFunctions[] = 'efNotifyPerNamespace';
function efNotifyPerNamespace() {
global $wgTitle, $wgUsersNotifiedOnAllChanges; if ( $wgTitle->getNamespace() == NS_USER ) { $wgUsersNotifiedOnAllChanges[] = 'Username'; $wgUsersNotifiedOnAllChanges[] = 'Username 2'; }
}$wgExtensionFunctions[] = 'efNotifyPerNamespace';
function efNotifyPerNamespace() {
global $wgTitle, $wgUsersNotifiedOnAllChanges; if ( $wgTitle->getNamespace() == NS_USER ) { $wgUsersNotifiedOnAllChanges[] = 'Username'; $wgUsersNotifiedOnAllChanges[] = 'Username 2'; }
}
Skin hacks
Hide Namespace tabs
// Adds namespace links
if (
$wgUser->isAllowed( 'edit' ) )
{ $links['namespaces'][$subjectId] = $this->tabAction(
$subjectPage, 'nstab-' . $subjectId, !$isTalk, , $userCanRead ); $links['namespaces'][$subjectId]['context'] = 'subject';
}
Hide Toolbox
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Vector_-_Hide_Toolbox_for_Anonymous_Users
http://www.mwusers.com/forums/showthread.php?17872-Hide-toolbox-from-sidebar-for-a-specified-user-or-usergroup
private function renderPortals( $portals ) {
global $wgUser;
// Force the rendering of the following portals
if ( !isset( $portals['SEARCH'] ) ) {
$portals['SEARCH'] = true; }
if ( !isset( $portals['TOOLBOX'] ) && (in_array('bureaucrat', $wgUser->getGroups()))) {
$portals['TOOLBOX'] = true;
} ...
Hide Tabs
- Printable link?