Siuntiniai headeryje
Parašė samsung123 2008 balandžio 5 14:04:03
Nu matau dau kas klausia kaip įsidėt siuntinius į headeri tai kad šiandien parodysiu kaip įdėti
Pradedam
Surandam savo render header pvz:
[code]function render_header($header_content) {

global $theme_width;

echo "<table align='center' width='100%' cellspacing='0' cellpadding='15'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>

<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='full-header'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='sub-header'>".showsublinks("&middot;")."</td>
<td align='right' class='sub-header'>".showsubdate()."</td>
</tr>
</table>\n";
[/code]

Čia tik pvz pas jus gali būti kitaip, tą savo render header kodą ištinam iki šitos vietos:
[code]echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";

}[/code]
ir tada dedam naują render header kodą:
[code]function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";

echo "<tr><table align=center width=100% height=100 background='".THEME."images/header.png' border=0 cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";
echo"<table width='50%'><tr>";

echo"<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,4");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}

echo "</td><td width='60%' style='padding-left:80px;' >";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,4");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}

echo "</tr>
</table>";

echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";

echo"</td></tr><tr></tr><tr><td></td></tr></table>";[/code]
Štai ir viskas turite nuosava headeri su siuntinias
Gali būti klaidų už jas nepykit
Parašė:Beišas