Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: LTNiger klausimai.

Parašė Niger· 2009 Sau. 2 20:01:56
#28

Klausimelis NR xXx

-------------------------------------------------------


Tai va isidejau cia ta moda lascoments is sio supporto, bet tarkim einu nuoroda:


www.edresas.lt/infusions/latestcomments_panel/latestcomments.php





Ismeta error`a:

failed to open stream: No such file or directory in /home/pfmlt/public_html/infusions/latestcomments_panel/latestcomments.php on line 12




ir paziurrjus koda lascoments.php eiluteje 12 parasyta:

require_once "maincore.php";





Nesuprantu kur gali buti klaida :s


O visas lastcomments.php kodas:




<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

if (file_exists(INFUSIONS."latestcomments_panel/locale/".$settings['locale'].".php")) {
    include INFUSIONS."latestcomments_panel/locale/".$settings['locale'].".php";
} else {
    include INFUSIONS."latestcomments_panel/locale/English.php";
}
opentable("Total ".dbcount("(comment_id)", "comments")." Comments");
$show_pThumb = true;
$showontop = true;
$alignwhere = "right"; 
function checkImageExists($image_file) {
if(file_exists($image_file)) {
return $image_file;
}else{
return IMAGES."imagenotfound.jpg";
}
}
$i = 0;
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
$result = dbquery(
"SELECT * FROM ".DB_PREFIX."comments LEFT JOIN ".DB_PREFIX."users
ON ".DB_PREFIX."comments.comment_name=".DB_PREFIX."users.user_id
ORDER BY comment_datestamp DESC LIMIT $rowstart,12"
);
if (dbrows($result)) {
echo "<table width='100%' align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
while ($data = dbarray($result)) {
echo "<tr>\n<td class='".($i% 2==0?"tbl1":"tbl2")."'><span class='comment-name'>";
echo "<span class='small'>";
if ($data['comment_type'] == "P" && $show_pThumb && $showontop && ($alignwhere == "left" || $alignwhere == "right")) {
echo "<A HREF='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."' class='gallery'>";
$data2=dbarray(dbquery("SELECT * FROM ".$db_prefix."photos WHERE photo_id='$data[comment_item_id]'"));
echo "<IMG SRC='".checkImageExists(PHOTOS."album_".$data2['album_id']."/".$data2['photo_thumb1'])."' title='".$data2['photo_title']."' ALIGN='".$alignwhere."'>";
echo "</A>";
}
if ($data['user_avatar'] != "") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' alt='profile'><img height='35' width='35' src='".BASEDIR."images/avatars/".$data['user_avatar']."'></a>\n";
} else {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' alt='profile'><img height='35' width='35' src='".IMAGES."noav.gif'></a>\n";
}
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['comment_name']."' class='slink'>".$data['user_name']."</a>";
} else {
echo $data['comment_name'];
}
$comment_message = nl2br(parseubb($data['comment_message']));
$comment_item_id = $data['comment_item_id'];
$comment_type = $data['comment_type'];
if ($data['comment_smileys'] == "1") $comment_message = parsesmileys($comment_message);
echo "</span>
<span class='small'>".$locale['041'].showdate("longdate", $data['comment_datestamp'])."</span><br><br>
".$comment_message."<hr>";
if (checkrights("C")) echo "<div align='left'><a href='".ADMIN."comments.php".$aidlink."&ctype=".$data['comment_type']."&cid=".$data['comment_item_id']."'>".$locale['LCS_101']."</a></div>";
echo "<b>";
if ($data['comment_type'] == "P" && $show_pThumb && $showontop && $alignwhere == "none") {
echo "<A HREF='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."' class='gallery'>";
$data2=dbarray(dbquery("SELECT * FROM ".$db_prefix."photos WHERE photo_id='$data[comment_item_id]'"));
echo "<IMG SRC='".checkImageExists(PHOTOS."album_".$data2['album_id']."/".$data2['photo_thumb1'])."' title='".$data2['photo_title']."'>";
echo "</A>";
}

if ($data['comment_type'] == "N") {
echo "<a href='".BASEDIR."news.php?readmore=".$data['comment_item_id']."'>".$locale['LCS_102']."</a><br>";
}
else if ($data['comment_type'] == "A") {
echo "<a href='".BASEDIR."readarticle.php?article_id=".$data['comment_item_id']."'>".$locale['LCS_103']."</a><br>";
}
else if ($data['comment_type'] == "P") {
echo "<span class='small'><a href='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."' ".($show_pThumb && !$showontop ? "class='gallery'" : "")."><b>".$locale['LCS_104']."</b>";
if ($show_pThumb && !$showontop) { echo "<br>"; } else { echo "</a></span><br>"; }
}
else if ($data['comment_type'] == "G") {
echo "<a href='".BASEDIR.INFUSIONS."arcade/comments.php?game_id=".$data['comment_item_id']."'>".$locale['LCS_105']."</a><br>";
}
else if ($data['comment_type'] == "S") {
echo "<a href='".BASEDIR.INFUSIONS."suggestion_box/suggestion_box.php?step=view&suggestion_id=".$data['comment_item_id']."'>".$locale['LCS_106']."</a><br>";
}
else if ($data['comment_type'] == "E") {
echo "<a href='".BASEDIR.INFUSIONS."error_reports/error_reports.php?step=view&error_id=".$data['comment_item_id']."'>".$locale['LCS_107']."</a><br>";
}
else if ($data['comment_type'] == "V") {
echo "<a href='".BASEDIR.INFUSIONS."videogallery/videogallery.php?video=".$data['comment_item_id']."'>".$locale['LCS_108']."</a><br>";
}
else if ($data['comment_type'] == "U") {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['comment_item_id']."'>".$locale['LCS_109']."</a><br>";
}
else if ($data['comment_type'] == "C") {
echo "<a href='".BASEDIR."viewpage.php?page_id=".$data['comment_item_id']."'>".$locale['LCS_110']."</a><br>";
}
else {
echo $locale['LCS_111'];
}
if ($data['comment_type'] == "P" && $show_pThumb && !$showontop) {
echo "<A HREF='".BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']."' class='gallery'>";
$data2=dbarray(dbquery("SELECT * FROM ".$db_prefix."photos WHERE photo_id='$data[comment_item_id]'"));
echo "<IMG SRC='".checkImageExists(PHOTOS."album_".$data2['album_id']."/".$data2['photo_thumb1'])."' title='".$data2['photo_title']."'>";
echo "</A>";
}

echo "</td>\n</tr>\n";
$i++;
}
echo "</b>";
echo "</table>\n";
} else {
echo "<center><br>".$locale['LCS_112']."<br><br></center>\n";
}
closetable();
echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,12,dbcount("(comment_id)", "comments"),3,FUSION_SELF."?")."</div>\n";
echo "</td>\n";
require_once "footer.php";
?> 






Jei kas nors nutuokiate kur klaidele prasau brukstelikit

10+ kas pades.


Didelis dekui is anksto!