my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

jidanni
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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

Daniel Friesen-4
On Tue, 08 May 2012 15:19:59 -0700, <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

jidanni
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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

Daniel Friesen-4
On Tue, 08 May 2012 19:41:37 -0700, <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

jidanni
>>>>> "DF" == Daniel Friesen <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

Brandon Harris-4

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

>>>>>> "DF" == Daniel Friesen <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: my SkinTemplateBuildNavUrlsNav_urlsAfterPermalink no longer works when logged out

jidanni
>>>>> "BH" == Brandon Harris <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l