PDA

View Full Version : Miscellaneous Hacks - DRC - Remove unnecessary scrollbars from admin cp


Dr.CustUmz
05-06-2014, 10:00 PM
UPDATE follow post 2 for both admin and mod cp, i forgot about other admins that do not have as many options, and you always want the side scrollbars to apear


This is yet another file mod hack... still not a template though lol

have you ever gotten sick of those useless horizontal scrollbars in the admincp... theyre useless and just take up scree res (although very little) but still seems like J$ would of atleast got this right, bad enough i had to fix tons of <labels & <inputs inside the php files, just so i edit them properly with valid css/html -_- *end little rant*

ok so im going to show you how J$ should have done these little do das and a quick easy way for you to fix them too =)

this is what we will be removing (...well hiding, the way they're suppose to be)
https://vborg.vbsupport.ru/attachment.php?attachmentid=149050&stc=1&d=1399461291

so open up your file:
forum/admincp/index.php

search for: 2 of them
IN POST 2

and change them to:
IN POST 2

thats really all there is to it, hard refesh your admincp, not just navigate to another page within it.

and presto.
https://vborg.vbsupport.ru/attachment.php?attachmentid=149051&stc=1&d=1399461602

Dr.CustUmz
05-07-2014, 10:18 PM
as a follow up, to get this same effect in modcp it is a bit different, since modcp typically doesn't scroll, and if we set it to auto, then it will remove the scrollbars completely; and that looks pretty weird depending on your cpstyle.

so lets just get rid of the bottom scrollers (this same method could be used in the admincp index, with leaving the scrolling set to yes, but i like the way we already did admincp =)

you want to open:
modcp/index.php

search for:
border=\"no\"

replace with:
border=\"no\" style=\"overflow-y:scroll; overflow-x:hidden;\"

thats all there is to it, now we got rid of the useless bottom scrollers from both the admincp and modcp =)