Przedszkolak
Postów: 2
Data rejestracji: 01.04.2009 14:32
|
Mam problem z konwersją skórki do PHP-Fusion v7. Próbowałem zrobić to sam (z pomocą poradnika umieszczony na stronie) lecz poniosłem porażkę. Cały czas pojawia mi się taki komunikat:
Parse error: syntax error, unexpected '>' in /var/www/sites/yoyo.pl/g/r/grooza/themes/Americas_Army-/theme.php on line 49
Zauważyłem że w artykule dużo "kodu" nie znajdowała się w pliku choć powinna. Gdyby ktoś mógłby mi pomóc w tym problemie. Obrazu powiem że nie orientuję się w języku PHP.
Potrzebuje przerobiony plik theme.php i styles.css.
Plik theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#a88801";
$body_bg = "#000000";
$theme_width = "980";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='2' cellpadding='0' width='$theme_width' id='main'>
<tr valign=\"top\">
<td width=\"29\" valign=\"top\" background=\"".THEME."images/leftborder.gif\"><img src=\"".THEME."images/leftborder.gif\" width=\"29\" height=\"6\" border=\"0\">
<td width=\"180\" valign=\"top\">
<td width='100%' id='content'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td id='logo'><img src='".THEME."images/banner.jpg' alt='Fusion-Themes' title='Fusion-Themes'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("<img src='".THEME."images/bullet.gif'>","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'><br>".stripslashes($settings['footer'])."AA images © 2006 by <a href='http://www.americasarmy.com' target='blank'>Americas Army</a><br><br>\n";
if (!$license) { echo showcopyright("foot")." | Theme [ Americas Army ] by <a href='http://fusion-themes.com' target=_blank'>Fusion-Themes</a> © 2006<br><br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
<td class='borderr'>
<td width=\"29\" valign=\"top\" background=\"".THEME."images/rightborder.gif\"><img src=\"".THEME."images/rightborder.gif\" width=\"29\" height=\"6\" border=\"0\">
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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,"<br>").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' class='border'>
<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,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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%'>
<tr>
<td 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%'>
<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";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Plik styles.css:
a {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #a88801;
text-decoration : none;
font-weight : normal;
}
a:hover {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #c2c2bf;
text-decoration : underline;
font-weight : normal;
}
a.side {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #a88801;
text-decoration : none;
font-weight : normal;
}
a:hover.side {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #c2c2bf;
text-decoration : underline;
font-weight : bold;
}
a.white {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #c2c2bf;
font-weight : bold;
text-decoration : none;
}
a:hover.white {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #e7cc5a;
font-weight : bold;
text-decoration : none;
}
a.foot {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #a88801;
text-decoration : none;
font-weight : normal;
}
a:hover.foot {
font-family : Verdana, Arial, Tahoma, sans-serif;
color : #e7cc5a;
text-decoration : none;
font-weight : normal;
}
body {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
margin : 0px;
border : 1px soid #a88801;
}
form {
margin : 0px;
}
.borderl {
width:4px;
height: 100%;
background-image: url(images/leftborder.gif);
background-repeat: repeat-y;
}
.borderr {
width:4px;
height: 100%;
background-image: url(images/rightborder.gif);
background-repeat: repeat-y;
}
hr {
height : 1px;
border : 1px solid #a88801;
}
hr.side-hr {
height : 1px;
border : 1px solid #a88801;
}
td {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
}
pre {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : ffffff;
}
.alt {
color : #c2c2bf;
}
.smallalt {
color : #c2c2bf;
}
.forum {
color : #c2c2bf;
}
.white-header {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
font-weight : normal;
border-top : 1px solid #a88801;
border-bottom : 1px solid #a88801;
background-image:url(images/whiteback.gif);background-repeat: repeat-x;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #ffffff;
border-top : 0px solid #a88801;
background-color : #2e2d10;
padding : 0px 0px 0px 0px;
}
.footer {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
border-top : 1px solid #a88801;
background-color : #272727;
padding : 5px;
}
.button {
border : 1px solid;
border-color : #4a5801 #000 #000 #4a5801;
padding : 0px 3px;
font-family : Verdana, Arial, Tahoma, sans-serif;
font : bold 9px;
color : #a88800;
background-color : #424242;
text-decoration : none;
margin : 5px;
}
.textbox {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #605d5a;
background-color : #1f1f1f;
border : 1px solid #000000;
}
.main-body {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
padding : 4px;
background-color : #272727;
}
.side-body {
background-color : #272727;
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #917f37;
padding : 4px 3px 4px 5px;
}
.main-bg {
background-color : #00000;
padding : 4px 4px 4px 4px;
}
.border {
border : 1px solid #000;
background-image:url(images/top.gif);
background-repeat : no-repeat;
}
.border1 {
border : 1px solid #000;
}
.side-border-left {
background-color : #272727;
border-right : 1px solid #000;
padding : 5px 0px 4px 0px;
}
.side-border-right {
background-color : #272727;
border-left : 1px solid #000;
padding : 5px 0px 4px 0px;
}
.news-footer {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
background-color : #353328;
padding : 3px 4px 4px 4px;
border-top : 1px solid #000;
}
.capmain {
height : 24px;
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
text-align : center;
color : #917f37;
border-bottom : 1px solid #000;
background-image:url(images/cellpic3.gif);background-repeat: repeat-x;
padding : 2px 4px 4px 4px;
}
.scapmain {
height : 24px;
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
color : #917f37;
text-align : center;
border-bottom : 1px solid #000;
border-top : 1px solid #000;
background-image:url(images/cellpic3.gif);background-repeat: repeat-x;
padding : 3px 4px;
}
.tbl-border {
color : #000;
}
.tbl {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
color : #c2c2bf;
padding : 2px;
}
.tbl1 {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
padding : 2px;
border : 1px solid #000;
background-color : #1d1e1d;
}
.tbl2 {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
color : #c2c2bf;
padding : 4px;
border : 1px solid #000;
background-color : #414141;
}
.forum-caption {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
text-align : left;
color : #e7cc5a;
background-color : #000000;
background-image:url(images/cellpic3.gif);background-repeat: repeat-x;
border : 1px solid #a88801;
padding : 2px 4px 4px 4px;
}
.quote {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 11px;
color : #605d5a;
background-color : #242322;
padding : 4px;
margin : 0 20px;
border : 1px solid #000000;
}
.poll {
height : 10px;
border : 1px solid #000000;
}
.comment-name {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-weight : bold;
color : #ff9900;
}
.shoutboxname {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : bold;
color : #ffffff;
}
.shoutbox {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
}
.shoutboxdate {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 9px;
color : #999999;
}
.small {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : normal;
color : #c2c2bf;
}
.small2 {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : normal;
color : #a88801;
}
.side-small {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
font-weight : normal;
color : #e7cc5a;
}
.side-label {
font-family : Verdana, Arial, Tahoma, sans-serif;
font-size : 10px;
color : #c2c2bf;
padding : 2px 2px 3px 2px;
}
.gallery {
padding : 16px 0 8px 0px;
}
.gallery img {
border : 1px solid #a88801;
}
img.activegallery {
border : 1px solid #e7cc5a;
}
.image_left {
text-align: left;
margin: 0px 15px 10px 0px;
background-position: left;
float: left;
}
.image_right {
text-align: right;
margin: 0px 0px 10px 15px;
border: 1px solid #999999;
background-position: left;
float: right;
}
Kliknij i zaczekaj na załadowanie kodu ...
Pozdrawiam i z góry dziękuję.
Karol
Edytowane przez jantom dnia 02.04.2009 15:44:28
|