Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: zalias

Parašė GoN· 2008 Bir. 28 19:06:39
#1

Sveiki! =)
Tai redaguoju theme ir raso sitoki error
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /home/.../.../themes/.../theme.php on line 24

   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.jpg' width='50' height='50' style='border:1px solid #999999'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".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>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";




Kas cia yra, atsimenu kaskaip buwau padares viskas buwo gerai bet dbr nebezinau, tai gal galit padeti!

Parašė Fanio· 2008 Bir. 28 19:06:07
#2

theme.php on line 24




Kas dar neaišku? Ieškok ten..

Parašė GoN· 2008 Bir. 28 20:06:51
#3

$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");




Ir kas cia blogai yra? ?|

Redagavo GoN· 2008 Bir. 28 20:06:06

Parašė Kwyn· 2008 Bir. 28 20:06:40
#4

Taigi tau rašo kad klaida yra 24 eilutėje, o ne 4-oje kurią tu nukopijavai. ;)

Redagavo Kwyn· 2008 Bir. 28 20:06:54

Parašė GoN· 2008 Bir. 28 20:06:03
#5

Jei ka tai pas mane sita 24 eilute as tik prisijugima sita idejau i theme.php ir sitoki eror meta :P
__________________________


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

// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "792";
$theme_width_l = "188";
$theme_width_r = "188";

function render_header($header_content) {

global $theme_width,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='792' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>

<tr>
<td class='sritis_login'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='486'></td>
<td width='195'><table align='center' cellpadding='0' cellspacing='0' width='195'>
<tr>
<td class='side-body-login'>
<div align='center'>
<form name='loginform' method='post' action='news.php'>
<tr>
<img src='".THEME."images/prisijungimas.png' align='right'><br>
</tr>
<tr>
<div align='right'><a href='register.php'><img src='".THEME."images/registracija.png' border='0'></a>&nbsp;&nbsp;<a href='lostpassword.php'><img src='".THEME."images/p_slaptazodis.png' border='0'></a></div>
</tr><br>
<tr>

<td align='left'><img src='".THEME."images/vardas.png'></td>
<td align='right'><input type='text' name='user_name' class='login_laukelis' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='left'><img src='".THEME."images/slaptazodis.png'></td>
<td align='right'><input type='password' name='user_pass' class='login_laukelis' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='left'><input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'><img src='".THEME."images/prisiminti.png'></td>
<td align='right'><input type='submit' name='login' value='Jungtis' class='button_1'></td>
</tr>
</form>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>

<td height='5'></td>
</tr>
</table>
</td>
<td width='111'></td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='sritis_panel'>
<tr>
<td width='378'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>

<table width='100%' cellpadding='0' cellspacing='0'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 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";
}
} else {
echo "<center>Siuntinių nėra !</center>\n";
}

echo "</table></td>
</tr>

</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>
</table>
</td>
<td width='20'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>
<table width='100%' cellpadding='0' cellspacing='0'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 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";
}
} else {
echo "<center>Siuntinių nėra !</center>\n";
}

echo "
</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>

</table>
</td>
<td width='22'></td>
</tr>
</table>";

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='164'><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/pagrindinis.gif' border='0'></a></td>
<td width='161'><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/navigacija/pramogos.gif' border='0'></a></td>
<td width='149'><a href='".BASEDIR."viewpage.php?page_id=4'><img src='".THEME."images/navigacija/siuntiniai.gif' border='0'></a></td>
<td width='151'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/navigacija/forumas.gif' border='0'></a></td>
<td width='167'><a href='".BASEDIR."viewpage.php?page_id=5'><img src='".THEME."images/navigacija/informacija.gif' border='0'></a></td>
</tr>
</table>";

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%' class='footer'>
<tr>
<td width='648' align='center'><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;padding-right:20px;'>Sprendimas: <a href='http://php-fusion.co.uk/' target='_blank'>PHP-Fusion</a> | &copy; Jop.lt 2008 | <a href='tell.php'>Rekomenduok draugui</a></span></td>
<td width='144'><img src='".THEME."images/made_by.png'>&nbsp;&nbsp;<a href='http://emotive.in/' target='_blank'><img src='".THEME."images/emotive.png' border='0'></a></td>
</tr>
</table>";

}

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

echo "
<table cellpadding='0' cellspacing='0' width='545'>
<tr>
<td class='capmain'><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;'>".showdate("longdate", $info['news_date'])."</span><br><a name='news_1' id='news_1'></a>$subject</td>

</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='news.php?readmore=".$info['news_id']."'>Naujiena plačiau</a> | Skaityta: ".$info['news_reads']." | Komentarų: ".$info['news_comments']."</td>
</form>

</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," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table align='center' cellpadding='0' cellspacing='0' width='545'>
<tr>
<td align='center' class='side-center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closetable() {

echo "</td>
<tr><td><img src='".THEME."images/side_center_bot.gif'></td></tr>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "<tr><td><img src='".THEME."images/scapmain_bot.gif'></td></tr>
</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";

}
?>




Jei kas galit i sita theme.php imeskit sita

   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.jpg' width='50' height='50' style='border:1px solid #999999'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".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>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";




Kad jis weiktu!

aciu =)

Redagavo GoN· 2008 Bir. 28 20:06:14

Parašė Enzo· 2008 Bir. 28 20:06:08
#6

Kwyn parašė:
Taigi tau rašo kad klaida yra 24 eilutėje, o ne 4-oje kurią tu nukopijavai. ;)


imant iš šito kodo kurį davė jis čia 4 eilutė, bet iš theme.php tai jau 24 matyt, bėje įdėk theme.php suvarkysiu
https://webdnd.com/readarticle.p...icle_id=92

Redagavo Enzo· 2008 Bir. 28 20:06:20

Parašė GoN· 2008 Bir. 29 12:06:56
#7

Idejau theme.php

Redagavo GoN· 2008 Bir. 29 12:06:38