Smarty Syntax Errors (Unrecognized Tags)

Discussion in 'Templates customization' started by paulcouz, Feb 15, 2010.

  1. paulcouz

    paulcouz New Member

    Joined:
    Feb 2, 2010
    Messages:
    6
    Can anyone see anything wrong with the code below...

    It is from the signup page and is giving a syntax error

    <tr>
    <th>Choose a Login Name (User ID) *<br />
    <div class="small">It must be 4 or more characters in length and may<br />
    only contain small letters, numbers, and<br />the underscore '_'</div></th>
    <td><input type="text" id="f_login"
    class="{required:true, rangelength:[4, 32],
    remoteUniqLogin: 'ajax.php'}"
    name="login" value="" size="15" />
    <div id="d_login"></div>
    </td>
    </tr>

    The error that i am getting when attempting to go to the signup page is as follows


    ERROR [256] Smarty error: [in signup.html line 184]: syntax error: unrecognized tag: required:true, rangelength:[4, 32], remoteUniqLogin: 'ajax.php' (Smarty_Compiler.class.php, line 403) in line 1102 of file /mounted-storage/home107b/sub005/sc63313-XPOI/www4/amember/smarty/Smarty.class.php

    Any help would be appreciated
  2. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    Smarty expects a smarty tag after an "{"

    Change that class=... line to:

    class={ldelim}required:true, rangelength:[{$config.login_min_length}, {$config.login_max_length}], remoteUniqLogin: 'ajax.php'{rdelim}
  3. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    Paul, I don't know what you're trying to achieve, but you wrecked the code.
    If you just put it back like it was (see Miso's post) then it should work again.

    (And you do NOT have to open 3 threads for the same problem ;) )

Share This Page