anuwatdd โพสต์ 2008-8-31 14:10:33

จัดรูปแบบกระทู้ล่าสุดใหม่

DEMO:http://www.ak-soft.co.cc
จัดรูปแบบกระทู้ล่าสุดใหม่ ไม่รู้จะตั้งชื่อว่าอะไร

สามารถทำได้ทั้งสองแบบเลยก็ได้

วิธีการทำ
แบบที่1
เปิด discuz.htm
หา<td class="lastpost">
                                                        <!--{if $forum['permission'] == 1}-->
                                                                {lang private_forum}
                                                        <!--{else}-->
                                                                <!--{if $forum['redirect']}-->
                                                                        --
                                                                <!--{elseif is_array($forum['lastpost'])}-->
                                                                        <a href="redirect.php?tid=$forum&goto=lastpost#lastpost">{echo cutstr($forum, 40)}</a>
                                                                        <cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum</cite>
                                                                <!--{else}-->
                                                                        {lang never}
                                                                <!--{/if}-->
                                                        <!--{/if}-->
                                                        </td>เปลี่ยนเป็น<td class="lastpost">
                                                        <!--{if $forum['permission'] == 1}-->
                                                                {lang private_forum}
                                                        <!--{else}-->
                                                                ┌ใน:<!--{if $forum['redirect']}-->
                                                                        --
                                                                <!--{elseif is_array($forum['lastpost'])}-->
                                                        <a href="redirect.php?tid=$forum&goto=lastpost#lastpost">{echo cutstr($forum, 40)}</a>
                                                        <cite>├{lang forum_lastpost_by}:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> <br>└เวลา:$forum</cite>
                                                                <!--{else}-->
                                                                        {lang never}
                                                                <!--{/if}-->
                                                        <!--{/if}-->
                                                        </td>ส่วนที่เปลื่อนแปลง



แบบที่2
แบ่งเป็นคอลั่ม 2,3,4.... สำหรับคนที่แบ่งคอลั่มนะครับ


หา<th width="$cat"{$forum}>
                                                      <h2><a href="forumdisplay.php?fid=$forum">$forum</a><!--{if $forum}--><em> ({lang index_today}: $forum)</em><!--{/if}--></h2>
                                                      <p>{lang forum_threads}: $forum, {lang forum_posts}: $forum</p>
                                                      <!--{if $forum['permission'] == 1}-->
                                                                <p>{lang private_forum}
                                                      <!--{else}-->
                                                                <p>{lang forum_lastpost}:
                                                                        <!--{if is_array($forum['lastpost'])}-->
                                                                              <a href="redirect.php?tid=$forum&goto=lastpost#lastpost">$forum</a>
                                                                              {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
                                                                        <!--{else}-->
                                                                              {lang never}
                                                                        <!--{/if}-->
                                                                </p>
                                                      <!--{/if}-->
                                                </th>เปลี่ยนเป็น<th width="$cat"{$forum}>
        $forum<span class="foruminfo">{lang index_today}:<label style="color:#ff6600">$forum</label>, {lang forum_threads}: $forum, {lang forum_posts}: $forum</span>
┌ใน:<a href="forumdisplay.php?fid=$forum">$forum</a><!--{if $forum}--><em> ({lang index_today}: $forum)</em><!--{/if}-->
                                       
                                                        <!--{if $forum['permission'] == 1}-->
                                                                <p>{lang private_forum}
                                                        <!--{else}-->
                                                                <p>
                                                                        <!--{if is_array($forum['lastpost'])}-->
                                                       
               


                                                                ├เรื่อง:<a href="redirect.php?tid=$forum&goto=lastpost#lastpost">{echo cutstr($forum, 40)}</a>

<br>└{lang forum_lastpost_by}:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum                                                                        <!--{else}-->
                                                                                {lang never}
                                                                        <!--{/if}-->
                                                                </p>
                                                        <!--{/if}-->
                                                </th>




เปิด css_common.htmเพิ่ม style นี้ ต่อไปที่บรรทัดสุดท้ายp.subject{ font-weight:bold}
span.foruminfo{ float:right;font-weight:normal; color: #999}
p.lastpost{ }
div.forum_ico{ float:left;padding:2px 5px 2px 0;}
img.threadpic{ border:0; vertical-align:middle}
สำหรับท่านต้องการเอาไอ้คอนออกและใส่ใอคอนที่ต้องการแทนได้เลย

หาต่อ.forumlist th { padding-left: 55px !important; }
.forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; }
.forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }ลบทิ้งเลย
จบครับ
ขอคุณกระทู้นี้ครับ

[ แก้ไขล่าสุด anuwatdd เมื่อ 2008-9-7 03:42 ]

acaz โพสต์ 2008-8-31 14:33:37

เยี่ยมครับ

SHiSHi โพสต์ 2008-8-31 15:44:41

ขอบคุณครับ

An_ant โพสต์ 2008-8-31 16:59:12

เดี๋ยวว่าง ๆ ต้องเอามั่งแล้ว แบบนี้ เข้าท่าเข้าทาง ดูดีออก :handshake

anuwatdd โพสต์ 2008-8-31 18:55:44

ขอคุณครับมีเงินซื้อของแล้ว:lol

Anarchy โพสต์ 2008-8-31 19:19:17

เท่ห์ดีนะคับ

IndarknesS โพสต์ 2008-8-31 20:23:27

ขอบคุณครับผม

jame02 โพสต์ 2008-8-31 23:56:45

ขอคุณครับundefined undefined

hikaru555 โพสต์ 2008-9-1 00:01:47

ขอบคุณครับ

tossapon99 โพสต์ 2008-9-1 00:33:06

thank you มากมาย ครับผม อิอิ
หน้า: [1] 2 3
ดูในรูปแบบกติ: จัดรูปแบบกระทู้ล่าสุดใหม่