BAJI26 Posted February 10, 2008 Share Posted February 10, 2008 I am trying to get WHMCS it look exactly link my site fully integrate, its semi integrated now just the header and footer. I tried to fully integrate it but now I have a blank page, what am I missing? 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted February 10, 2008 Share Posted February 10, 2008 If you're now seeing a blank page after you've saved a header or footer file (or any tpl file) then you've got a broken smarty code. Changes are you're missing a bracket: eg: {php {/php} It needs to have a closing bracket: {php} {/php} Or maybe you have an else/if statement and you forgot to close that. So, basically you'll just need to debug the file to see what you missed. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 10, 2008 Author Share Posted February 10, 2008 Ok thanks will do! 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 10, 2008 Author Share Posted February 10, 2008 Perfect - I had an extra {/if}. Thanks a billion! 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted February 10, 2008 Share Posted February 10, 2008 No problem I've done the same things so many times, that I'm like, alright, wtf did I do wrong? I usually just do a search for { so it'll bring me to all occurrences faster than skimming 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 10, 2008 Share Posted February 10, 2008 If it's a large file I get it to count how many {'s are in a document, then how many }'s are in it. If they don't match then you know your missing one. Little things like this always cause some of the most annoying problems. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 10, 2008 Author Share Posted February 10, 2008 No problem I've done the same things so many times, that I'm like, alright, wtf did I do wrong? I usually just do a search for { so it'll bring me to all occurrences faster than skimming I searched for all "{if" and made sure there were a closing "{/if". Can I do this: {if $domainchecker}stuff {/if} 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 10, 2008 Author Share Posted February 10, 2008 I want to show something else in the side menu only when its on the domain checker page. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted February 10, 2008 Share Posted February 10, 2008 just add ?display_errors=on to your url and it will tell you exactly where your error is =P 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2008 Author Share Posted February 11, 2008 just add ?display_errors=on to your url and it will tell you exactly where your error is =P I think you misunderstood my post, I found my error but I wanna add conditionals to the domainchecker.php so that on other pages it will display a side menu but on the domainchecker page it will display something different. I wanna add this to the header.tpl. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted February 11, 2008 Share Posted February 11, 2008 I think you misunderstood my post, I found my error but I wanna add conditionals to the domainchecker.php so that on other pages it will display a side menu but on the domainchecker page it will display something different. I wanna add this to the header.tpl. No, i was correct. I was answering your original post. If you want to do an if/then for the domain checker page, do: {if $pagetitle == 'REPLACE_WITH_PAGE_TITLE'}stuff {/if} 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted February 11, 2008 Share Posted February 11, 2008 BTW, MAC, thanks for that post. I haven't really looked much through the manual (or the SMARTY docs) so I didn't know of that. What would a girl do without you? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2008 Author Share Posted February 11, 2008 I can't seem to get it to work? This is what I did: {if $pagetitle == 'domainchecker'} Stuff {/if} Other stuff here that will show if its not the domainchecker page. But the other stuff still shows on the domainchecker page. Then I tried {else}. This is what I did: {if $pagetitle == 'domainchecker'} Stuff {/else} Other stuff here that will show if its not the domainchecker page. {/if} With no luck. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted February 11, 2008 Share Posted February 11, 2008 duh, because thats not the pagetitle. LOL. Go to the page, view source, then look at whats between the <title> tags. Remove the company part and that should be your title. Its most likely 'Domain Availability Checker' 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2008 Author Share Posted February 11, 2008 I tried that also. EDITED: It worked, b4 I typed out the page title so maybe it was a typo, this time I c&p and it worked.. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted February 11, 2008 Author Share Posted February 11, 2008 Can I include more than one page like this: {if $pagetitle == 'Support' OR 'Support Tickets' OR 'Submit Ticket'} 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.