Si Posted November 8, 2007 Share Posted November 8, 2007 Portal Template Hi, I noticed that in the client area, when they click on 'My Domains' the colour code for expired domains is incorrect. It is supposed to be #ff9999 (a red colour), but the table shows up as a dark grey colour. So, looking at the clientareadomains.tpl I see this: <tr class="clientareatable{$domain.status}"> so I go to the style.css file and can see these: tr.clientareatableheading { background-color: #efefef; font-weight: bold; text-align: center; } tr.clientareatableactive { background-color: #ffffff; text-align: center; } tr.clientareatablepending { background-color: #ffffcc; text-align: center; } tr.clientareatablesuspended { background-color: #ccff99; text-align: center; } tr.clientareatableterminated { background-color: #ff9999; text-align: center; } but nothing for tr.clientareatableexpired. So I added one in to the css file but still the table of expired domains shows up in a dark grey colour and all text is aligned to the left in the table instead of the middle. Is there a fix for this that anyone knows of? Thanks Si 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted November 8, 2007 Share Posted November 8, 2007 Portal Template Hi, I noticed that in the client area, when they click on 'My Domains' the colour code for expired domains is incorrect. It is supposed to be #ff9999 (a red colour), but the table shows up as a dark grey colour. So, looking at the clientareadomains.tpl I see this: <tr class="clientareatable{$domain.status}"> so I go to the style.css file and can see these: tr.clientareatableheading { background-color: #efefef; font-weight: bold; text-align: center; } tr.clientareatableactive { background-color: #ffffff; text-align: center; } tr.clientareatablepending { background-color: #ffffcc; text-align: center; } tr.clientareatablesuspended { background-color: #ccff99; text-align: center; } tr.clientareatableterminated { background-color: #ff9999; text-align: center; } but nothing for tr.clientareatableexpired. So I added one in to the css file but still the table of expired domains shows up in a dark grey colour and all text is aligned to the left in the table instead of the middle. Is there a fix for this that anyone knows of? Thanks Si I had posted on the same subject and had posted what I did to fix it but can't seem to find the post. I think it disappeared I will try to look up what I did. 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted November 8, 2007 Share Posted November 8, 2007 OK I found it: http://www.whmcs.com/forums/viewtopic.php?t=7278 Might need to apply the same to the domain status 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 8, 2007 Author Share Posted November 8, 2007 Hi George, Thanks for that. Yea, I had looked at your post, which relates to product add-ons etc, but didn't want to change the $domain.status call in the file. Because I've added the tr.clientareatableexpired style into the CSS and it's having no affect on the output, I'm wondering if the $domain.status doesn't = expired but equals something else? ie, we have tr.clientareatable$domain.status which doesn't seem to equal tr.clientareatableexpired I'm thinking, if we knew what $domain.status = when it is an expired domain, we could insert the rule into the CSS file. Anyone know? Thanks Si 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 8, 2007 Author Share Posted November 8, 2007 Got it. Don't know why it didn't work before but it does now. (Cache maybe) Just add the code below into your style.css file and it should work. tr.clientareatableexpired { background-color: #ff9999; text-align: center; } Si 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted November 8, 2007 Share Posted November 8, 2007 Got it. Don't know why it didn't work before but it does now. (Cache maybe) Just add the code below into your style.css file and it should work. tr.clientareatableexpired { background-color: #ff9999; text-align: center; } Si OK now come up with a better fix for the product details with CSS too 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.