Jump to content

Which .tpl file is client area built on?


Recommended Posts

I'm not sure my topic title was clear enough. I just updated to 7.10.1, but this issue was going on before. I thought the update might solve it. I have an issue with the client area displaying properly. I have a theme designed by WHMCS Themes which I am very happy with. The problem is that whether it's announcements, domains, invoices or anything else that might display in the client area, once the content reaches the bottom of first navigation box in the left sidebar, the content goes full width and stays that way, pushing the bottom navigation box down below it.

I have the basic WHMCS license so my site displays the WHMCS credit line at the bottom of every page. (I'll be talking to my webhost about upgrading my license to get past that.) I suspect it is a CSS issue in whichever tpl controls the basic layout of the client area. Whatever is doing it, that credit line is above the bottom navigation box which should stay just below the first one. Instead of that credit line being just above the footer, the bottom navigation box is just above the footer, then the WHMCS credit line, then the main content.

If I could figure out which tpl file controls the basic client area page, I might be able to figure out where the hiccup is.

I'd appreciate any input.

Thanks.

 

 

Link to comment
Share on other sites

On 24/04/2020 at 21:04, bookman53 said:

I just updated to 7.10.1, but this issue was going on before. I thought the update might solve it.

if there is a problem before updating, often updating can make it worse - depending on what the problem is!

On 24/04/2020 at 21:04, bookman53 said:

I have a theme designed by WHMCS Themes which I am very happy with. The problem is that whether it's announcements, domains, invoices or anything else that might display in the client area, once the content reaches the bottom of first navigation box in the left sidebar, the content goes full width and stays that way, pushing the bottom navigation box down below it.

two thoughts - it would be useful to see a screenshot so I can visualise what you're seeing, and probably more importantly, have you contacted WHMCS Themes and either downloaded an updated release for your current WHMCS installed release, or contacted their support for help.... granted, if it's a free template, then I don't think they offer support.

a third thought - if you go to their site, and choose the online demo of your template, does what you see on your site occur on their demo too ??

On 24/04/2020 at 21:04, bookman53 said:

I have the basic WHMCS license so my site displays the WHMCS credit line at the bottom of every page. (I'll be talking to my webhost about upgrading my license to get past that.) I suspect it is a CSS issue in whichever tpl controls the basic layout of the client area. Whatever is doing it, that credit line is above the bottom navigation box which should stay just below the first one. Instead of that credit line being just above the footer, the bottom navigation box is just above the footer, then the WHMCS credit line, then the main content.

it does sound like a css issue.. or perhaps an unclosed div.

On 24/04/2020 at 21:04, bookman53 said:

If I could figure out which tpl file controls the basic client area page, I might be able to figure out where the hiccup is.

a page in the client area is basically 3 templates (and of which can load more embedded templates!)... so header.tpl will be used to define the main layout of the page; footer.tpl will be used for the content of the footer and then the middle template will contain the content of that specific page, e.g if it's announcements, then that will be announcements.tpl and so on.

header.tpl might be your best bet, so unless you've already tinkered with the layout design, i'd be more inclined to see if downloading/updating the template would fix the issue.

Link to comment
Share on other sites

Regarding the update possibly causing or fixing the issue, I don't really think it is a WHMCS issue because if I activate the Six theme, the problem doesn't exist.

The theme is a paid theme. I've contacted their tech support. Waiting for a reply.

The demo on their site does not have this problem.

I opened a brand new copy of the header.tpl file from the theme .zip file and compared it to the one I have active. There is no difference except the main navigation is different because of the pages I've added and removed from the demo content. I don't understand how anything in the header.tpl could cause the WHMCS credit line to inject in the wrong place in the main body. Just shows I have things to learn. 🙂

I have attached a screenshot of the client area for a dummy client. There are no domains to display, but you can see that the "Powered by WHMCompleteSolution" <p> is injected just before the secondary nav box, rather than the last thing before the footer. The same thing happens on the announcements page or the Knowledge Base page. on those pages, the content starts in the top of the content area and as soon as it passes the bottom of the first nav box, it wraps under it and stays full-width across the page until it runs out of content. Then the "Powered by" <p>, then the secondary nav box, then the footer as shown in the attached screenshot.

Thank you.

Client Area screenshot.jpg

Edited by bookman53
Link to comment
Share on other sites

I found the problem, thanks to your lead about the header which I said I didn't understand.

I still don't understand what exactly about the following lines of code would cause havoc with the client area pages, but something there did. I copied the header section by section from a new unedited copy of the header.tpl and tested the page after every update. Nothing changed until I copied in these lines:

<div id="clientarea" class="{$clientarea_layout_type}">
{if $whmcs_menu eq 'separated'}
{$whmcs_navigation}
{/if}
{$whmcs_header}
{/if}

As soon as I did that, everything straightened out. I had visually compared the header files before and found nothing. I suppose it could have been an extra space or something that I accidentally caused somewhere along the way.

Nevertheless, thank you for the suggestion. That issue is now fixed.

Link to comment
Share on other sites

18 hours ago, bookman53 said:

As soon as I did that, everything straightened out. I had visually compared the header files before and found nothing. I suppose it could have been an extra space or something that I accidentally caused somewhere along the way.

often the most trivial of things like that can cause utter confusion with the layout - glad you got to the bottom of the issue. ☺️

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