What a PAIN! Flash not displaying

Discussion in 'Templates customization' started by theluckyy1, Jun 16, 2008.

  1. theluckyy1

    theluckyy1 New Member

    Joined:
    Jun 12, 2008
    Messages:
    8
    I am trying to customize the aMember Header.html

    However when I add my EMBED tag to display flash it will not display.

    on another note...when I use a tag already supplied by amember {$config.root_surl}

    See below. The page renders out properly but where I added the SCRIPT tag it prints out the variable in the source as plain text.

    Why is this happening?

    <link rel="stylesheet" type="text/css" href="{$config.root_surl}/templates/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="{$config.root_surl}/templates/css/amember.css" />
    <link rel="stylesheet" type="text/css" href="{$config.root_surl}/templates/css/site.css" />
    <script src="{$config.root_surl}/templates/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  3. makelemonade

    makelemonade New Member

    Joined:
    Jul 5, 2009
    Messages:
    7
    Thanks, David. It doesn't work though. The suggestion you made is to stop Smarty from processing the { } in javascript as smarty tags. It doesn't fix the include src problem.

    If anyone else found the secret, please let us know.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This happens because {literal} tags already placed around <script> tag automatically.
    So, try to do this:
    <script src="{/literal}{$config.root_surl}{literal}/templates/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

Share This Page