Я только учусь так что не пинайте !
проблена в следующем !
на старом шаблоне (.tpl)у меня было
так и Слайдер работал (я оставлю только главное):
<head>{if $script}<script language="JavaScript" src="{$site_root}{$template_root}/js/slider.js" type="text/javascript"></script>{/if}</head>
<body>
{literal}<script type="text/javascript">
// <!--
new YOOslider('yoo-slider-1', '#yoo-slider-1 .item', { mode: 'drawer', layout: 'vertical', shiftSize: 120 });
// -->
</script>{/literal}
а в новом шаблоне ни как не хочет работать ! вот сюда я пытался вставить этот слайдер
<html>
<head>
<meta name="Keywords" content="{$lang.keywords}">
<title>{$lang.main_title}</title>
<link href="{$site_root}/css.php{if $customised eq 1 && $id_customed>0}?customised=1&user_id={$id_customed}{/if}" rel="stylesheet" type="text/css">
<link href="{$site_root}{$template_root}/css/niftycorners.css" rel="stylesheet" type="text/css" media="screen">
<script language="JavaScript" type="text/javascript" src="{$site_root}{$template_root}/js/niftycube.js"></script>
{if $script}<script language="JavaScript" type="text/javascript" src="{$site_root}{$template_root}/js/{$script}.js"></script>{/if}
<link href="{$site_root}{$template_root}/css/jquery.tooltip.css" rel="stylesheet" type="text/css" media="screen">
{literal}
<script language="JavaScript" type="text/javascript">
function flash_popup(url, title, width, height) {
window.open(url,title,'menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,width='+width+',height='+height);
}
</script>
<script type="text/javascript" language="JavaScript" src="{/literal}{$site_root}{literal}/w_communicator/cookies.js"></script>
<script language="JavaScript" type="text/javascript">
function open_im_window(user_id) {
{/literal}
{literal}
}
</script>
{/literal}
</head>
<body {if $form.view eq 'video'}onload=" ShowTab(4,'{$data.viewv_link}'); return false;"{/if} {if $script eq 'calculator'}onload="on_load();"{/if}>
{if $use_pilot_module_webmessenger}
<script src="{$site_root}/webmessenger/functions.php" type="text/javascript" language="javascript"></script>
{php}
global $config, $user;
include_once($config["site_path"].'/webmessenger/presence.php');
$strUserID = $user[0];
$presenceID = $config['presence_id'];
$strPassword = $config['account_password'];
$wmURL = $config["server"].$config["site_root"].'/webmessenger/wm.php';
$cmdURL = $config["server"].$config["site_root"].'/webmessenger/cmd.php';
up_presence($presenceID , $strPassword , $strUserID , $wmURL ,'' , $cmdURL );
{/php}
{/if}
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td width="3%"></td>
<td width="23%" align="left" style="padding-top: 18px; padding-bottom: 12px;">
<div style="position: absolute; top: 18px;">
{if $logo_setup.site_top_logotype==''}
<a href="{$site_root}{$top_menu.index}"><img src="{$site_root}{$template_root}{$template_images_root}/logotype.gif" border="0" alt=""></a>
{else}
{if $logo_setup.site_logotype_format=='image'}
<a href="{$site_root}{$top_menu.index}"><img src="{$site_root}{$logo_setup.site_top_logotype}" border="0" alt="" width="{$logo_setup.site_logotype_width}" height="{$logo_setup.site_logotype_height}"></a>
{else}
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="{$logo_setup.site_logotype_width}" height="{$logo_setup.site_logotype_height}" type="application/x-shockwave-flash">
<param name="movie" value="{$site_root}{$logo_setup.site_top_logotype}" />
<param name="quality" value="high" />
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
<embed src="{$site_root}{$logo_setup.site_top_logotype}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{$logo_setup.site_logotype_width}" height="{$logo_setup.site_logotype_height}"></embed>
</object>
{/if}
{/if}
</div>
</td>
<td width="1%"></td>
<td width="71%" align="right" colspan="5">
{if !($use_pilot_module_organizer eq 1 && $org_home[0] == 'false' && $hide eq 1)}
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<div id="top_index_menu" align="right" class="top_index_menu" nowrap style="margin-top: 18px; margin-bottom: 10px;"><nobr>
<div style="padding: 20px 20px 0px 12px; height: 33px; margin: 0px;">
<table cellpadding="0" cellspacing="0">
<tr>
<td><nobr><font color="#{$css_color.menu_link_3}">{$lang.homepage.welcome}:</font> </nobr></td>
<td><nobr>{if $registered}<a class="top_menu_1" href="{$site_root}{$menu_path.17}">{else}<font class="top_menu_text">{/if}{$active_user_info.name}{if $registered}</a>{else}</font>{/if} </nobr></td>
<td style="display:{if $active_user_info.show_emails}inline{else}none{/if}"><nobr>| </nobr></td>
<td style="display:{if $active_user_info.show_emails}inline{else}none{/if}"><nobr><img src="{$site_root}{$template_root}{$template_images_root}/newemails.gif" alt=""></nobr></td>
<td style="display:{if $active_user_info.show_emails}inline{else}none{/if}"><nobr> <font color="#{$css_color.menu_link_3}">{$lang.homepage.new_email}:</font> <a href="{$active_user_info.emails_link}" class="top_menu_1">{$active_user_info.emailed_me_new_count}</a> </nobr></td>
<td style="display:{if $active_user_info.show_messages}inline{else}none{/if}"><nobr>| </nobr></td>
<td style="display:{if $active_user_info.show_messages}inline{else}none{/if}"><nobr><img src="{$site_root}{$template_root}{$template_images_root}/newmessages.gif" alt=""></nobr></td>
<td style="display:{if $active_user_info.show_messages}inline{else}none{/if}"><nobr> <font color="#{$css_color.menu_link_3}">{$lang.homepage.new_messages}:</font> <a href="#" onClick="javascript: open_im_window(); return false;" id="imessages_count" class="top_menu_1">{$active_user_info.im_me_new_count}</a> </nobr></td>
{if $registered}
<td><nobr>| </nobr></td>
<td><nobr> <a class="top_menu_1" href="{$site_root}{$top_menu.logoff}">{$lang.logoff}</a></nobr></td>
{/if}
</tr>
</table>
</div>
</div>
</td></tr>
</table>
{else}
<div style="padding: 20px 20px 0px 12px; height: 33px; margin-top: 18px; margin-bottom: 10px;"> </div>
{/if}
</td>
<td width="2%"> </td>
</tr>
{include file="$gentemplates/index_top_menu.tpl"}
<tr>
<td width="3%"></td>
<td colspan="7" valign="top">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="16%" valign="top">
{if $viewed_info}
<div style="padding-top: 12px;">
<div class="content">
{if $viewed_info.img_url}
<div style="padding-top: 10px;">
{if $viewed_info.view_link}<a href="{$viewed_info.view_link}" onClick="{$viewed_info.onclick}"><img src="{$viewed_info.img_url}" class="icon" style="cursor:pointer;" border=0 alt="" onClick=""></a>{else}<img src="{$viewed_info.img_url}" class="icon" border=0 alt="">{/if}
</div>
{/if}
<div style="padding-top: 7px;">
{if $viewed_info.login}
<b>{if $viewed_info.view_link}<a href="{$viewed_info.view_link}">{$viewed_info.login}</a>{else}{$viewed_info.login}{/if} {$lang.registration.is_waiting}</b><br>
<font class="text">{$viewed_info.country}<br><b>{$viewed_info.age} {$lang.home_page.ans}</b><br>{$viewed_info.photo_count} {$lang.settings.photo}</font>
{/if}
{if $viewed_info.user_comment}{$viewed_info.user_comment}{/if}
</div>
</div>
</div>
{/if}
{if $use_pilot_module_organizer eq 1 && $hide eq 1}
{if $org_home[1] == 'true' || $org_home[2] == 'true'}
{if $empty_right_cell eq 0}
{if $org_home[1] == 'true'}
<!-- shoutbox -->
{if $registered eq '1' && $show_shoutbox eq '1'}
<div style="margin-top: 12px; padding-left: 10px; background-color: #{$css_color.shoutbox_color};" id="shoutbox" >
{include_php file="$site_path/shoutbox/shoutbox.php"}
</div>
{/if}
<!-- /shoutbox -->
и так далее... урезал очень многое