Global Template Question

deki-users
2009-09-09
2013-02-26
  • Now that I have managed to get the hideelements to hide all my desired elements, I would like to make a global template that executes this dekiscript for every page

        Code:
        if (user.anonymous){
    HideElements('all');
    }
    I created a "HideAll" template and called it from the User:Admin/Header page

    Then I added the following line to my LocalSettings.php

    $wgPreloadPages = array('User:Admin/Header');

    Nothing seems to happen.

    My thoughts on what could be wrong
    1.  Do I need to put something in the $wgTargetSkinVars[] variable?
    2.  Could my multi-tenant setup means this should go someplace other than LocalSettings.php?
    3.  Because my script does not display something in a custom HTML area, is it being ignored?

    To view responses click here: http://forums.developer.mindtouch.com/showthread.php?t=6280