Difference between revisions of "User:Cowiki"

From Counting Opinions (SQUIRE)
Jump to: navigation, search
Line 1: Line 1:
{{#dpl:
 
|categoryregexp=.+ Case Studies
 
|notcategory=French
 
|namespace=Studies
 
|headingmode=H4
 
|ordermethod=category,title
 
|mode=unordered
 
|format=,\n*[[%PAGE%|%TITLE%]],,\n
 
}}
 
 
====Étude de Cas d’une Province====
 
{{#dpl:
 
|category=state Library Case Study
 
|category=French
 
|namespace=Studies
 
|include={Case Study Fr}:library
 
|replaceintitle=/fr\//,
 
|format=,\n*[[%PAGE%|,]],
 
}}
 
 
__NOTOC__
 
 
<!-- This or with the categoryregexp=.+ Case Study works except it includes the "French", Jennifer, and "Notes" categories? Need to fix Category names and how to deal with different languages.
 
{{#dpl:
 
|category=State Library Case Study¦Association Case Study¦Academic Library Case Study¦Public Library Case Study
 
|namespace=Studies
 
|headingmode=H4
 
|ordermethod=category,title
 
|mode=unordered
 
|format=,\n*[[%PAGE%|%TITLE%]],,\n
 
}}
 
-->
 
 
 
 
 
==?==
 
==?==
 
[[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:MobileFrontend
+
* 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:


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

http://www.mediawiki.org/wiki/Thread:Project:Support_desk/How_can_I_hide_tabs_for_users_not_logged_in%3F/reply_(12)

  • Printable link?