Hello, I really have no idea of what I'am doing. I'am trying to add <!-- START ADENGAGE.COM CODE 2.0 --> <STYLE> .ae_table_horiz { width:auto; height:auto; background-color:None; } .ae_td_horiz,.ae_image_td_horiz { padding-bottom: 4px; padding-top: 4px; padding-left: 3px; padding-right: 3px; vertical-align:top; } .ae_image_td_vert, .ae_image_td_horiz { text-align:right; padding-top:4px; padding-bottom:4px; padding-right: 4px; } .ae_image_td_sky { text-align:left; padding-top:4px; padding-bottom:0px; padding-right: 0px; } .ae_bb_td_horiz { padding-bottom: 4px; padding-top: 4px; padding-left: 3px; padding-right: 3px; vertical-align:top; } A.ae_title_horiz, A.ae_image_link_horiz {font-family: Verdana,Sans-Serif; font-size: 12px; font-style: normal; font-weight: bold; font-variant: normal; text-transform: none; color: blue; text-decoration: None; } .ae_desc_horiz {font-family: Verdana,Sans-Serif; font-size: 12px; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; color: black; } .ae_click_count_horiz {font-family: Verdana,Sans-Serif; font-size: 10px; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; color: None; } A.ae_powered_horiz {font-family: Verdana,Sans-Serif; font-size: 10px; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; color: blue; text-decoration: None; } A.ae_yourlink_horiz {font-family: Verdana,Sans-Serif; font-size: 10px; font-style: normal; font-weight: bold; font-variant: normal; text-transform: none; color: blue; text-decoration: None; } A.ae_title_horiz:hover, A.ae_powered_horiz:hover, A.ae_yourlink_horiz:hover, A.ae_image_link_horiz:hover { color: blue; text-decoration: Underline;} .ae_image_horiz { border-width:1px; border-color:blue;} </STYLE> <SCRIPT LANGUAGE="JavaScript"> adengage_num_ads = 4; adengage_layout_type = "horiz"; adengage_show_your_ad_here = 0; adengage_yourlink_text = "See your link here"; adengage_show_powered_by = 0; adengage_show_click_count = 0; adengage_class_suffix = adengage_layout_type; adengage_arrow_text = ""; window.adengage_draw_break = 1; window.adengage_use_image = 0; window.adengage_image_size = 0; window.adengage_hide_desc = 1; </SCRIPT><SCRIPT SRC="http://adcode.adengage.com/js/ae_15547_adbox.js" LANGUAGE="JavaScript"></SCRIPT> <!-- END ADENGAGE.COM CODE 2.0 --> PHP: add it some where in this script (anywhere): <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> {strip} <tr> <td width="7" class="nav-bg"><img src="{$smarty.const.DOC_ROOT}/images/nav-left.gif" alt=" " /></td> <td width="99%" class="nav-bg"> {* Right(!!) part of the top bar *} <a href="{$smarty.const.DOC_ROOT}"><strong>Home</strong></a> | {* Submit Link *} <a href="{$smarty.const.DOC_ROOT}/submit.php"><strong>{l}Submit Link{/l}</strong></a> | <a href="{$smarty.const.DOC_ROOT}/index.php?p=d"><strong>{l}Latest Links{/l}</strong></a> | <a href="{$smarty.const.DOC_ROOT}/index.php?p=h"><strong>{l}Top Hits{/l}</strong></a> {* RSS feed icon *} {if $smarty.const.ENABLE_RSS and ($qu ne '' or !empty($category.ID) or $p)} | <a href="{$smarty.const.DOC_ROOT}/rss.php?{if $qu ne ''}q={$qu}{elseif $p}p={$p}{else}c={$category.ID}{/if}"> <img src="{$smarty.const.DOC_ROOT}/images/xml.gif" align="top" alt="RSS Feed" border="0" /> </a> {/if}</td> <td width="7" align="right" class="nav-bg"><div align="right"><img src="{$smarty.const.DOC_ROOT}/images/nav-right.gif" alt=" " /></div></td> </tr> <tr> <td class="search-bg"><img src="{$smarty.const.DOC_ROOT}/images/search-left.gif" alt=" " height="36" /></td> <td class="search-bg"> {* Search form *} <form action="{$smarty.const.DOC_ROOT}/index.php" method="get"><table width="507" border="0"> <tr> <td width="291"><input type="text" name="q" size="45" class="input" /> </td> <td width="219" align="left"><input name="search-btn" type="image" id="search-btn" src="{$smarty.const.DOC_ROOT}/images/search-button.gif" alt="Search" /></td> </tr> </table></form> </td> <td align="right" class="search-bg"><img src="{$smarty.const.DOC_ROOT}/images/search-right.gif" alt=" " height="36" /></td> </tr> </table> {/strip} <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;"> <tr> <td class="footer-box"> {* Display current path *} {assign var="current_path" value=""} {foreach from=$path item=cat name=path} {assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"} {if !$smarty.foreach.path.first} » {/if} {if !$smarty.foreach.path.last} <a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a> {else} {$cat.TITLE} {/if} {/foreach} </td> </tr> </table> PHP: However I have a script error when I upload it. Anyone know what to do??? Do i need to add echo tags or something? thanks!!! www.MintyFresh.biz
i'd try putting that right at the top - i.e. before the <table> tag. from what i can see, i don't believe you need to do anything to the code you are trying to add. it's basic css and javascript - so you can just cut and paste.
What error are you getting? It's possible the smarty template engine is getting confused with the Javascript code.
As taken from the Smarty FAQ: Javascript is causing Smarty errors in my templates. Surround your javascript with {literal}{/literal} tags. See the docs.