สุขภาพ thaihealth ข่าว ดูทีวี โรค: Forums

www.thaihealth.net/h :: ดูกระทู้ - อยากเอา leftbar ออกครับ (อ่านในเว็บบอร์ดแล้วหาไม่เจอจริงๆ )
 คำถามถามบ่อยของกระดานข่าวคำถามถามบ่อยของกระดานข่าว   ค้นหาค้นหา   กลุ่มผู้ใช้งานกลุ่มผู้ใช้งาน   ข้อมูลส่วนตัวข้อมูลส่วนตัว   เข้าระบบเพื่อตรวจข่าวสารส่วนตัวของคุณเข้าระบบเพื่อตรวจข่าวสารส่วนตัวของคุณ   เข้าระบบเข้าระบบ 

อยากเอา leftbar ออกครับ (อ่านในเว็บบอร์ดแล้วหาไม่เจอจริงๆ )

 
ตั้งกระทู้ใหม่   ตอบกระทู้    www.thaihealth.net/h หน้ากระดานข่าวหลัก -> Tips&Trick for Nukeplus&phpNUKE
ดูกระทู้ก่อนนี้ :: ดูกระทู้ถัดไป  
ผู้ส่ง ข้อความ
บุคคลทั่วไป






Level: 83
HP: 39639 / 50177  
 79%
MP: 0 / 23957  
 0%
EXP: 42 / 914  
 4%
ตอบตอบ: พฤ. มิย. 26, 2003 11:55 pm    ชื่อกระทู้: อยากเอา leftbar ออกครับ (อ่านในเว็บบอร์ดแล้วหาไม่เจอจริงๆ ) ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

ผมได้ลองอ่านบทความการเอา header กับ leftbar ออกแล้วครับ

ทำได้ แต่เวลาที่ headbar หายไปจะทำให้ไม่สะดวกเวลากลับไปหน้าเว็บครับ

มีวิธี ทำให้กลับไปหน้าแรกของเว็บได้หรือป่าวครับ หรือเอาแค่ตัดเฉพาะ leftbar ให้เหลือแต่ headbar ก็ได้ครับ

นี่คือโค้ดของ theme ผมนะครับ

<?php

/************************************************************/
/* Theme Name: Helius */
/* Theme Design: mikem (http://www.nukemods.com) */
/* version 2.0 */
/* Theme inspired by the phpbb2 style Helius by */
/* Cyberalien (http://www.trushkin.net/) */
/* */
/* Thai Edition by */
/* thainuke (http://www.thainuke.net/) */
/************************************************************/

/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/

$bgcolor1 = "#EDEFF2";
$bgcolor2 = "#DDE2EC";
$bgcolor3 = "#EDEFF2";
$bgcolor4 = "#DDE2EC";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

include("themes/Helius/tables.php");

/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with:
if ($name=='Forums') {
}
else
if ($name=='&ordf;&times;&egrave;&Iacute;modules') {
}
else
if ($name=='&ordf;&times;&egrave;&Iacute;modules) {
}
else {
blocks(left);
} */
/************************************************************/

function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];

if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];

/* Check if this impression is the last one and print the banner */

if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\">$alttext</a>";
}
}
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "";

if ($username == "Anonymous") {
$theuser = " ;; ;;<a href=\"modules.php?name=Your_Account&op=new_user\">&Ecirc;&Aacute;&Ntilde;&curren;&Atilde;&Ecirc;&Aacute;&Ograve;&ordf;&Ocirc;&iexcl;";
} else {
$theuser = " ;; ;;&Ecirc;&Ccedil;&Ntilde;&Ecirc;&acute;&Otilde; $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/Helius/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/Helius/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/

function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
if ($index == 1) {
$tmpl_file = "themes/Helius/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$tmpl_file = "themes/Helius/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo "<center>\n";
$footer_message = footmsg();
echo "</center>\n";
echo "";
echo "
\n";
}

/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
if ($notes != "") {
$notes = "

"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/Helius/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "

"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$tmpl_file = "themes/Helius/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/

function themesidebox($title, $content) {
$tmpl_file = "themes/Helius/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>
กลับไปข้างบน
kijakarn
Site Admin
Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002
ตอบ: 1584

Level: 33
HP: 208 / 2982  
 7%
MP: 1424 / 1424  
 100%
EXP: 89 / 117  
 76%
ตอบตอบ: ศ. มิย. 27, 2003 9:02 am    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

Very Happy อ้างถึงกระทู้นี้ก่อน
http://www.thaihealth.net/h/modules.php?name=Forums&file=viewtopic&t=107&sid=235a60601d45274c53e244d172445af1
แล้วเอาส่วนที่เป็นสีแดงคือ
โค้ด:
//
if ($name!=='Forums') {
/* function to hide header and sidebar */
//


มาใส่ไว้เหนือบรรทัดนี้ของtheme คุณ
โค้ด:
blocks(left);



เสร็จแล้วมาดูตรงนี้
โค้ด:


$tmpl_file = "themes/Helius/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}


โมดิฟายใหม่เป็น
โค้ด:

$tmpl_file = "themes/Helius/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;



}
else{
$tmpl_file = "themes/Helius/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
}



แก้ไขครั้งสุดท้ายโดย kijakarn เมื่อ ส. มิย. 28, 2003 11:29 pm, แก้ไขทั้งหมด 3 ครั้ง
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว เข้าชมเว็บไซต์ MSN
kijakarn
Site Admin
Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002
ตอบ: 1584

Level: 33
HP: 208 / 2982  
 7%
MP: 1424 / 1424  
 100%
EXP: 89 / 117  
 76%
ตอบตอบ: ศ. มิย. 27, 2003 9:04 am    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

โค้ด:
* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with:
if ($name=='Forums') {
}
else
if ($name=='ª×èÍmodules') {
}
else
if ($name=='ª×èÍmodules) {
}
else {
blocks(left);
} */

ตรงนี้ของคุณตัดทิ้งได้เลย เป็น comment เปลืองแบนด์วิธ

_________________
เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- .
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว เข้าชมเว็บไซต์ MSN
maruko
EntryStar
EntryStar


เข้าร่วมเมื่อ: Mar 04, 2004
ตอบ: 1
ที่อยู่: USA

Level: 1
HP: 0 / 18  
 0%
MP: 8 / 8  
 100%
EXP: 0 / 9  
 0%
ตอบตอบ: ศ. มีค. 05, 2004 10:15 am    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

แอบมาขโมยครับ ใช้ได้ดี เลย ขอบคุญมากครับ
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว
kijakarn
Site Admin
Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002
ตอบ: 1584

Level: 33
HP: 208 / 2982  
 7%
MP: 1424 / 1424  
 100%
EXP: 89 / 117  
 76%
ตอบตอบ: จ. พค. 02, 2005 2:17 pm    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

ต้องอธิบายนิดหนึ่งเพราะสามารถเอาหลักการไปใช้กับอื่นๆอีกมาก


function
if{
}else{
}

นี่คือการกำหนดข้อแม้ ว่าถ้าเจอภาวะที่กำหนด แล้วจะทำงาน หรือยกเว้นไม่ทำงานก้อได้
เช่น
if($name=Forums){
echo "กระดานข่าว";
}else{
echo "ไม่ใช่กระดานข่าว";
}


$name
คือ ตัวแปรมาตรฐานที่เอามาจาก nuke เป็นการบอกว่า ตอนนี้ เราอยู่ในการใช้งานโมดูลอะไร

ถ้า $name!=Forums ก็ความหมายตรงข้าม คือจะตรวจสอบว่า ถ้าไม่ใช่ forums ถึงจะทำงานในส่วนที่วงเล็บ ถ้าเป็น forums จะข้ามไป

_________________
เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- .
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว เข้าชมเว็บไซต์ MSN
kuka
EntryStar
EntryStar


เข้าร่วมเมื่อ: May 16, 2005
ตอบ: 1

Level: 1
HP: 0 / 18  
 0%
MP: 8 / 8  
 100%
EXP: 0 / 9  
 0%
ตอบตอบ: อ. พค. 17, 2005 8:53 am    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

ผมเจอปัญหาแบบรูปที่แนบมาครับ
ใช้ทีม tweakit



pic.gif
 รายละเอียด:
 ขนาด:  50.01 KB
 เปิดชมไปแล้ว:  8047 ครั้ง

pic.gif


กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว
kijakarn
Site Admin
Site Admin


เข้าร่วมเมื่อ: Nov 14, 2002
ตอบ: 1584

Level: 33
HP: 208 / 2982  
 7%
MP: 1424 / 1424  
 100%
EXP: 89 / 117  
 76%
ตอบตอบ: อาทิตย์ สค. 14, 2005 3:18 am    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

ถ้างั้นต้องไปดู ในส่วนก่อนหน้านี้ ที่เป็น <table width=100%><tr><td width=120> คือเนื้อที่ที่เหลือเผื่อไว้สำหรับ left block
คงไม่ต้องบอกนะว่าต้องทำไงอีก อิอิ

_________________
เชิญสอบถามปัญหาในกระดานข่าวอันใหม่- .
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว เข้าชมเว็บไซต์ MSN
แสดงการตอบก่อนนี้:   
ตั้งกระทู้ใหม่   ตอบกระทู้    www.thaihealth.net/h หน้ากระดานข่าวหลัก -> Tips&Trick for Nukeplus&phpNUKE ปรับเวลา GMT + 7 ชั่วโมง
หน้า 1 จากทั้งหมด 1

 
ไปยัง:  
คุณ ไม่สามารถ ตั้งกระทู้ใหม่ในกระดานนี้
คุณ ไม่สามารถ ตอบกระทู้ในกระดานนี้
คุณ ไม่สามารถ แก้ไขการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลบการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลงคะแนนในแบบสำรวจในกระดานนี้
คุณ ไม่สามารถแนบไฟล์หรือภาพประกอบในกระดานนี้
คุณสามารถ ดาวน์โหลดไฟล์จากกระดานนี้

Powered by phpBB 2.0.8 © 2001 phpBB Group
phpBB port v2.1 based on Tom Nitzschner's phpbb2.0.6 upgraded to phpBB 2.0.4 standalone was developed and tested by:
ArtificialIntel, ChatServ, mikem,
sixonetonoffun and Paul Laudanski (aka Zhen-Xjell).

Version 2.1 by Nuke Cops ฉ 2003 http://www.nukecops.com


Advertisement::Laser Hair Removal::Laser Rejuvenation::Botox for Wrinkle::First IPL and Plasmalite in Pattaya:: Vascular telangiectasias::contact ::laser@thaihealth.net::www.laserskinspecialist.com

สุขภาพ ข่าว ข่าวสุขภาพ บทความ โรค เจ็บป่วย ความรู้ โรคต่างๆ ความบันเทิง ดูทีวี ฟังเพลง เกมส์ เซ็กซ์ เว็บบอร์ด ตอบปัญหา เด็ก วัยรุ่น โรคเอดส์ โรคเบาหวาน โรคมะเร็ง ฮอร์โมน สมุนไพร ความงาม antiaging รู้ไหม คนค้นหาเรื่องสุขภาพอะไรมากที่สุด สิว รักษาสิว ลดน้ำหนัก ลดน้ำหนัก ลดความอ้วน เพศศึกษา sex โค้ด hi5 หาเพื่อน ไง
บริการสำหรับเว็บมาสเตอร์ นำข่าว สุขภาพ ข่าวรายวันสาระ และคลิปวิดีโอจากไทยเฮลท์ไปไว้หน้าเว็บท่าน ด้วยระบบ RSS และ RSS2.0

game2

newข่าววันนี้  ข่าวการเมือง ข่าวบันเทิง ดารา ก๊อซซิปอัพเดตรายวัน ดูที่นี่ ข่าวบันเทิง ข่าวกีฬา ข่าวกีฬา


หน้าหลักthaihealth | หน้าแรก | ไทยเฮลท์ทั้งหมด | คู่มือใช้งาน | ติดต่อโฆษณา | disclaimer | privacy policy


สมัครประกวด100อันดับเว็บไซด์สุขภาพยอดเยี่ยมของไทย ฟรี สมัครเข้ามาเลยค่ะ

affiliates: aesthetic and beauty knowledge| globalwarming awareness2007 | thai seo | โปรโมทเว็บ โปรโมทคลินิค | เกมส์

theme design by doctornukeเว็บมาสเตอร์ นพ.กิจการ จันทร์ดา


Web site engine's code is Copyright ฉ 2002 by PHP-nuke. All Rights Reserved. PHP-nuke is Free Software released under the GNU/GPL license Modification for optimal use by DocHost and DoctorNUKE
การสร้างหน้าเอกสาร: 0.492 วินาที