Topic on Skin talk:MonoBook

this->data['loggedin'] not working when using wfLoadSkin()

2
68.168.100.132 (talkcontribs)

Hi, I have this snippet of code in mi skins/MonoBook.php file:

<?php if(!$this->data['loggedin']) { ?>

     <style>
       .editsection { display: none; }
       .editornote { display: none; } 
       div#p-editors {display: none; }
     </style>
<?php } ?>


Seems not to be working.

Someone suggested it probably have something to do with require_once() not being used to load it, but I don't think that is the case.

Any suggestions?

Kghbln (talkcontribs)

I believe you are better off adding CSS stuff to the "MediaWiki:MonoBook" page.

Reply to "this->data['loggedin'] not working when using wfLoadSkin()"