Set $wgAllowUserSkin = false; [1] in your LocalSettings.php [1] http://www.mediawiki.org/wiki/Manual:$wgAllowUserSkin
On Tue, Jun 23, 2009 at 11:51 PM, Robert Carter<[email protected]> wrote: > To answer my own question I have found that this code in > LocalSettings.php works: > > if( ereg('mysite.co.nz$', $domain) ) { > $_GET['useskin'] = 'myskin'; > } else { > $_GET['useskin'] = 'monobook'; > } > > For some reason $_GET is necessary the use of $_REQUEST does not have > the same effect. > > Rob > > On 24/06/2009, at 9:28 AM, Robert Carter wrote: > >> Hi everyone. >> >> I am using $wgDefaultSkin to set skin preferences from >> LocalSettings.php based on the domain the request is coming from. >> >> The problem is that user preferences override this choice. Is there is >> way to force the skin selection regardless of user preferences? >> >> Versions: MediaWiki 1.13.2 PHP 5.2.0-8+etch13 (apache2handler) MySQL >> 5.0.32-Debian_7etch6-log >> >> Rob >> >> Web Design and Technical Documentation >> Faculty of Science >> University of Auckland >> Aotearoa New Zealand >> Building 303 Room 395 >> Phone +64 9 373 7599 x85336 >> http://www.sit.auckland.ac.nz/User:Robert_Carter >> >> >> _______________________________________________ >> MediaWiki-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
