Skinning Hackery

Feature: to have the resources of a page (images and attachments section) collapsed initially.

CSS can remove it for everybody, but if you edit the skin file, you can make it work for logged in users vs. non-logged in users.

Assuming you're using the Ace skin, add this to your customize styles section in visual appearances in your control panel:

Code:
#attachments { display: none; }
If you want to make it work for logged in vs. non-logged in, edit /skins/ace/Ace.php and modify this line (~line 252):
Code:
<?php if (Skin::isViewPage() && $wgTitle->isEditable()) { ?>
to
Code:
<?php if (Skin::isViewPage() && $wgTitle->isEditable() && !$wgUser->isAnonymous()) { ?>
For "editing" skins, it is actually preferable you create a new skin based on an existing one to prevent conflicts in the future as we make updates to these skins.

 

Tag page
You must login to post a comment.