- เครดิต
- 1701
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 50
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
แก้ไขครั้งสุดท้ายโดย por201502 เมื่อ 2011-10-8 02:47
แก้ไขครั้งสุดท้ายโดย por201502 เมื่อ 2011-10-8 02:19
ใช้งานได้ทั้ง x2 และ 1.5
ไหนดูหน่อยซิว่าเรามีอะไรบ้าง- แสดงรูปประจำตัวของผู้ตั้งกระทู้นั้นๆ
- จัดรูปแบบรายระเอียดกระทู้
- เพิ่มรูปภาพกั้นระหว่างกระทู้ปักหมุกกับกระทู้ปกติ
คัดลอกไปที่คลิปบอร์ด วิธีติดตั้ง
ไปที่ template/สกิน/forum
จากนั้นโหลดไฟล์ forumdisplay_list.htm ต่อไปนี้ ทับไปเลยครับ
*** คำเตือน โปรดสำรองไฟล์ forumdisplay_list.htm เก่า ไว้ด้วย
สำหรับโค้ดที่เพิ่มมานั้นคุณสามารถแทรกเองได้โดย
เปิดไฟล์
x2 ค้นหา1.5 ค้นหา- <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">
- <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
- <tbody>
- <tr>
- <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td class="o"> </td><!--{/if}-->
- <th><strong class="xst">{lang announcement}: <!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></strong></th>
- <td class="by">
- <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>
- <em>$announcement[starttime]</em>
- </td>
- <td class="num"> </td>
- <td class="by"> </td>
- </tr>
- </tbody>
- <!--{/if}-->
- <!--{if $_G['forum_threadcount']}-->
- <!--{loop $_G['forum_threadlist'] $key $thread}-->
- <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
- <tbody>
- <tr class="ts">
- <td> </td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
- <th>{lang forum_thread}</th><td> </td><td> </td><td> </td>
- </tr>
- </tbody>
- <!--{/if}-->
- <!--{if $separatepos <= $key + 1}-->
- <!--{ad/threadlist}-->
- <!--{/if}-->
- <tbody id="$thread[id]">
- <tr>
- <td class="icn">
- <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if in_array($thread['displayorder'], array(1, 2, 3, 4))}{if $thread['displayorder'] == 1}{lang thread_type1} - {elseif $thread['displayorder'] == 2}{lang thread_type2} - {elseif $thread['displayorder'] == 3}{lang thread_type3} - {elseif $thread['displayorder'] == 4}{lang thread_type4} - {/if}{/if}{lang target_blank}" target="_blank">
- <!--{if $thread[folder] == 'lock'}-->
- <img src="{IMGDIR}/folder_lock.gif" />
- <!--{elseif $thread['special'] == 1}-->
- <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
- <!--{elseif $thread['special'] == 2}-->
- <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
- <!--{elseif $thread['special'] == 3}-->
- <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
- <!--{elseif $thread['special'] == 4}-->
- <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
- <!--{elseif $thread['special'] == 5}-->
- <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
- <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
- <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
- <!--{else}-->
- <img src="{IMGDIR}/folder_$thread[folder].gif" />
- <!--{/if}-->
- </a>
- </td>
- <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
- <td class="o">
- <!--{if $thread['fid'] == $_G[fid]}-->
- <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
- <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
- <!--{else}-->
- <input type="checkbox" disabled="disabled" />
- <!--{/if}-->
- <!--{else}-->
- <input type="checkbox" disabled="disabled" />
- <!--{/if}-->
- </td>
- <!--{/if}-->
- <th class="$thread[folder]">
- <!--{hook/forumdisplay_thread $key}-->
- $thread[sorthtml] $thread[typehtml]
- <!--{if $thread['moved']}-->
- {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <!--{if $thread['isgroup'] == 1}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- [<a href="forum.php?mod=forumdisplay&action=list&fid={$groupnames[$thread[tid]][fid]}" target="_blank">{$groupnames[$thread[tid]][name]}</a>]
- <!--{/if}-->
- <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1} target="_blank"{/if} onclick="atarget(this)" class="xst">$thread[subject]</a>
- <!--{if $thread[icon] >= 0}-->
- <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
- <!--{/if}-->
- <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
- <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
- <!--{if $thread['price'] > 0}-->
- <!--{if $thread['special'] == '3'}-->
- - <span style="color: #C60">[{lang thread_reward}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}]</span>
- <!--{else}-->
- - [{lang price} {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}]
- <!--{/if}-->
- <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- - [{lang reward_solved}]
- <!--{/if}-->
- <!--{if $thread['attachment'] == 2}-->
- <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
- <!--{elseif $thread['attachment'] == 1}-->
- <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
- <!--{/if}-->
- <!--{if $thread['displayorder'] == 0}-->
- <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
- <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
- <!--{/if}-->
- <!--{if $thread[heatlevel]}-->
- <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />
- <!--{/if}-->
- <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
- <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
- <!--{/if}-->
- <!--{if $thread['rate'] > 0}-->
- <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
- <!--{elseif $thread['rate'] < 0}-->
- <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $thread[multipage]}-->
- <span class="tps">$thread[multipage]</span>
- <!--{/if}-->
- <!--{if $thread['weeknew']}-->
- <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
- <!--{/if}-->
- </th>
- <td class="by">
- <!--{hook/forumdisplay_author $key}-->
- <cite>
- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}-->$verify[$thread[authorid]]<!--{/if}-->
- <!--{else}-->
- <!--{if $_G['forum']['ismoderator']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]" c="1">{lang anonymous}</a>
- <!--{else}-->
- {lang anonymous}
- <!--{/if}-->
- <!--{/if}-->
- </cite>
- <em>$thread[dateline]</em>
- </td>
- <td class="num"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2">$thread[replies]</a><em><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></td>
- <td class="by">
- <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
- <em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
- </td>
- </tr>
- </tbody>
- <!--{/loop}-->
- <!--{else}-->
- <tbody><tr><th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
- <!--{/if}-->
- </table>
คัดลอกไปที่คลิปบอร์ด จากนั้น นำโค้ดนี่ใส่ทับลงไป- <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">
- <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
- <tbody>
- <tr>
- <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}-->
- <td class="30"> </td>
- <!--{/if}-->
- <th colspan="30" ><strong class="xst">{lang announcement}:
- <!--{if empty($announcement['type'])}-->
- <a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a>
- <!--{else}-->
- <a href="$announcement[message]" target="_blank">$announcement[subject]</a>
- <!--{/if}-->
- </strong></th>
- <td width="185" height="38" align="right" class="by"> </td>
- <td class="num"> </td>
- <td class="by"> </td>
- </tr>
- </tbody>
- <!--{/if}-->
- <!--{if $_G['forum_threadcount']}-->
- <!--{loop $_G['forum_threadlist'] $key $thread}-->
- <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
- <tbody>
- <tr class="ts">
- <td> </td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}-->
- <td> </td>
- <!--{/if}-->
- <th><img src="http://bbs.animeox.com/images/default/up4.png" width="450" height="18" /></th>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </tbody>
- <!--{/if}-->
- <!--{if $separatepos <= $key + 1}-->
- <!--{ad/threadlist}-->
- <!--{/if}-->
- <tbody id="$thread[id]">
- <tr>
- <td class="icn"><a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if in_array($thread['displayorder'], array(1, 2, 3, 4))}{if $thread['displayorder'] == 1}{lang thread_type1} - {elseif $thread['displayorder'] == 2}{lang thread_type2} - {elseif $thread['displayorder'] == 3}{lang thread_type3} - {elseif $thread['displayorder'] == 4}{lang thread_type4} - {/if}{/if}{lang target_blank}" target="_blank">
- <!--{if $thread[folder] == 'lock'}-->
- <img src="{IMGDIR}/folder_lock.gif" />
- <!--{elseif $thread['special'] == 1}-->
- <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
- <!--{elseif $thread['special'] == 2}-->
- <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
- <!--{elseif $thread['special'] == 3}-->
- <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
- <!--{elseif $thread['special'] == 4}-->
- <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
- <!--{elseif $thread['special'] == 5}-->
- <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
- <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
- <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
- <!--{else}-->
- <img src="{IMGDIR}/folder_$thread[folder].gif" />
- <!--{/if}-->
- </a> </td>
- <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
- <!--{/if}-->
- <td class="o"><img src="uc_server/avatar.php?uid=$thread[authorid]size=big" class="ava_border" width="40px" height="40px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" /></td>
- <th align="left" colspan="30"><div class="avatarbox-info">
- <div class="sub-tit"> $thread[sorthtml] $thread[typehtml]
- <!--{if $thread['moved']}-->
- {lang thread_moved}:
- <!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <!--{if $thread['isgroup'] == 1}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- [<a href="forum.php?mod=forumdisplay&action=list&fid={$groupnames[$thread[tid]][fid]}" target="_blank">{$groupnames[$thread[tid]][name]}</a>]
- <!--{/if}-->
- <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1} target="_blank"{/if} onclick="atarget(this)" class="xst">$thread[subject]</a>
- <!--{if $thread[icon] >= 0}-->
- <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
- <!--{/if}-->
- <!--{if $stemplate && $sortid}-->
- $stemplate[$sortid][$thread[tid]]
- <!--{/if}-->
- <!--{if $thread['readperm']}-->
- - [{lang readperm} <span class="bold">$thread[readperm]</span>]
- <!--{/if}-->
- <!--{if $thread['price'] > 0}-->
- <!--{if $thread['special'] == '3'}-->
- - <span style="color: #C60">[{lang thread_reward}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}]</span>
- <!--{else}-->
- - [{lang price} {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}]
- <!--{/if}-->
- <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- - [{lang reward_solved}]
- <!--{/if}-->
- <!--{if $thread['attachment'] == 2}-->
- <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
- <!--{elseif $thread['attachment'] == 1}-->
- <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
- <!--{/if}-->
- <!--{if $thread['displayorder'] == 0}-->
- <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
- <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
- <!--{/if}-->
- <!--{if $thread[heatlevel]}-->
- <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />
- <!--{/if}-->
- <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
- <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
- <!--{/if}-->
- <!--{if $thread['rate'] > 0}-->
- <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
- <!--{elseif $thread['rate'] < 0}-->
- <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $thread[multipage]}-->
- <span class="tps">$thread[multipage]</span>
- <!--{/if}-->
- <!--{if $thread['weeknew']}-->
- <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
- <!--{/if}-->
- </div>
- <div class="sub-infos">
- <!--{hook/forumdisplay_author $key}-->
- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a>
- <!--{if !empty($verify[$thread['authorid']])}-->
- $verify[$thread[authorid]]
- <!--{/if}-->
- <!--{else}-->
- <!--{if $_G['forum']['ismoderator']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]" c="1">{lang anonymous}</a>
- <!--{else}-->
- {lang anonymous}
- <!--{/if}-->
- <!--{/if}-->
- <span>|</span>
- <!--{if $thread['isgroup'] != 1}-->
- (เข้าชม $thread[views])
- <!--{else}-->
- (<span id="result_box" lang="th" xml:lang="th">เรียก</span>ดู{$groupnames[$thread[tid]][views]})
- <!--{/if}-->
- <span>|</span> <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2">(ตอบ $thread[replies])</a> <span>|</span> โพสต์ล่าสุด:
- <!--{if $thread['lastposter']}-->
- <a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a>
- <!--{else}-->
- {lang anonymous}
- <!--{/if}-->
- </div>
- </div></th>
- <td align="right" colspan="5" class="by"><em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em> </td>
- </tr>
- </tbody>
- <!--{/loop}-->
- <!--{else}-->
- <tbody>
- <tr>
- <th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th>
- </tr>
- </tbody>
- <!--{/if}-->
- </table>
คัดลอกไปที่คลิปบอร์ด |
ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง
คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก
x
คะแนน
-
ดูบันทึกคะแนน
|
|
|
|
|
|