Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del header script
Parašė EviL· 2008 Bir. 7 14:06:13
#1
Gal galite ideti sita script i headeri kad weiktu?
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class=border='0'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><tr>
<td rowspan='2'>
<img src='".THEME."images/cs_01.png' width='306' height='250' alt=''></td>
<td>
<a href='".BASEDIR."news.php'><img src='".THEME."images/cs_02.png' width='94' height='52' border='0' alt=''></td>
<td>
<a href='".FORUM."'><img src='".THEME."images/cs_03.png' width='145' height='52' border='0' alt=''></td>
<td>
<a href='".BASEDIR."articles.php'><img src='".THEME."images/cs_04.png' width='160' height='52' border='0' alt=''></td>
<td rowspan='2'>
<img src='".THEME."images/cs_05.png' width='283' height='250' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/cs_06.png' width='399' height='198' alt=''></td>
</tr></td>
</tr>
</table>
</td>
</tr>
</table>\n";
theme.php faila prisegu
Redagavo EviL· 2008 Bir. 7 14:06:12
Parašė Toonis· 2008 Bir. 7 14:06:44
#2
O ką čia dėt? Pakeisk function render_header($header_content) { kuris dabar yra tavo theme.php faile šituo kur pats davei ir viskas. :|
Parašė EviL· 2008 Bir. 7 14:06:55
#3
keiciau, bet meta erora
Parašė MAnjack· 2008 Bir. 7 14:06:56
#4
Koks eror? Mes gi ne aiškiaregiai.
Parašė EviL· 2008 Bir. 7 14:06:54
#5
Kai istrinu headerio koda kurio nereikia ir idedu ta kurio man reikia meta
Parse error: syntax error, unexpected '<' in /home/gyvaciokas/morder.xz.lt/themes/cs_tema_002/theme.php on line 46
Edit: Jau susitvarkiau, db liko tik kazkaip pasalint sita linija kur pazymeta:
Redagavo EviL· 2008 Bir. 7 15:06:36
Parašė ---· 2008 Bir. 7 17:06:15
#6
tai cia gal bg ta linija? jei taip tai tikriausiai style.css reikia ziuret
Parašė Enzo· 2008 Bir. 7 17:06:26
#7
čia kartais ne backgroundas?
Parašė EviL· 2008 Bir. 7 19:06:49
#8
Dekui, susitvarkiau. O gal galit pasakyt kaip pakelti auksciau ir pastumti i desine sita script?
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,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
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_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
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>";
Cia siuntiniu headerije script
Redagavo EviL· 2008 Bir. 7 20:06:55