>>  Site Map >>  Forums >>  สอบถามปัญหาphpNUKE&phpBB

Forum module - topics in forum:



สอบถามปัญหาphpNUKE&phpBB - สอบถามเรื่องราวเกี่ยวกับ phpNUKE และ bbtoNUKE



ลบเมนูด้านขวาของบทความทำไงครับ(คนละอันกับกระทูด้านล่าง)

อยากลบเมนูด้านขวาของหน้าบทความต้องทำยังไงบ้างครับ คือผมลองใส่บทความลงในหน้าแรก พอึคลิ๊ก(มีต่อ.......)ก็จะมีบทความต่อ แต่มีเมนูด้านขวาคือ " ข้อมูลบทความที่เกี่ยวข้อง คะแนนของบทความ ส่วนเพิ่ม " ซึ่งเว็บของผมไม่จำเป็นต้องมีเมนูเหล่านี้ ถ้าจะลบออกต้องทำยังไงครับ ผมลองค้นหาในเว็บ thainuke หรือในเว็บนี้ก็ไม่เจอตรงนี้(เจอแต่ลบเมนูของ phpBB) ขอบคุณครับ






Code: :
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
echo "</td><td>&nbsp;</td><td valign=\"top\">\n";
///////ลองตัดตั้งแต่นี้

if ($multilingual == 1) {
    $querylang = "AND (blanguage='$currentlang' OR blanguage='')";
} else {
    $querylang = "";
}

/* Determine if the article has attached a poll */
if ($haspoll == 1) {
    $url = sprintf("modules.php?name=Surveys&amp;op=results&amp;pollID=%d", $pollID);
    $boxContent = "<form action=\"modules.php?name=Surveys\" method=\"post\">";
    $boxContent .= "<input type=\"hidden\" name=\"pollID\" value=\"".$pollID."\">";
    $boxContent .= "<input type=\"hidden\" name=\"forwarder\" value=\"".$url."\">";
    $sql = "SELECT pollTitle, voters FROM ".$prefix."_poll_desc WHERE pollID='$pollID'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $pollTitle = $row[pollTitle];
    $voters = $row[voters];
    $boxTitle = _ARTICLEPOLL;
    $boxContent .= "<font class=\"content\"><b>$pollTitle</b></font><br><br>\n";
    $boxContent .= "<table border=\"0\" width=\"100%\">";
    for($i = 1; $i <= 12; $i++) {
   $sql = "SELECT pollID, optionText, optionCount, voteID FROM ".$prefix."_poll_data WHERE (pollID='$pollID') AND (voteID='$i')";
   $result = $db->sql_query($sql);
   $row = $db->sql_fetchrow($result);
   $numrows = $db->sql_numrows($result);
   if($numrows != 0) {
       $optionText = $row[optionText];
       if($optionText != "") {
      $boxContent .= "<tr><td valign=\"top\"><input type=\"radio\" name=\"voteID\" value=\"".$i."\"></td><td width=\"100%\"><font class=\"content\">$optionText</font></td></tr>\n";
       }
   }
    }
    $boxContent .= "</table><br><center><font class=\"content\"><input type=\"submit\" value=\""._VOTE."\"></font><br>";
    if (is_user($user)) {
        cookiedecode($user);
    }
    for($i = 0; $i < 12; $i++) {
   $sql = "SELECT optionCount FROM ".$prefix."_poll_data WHERE (pollID='$pollID') AND (voteID='$i')";
   $result = $db->sql_query($sql);
   $row = $db->sql_fetchrow($result);
   $optionCount = $row[optionCount];
   $sum = (int)$sum+$optionCount;
    }
    $boxContent .= "<font class=\"content\">[ <a href=\"modules.php?name=Surveys&amp;op=results&amp;pollID=$pollID&amp;mode=$cookie[4]&amp;order=$cookie[5]&amp;thold=$cookie[6]\"><b>"._RESULTS."</b></a> | <a href=\"modules.php?name=Surveys\"><b>"._POLLS."</b></a> ]<br>";

    if ($pollcomm) {
   $sql = "select * from ".$prefix."_pollcomments where pollID='$pollID'";
   $result = $db->sql_query($sql);
   $numcom = $db->sql_numrows($result);
   $boxContent .= "<br>"._VOTES.": <b>$sum</b><br>"._PCOMMENTS." <b>$numcom</b>\n\n";
    } else {
        $boxContent .= "<br>"._VOTES." <b>$sum</b>\n\n";
    }
    $boxContent .= "</font></center></form>\n\n";
    themesidebox($boxTitle, $boxContent);
}

$sql = "select title, content, active, position from ".$prefix."_blocks where blockfile='block-Login.php' $querylang";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = $row[title];
$content = $row[content];
$active = $row[active];
$position = $row[position];
if (($active == 1) AND ($position == "r") AND (!is_user($user))) {
    loginbox();
}

$boxtitle = ""._RELATED."";
$boxstuff = "<font class=\"content\">";
$sql = "select name, url from ".$prefix."_related where tid=$topic";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
    $name = $row[name];
    $url = $row[url];
    $boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"$url\" target=\"new\">$name</a><br>\n";
}

$boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Search&amp;topic=$topic\">"._MOREABOUT." $topictext</a><br>\n";
$boxstuff .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Search&amp;author=$aid\">"._NEWSBY." $aid</a>\n";

$boxstuff .= "</font><br><hr noshade width=\"95%\" size=\"1\"><center><font class=\"content\"><b>"._MOSTREAD." $topictext:</b><br>\n";

global $multilingual, $currentlang;
    if ($multilingual == 1) {
   $querylang = "AND (alanguage='$currentlang' OR alanguage='')"; /* the OR is needed to display stories who are posted to ALL languages */
    } else {
   $querylang = "";
    }
$sql = "select sid, title from ".$prefix."_stories where topic=$topic $querylang order by counter desc limit 0,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$topstory = $row[sid];
$ttitle = $row[title];

$boxstuff .= "<a href=\"modules.php?name=$module_name&file=article&sid=$topstory\">$ttitle</a></font></center><br>\n";
themesidebox($boxtitle, $boxstuff);

if ($ratings != 0) {
    $rate = substr($score / $ratings, 0, 4);
    $r_image = round($rate);
    $the_image = "<br><br><img src=\"images/articles/stars-$r_image.gif\" border=\"1\"></center><br>";
} else {
    $rate = 0;
    $the_image = "</center><br>";
}
$ratetitle = ""._RATEARTICLE."";
$ratecontent = "<center>"._AVERAGESCORE.": <b>$rate</b><br>"._VOTES.": <b>$ratings</b>$the_image";
$ratecontent .= "<form action=\"modules.php?name=$module_name\" method=\"post\"><center>"._RATETHISARTICLE."</center><br>";
$ratecontent .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\">";
$ratecontent .= "<input type=\"hidden\" name=\"op\" value=\"rate_article\">";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"5\"> <img src=\"images/articles/stars-5.gif\" border=\"0\" alt=\""._EXCELLENT."\" title=\""._EXCELLENT."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"4\"> <img src=\"images/articles/stars-4.gif\" border=\"0\" alt=\""._VERYGOOD."\" title=\""._VERYGOOD."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"3\"> <img src=\"images/articles/stars-3.gif\" border=\"0\" alt=\""._GOOD."\" title=\""._GOOD."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"2\"> <img src=\"images/articles/stars-2.gif\" border=\"0\" alt=\""._REGULAR."\" title=\""._REGULAR."\"><br>";
$ratecontent .= "<input type=\"radio\" name=\"score\" value=\"1\"> <img src=\"images/articles/stars-1.gif\" border=\"0\" alt=\""._BAD."\" title=\""._BAD."\"><br><br>";
$ratecontent .= "<center><input type=\"submit\" value=\""._CASTMYVOTE."\"></center></form><br>";
themesidebox($ratetitle, $ratecontent);

$optiontitle = ""._OPTIONS."";
$optionbox .= "<br>&nbsp;<img src=\"images/print.gif\" border=\"0\" alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"16\" height=\"11\">&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&amp;file=print&amp;sid=$sid\">"._PRINTER."</a><br><br>";
$optionbox .= "&nbsp;<img src=\"images/friend.gif\" border=\"0\" alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"16\" height=\"11\">&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&amp;file=friend&amp;op=FriendSend&amp;sid=$sid\">"._FRIEND."</a><br><br>\n";
if (is_admin($admin)) {
    $optionbox .= "<center><b>"._ADMIN."</b><br>[ <a href=\"admin.php?op=adminStory\">"._ADD."</a> | <a href=\"admin.php?op=EditStory&sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid\">"._DELETE."</a> ]</center>";
}
*********themesidebox($optiontitle, $optionbox);
/////////////////ตัดถึงตรงนี้

echo "</td></tr></table>\n";
cookiedecode($user);
if ((($mode != "nocomments") OR ($acomm == 0)) AND ($articlecomm == 1)) {
    include("modules/News/comments.php");
}
include ("footer.php");

?>

ถ้าตัดแบบนี้ออกมาบิดเบี้ยว อาจต้องวิเคราะห์ว่าเราขาดส่วนใดของtable เช่น /td หรือ /tr






อ้อ ลืม ไฟล์นี้คือ modules/news/article.php เด้อ






ทำตามที่แนะนำแล้ว ได้ตามที่ต้องการเลย ขอบคุณคุณ kijakarn มากครับ




Attention! T!sitemap page!คุณอยู่ที่ sitemap ของ ไทยเฮลท์ สุขภาพ โรค ไข้ ยา บทความ ข่าว ไปที่เนื้อหาเดิม-original content
เว็บสุขภาพ อัพเดตโดยแพทย์ โปรแกรม คลินิค บทความ ข่าว เกมส์ เกม และเรื่องโรคต่างๆ เช่น โรคเบาหวาน ไขมัน หัวใจ ไข้หวัดนก ไข้เลือดออก โรคเอดส์ คลิปวีดีโอ ค้นหา ข้อมูล ภาพ ของไทย

Search from web


เว็บ คีย์เวอร์ด คลิปวีดีโอ




ไทยเฮลท์

Valid HTML 4.01 Valid CSS