Jump to content

Customizing


BAJI26

Recommended Posts

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.

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

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.

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