Announcement

Collapse
No announcement yet.

Unclosed Curly Brace Expression

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Unclosed Curly Brace Expression

    I'm trying to add some code to the headinclude template but keep encountering the following error:

    The following error occurred when attempting to evaluate this template:
    Unclosed Curly Brace Expression
    If I attempt to continue with a save, a new error is generated:

    This template was changed by someone else while you were editing it. Your changes have not been saved.
    The offending line in my code appears to be:

    Code:
    var flashvars = {};
    Is this a bug in the template editor?
    .

  • #2
    Dont think you can add that like so, best is to look on vBulletin.org what is wrong with the code, vBulletin.com does not assist with custom coding.

    Comment


    • #3
      It's more the nature of the error handling that concerns me, that can't be right surely?
      .

      Comment


      • #4
        Its the normal error you get when editing a template that is not allowed and/or supported the second warning is because you attempted a second time so you get another warning that some one else tried it.

        Comment


        • #5
          OK thanks for your help.
          .

          Comment


          • #6
            You should add

            <vb:literal>yourjscode</vb:literal>

            It will make the template parser ignore it.

            Comment


            • #7
              Thanks Zachery, I'll give that a shot.
              .

              Comment


              • #8
                Originally posted by Zachery View Post
                You should add

                <vb:literal>yourjscode</vb:literal>

                It will make the template parser ignore it.
                Always forget the <vb:literal> code trick.

                Comment


                • #9
                  It's completely new to me but then I've only been using vBulletin for about 10 years
                  .

                  Comment


                  • #10
                    Originally posted by zappaDPJ View Post
                    It's completely new to me but then I've only been using vBulletin for about 10 years
                    It is new to vB4.

                    Comment


                    • #11
                      Ah, I have some small excuse then and it appears to be doing the job so thanks again for coming to my aid, it's most appreciated
                      .

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X