Здраствуйте. Разбираюсь я в этом плохо...вот решил научиться на примере чужого шаблона.
Есть шаблон...код скину ниже и есть программа cutenews.1.4.5
Проблемка в том , что я не пойму куда закинуть этот код ( как я понимаю именно этот...потому что в ридми файле был написан он для отображения новостей )
чтобы на сайте корректно отображались новости. Скрин скачал с инета....под сервер L2....хочу его переделать под свой сайт. Интегрировать новости нужно в окно где написаны логин чары и т.д....их быть не должно. Понимаю что эт минутное дело...но разобраться сам не смог...помогите пожалуйста/
Обвязка Moy-Web
Сам код скина
Есть шаблон...код скину ниже и есть программа cutenews.1.4.5
Проблемка в том , что я не пойму куда закинуть этот код ( как я понимаю именно этот...потому что в ридми файле был написан он для отображения новостей )
Код:
<?PHP
include("path/to/show_news.php");
?>
Обвязка Moy-Web
Сам код скина
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<LINK HREF="skins/l2-hit/style.css" TYPE="text/css" REL="stylesheet">
<title><?php echo $htitle; ?></title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body,td,th {
font-size: 11px;
color: #8c8c8c;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
a {
font-size: 11px;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
.стиль1 {
font-size: 14px;
color: #000000;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('skins/l2-hit/img/home-2.jpg','skins/l2-hit/img/akkaunt-2.jpg','skins/l2-hit/img/stats-2.jpg','skins/l2-hit/img/library-2.jpg','skins/l2-hit/img/forum-2.jpg')">
<div align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="437" valign="top"><table width="437" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="63"><img src="skins/l2-hit/img/top0.jpg" width="63" height="98" /></td>
<td width="165"><a href="index.php"><img src="skins/l2-hit/img/top1.jpg" width="165" height="98" border="0" /></a></td>
<td width="170"><a href="index.php"><img src="skins/l2-hit/img/top2.jpg" width="170" height="98" border="0" /></a></td>
<td width="39"><a href="index.php"><img src="skins/l2-hit/img/top3.jpg" width="37" height="98" border="0" /></a></td>
</tr>
<tr>
<td><img src="skins/l2-hit/img/left.jpg" width="62" height="274" /></td>
<td><img src="skins/l2-hit/img/logo1.jpg" width="165" height="274" /></td>
<td><img src="skins/l2-hit/img/logo2.jpg" width="170" height="274" /></td>
<td><img src="skins/l2-hit/img/rigth.jpg" width="39" height="274" /></td>
</tr>
<tr>
<td><img src="skins/l2-hit/img/left2.jpg" width="62" height="43" /></td>
<td><img src="skins/l2-hit/img/menu.jpg" /></td>
<td width="170" height="43" background="skins/l2-hit/img/menu2.jpg"> </td>
<td><img src="skins/l2-hit/img/rigth2.jpg" width="37" height="43" /></td>
</tr>
<tr>
<td><img src="skins/l2-hit/img/left3.jpg" width="63" height="156" /></td>
<td><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image26','','skins/l2-hit/img/home-2.jpg',1)"><img src="skins/l2-hit/img/home.jpg" alt="Главная" name="Image26" width="165" height="33" border="0" id="Image26" /></a><br>
<a href="index.php?id=reg" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image27','','skins/l2-hit/img/akkaunt-2.jpg',1)"><img src="skins/l2-hit/img/akkaunt.jpg" alt="Аккаунт" name="Image27" width="165" height="29" border="0" id="Image27" /></a><br>
<a href="index.php?id=stat" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image28','','skins/l2-hit/img/stats-2.jpg',1)"><img src="skins/l2-hit/img/stats.jpg" alt="Статистика" name="Image28" width="165" height="31" border="0" id="Image28" /></a><br>
<a href="index.php?id=library" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image29','','skins/l2-hit/img/library-2.jpg',1)"><img src="skins/l2-hit/img/library.jpg" alt="Библиотека" name="Image29" width="165" height="30" border="0" id="Image29" /></a><br>
<a href="/forum" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image30','','skins/l2-hit/img/forum-2.jpg',1)"><img src="skins/l2-hit/img/forum.jpg" alt="Форум" name="Image30" width="165" height="33" border="0" id="Image30" /></a><br></td>
<td valign="bottom" background="skins/l2-hit/img/menu3.jpg"> </td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="93" height="151"> </td>
<td width="306"><div align="center">
<p align="left"><img src="skins/l2-hit/img/dwarfw_.gif" width="188" height="380" /></p>
</div></td>
<td width="38"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
<td width="651" valign="top"><table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="54%"><img src="skins/l2-hit/img/top4.jpg" width="316" height="98" /></td>
<td width="46%"> </td>
</tr>
<tr>
<td><img src="skins/l2-hit/img/top5.jpg" width="316" height="52" /></td>
<td><div align="right"><span style="padding-left: 10px; padding-right: 20px;">
<? include("blocks/kalendar.php");?>
</span></div></td>
</tr>
<tr> </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27"><img src="skins/l2-hit/img/main1.jpg" width="27" height="49" /></td>
<td width="526" background="skins/l2-hit/img/main-t.jpg"><div align="center" class="стиль1">
<?include "blocks/stats.php";?>
Логин: <?php echo $loginonline; ?> Гейм: <?php echo $gameonline; ?> Онлайн: <?php echo $playsonline; ?> Аккаунтов: <?php echo $accountsnum; ?> Чаров: <?php echo $charnum; ?> Кланов: <?php echo $clannum; ?> ГМов: <?php echo $gmnum; ?></div></td>
<td width="36"><img src="skins/l2-hit/img/main2.jpg" width="36" height="49" /></td>
</tr>
<tr>
<td height="144" background="skins/l2-hit/img/main-left.jpg"> </td>
<td background="skins/l2-hit/img/bg.jpg"><p><span class="content">
<?
if ($id != '')
include('module/'.$id . '.php');
else
{
include('modle/eror.php');
}
?>
</span></p>
</td>
<td background="skins/l2-hit/img/main-rigth.jpg"> </td>
</tr>
<tr>
<td><img src="skins/l2-hit/img/main3.jpg" width="27" height="79" /></td>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5%"><img src="skins/l2-hit/img/main-b2.jpg" width="27" height="79" /></td>
<td width="81%" background="skins/l2-hit/img/main-b3.jpg"><div align="center"><?php echo $fut; ?></div></td>
<td width="14%"><img src="skins/l2-hit/img/main-b4.jpg" width="83" height="79" /></td>
</tr>
</table></td>
<td><a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="skins/l2-hit/img/main4.jpg" alt="наверх" width="36" height="79" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>