Differences
This shows you the differences between the selected revision and the current version of the page.
templates:faq 2008/08/25 11:25 | templates:faq 2010/01/06 09:38 current | ||
---|---|---|---|
Line 6: | Line 6: | ||
<code> | <code> | ||
{literal} | {literal} | ||
- | <script language="javascript"> | + | <script language="javascript"> |
- | javasrcript code here | + | ...javascript code here... |
- | </script> | + | </script> |
{/literal} | {/literal} | ||
</code> | </code> | ||
- | This same method will work for including Google Adsense, Yahoo Publisher, and most other advertising programs. | + | This same method will work for including Google Adsense*, Yahoo Publisher, and most other advertising programs. |
+ | |||
+ | *Please note: We recommend that you do not include Google Adsense code on the userforgot page as there have been reports that the code disrupts the functionality of this page. As a result, you should wrap the above code in an "if" statement: | ||
+ | <code> | ||
+ | {if $body != "user/userlogin.tpl" || $smarty.post.action == '' || $smarty.get.key != ""} | ||
+ | {literal} | ||
+ | <script language="javascript"> | ||
+ | ...javascript code here... | ||
+ | </script> | ||
+ | {/literal} | ||
+ | {/if} | ||
+ | </code> | ||
===== Can I see what all variables are available for a template file? ===== | ===== Can I see what all variables are available for a template file? ===== |
Have more questions? Visit our community forums.