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>
smarty maybe ignoring tags within the <script> This maybe the fix http://codesnippets.joyent.com/posts/show/199 {literal} <script language="text/javascript"> ... </script> {/literal} David
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.
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>