Jump to content

Admin Area - no header, less scrolling


galeksic

Recommended Posts

If you work a lot in Admin Area (admin template "v4"), maybe you often need to scroll down and if you are tired of it, you can reduce WHMCS document height 116 pixels - by removing WHMCS logo and search box background: try to add this seven lines at the very bottom of admin/templates/v4/style.css file:

 

body {background: #FFF url(images/body_top_bg.gif) repeat-x 0 -80px;}
#topnav{padding-left:10px;padding-right:10px;margin:0;max-width:100%}
#logo_container {height:0px;margin:0;padding:0}
#content_container {background-color:white}
#logo_container img.banner, #logo_container #intellisearch strong,#logo_container #intellisearch br {display:none}
#logo_container #intellisearch {background:none;height:0px;margin: 0;padding:0}
h1 {font-size:14px;height:18px}

 

Here is how it looks in Firefox 3.6.

whmcs-admin-optimized.jpg

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I'd like to thank everyone for comments.

 

@ljesh and @scurrell: Are you sure you put those lines at the end of admin/templates/v4/style.css file?

 

If you are, feel free to PM me your browser / OS, name / version.

 

I tried in several browsers, and everywhere looks fine (except IE6, of course...).

Link to comment
Share on other sites

@ljesh and @scurrell: Are you sure you put those lines at the end of admin/templates/v4/style.css file?

 

Positive. It's the same in all browsers - FF 3.6.13, IE8, Opera etc.

 

Windows 7, WHMCS 4.4.1

 

/* --------------------------------------------------------------
  SUPPORT TICKETS
-------------------------------------------------------------- */

.ticketstaffnotes {
    background-color: #FFFFE6;
    border: 1px dashed #DACD83;
    padding: 5px;
}

.ticketstaffnotestable {
   width: 100%;
   border-bottom: 1px dashed #000;
   margin-bottom: 7px;
}
body {background: #FFF url(images/body_top_bg.gif) repeat-x 0 -80px;}
#topnav{padding-left:10px;padding-right:10px;margin:0;max-width:100%}
#logo_container {height:0px;margin:0;padding:0}
#content_container {background-color:white}
#logo_container img.banner, #logo_container #intellisearch strong,#logo_container #intellisearch br {display:none}
#logo_container #intellisearch {background:none;height:0px;margin: 0;padding:0}
h1 {font-size:14px;height:18px}

Link to comment
Share on other sites

Positive. It's the same in all browsers - FF 3.6.13, IE8, Opera etc.

 

Windows 7, WHMCS 4.4.1

 

/* --------------------------------------------------------------
  SUPPORT TICKETS
-------------------------------------------------------------- */

.ticketstaffnotes {
    background-color: #FFFFE6;
    border: 1px dashed #DACD83;
    padding: 5px;
}

.ticketstaffnotestable {
   width: 100%;
   border-bottom: 1px dashed #000;
   margin-bottom: 7px;
}
body {background: #FFF url(images/body_top_bg.gif) repeat-x 0 -80px;}
#topnav{padding-left:10px;padding-right:10px;margin:0;max-width:100%}
#logo_container {height:0px;margin:0;padding:0}
#content_container {background-color:white}
#logo_container img.banner, #logo_container #intellisearch strong,#logo_container #intellisearch br {display:none}
#logo_container #intellisearch {background:none;height:0px;margin: 0;padding:0}
h1 {font-size:14px;height:18px}

 

Same here with me as well.

Link to comment
Share on other sites

Thanks scurrell, problem is in WHMCS version, I believe. Code above is for 4.3.1, unfortunately.

 

In next few days, I will upgrade my WHMCS, and I will try to update CSS code here. So, please, if your WHMCS is 4.4, you should not try CSS from my first message.

 

My apologies to everyone who has bother to try it in WHMCS 4.4 versions.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Sorry for waiting.

 

Here is CSS for WHMCS 4.4 versions of Admin Area:

 

/*
Admin Area - no header, less scrolling, CSS "hack"
http://forum.whmcs.com/showthread.php?t=33988
*/
body { background: #FFF url(images/headerbg.jpg) repeat-x -0px -110px; }
#content_container { background-color: white }
#topnav { padding-left: 20px; padding-right: 20px; margin:0; max-width:100%; background: #000; -webkit-border-bottom-right-radius: 8px; -webkit-border-bottom-left-radius: 8px; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; }
#logo, #intellisearch strong, #intellisearch br { display: none }
#intellisearch { background: none; height: 0px; margin: 0; padding:0 }
h1 { font-size: 14px; height:18px }
#bodyContentWrapper { min-height: 65px; }
#headerWrapper { height: 66px; }

 

As we said before: those lines should be added at the bottom of admin/templates/v4/style.css file.

Link to comment
Share on other sites

  • 1 month later...

Thanks scurrell, I didn't notice that.

 

Inteligent Search results are now listed as they should be, I believe: I tried this in FF3, Chrome and IE8.

 

Here is new CSS code:

 

/*
Admin Area v3 - no header, less scrolling, CSS "hack"
http://forum.whmcs.com/showthread.php?t=33988&page=2
*/
body { background: #FFF url(images/headerbg.jpg) repeat-x -0px -110px; }
#content_container { background-color: white }
#topnav { padding-left: 20px; padding-right: 20px; margin:0; max-width:100%; background: #000; -webkit-border-bottom-right-radius: 8px; -webkit-border-bottom-left-radius: 8px; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; }
#logo, #intellisearch strong, #intellisearch br { display: none }
#intellisearch #searchresults strong, #intellisearch #searchresults br { display: inline}
#intellisearch { background: none; height: 0px; margin: 0; padding:0 }
h1 { font-size: 14px; height:18px }
#bodyContentWrapper { min-height: 65px; }
#headerWrapper { height: 66px; }

 

Those lines should be added at the bottom of admin/templates/v4/style.css file.

Link to comment
Share on other sites

Hmm.

 

I thought it worked like a charm, but it seems to screw up the Intelligent Search.

 

It now just lists Client Id and email address, whereas before it displayed Name, Company Name, Client Id and email address.

 

Or, to put it another way, there is only a single-line search result instead of the normal 2 lines.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated