ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

conditional variable giving error :unexpected T_ENDIF

April 25, 2011 5:06pm

Subscribe [4]
  • #31 / May 01, 2011 3:22pm

    Greg Salt

    3988 posts

    Hi notebook,

    I think I’ve figured this out. Earlier on in your main template code you have created a probable snippet called if_ie6:

    {html_head}
    
        {global_stylesheets}
        {if_ie6}
    
    {html_head_end}

    I think that the ‘if’ portion of this is being treated as the start of a conditional and that is what is causing this error. You can get round this by renaming it completely or just adding an underscore at the start like this:

    {_if_ie6}

    Cheers

    Greg

  • #32 / May 01, 2011 3:57pm

    notebook

    31 posts

    Hi notebook,

    I think I’ve figured this out. Earlier on in your main template code you have created a probable snippet called if_ie6:

    {html_head}
    
        {global_stylesheets}
        {if_ie6}
    
    {html_head_end}

    I think that the ‘if’ portion of this is being treated as the start of a conditional and that is what is causing this error. You can get round this by renaming it completely or just adding an underscore at the start like this:

    {_if_ie6}

    Cheers

    Greg

    Hey Greg !

    You are a genius! , an EE Champion! i mean it.

    Guys ! EE is a marvellous software , i have been using joomla , wordpress and other CMS’s since last few years but i could never make their templates. It’s so easy to make templates with EE as if we are writing simple html. Thanks to vosSavant , John , Brandon , Lisa , and Greg for the great support. Let me finish this template then i’ll give EE community a few real cool EE templates converted by me for free.

  • #33 / May 01, 2011 4:01pm

    Greg Salt

    3988 posts

    Hi notebook,

    Glad that we got this sorted out for you (and pleased that you’re enjoying using EE). You had me stumped for a moment there 😊

    I’ll go ahead and close this thread now but please post again if you have further questions or problems.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases