Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padėkite išspręsti problemą

Parašė Ewaldas· 2009 Bal. 7 19:04:44
#1

Kai bandau uždėti naują theme išmeta : Parse error: syntax error, unexpected '<' in /home/fkziukas/karumba.xz.lt/themes/cs_theme/theme.php on line 53 .. Kaip išspręsti?

Parašė WyPuk· 2009 Bal. 7 20:04:55
#2

53 eilutei kažkokia klaida, įdėk čia theme.php failą

Parašė Ewaldas· 2009 Bal. 7 20:04:40
#3

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

function render_header() {
global $locale, $settings, $msg_count, $userdata, $aidlink, $loginerror;
echo "<center><img src=\"".THEME."/images/head.png\" alt=\"\"></center>";
echo "<table border=\"0\" cellpadding=\"0\" width=\"980\" cellspacing=\"0\" align=\"center\">\n";
echo "<tr>\n";
echo "<td rowspan=\"2\" width=\"300\" align=\"center\">";
opensidexxx();
if (iMEMBER) {
echo "<div style=\"font-size: 16px; text-align: left; font-weight: bold; padding-bottom: 3px;\">Sveiki, ".$userdata['user_name']."</div>";
echo "<table border=\"0\" cellpadding=\"0\" width=\"100%\" cellspacing=\"0\" align=\"center\"><tr><td>";
   $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'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</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'>".$locale['083']."</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>";
echo "</td><td width=\"120\">\n";
if ($userdata['user_avatar']) {
      echo "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['u017']."'></center><br>";
}
echo "</td></tr></table>\n";
} else {
echo "<div style=\"font-size: 16px; text-align: left; font-weight: bold; padding-bottom: 3px;\">Prisijunk!</div>";
   echo "<div align='center' style=\"padding-top: 5px;\">
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='".$locale['061']."' class='textbox' style='width:100px' onFocus=\"if(this.value=='".$locale['061']."'){this.value='';}\" onBlur=\"if(this.value==''){this.value='".$locale['061']."';}\">
<input type='password' name='user_pass' class='textbox' value='".$locale['062']."' style='width:100px' onFocus=\"if(this.value=='".$locale['062']."'){this.value='';}\" onBlur=\"if(this.value==''){this.value='".$locale['062']."';}\"><br>
".$locale['063']."<input type='checkbox' name='remember_me' value='y' style='vertical-align:middle;'><input type='submit' name='login' value='".$locale['064']."' class='button' style=\"width: 100px;\"><br>
</form>\n";
   if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'><b>[Registruokis]</b></a>";
   }
echo " <a href='".BASEDIR."lostpassword.php' class='side'><b>[Pamirsai slaptazodi?]</b></a></div>\n";
}
closesidexxx();
echo "</td>\n";
echo "<td style=\"vertical-align: top;\">";
opensidexx("Login");
echo "<center><b>".showsublinks("<img border='0' src='".THEME."images/bullet.gif'>","white")."</b></center>";
closesidexx();
echo "</td>\n";
echo "</tr>";
echo "<tr>\n";
echo "<td style=\"vertical-align: bottom;\">";
opensidexxx("Login");
echo "<center><a href=\"web adresas"><img src=\"banerio adresas" alt=\"\"></a></center>";
closesidexxx();
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='980' cellpadding='0' cellspacing='0' border='0' align='center'><tr>";
}

function render_footer($license=false) {
global $locale,$settings;
echo "<table width=\"980\" align=\"center\" cellpadding='0' cellspacing='0' border='0'>\n<tr>\n<td>\n";
opensidexx("");
echo "<center>www.fragbite.lt".date("Y")." visos teis&#1083; s saugomos.</center>";
closesidexx();
echo "</td>\n</tr>\n</table>\n";
}

function render_news($subject, $news, $info) {

global $locale;
   
echo "<table width=\"520\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"black\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"31\">\n";
echo "<img src=\"".THEME."images/panelx_01.png\" width=\"21\" height=\"31\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_02.png); width: 100%; font-size: 13px; text-transform: uppercase; font-weight: bold;\">\n";
echo $subject."</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelx_03.png\" width=\"22\" height=\"31\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #ccf314; padding: 2px 2px 2px 2px;\">\n";
echo $news."</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_08.png); text-align: center; font-size: 10px;\">\n";
echo openform("N",$info['news_id']).newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>\n";
echo "<td colspan=\"2\" width=\"22\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

function render_article($subject, $article, $info) {

global $locale;
   
echo "<table width=\"520\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"black\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"31\">\n";
echo "<img src=\"".THEME."images/panelx_01.png\" width=\"21\" height=\"31\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_02.png); width: 100%; font-size: 13px; text-transform: uppercase; font-weight: bold;\">\n";
echo $subject."</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelx_03.png\" width=\"22\" height=\"31\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #ccf314; padding: 2px 2px 2px 2px;\">\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_08.png); text-align: center; font-size: 10px;\">\n";
echo openform("A",$info['article_id']).articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>\n";
echo "<td colspan=\"2\" width=\"22\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

// Open table begins
function opentable($title) {
echo "<table width=\"520\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"black\" align=\"center\" style=\"width: 520px;\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"31\">\n";
echo "<img src=\"".THEME."images/panelx_01.png\" width=\"21\" height=\"31\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_02.png); width: 100%; font-size: 13px; text-transform: uppercase; font-weight: bold;\">\n";
echo $title."</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelx_03.png\" width=\"22\" height=\"31\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #ccf314; padding: 2px 2px 2px 2px;\">\n";
}

// Close table end
function closetable() {
echo "</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_08.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"2\" width=\"22\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

function openside($title, $width = "230") {
echo "<table width=\"".$width."\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"31\">\n";
echo "<img src=\"".THEME."images/panel_01.png\" width=\"21\" height=\"31\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panel_02.png); width: 100%; font-size: 13px; text-transform: uppercase; font-weight: bold;\">\n";
echo $title."</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panel_03.png\" width=\"22\" height=\"31\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panel_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #444444; padding: 2px 2px 2px 2px;\">\n";
}

function closeside() {
echo "</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panel_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panel_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panel_08.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"2\" width=\"22\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panel_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

function opensidex($title) {
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"black\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"31\">\n";
echo "<img src=\"".THEME."images/panelx_01.png\" width=\"21\" height=\"31\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_02.png); width: 100%;\">\n";
echo $title."</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelx_03.png\" width=\"22\" height=\"31\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #ccf314; padding: 2px 2px 2px 2px;\">\n";
}

function closesidex() {
echo "</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" width=\"21\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelx_08.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"2\" width=\"22\" height=\"20\">\n";
echo "<img src=\"".THEME."images/panelx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}

function opensidexx($title){
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\">";
echo "<img src=\"".THEME."images/panelxx_01.png\" width=\"21\" height=\"17\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxx_02.png); width: 100%;\">\n";
echo "</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxx_03.png\" width=\"22\" height=\"17\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #444444; padding: 2px 2px 2px 2px;\">\n";
}

function closesidexx(){
echo "</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxx_08.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}


function opensidexxx(){
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"black\">\n";
echo "<tr>\n";
echo "<td colspan=\"2\">";
echo "<img src=\"".THEME."images/panelxxx_01.png\" width=\"21\" height=\"17\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxxx_02.png); width: 100%;\">\n";
echo "</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxxx_03.png\" width=\"22\" height=\"17\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxxx_04.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"3\" style=\"background-color: #ccf314;; padding: 2px 2px 2px 2px;\">\n";
}

function closesidexxx(){
echo "</td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxxx_06.png);\">\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxxx_07.png\" width=\"21\" height=\"20\" alt=\"\"></td>\n";
echo "<td style=\"background-image:url(".THEME."images/panelxxx_08.png);\">\n";
echo "</td>\n";
echo "<td colspan=\"2\">\n";
echo "<img src=\"".THEME."images/panelxxx_09.png\" width=\"22\" height=\"20\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"16\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"57\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"17\" height=\"1\" alt=\"\"></td>\n";
echo "<td>\n";
echo "<img src=\"".THEME."images/spacer.gif\" width=\"5\" height=\"1\" alt=\"\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Parašė WyPuk· 2009 Bal. 7 20:04:14
#4

echo "<center><a href=\"web adresas"><img src=\"banerio adresas" alt=\"\"></a></center>";




Šitoje eilutėje kažkas blogai.

Parašė Ewaldas· 2009 Bal. 7 20:04:03
#5

Vietoje web adresas įrašau web adresas , vietoj banerio adreso , banerio adresą , bet vistiek meta erorą.. Kaip išspręsti?