Snowman Posted October 5, 2008 Share Posted October 5, 2008 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? 0 Quote Link to comment Share on other sites More sharing options...
herpherp Posted October 5, 2008 Share Posted October 5, 2008 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... 0 Quote Link to comment Share on other sites More sharing options...
Snowman Posted October 7, 2008 Author Share Posted October 7, 2008 cheers i will give it a go still trying to get my head around smarty 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted November 16, 2008 Share Posted November 16, 2008 Snowman, did this option work out for you? 0 Quote Link to comment Share on other sites More sharing options...
inyerface Posted July 3, 2009 Share Posted July 3, 2009 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" 0 Quote Link to comment Share on other sites More sharing options...
inyerface Posted July 3, 2009 Share Posted July 3, 2009 PPS: There was no need to create more header templates in this case. Everything was done in the 1 tmeplate. Thanks again HerpHerp 0 Quote Link to comment Share on other sites More sharing options...
geografx Posted September 9, 2009 Share Posted September 9, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted September 9, 2009 Share Posted September 9, 2009 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} 0 Quote Link to comment Share on other sites More sharing options...
geografx Posted September 10, 2009 Share Posted September 10, 2009 that did it - thanks!!! Barbara 0 Quote Link to comment Share on other sites More sharing options...
Snowman Posted March 16, 2010 Author Share Posted March 16, 2010 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 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.