stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Va banžiau įdeti į hraderį prisijungimą bet pradema mesti error
Parse error: syntax error, unexpected $end in /home/stygis/mu-info.xz.lt/themes/Mu-Online/theme.php on line 162
Toi eilutei ?>
ir nesuprantu kas blogai wa gal blogai theme.php pakeiciau ???
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#ffffff";
$body_bg = "#ffffff";
$theme_width = "920";
$theme_width_l = "180";
$theme_width_r = "180";
// Right Panels off in Forum Mode
$theme_panels_exclude = array("/forum/");
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table align=center class='mainsite-border' align='left' width='910' cellspacing='0' cellpadding='0'>
<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 align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' >";
echo "<td width='20%' height='70' class='white' align='left'>";
if ($license == false) {
echo "Varikliukas: <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a>";
echo "<br>Theme kure:ShadoVw,redagavo: stygis";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' class='border1' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/tlo2.jpg' height='29' class='panel-header'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='20' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt= '".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' class='border1' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/tlo2.jpg' height='30' class='panel-header'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='20' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td align='center' background='".THEME."images/tlo2.jpg' height='30' border='1' class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td align='center' height='30' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
O header.php failas buvo sukurtas tai as tik pridejau tas eilutes ... gal ten blogai kas ??
<?php
print "
<table id='Table_01' width='920' height='70' border='0' cellpadding='0' cellspacing='0'>
<tr>
</tr>
</table>
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header_01.jpg' height='299' style='background-repeat: no-repeat;'>
<tr>
<td width='235' style='padding-right: 0px; padding-left: 700px; padding-bottom: 50px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptaþodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
echo "<td>\n";
echo ($i == 0 ? " " : "")."</td>";
echo "</td></tr></table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
<td width='5'></td>
<td width='69' valign='top'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.png' border=0' alt='Pradinis'></a></td>
<td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.png' border=0' alt='Diskusijos'></td>
<td width='564' class='dark'><marquee>".parseubb(parsesmileys("<span style='color: green'><b>Laukiant Pavasario su LightTen</b></span>"))."</marquee></td>
<td width='69' valign='top'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.png' border=0' alt='Galerija'></td>
<td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/siuntimai.png' border=0' alt='Siuntiniai'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=19'><img src='".THEME."images/reklama.png' border=0' alt='Reklama'></td>
<td width='5'></td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
?>
Balandžio 3d atsikėlęs iš numirusiųjų.
Redagavo stygis 2008 Vas. 29 13:02:07 |
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
mnan bent jua veike ;P
|
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Kažkur perdaug arba per mažai vieno iš } {
Rules: 21 & 22 Read first! |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Šita:
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
Keiti į šitą:
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n"; }
Rules: 21 & 22 Read first! |
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
|
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#ffffff";
$body_bg = "#ffffff";
$theme_width = "920";
$theme_width_l = "180";
$theme_width_r = "180";
// Right Panels off in Forum Mode
$theme_panels_exclude = array("/forum/");
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table align=center class='mainsite-border' align='left' width='910' cellspacing='0' cellpadding='0'>
<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 align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' >";
echo "<td width='20%' height='70' class='white' align='left'>";
if ($license == false) {
echo "Varikliukas: <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a>";
echo "<br>Theme kure:ShadoVw,redagavo: stygis";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' class='border1' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/tlo2.jpg' height='29' class='panel-header'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='20' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt= '".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' class='border1' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/tlo2.jpg' height='30' class='panel-header'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='20' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td align='center' background='".THEME."images/tlo2.jpg' height='30' border='1' class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td align='center' height='30' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
}
?>
http://androider.info/ |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Kipšiau asile tu render header padarei per visą tėma... xDDD
Rules: 21 & 22 Read first! |
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
|
as i koda naziurejau tik paprase istaisyti, bet weiktu mano variantas
http://androider.info/ |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
dbr su header.php
Parse error: syntax error, unexpected T_STRING in /home/stygis/mu-info.xz.lt/themes/Mu-Online/header.php on line 16
Balandžio 3d atsikėlęs iš numirusiųjų. |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Tai dėk enzo koda o ne savo kažkokį....
Rules: 21 & 22 Read first! |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
dejau ta enzo koda tiklsiau prirasiau nes pas mane header.php failas jau buvo sukurta tai dariasiau enzo
Balandžio 3d atsikėlęs iš numirusiųjų. |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Tavo header failas apgailėtinas.... Dėk enzo...
Rules: 21 & 22 Read first! |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Kaip nesupranti kai idedu enzo man headerio nerodo!!! juoda
Balandžio 3d atsikėlęs iš numirusiųjų. |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Nesugebi img pavadinimu pasikeisti? xDDDD
Rules: 21 & 22 Read first! |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
net nemaciau kad yra... dabar mano header yra tamsus tai kaip pakeisti ta juoda raidziu spalva kiek ieskau tai nera #000000 spalvos kodo ziurejau visus kodus kokia spalva radau balta raudona ir kitokiu juodos nebuvo... kur galetu buti?
Balandžio 3d atsikėlęs iš numirusiųjų. |