Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


jidanni at jidanni

May 8, 2012, 3:19 PM

Post #1 of 7 (191 views)
Permalink
my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

Dear Sirs, my

function JidanniLessSkinMess($sktemplate,$nav_urls){$nav_urls['permalink']=$nav_urls['print']=false;return true;}
$wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][]='JidanniLessSkinMess';

no longer works when the user is logged out.

What other of my
http://transgender-taiwan.org/index.php?title=Special:Version#Hooks
probably are affected?

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


lists at nadir-seen-fire

May 8, 2012, 4:11 PM

Post #2 of 7 (192 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

On Tue, 08 May 2012 15:19:59 -0700, <jidanni [at] jidanni> wrote:

> Dear Sirs, my
>
> function
> JidanniLessSkinMess($sktemplate,$nav_urls){$nav_urls['permalink']=$nav_urls['print']=false;return
> true;}
> $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][]='JidanniLessSkinMess';
>
> no longer works when the user is logged out.
>
> What other of my
> http://transgender-taiwan.org/index.php?title=Special:Version#Hooks
> probably are affected?

Use BaseTemplateToolbox for that now.
function JidanniLessSkinMess( &$sk, &$toolbox )
{$toolbox['permalink']=$toolbox['print']=false;return true;}
$wgHooks[BaseTemplateToolbox'][]='JidanniLessSkinMess';

The other skin hooks should be fine. In fact the SkinTemplateNavigation
you are already using should start working in MonoBook too now.

--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jidanni at jidanni

May 8, 2012, 7:41 PM

Post #3 of 7 (184 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

No I'm sorry, even if I add the missing apostrophe, that is not enough to zap
the permalink and print links from the bottom of each page.
In the source one even finds
// Use the copy of revision ID in case this undocumented, shady hook tries to mess with internals
So it is one big mishmash.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


lists at nadir-seen-fire

May 8, 2012, 7:49 PM

Post #4 of 7 (184 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

On Tue, 08 May 2012 19:41:37 -0700, <jidanni [at] jidanni> wrote:

> No I'm sorry, even if I add the missing apostrophe, that is not enough
> to zap
> the permalink and print links from the bottom of each page.
> In the source one even finds
> // Use the copy of revision ID in case this undocumented, shady hook
> tries to mess with internals
> So it is one big mishmash.

Apostraphe? WTF are you talking about? I said that you needed to use a
different hook.


--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jidanni at jidanni

May 8, 2012, 8:23 PM

Post #5 of 7 (185 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

>>>>> "DF" == Daniel Friesen <lists [at] nadir-seen-fire> writes:
DF> Apostraphe? WTF are you talking about?

$wgHooks[BaseTemplateToolbox'][]='JidanniLessSkinMess';
^

Anyway I am afraid what you gave me does not zap the links.
Could you test it please? Thanks.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


bharris at wikimedia

May 8, 2012, 9:08 PM

Post #6 of 7 (182 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

On May 8, 2012, at 8:23 PM, jidanni [at] jidanni wrote:

>>>>>> "DF" == Daniel Friesen <lists [at] nadir-seen-fire> writes:
> DF> Apostraphe? WTF are you talking about?
>
> $wgHooks[BaseTemplateToolbox'][]='JidanniLessSkinMess';
> ^

Uh, try:

$wgHooks['BaseTemplateToolbox'][]='JidanniLessSkinMess';

Note the single quote I dropped in right before "BaseTemplateToolbox", that removes the syntax error.

---
Brandon Harris, Senior Designer, Wikimedia Foundation

Support Free Knowledge: http://wikimediafoundation.org/wiki/Donate


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jidanni at jidanni

May 8, 2012, 9:26 PM

Post #7 of 7 (190 views)
Permalink
Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out [In reply to]

>>>>> "BH" == Brandon Harris <bharris [at] wikimedia> writes:
BH> Uh, try:
BH> $wgHooks['BaseTemplateToolbox'][]='JidanniLessSkinMess';
Yes Brandon, I tried that.
None of this zaps the two links for logged out users.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.