chemejotie โพสต์ 2010-5-22 10:32:00

แจกโค้ดเมนูส่วนตัวจากสกิน bluecool ครับ(ใช้ได้ทุกสกิน) เครดิตคุณ MinT

แก้ไขล่าสุดโดย chemejotie เมื่อ 2010-7-21 11:20

แก้ไขล่าสุดโดย chemejotie เมื่อ 2010-7-21 11:19

http://www.discuzthai.com/redirect.php?goto=findpost&ptid=18804&pid=221927

เอามาเรียบเรียงใหม่ครับ
ตัวอย่าง :

http://www.uppicweb.com/x/i/il/503cats.jpg

เปิดไฟล์css_append.htmหรือcss_commond.htm
ค้นหา....#nav { margin: -8px auto 0; background: url({IMGDIR}/icon_nav.gif) no-repeat 0 50%;ใส่โค๊ดนี้....ด้านบน
.index_bar      {width: {WRAPWIDTH}; margin: 0 auto; height:104px; clear: both; background: #FFF url({STYLEIMGDIR}/info_bar.gif) no-repeat;}
.index_bar .avatar                {float:left; width: 100px; height:90px; padding-left: 7px; text-align: left;}
.index_bar .avatar img      {border: 1px solid #CCC; background: #FFF; padding: 1px; width: 82px; height: 82px;}
.shezhi                {float:left; line-height:20px; color: #333; text-align:left;}
.search_fatie      {float: right; width: 450px; overflow: hidden;}
.search                {float:right; width: 258px; height:28px; margin: 6px 10px; background: url({STYLEIMGDIR}/search_bg.gif) no-repeat;}
.search .input_k      {float: left; width: 200px; height: 24px; border: 1px solid #FFF; background: #FFF; padding: 0; margin: 2px 0 0 8px; font-size: 14px; }
.search .button_k      {float: right; width: 30px; height: 26px; margin: 0; padding: 0; background: none; border: 0; }
.fatie                {width: 100%; clear: both; text-align: right; padding-right: 12px; color: #107B01;}เปิดไฟล์discuz.htm
ค้นหา.....{subtemplate header}หรือไว้ตามตำแหน่งที่ต้องการ ใส่โค๊ดนี้...ต่อเลยครับ...<div class="index_bar">
      <div class="clearbar"></div>
      <!--{if $discuz_uid}-->
                <div class="avatar">{echo discuz_uc_avatar($GLOBALS['discuz_uid'], 'middle')}</div>
                <div class="shezhi">
                        {lang home_welcome}      <strong>{$discuz_userss}</strong><br />
                        <script language="javaScript">
now = new Date(),hour = now.getHours()
if (hour < 5){document.write("สวัสดี...ราตรีสวัสดิ์!")}
else if (hour < 11){document.write("สวัสดี..ยามเช้า !")}
else if (hour < 14){document.write("สวัสดี..ยามเีที่ยง !")}
else if (hour < 18){document.write("สวัสดี..ยามบ่าย !")}
else if (hour < 24){document.write("สวัสดี..ยามค่ำ !")}
</script>
                        {lang home_lastvisit} {$lastvisit} :
                        {lang posts}: $GLOBALS<br />
                        <a href="search.php?srchfrom=$newthreads&amp;searchsubmit=yes">{lang show_newthreads}</a> &nbsp; <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)">{lang mark_read}</a>
                </div>
      <!--{else}-->
                <div class="avatar"><img src="{UC_API}/images/noavatar_middle.gif"></div>
                <div class="shezhi">
                        <a href="$GLOBALS" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;">$GLOBALS</a><br />
                        <a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">{lang login}</a>
                </div>
      <!--{/if}-->
      <div class="search_fatie">
                <div class="search">
                        <form method="post" action="search.php?searchsubmit=yes" onSubmit="this.target='_blank';">
                              <input type="hidden" name="searchsubmit" value="yes">
                              <input class="input_k" type="text" name="srchtxt" value="">
                              <button type="submit" name="searchsubmit" value="" class="button_k" /></button>
                        </form>
                </div>
                <div class="fatie">{lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata</em>, {lang index_members}: <em>$totalmembers</em>,</div><ul><em>{lang index_members}: ชาย :<img src="images/default/online_boy.gif" alt="เพศชาย"> <font color="blue">{$malenum} คน</font>,หญิง :<img src="images/default/online_girl.gif" alt="เพศหญิง"> <font color="red"> {$femalenum} คน</font>, ไม่แสดง :<img src="images/default/online_unknow.gif" alt=""> <font color="green">{$nofmnum} คน</font></em></br> :<em>{lang welcome_newmember} :<cite><a href="space.php?username=$memberenc"><font color="green"><b>$lastmember</b></font></a></cite></em></ul>
      </div>
</div>ตรงภาพเพศชายหญิงหาภาพใส่เองนะครับแถมให้
เอาของ7.0ทดลองใน7.2ผ่านครับ

เครดิตคุณ MinT
ตำแหน่งภาพที่ต้องอัพไฟล์(ต้องทำภาพเองนะครับ)

./images/สกินที่ใช้/info_bar.gif
พื้นหลังส่วนเมนูทั้งหมดนะครับ

./images/สกินที่ใช้/search_bg.gif
พื้นหลังส่วนค้นหา ขนาด 258x28px

ปรับขนาดความยาวเมนุได้ที่
.index_bar      {width: ความยาวที่ต้องการ; margin: 0 auto; height:104px; clear: both; background: #FFF url({STYLEIMGDIR}/info_bar.gif) อัพเดทแคช เป็นอันเสร็จครับ
(ถ้าไม่อัพเดทแคช จะเละนะเออ)

ใช้ได้ทุกสกินครับ
เครดิตคุณ MinT อีกรอบครับ

http://www.uppicweb.com/x/i/il/503cats.jpg

kim2543 โพสต์ 2010-5-22 10:36:52

แก้ไขล่าสุดโดย kim2543 เมื่อ 2010-5-22 10:39

ขอบคุณมากๆครับแต่มีแล้ว

chemejotie โพสต์ 2010-5-22 10:40:19

แก้ไขล่าสุดโดย kim2543 เมื่อ 2010-5-22 10:39

ขอบคุณมากๆครับแต ...
ต้นฉบับโพสต์โดย kim2543 เมื่อ 2010-5-22 10:36 http://www.discuzthai.com/images/common/back.gif


    ส่วนยามเช้ายามเย็น แล้วก็สมาชิกใหม่คุณ MinT แถมให้มั้งครับ อิอิ

sonicneo โพสต์ 2010-5-22 11:05:35

ขอบคุณครับ

sonicneo โพสต์ 2010-5-22 11:07:26

ขอบคุณครับ

damrongsak โพสต์ 2010-5-22 11:13:00

ขอบคุณมากครับ สวยมากๆๆ

Insane โพสต์ 2010-5-22 11:29:18

อุตส่าห์ขโมยมาได้ มาแจกทำมายย {:22_877:}

chemejotie โพสต์ 2010-5-22 11:36:49

อุตส่าห์ขโมยมาได้ มาแจกทำมายย
ต้นฉบับโพสต์โดย Insane เมื่อ 2010-5-22 11:29 http://www.discuzthai.com/images/common/back.gif


    อ่าว เค้าห้ามแจกหรอครับ {:22_859:}

twodef โพสต์ 2010-5-22 12:02:27

แล้วสกินอื่นไม่ได้บ้างหรอ

konggang โพสต์ 2010-5-22 12:09:51

อิอิ อุส่าห์ขโมยมาอ่านะ ^^
หน้า: [1] 2 3 4 5 6 7 8 9 10
ดูในรูปแบบกติ: แจกโค้ดเมนูส่วนตัวจากสกิน bluecool ครับ(ใช้ได้ทุกสกิน) เครดิตคุณ MinT