Warning: Missing ar in /virtual/w/e/webdesign.ugu.pl/themes/Anime_Dream/theme.php
Błąd wystąpił po tym jak ustawiłam przezroczyste tło w panelu logowania...niezbyt znam się na php więc proszę o pomoc co jest nie tak...działałam według instrukcji ustawiania tła panelu tylko zamiast koloru dałam obrazek blank.gif no i wtedy wyskoczył mi ten błąd
THEME.PHP
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "820";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings,$userdata,$aidlink,$loginerror;
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 width='550' height='280' align='left' style='background-color: #0096FF; background-image:url(".THEME."images/logo.jpg);background-repeat: no-repeat; background-position: left; padding: 7px;'></td>";
echo "<td width='200' height='280' align='right' style='background-color: #0096FF; background-image:url(".THEME."images/logo.jpg);background-repeat: no-repeat; background-position: left; padding: 7px;'>";
echo "<div align='center'>";
if (iMEMBER) {
openside2();
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></center><br>\n";
} else {
echo "<center><img src='".INFUSIONS."user_info_panel/images/brak.gif' width='50' hight='50'></center><br>\n";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Twoje Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Lista Uzytkowników</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'> Administracja</a><br>\n";
}{echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
openside2();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>
<input type='password' name='user_pass' class='textbox' value='has_o' onBlur=\"if(this.value=='') this.value='has_o';\" onFocus=\"if(this.value=='has_o') this.value='';\" style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='Zapami_taj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button2'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>rejestracja</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>lost password</a>
</div>\n";
}
closesidel();
echo "</div>";
echo "</td>";
echo "</tr></td></tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='pasek' width='100%' align='center' style='height: 32px;'>
".showsublinks("·","top_links")."
</td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>\n";
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='130' class='border'>
<tr>
<td class='side-body'></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='29' background='".THEME."images/fbc.jpg' align='center' class='footer'>".stripslashes($settings['footer'])."
<a href='http://www.php-fusion.co.uk/' target='_blank'>PHP fusion</a> | <a href='http://www.wtfthemes.failai.lt/' target='_blank'>WTF Themes</a><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td 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 background='".THEME."images/sbc.jpg' height='35' 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";
}
function openside2($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body2'>\n";
}
?>
Bledy rowniez prosze wstawiac w code/Pieka
Ok...poprawiłam posta...teraz jest cały theme.php
Edytowane przez Emkacf dnia 11.11.2007 12:15:47
|