вопрос
вот содержимое файла php
Тут прописан шаблон полной новости модуля, как сделать чтобы полная новость в модуле выводилась через fullstory.tpl
<?php
if(!defined('DATALIFEENGINE')) {
die("Hacking attempt! ");
}
$cosanostra="Q29zYU5vc3RyYSAoYykgPGEgaHJlZj0iaHR0cDovL3dlYm1hZmlhLm9yZy51YS8iPnd3dy53ZWJtYWZpYS5vcmcudWE8L2E+ICcyMDEyLg==";
$copy = @base64_decode($cosanostra);
$kol="";
$tpl->load_template('cook.tpl');
$r='%';
$t=$db->safesql($_POST['name11']);
$b = strlen($t);
$t=$db->safesql($_GET['as']);
$t = $db->safesql(strip_tags (str_replace('/', '', $_GET['as'])));
$sql = "SELECT r.r_id, r.r_name, r.r_goods, r.r_cook, r.r_catid, c.cat_id, c.cat_name FROM ".PREFIX."_cook_all r, ".PREFIX."_cook_pcats c
WHERE r.r_catid = c.cat_id AND r.r_id = '$t%'";
$result = $db->query($sql);
$i=0;
while ($data = $db->get_row($result))
{
$buffer = dle_cache("ncookcache", $data['r_id']);
if ($buffer === FALSE) {
$newnavig="<div align=\"right\"><select style=\"font-family: MS Sans Serif, Arial, Helvetica; font-size: 8pt; color: #000000; background-color: #F8F8F8\" class=\"chapterQuickNav\" onchange=\"javascript:window.location='$PHP_SELF?do=cook3&as='+this.value;\">";
$nameblog = $member_id['user_id'];
$sql_result = $db->query("SELECT r_id, r_catid, r_name FROM " . PREFIX . "_cook_all WHERE r_catid='".$data[cat_id]."'");
while ($row300 = $db->get_row($sql_result)) {
$vall="";
$vall.= $row300['r_id'];
if($row300[r_id]==$data[r_id]){$seleccc1=" selected";}else{$seleccc1="";}
$newnavig.="<option $seleccc1 value=$vall>".$row300['r_name']."</option>";
}
$newnavig.="</select></div>";
$buffer .= $newnavig;
}
$t=$db->safesql($_GET['as']);
create_cache ("ncookcache", $buffer, $t);
$rname=$data[r_name];
$messagebi[]="<h4><a href=\"?do=cook2&catid=".$data[cat_id]."\">".$data[cat_name]."</a> → ".$data[r_name]."</h4>$buffer<br><br><div class=\"quote\"><b>Требуется:</b><br>".$data[r_goods]."</div><br><br><b>Рецепт:</b>".$data[r_cook]."";
$asd.=$messagebi[$i];
$i++;
require_once ENGINE_DIR.'/classes/parse.class.php';
function makeDropDown($options, $name, $selected)
{
$output = "<select name=\"$name\">\r\n";
foreach($options as $value=>$description)
{
$output .= "<option value=\"$value\"";
if($selected == $value){ $output .= " selected "; }
$output .= ">$description</option>\n";
}
$output .= "</select>";
return $output;
}
$parse = new ParseFilter();
$parse->safe_mode = true;
$buffering="PGJyLz48Yj5Db3NhTm9zdHJhJm5ic3A7KGMpJm5ic3A7PC9iPjxhIGhyZWY9Imh0dHA6Ly93ZWJtYWZpYS5vcmcudWEvIj53d3cud2VibWFmaWEub3JnLnVhPC9hPiZuYnNwOy0mbmJzcDs8YSBocmVmPSJqYXZhc2NyaXB0OlNob3dPckhpZGUoJzMnKTsiPjIwMTI8L2E+LjxkaXYgaWQ9IjMiIHN0eWxlPSJkaXNwbGF5Om5vbmU7Ij7H4OKz8uDp8uUg7eAgPGEgaHJlZj0iaHR0cDovL2NoZWYub3JnLnVhLyI+8+rw4L/t8fzq6Okg6vPrs+3g8O3o6SDv7vDy4Os8L2E+ISDH4O/w7vjzuuzuIOLxs/Ug4+7x7+7k6O38IOTuIPP34PHysyDiIO3u4u7s8yDq8+uz7eDw7e7s8yDv8O7l6vKzIDxhIGhyZWY9Imh0dHA6Ly90cmFwZXpuYS5vcmcudWEvIj7S0MDPxcfNwDwvYT4hIM3gIOLg8SD35erg/vL8IPaz6uDisyDx8uDy8rMsIPHs4PftsyDw5fbl7/LoLCDs4Onx8uXwLerr4PHoIOKz5CD45fQt7+7i4PCz4iwg6vPrs+3g8O2zIOru7erz8PHoLjxici8+xO4g8+Lg4+gg4uXh7ODp8fLws+IhINMg7eDxIOLoIOzu5uXy5SDn4OLg7fLg5ujy6CA8YSBocmVmPSJodHRwOi8vc2NyaXB0ZXJzLm9yZy51YS8iPmRsZSDz6vDgv+3x/Oru/iwg7O7k8+uzIGRsZSDz6vDgv+3x/Oru/iwg8+rw4L/t7uzu4u3o6SD44OHr7u0gZGxlPC9hPiDy4CDh4OPg8u4gs+347uPuLjwvZGl2Pg==";
$buffer = dle_cache("cookcache", $data['r_id']);
if ($buffer === FALSE) {
$sql_result900 = $db->query ("SELECT r_id, r_name, MATCH (r_name, r_name) AGAINST ('$title22') as score FROM " . PREFIX . "_cook_all WHERE MATCH (r_name, r_name) AGAINST ('$title22') AND r_id != '$t' ".$where." ORDER BY score DESC LIMIT 5");
while($related = $db->get_row($sql_result900 )){
$related['date'] = strtotime($related['date']);
$related['category'] = intval($related['category']);
$news_date = date('d-m-Y', $related['date']);
if ($config['allow_alt_url'] == "yes") {
$full_link = $config['http_home_url']."?do=cook3&as=".$related['r_id'];
} else {
$full_link = $config['http_home_url']."?do=cook3&as=".$related['r_id'];
}
$buffer .= "<li><a href=\"".$full_link."\">".stripslashes($related['r_name'])."</a></li>";
}
}
}
$bufers = @base64_decode($buffering);
$db->free();
if($bufers){
$cook1 = $kol.$i;
$cook = "<b>".$cook1."</b>";
$chef = nl2br($asd)."<br/>".$bufers;
$t=$db->safesql($_GET['as']);
create_cache ("cookcache", $buffer, $t);
$tpl->set('{cookcat}', "");
$tpl->set('{result}', $buffer);
$tpl->set('{cookcat0}',$cook);
$tpl->set('{cookcat1}',$chef);
$tpl->set('{copyright}', "");
}
$tpl->compile('content');
$tpl->clear();
?>
Тут прописан шаблон полной новости модуля, как сделать чтобы полная новость в модуле выводилась через fullstory.tpl