On Mon, 01 Oct 2012 23:10:11 -0700, <[email protected]> wrote:
I would be happy to use CSS, just tell me how to rewrite the final
function of
$wgNamespaceProtection[NS_CATEGORY]=$wgNamespaceProtection[NS_CATEGORY_TALK]=array('editinterface');
function
JidanniBlueLinkCategoryPages($linker,$target,&$text,&$customAttribs,&$query,&$options){
switch($target->getNamespace()){case NS_CATEGORY:case
NS_CATEGORY_TALK:$options[0]='known';}return true;}
$wgHooks['LinkBegin'][]='JidanniBlueLinkCategoryPages';
function
JidanniDontInviteEdit(&$article,&$outputDone){if($article->getID()===0){
switch($article->getTitle()->getNamespace()){case NS_CATEGORY:case
NS_CATEGORY_TALK:$outputDone=true;}}return true;}
$wgHooks['ArticleViewHeader'][]='JidanniDontInviteEdit';//Bug 17630
function JidanniLessRedNavigation($sktemplate,$links){
foreach($links['namespaces'] as $ns=>&$value){
if($value['context']=='talk' && $value['class']=='new' &&
!$sktemplate->getTitle()->quickUserCan('createtalk')){
unset($links['namespaces'][$ns]);}
if($ns=='category' && $value['class']=='selected new'){
$value['class']='selected';
if(isset($links['actions']['watch'])){unset($links['actions']['watch']);}}}
//var_dump('AFTER',$links);
return true;}
$wgHooks['SkinTemplateNavigation'][]='JidanniLessRedNavigation';
to make it work again. Thanks.
We're saying you don't need to rewrite it.
Assuming you're using Vector. The standard link blue is #0645AD and the
standard :visited blue is #0B0080.
So to override the .new styles in the personal area with standard colors,
just use:
#p-personal a.new { color: #0645AD; }
#p-personal a.new:visited { color: #0B0080; }
And you can use that everywhere in your own personal css, not just your
own wikis.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l