Jump to content

Which template for clientarea.php


Recommended Posts

Trying to figure out which template page corresponds to clientarea.php (the login part of the app).

 

I see a bunch of clientarea template pages, but none seem to correspond to that particular page.

 

Also, is there anywhere in the docs that show which template files correspond to which page?

Link to comment
Share on other sites

I guess the easiest way is just to open up the original PHP file and look, that is if it is not too obfuscated to where I cant tell what templates are used in it (which I believe they are obfuscated heavily).

Link to comment
Share on other sites

  • 8 months later...

Hm, actually I'd like to add to this thread as the content is relevant....

 

Ok, I see the basic structure here for a given area, but there seem to be content areas which I can't seem to pin down in the header/body/footer pages. For example, in the default template where is the right menu deriving from on the homepage page? Secondly, I don't see the content between the header file and body file which define printing of the company name on the top left and the "Please Login or Register" on the right.

 

Maybe I'm missing something simple here ....

Link to comment
Share on other sites

  • WHMCS Support Manager

1. There is no right menu on the default template. If you're referring to the portal template, that's located in footer.tpl.

 

2. That's the following code in header.tpl:

 

    <div id="company_title">{$companyname}</div>
   <div id="welcome_box">{if $loggedin}{$LANG.welcomeback}, <strong>{$loggedinuser.firstname}</strong>   <img src="templates/{$template}/images/icons/details.gif" alt="{$LANG.clientareanavdetails}" width="16" height="16" border="0" class="absmiddle" /> <a href="clientarea.php?action=details" title="{$LANG.clientareanavdetails}"><strong>{$LANG.clientareanavdetails}</strong></a>   <img src="templates/{$template}/images/icons/logout.gif" alt="{$LANG.logouttitle}" width="16" height="16" border="0" class="absmiddle" /> <a href="logout.php" title="Logout"><strong>{$LANG.logouttitle}</strong></a>{else}{$LANG.please} <a href="clientarea.php" title="{$LANG.loginbutton}"><strong>{$LANG.loginbutton}</strong></a> {$LANG.or} <a href="register.php" title="{$LANG.clientregistertitle}"><strong>{$LANG.clientregistertitle}</strong></a>{/if}</div>

Link to comment
Share on other sites

Hm, ok, something must be very strange here .... because I don't have a single line of code in my header/footer tpl's that would suggest what you are saying! lol

 

footer consists only of:

{if $langchange}
<br />
<div class="contentbox">{$setlanguage}</div>
{/if}

<br />

</div>

</body>
</html>

 

I may stand corrected if the right 'menu' (list of links) is called the portal template. Yes, that is the ENTIRE footer file.

 

The same thing goes for the header, I don't see either line of code. Did something change in the latest release? I grabbed the source from the download link after I registered for my 15 day trial. (Which I am planning on either buying out-right or monthly depending on some thing.)

Link to comment
Share on other sites

I have 68 lines in my footer.tpl from the portal templates. If all you have is that, something is amiss.

 

That code is in the "default" template set, not the portal set.

 

Correct, full path: {ziproot}/whmcs/templates/default/footer.tpl

 

Download link was for the following zip file: whmcs_v442.zip

 

footer.tpl size as reported: 117 bytes

lines: 11

 

Perhaps there is something wrong with the zip file. Feel free to look at the live version of this zip file at: http://www.dragunhosting.com/whmcs/ I've changed nothing from unzipping.

Link to comment
Share on other sites

OK, the template you are using is the "Portal" template

 

NOT The Default Template.

 

Correct, full path: yoursite/whmcs/templates/portal/footer.tpl

 

The default layout for WHMCS on installation is the Portal Template. You can check this from Setup --> General Settings.

 

Look for: Template "Portal" The template you want WHMCS to use.

 

This means the footer you should be looking at is in the portal directory.

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