hooplah Posted February 27, 2010 Share Posted February 27, 2010 Hello, I'm going to make this as simple as I can: I want to change the global header for all the pages that WHMCS displays. I want to put my own banner and navigation into WHMCS so that both the main site and the script are integrated with each other. I'd really appreciate any help. Cheers, Max 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 27, 2010 Share Posted February 27, 2010 You can do that in the header.tpl. See also: http://wiki.whmcs.com/Client_Area_Template_Files 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 27, 2010 Author Share Posted February 27, 2010 I'm having some issues inserting images into the header. Simply using "<img src="x.extension"> doesn't have any effect on the layout whatsoever. What am I doing wrong? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 27, 2010 Share Posted February 27, 2010 Try removing the files from the template_c directory (the cache files). 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 27, 2010 Author Share Posted February 27, 2010 Nope, no change. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 27, 2010 Share Posted February 27, 2010 What's the URL of your WHMCS installation, and which file are you currently editing? 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 27, 2010 Author Share Posted February 27, 2010 I'm currently editing the header, the URL of my installation is http://www.apocahost.com/whmcs 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 27, 2010 Share Posted February 27, 2010 <td class="logo" width="50%"><img src="/images/logo.png" /></td> That image doesn't exist (http://www.apocahost.com/images/logo.png) 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 27, 2010 Author Share Posted February 27, 2010 Thanks for pointing that out ... My placement of files was all off and as a result nothing was showing up. It's all good. 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 I'm having another issue related to CSS. If you go to the WHMCS @ http://www.apocahost.com/whmcs you'll see that the navigation banner is acting up weirdly. I want it to underline a link when hovered over, among other things defined with the following css code: td.mynav a:hover { text-decoration: underline; color: #000; } td.mynav a:visited { text-decoration: none; color: #000; } td.mynav a:active { text-decoration: none; } However, it's not even half working. Some of the links remain permanently underlined for some reason and I've been trying to figure out how to fix this for at least two hours now, no luck whatsoever. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 Also add: td.mynav a { text-decoration: none; } 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 It only half fixed the problem. Now some of the links work correctly, others don't. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 Remove the: td.mynav a:visited { text-decoration: none; color: #000; } td.mynav a:active { text-decoration: none; } 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 Thank you so much m00. It worked and you're a life saver. 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 Oh, there's also one small issue with the footer. I want the text to be the same on both sides yet on the left the text is the wrong font, size and color. The footer css is the following... .footer3 { margin-top: 50px; color: #FFF; text-indent: 25px; font-size: 15px; vertical-align: middle; font-family: Verdana, Geneva, sans-serif } .footer2 { color: #FFF; text-indent: 25px; font-size: 15px; verticla-align: middle; font-family: Verdana, Geneva, sans-serif; text-align: right; padding-right: 25px; } 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 Change the table code in your footer to: <table align="center" border="0" cellpadding="0" cellspacing="0" height="55px" width="100%"> <tr> <td class="footer3">Copyright © 2009-2010, Apocahost.com</td> <td class="footer2" bgcolor="080808">Design by Apocahost.com</td> </tr> </table> 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 Okay, thanks. As for the header: there's still one issue. The color isn't the way it should be. It's still the light-ish grey that you see in the rest of the page. How do I fix this? 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 Also, that didn't do it. It's worse now ... take a look. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 The hyperlink style from WHMCS is leading, that's why he takes over the gray text. Just add the font color to your td.mynav a: td.mynav a { text-decoration: none; color: #000; } 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 Alright, that worked. Got a solution for the footer? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 What about the footer? It looks the same to me on both sides. I don't know how you want to style it of course. 0 Quote Link to comment Share on other sites More sharing options...
hooplah Posted February 28, 2010 Author Share Posted February 28, 2010 There's two problems that are shown in the image below ... 1) The footer doesn't reach the bottom of the page 2) Half the footer doesn't have a background and even the copyright symbol is not showing up properly. The image is at: http://www.apocahost.com/whmcsformat.PNG 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 28, 2010 Share Posted February 28, 2010 (edited) As solution you can change 83 of your stylesheet to: body{background-color:#080808;background-image:url(images/bg_background.gif);background-repeat:repeat-x;margin:0;padding:0;} And create a div around the <div id="content_container">[...]</div> container for the right background: <div style="background-color: #369;"> <div id="content_container"> [...] </div> </div> For the background issue in the footer, just add the background in the footer2 and footer3 part of your stylesheet: background-color:#080808; For the copyright symbol, use: 169; (remove the space) Well, that's a complete WHMCS integration what I'm explaining. I should charge you. Edited February 28, 2010 by m00 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.