Difference between revisions of "Extension talk:SpecialExample"

From Organic Design wiki
(Restricted special pages error)
 
(Change source-code blocks to standard format)
 
Line 1: Line 1:
 
==Permissions==
 
==Permissions==
 
there is something weird going on with the user rights permissions on Special page extensions derived from [[Template:SpecialPage]]. This special page does not appear in the list [[Special:Allpages]] as a Restricted special page, but if you remove the user rights required to:
 
there is something weird going on with the user rights permissions on Special page extensions derived from [[Template:SpecialPage]]. This special page does not appear in the list [[Special:Allpages]] as a Restricted special page, but if you remove the user rights required to:
{{code|
+
<source lang="php">
<php>
+
SpecialPage::SpecialPage(
SpecialPage::SpecialPage(
 
 
'SpecialExample',    # name as seen in links etc
 
'SpecialExample',    # name as seen in links etc
 
'',      # user rights required changed from'sysop'
 
'',      # user rights required changed from'sysop'
Line 11: Line 10:
 
false          # includable
 
false          # includable
 
);
 
);
</php>
+
</source>
}}
 
 
the extension now shows up as an unrestricted page --[[User:Sven|Sven]] 02:01, 7 January 2008 (NZDT)
 
the extension now shows up as an unrestricted page --[[User:Sven|Sven]] 02:01, 7 January 2008 (NZDT)

Latest revision as of 18:11, 22 May 2015

Permissions

there is something weird going on with the user rights permissions on Special page extensions derived from Template:SpecialPage. This special page does not appear in the list Special:Allpages as a Restricted special page, but if you remove the user rights required to:

SpecialPage::SpecialPage(
			'SpecialExample',     # name as seen in links etc
			'',       # user rights required changed from'sysop'
			true,          # listed in special:specialpages
			false,         # function called by execute() - defaults to wfSpecial{$name}
			false,         # file included by execute() - defaults to Special{$name}.php, only used if no function
			false          # includable
			);

the extension now shows up as an unrestricted page --Sven 02:01, 7 January 2008 (NZDT)