Jump to content

seperate header.tpl file for signup ?


Snowman

Recommended Posts

we are using a modified version of the portal clientside template

 

this is great for the client area but we dont want the left hand side menu being displayed in the signup process

 

is there a way to give the actual signup templates their own header template? or alternatively is there a way to add an if statement to the template so it wont show if the cart pages are being loaded?

Link to comment
Share on other sites

If I were doing this I would create two copies of the header.tpl and name 1 mainheader.tpl and the other cartheader.tpl

 

Then I would replace everything in header.tpl with the following code

 

{if $pagetitle neq 'Shopping Cart'}
{include file="/home/YourUserName/public_html/PathToWHMCS/templates/TemplateName/mainheader.tpl"}
{else}
  {include file="/home/YourUserName/public_html/PathToWHMCS/templates/TemplateName/cartheader.tpl"}
{/if}

 

Of course you need to change YourUserName, PathToWHMCS and TemplateName

 

Then simply edit the cartheader.tpl to whatever you want to show or not show...

 

Hope this helps, there are probably easier or more efficient ways to do this but off the top of my head this is what I would come up with...

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...

Holy crap banana this works great!!

 

I just created different menus within the header.tpl because some of the links were related to My Account and other to Support and others to Resources. So now depending on which page a user is on they would never know they are in the /clients/ installation.

 

{if $pagetitle == 'Client Area' || $pagetitle == 'Support Tickets'}

- Show menu 1

 

{elseif $pagetitle == 'Knowledgebase' || $pagetitle == 'Announcements'}

- Show menu 2

 

{else}

- Show menu 3

 

{/if}

 

PS: For non-PHP people || means "or"

Link to comment
Share on other sites

  • 2 months later...

I've followed the above example and something isn't working as expected

 

{if $pagetitle == 'Shopping Cart'}

<img src="templates/{$template}/images/skin_cart.gif" width="715" height="85">

{else}

{if $pagetitle == 'Domain Checker'}

<img src="templates/{$template}/images/domain_title.gif" width="715" height="85">

{else}

<img src="templates/{$template}/images/skin_title.gif" width="715" height="85">

{/if}

{/if}

 

I cannot see to display the image for Domain Checker - can anyone tell me how to fix this?

 

Barbara

Link to comment
Share on other sites

I've followed the above example and something isn't working as expected

 

{if $pagetitle == 'Shopping Cart'}

<img src="templates/{$template}/images/skin_cart.gif" width="715" height="85">

{else}

{if $pagetitle == 'Domain Checker'}

<img src="templates/{$template}/images/domain_title.gif" width="715" height="85">

{else}

<img src="templates/{$template}/images/skin_title.gif" width="715" height="85">

{/if}

{/if}

 

I cannot see to display the image for Domain Checker - can anyone tell me how to fix this?

 

Barbara

 

 

 

 


{if $pagetitle == 'Shopping Cart'}
<img src="templates/{$template}/images/skin_cart.gif" width="715" height="85">

{elseif $pagetitle == 'Domain Checker'}
<img src="templates/{$template}/images/domain_title.gif" width="715" height="85">

{else}
<img src="templates/{$template}/images/skin_title.gif" width="715" height="85">

{/if}

Link to comment
Share on other sites

  • 6 months later...

I have tried the initial suggestion to get separate headers for the signup and it works perfectly on all signup order forms apart from the web20cart order form where it completely screws the page layout and puts massive spaces around each of the header images

 

I just cant identify why this is happening though cause there isnt anythgin different in the orderforms style.css that would conflict

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