buachompoox โพสต์ 2009-1-27 01:50:36

[MY]Alternative Forumdisplay discuz 7.0



Easy Install upload annex

Uploads Solution :
.images/default/views.gif
.templates/default/css_append.htm
.templates/default/forumdisplay.htm

Last step update css cach !!!



Manual Install Modify templates

1 MOD .templates/default/css_append.htm ADD code.today { width:60px; height:40px; float:left; background:url({IMGDIR}/views.gif) no-repeat center top; margin:1px; text-align:center; color:#217AB3; font-weight:bold; font-size:12px; line-height:18px; font-family: Georgia, "Times New Roman", Times, serif; padding-right:3px;}
.today p { display:block; font-weight:100; margin:0px; padding:0px; border:0px; color:#858D92; font-size:11px; }2. MOD .templates/default/forumdisplay.htm Find Code                <div id="threadlist" class="threadlist datalist" style="position: relative;">
                <form method="post" name="moderate" id="moderate" action="topicadmin.php?action=moderate&fid=$fid&infloat=yes&nopost=yes">
                        <input type="hidden" name="formhash" value="{FORMHASH}" />
                        <input type="hidden" name="listextra" value="$extra" />
                        <table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0" class="datatable">
                                <thead class="colplural">
                                        <tr>
                                                <td class="folder">&nbsp;</td>
                                                <td class="icon">&nbsp;</td>
                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th>{lang subject}</th>
                                                <td class="author">{lang author}</td>
                                                <td class="nums">{lang replies}/{lang views}</td>
                                                <td class="lastpost"><cite>{lang lastpost}</cite></td>
                                        </tr>
                                </thead>

                                <!--{if $page == 1 && !empty($announcement)}-->
                                <tbody>
                                        <tr>
                                                <td class="folder"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
                                                <td class="icon">&nbsp;</td>
                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th class="subject"><strong>{lang announcement}: <!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement#$announcement" target="_blank">$announcement</a><!--{else}--><a href="$announcement" target="_blank">$announcement</a><!--{/if}--></strong></th>
                                                <td class="author">
                                                        <cite><a href="space.php?uid=$announcement">$announcement</a></cite>
                                                        <em>$announcement</em>
                                                </td>
                                                <td class="nums">&nbsp;</td>
                                                <td class="lastpost">&nbsp;</td>
                                        </tr>
                                </tbody>
                                <!--{/if}-->

                                <!--{if $threadcount}-->
                                <!--{loop $threadlist $key $thread}-->

                                <!--{if $separatepos == $key + 1}-->
                                <tbody>
                                        <tr>
                                                <td class="folder"></td><td>&nbsp;</td>
                                                <!--{if $forum['ismoderator']}--><td>&nbsp;</td><!--{/if}-->
                                                <th class="subject">{lang forum_thread}</th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                        </tr>
                                </tbody>
                                <!--{/if}-->
                                <tbody id="$thread" {if in_array($thread['displayorder'], array(4, 5))}style="display: none"{/if}>
                                        <tr>
                                                <td class="folder">
                                                        <a href="viewthread.php?tid=$thread&amp;extra=$extra" title="{lang target_blank}" target="_blank">
                                                        <!--{if $thread == 'lock'}-->
                                                                <img src="{IMGDIR}/folder_lock.gif" alt="Lock" />
                                                        <!--{elseif in_array($thread['displayorder'], array(1, 2, 3))}-->
                                                                <img src="{IMGDIR}/pin_$thread.gif" alt="$threadsticky]" />
                                                        <!--{else}-->
                                                                <img src="{IMGDIR}/folder_$thread.gif" alt="$thread" />
                                                        <!--{/if}-->
                                                        </a>
                                                </td>
                                                <td class="icon">
                                                <!--{if $thread['special'] == 1}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=poll"><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /></a>
                                                <!--{elseif $thread['special'] == 2}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=trade"><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /></a>
                                                <!--{elseif $thread['special'] == 3}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=reward"><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" <!--{if $thread['price'] < 0}-->class="solved"<!--{/if}--> /></a>
                                                <!--{elseif $thread['special'] == 4}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=activity"><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /></a>
                                                <!--{elseif $thread['special'] == 5}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=debate"><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /></a>
                                                <!--{elseif $thread['special'] == 6}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=video"><img src="{IMGDIR}/videosmall.gif" alt="{lang thread_video}" /></a>
                                                <!--{else}-->
                                                        $thread['icon']
                                                <!--{/if}-->
                                                </td>
                                                <!--{if $forum['ismoderator']}-->
                                                <td class="icon">
                                                        <!--{if $thread['fid'] == $fid && $thread['digest'] >= 0}-->
                                                                <input onclick="modclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread" />
                                                        <!--{else}-->
                                                                <input class="checkbox" type="checkbox" disabled="disabled" />
                                                        <!--{/if}-->
                                                </td>
                                                <!--{/if}-->
                                                <th class="subject $thread">
                                                        <label>
                                                        <!--{if $thread['rate'] > 0}-->
                                                                <img src="{IMGDIR}/agree.gif" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
                                                        <!--{elseif $thread['rate'] < 0}-->
                                                                <img src="{IMGDIR}/disagree.gif" alt="{lang rate_credit_reduce}" title="{lang rate_credit_reduce}" />
                                                        <!--{/if}-->
                                                        <!--{if $thread['digest'] > 0}-->
                                                                <img src="{IMGDIR}/digest_$thread.gif" alt="{lang thread_digest} $thread" title="{lang thread_digest} $thread" />
                                                        <!--{/if}-->
                                                        &nbsp;</label>
                                                        <!--{if $thread['moved']}-->
                                                                <!--{if $forum['ismoderator']}-->
                                                                        <a href="topicadmin.php?action=moderate&optgroup=3&operation=delete&tid=$thread" onclick="floatwinreset = 1;floatwin('open_mods', this.href, 250, 215);return false">{lang thread_moved}:</a>
                                                                <!--{else}-->
                                                                        {lang thread_moved}:
                                                                <!--{/if}-->
                                                        <!--{/if}-->
                                                        $thread $thread
                                                        <span id="thread_$thread"><a href="viewthread.php?tid=$thread&amp;extra=$extra"$thread>$thread</a></span>
                                                        <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread</span>]<!--{/if}-->
                                                        <!--{if $thread['price'] > 0}-->
                                                                <!--{if $thread['special'] == '3'}-->
                                                                - <span style="color: #C60">[{lang thread_reward}{$extcredits[$creditstransextra]} <span class="bold">$thread</span> {$extcredits[$creditstransextra]}]</span>
                                                                <!--{else}-->
                                                                - [{lang price} {$extcredits[$creditstransextra]} <span class="bold">$thread</span> {$extcredits[$creditstransextra]}]
                                                                <!--{/if}-->
                                                        <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
                                                                - <span style="color: #269F11">[{lang reward_solved}]</span>
                                                        <!--{/if}-->
                                                        <!--{if $thread['attachment'] == 2}-->
                                                                <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
                                                        <!--{elseif $thread['attachment'] == 1}-->
                                                                <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
                                                        <!--{/if}-->
                                                        <!--{if $thread}-->
                                                                <span class="threadpages">$thread</span>
                                                        <!--{/if}-->
                                                        <!--{if $thread['new']}-->
                                                                <a href="redirect.php?tid=$thread&amp;goto=newpost$highlight#newpost" class="new">New</a>
                                                        <!--{/if}-->
                                                </th>
                                                <td class="author">
                                                        <cite>
                                                        <!--{if $thread['authorid'] && $thread['author']}-->
                                                                <a href="space.php?uid=$thread">$thread</a>
                                                        <!--{else}-->
                                                                <!--{if $forum['ismoderator']}-->
                                                                        <a href="space.php?uid=$thread">{lang anonymous}</a>
                                                                <!--{else}-->
                                                                        {lang anonymous}
                                                                <!--{/if}-->
                                                        <!--{/if}-->
                                                        </cite>
                                                        <em>$thread</em>
                                                </td>
                                                <td class="nums"><strong>$thread</strong>/<em>$thread</em></td>
                                                <td class="lastpost">
                                                        <cite><!--{if $thread['lastposter']}--><a href="{if $thread != -2}space.php?username=$thread{else}viewthread.php?tid=$thread&amp;page={echo max(1, $thread);}{/if}">$thread</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
                                                        <em><a href="{if $thread != -2}redirect.php?tid=$thread&amp;goto=lastpost$highlight#lastpost{else}viewthread.php?tid=$thread&amp;page={echo max(1, $thread);}{/if}">$thread</a></em>
                                                </td>
                                        </tr>
                                </tbody>
                                <!--{/loop}-->
                                <tfoot class="colplural">
                                        <tr>
                                                <td class="folder">&nbsp;</td>
                                                <td class="icon">&nbsp;</td>
                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th>
                                                        <a href="javascript:;" id="filtertype" class="dropmenu" onclick="showMenu(this.id);">{lang type}</a>
                                                        <a href="javascript:;" id="filterorder" class="dropmenu" onclick="showMenu(this.id);">{lang orderby}</a>
                                                </th>
                                                <td class="author">
                                                        <a href="javascript:;" id="filtertime" class="dropmenu" onclick="showMenu(this.id);">{lang dateline_range}</a>
                                                </td>
                                                <td class="nums">&nbsp;</td>
                                                <td class="lastpost">&nbsp;</td>
                                        </tr>
                                </tfoot>
                        <!--{else}-->
                                <tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody>
                        <!--{/if}-->
                        </table>
                        <!--{if $forum['ismoderator'] && $threadcount}-->
                                {template topicadmin_modlayer}
                        <!--{/if}-->

                </form>
                </div>Change It CODE !!!                <div id="threadlist" class="threadlist datalist" style="position: relative;">
                <form method="post" name="moderate" id="moderate" action="topicadmin.php?action=moderate&fid=$fid&infloat=yes&nopost=yes">
                        <input type="hidden" name="formhash" value="{FORMHASH}" />
                        <input type="hidden" name="listextra" value="$extra" />
                        <table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0" class="datatable">
                                <thead class="colplural">
                                        <tr>
                                                <td class="folder">&nbsp;</td>

                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th>{lang subject}</th>
                                                <td class="nums">&nbsp;</td>
                                        </tr>
                                </thead>

                                <!--{if $page == 1 && !empty($announcement)}-->
                                <tbody>
                                        <tr>
                                                <td class="folder"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
                                               
                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th class="subject"><strong>{lang announcement}: <!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement#$announcement" target="_blank">$announcement</a><!--{else}--><a href="$announcement" target="_blank">$announcement</a><!--{/if}--></strong></th>
                                                <td class="nums">&nbsp;</td>
                                        </tr>
                                </tbody>
                                <!--{/if}-->

                                <!--{if $threadcount}-->
                                <!--{loop $threadlist $key $thread}-->

                                <!--{if $separatepos == $key + 1}-->
                                <tbody>
                                        <tr>
                                                <td class="folder"></td>
                                                <!--{if $forum['ismoderator']}--><td>&nbsp;</td><!--{/if}-->
                                                <th class="subject">{lang forum_thread}</th><td>&nbsp;</td>

                                        </tr>
                                </tbody>
                                <!--{/if}-->
                                <tbody id="$thread" {if in_array($thread['displayorder'], array(4, 5))}style="display: none"{/if}>
                                        <tr>
                                                <td class="folder">
<div class="today">$thread<p>$thread</p></div>
                                                </td>

                                                <!--{if $forum['ismoderator']}-->
                                                <td class="icon">
                                                        <!--{if $thread['fid'] == $fid && $thread['digest'] >= 0}-->
                                                                <input onclick="modclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread" />
                                                        <!--{else}-->
                                                                <input class="checkbox" type="checkbox" disabled="disabled" />
                                                        <!--{/if}-->
                                                </td>
                                                <!--{/if}-->
                                                <th class="subject $thread">
                                                        <label>
                                                        <!--{if $thread['rate'] > 0}-->
                                                                <img src="{IMGDIR}/agree.gif" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
                                                        <!--{elseif $thread['rate'] < 0}-->
                                                                <img src="{IMGDIR}/disagree.gif" alt="{lang rate_credit_reduce}" title="{lang rate_credit_reduce}" />
                                                        <!--{/if}-->
                                                        <!--{if $thread['digest'] > 0}-->
                                                                <img src="{IMGDIR}/digest_$thread.gif" alt="{lang thread_digest} $thread" title="{lang thread_digest} $thread" />
                                                        <!--{/if}-->
                                                        &nbsp;</label>
                                                        <!--{if $thread['moved']}-->
                                                                <!--{if $forum['ismoderator']}-->
                                                                        <a href="topicadmin.php?action=moderate&optgroup=3&operation=delete&tid=$thread" onclick="floatwinreset = 1;floatwin('open_mods', this.href, 250, 215);return false">{lang thread_moved}:</a>
                                                                <!--{else}-->
                                                                        {lang thread_moved}:
                                                                <!--{/if}-->
                                                        <!--{/if}-->
                                                        $thread $thread
                                                        <span id="thread_$thread"><a href="viewthread.php?tid=$thread&amp;extra=$extra"$thread>$thread</a></span>
                                                        <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread</span>]<!--{/if}-->
                                                        <!--{if $thread['price'] > 0}-->
                                                                <!--{if $thread['special'] == '3'}-->
                                                                - <span style="color: #C60">[{lang thread_reward}{$extcredits[$creditstransextra]} <span class="bold">$thread</span> {$extcredits[$creditstransextra]}]</span>
                                                                <!--{else}-->
                                                                - [{lang price} {$extcredits[$creditstransextra]} <span class="bold">$thread</span> {$extcredits[$creditstransextra]}]
                                                                <!--{/if}-->
                                                        <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
                                                                - <span style="color: #269F11">[{lang reward_solved}]</span>
                                                        <!--{/if}-->
                                                        <!--{if $thread['attachment'] == 2}-->
                                                                <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
                                                        <!--{elseif $thread['attachment'] == 1}-->
                                                                <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
                                                        <!--{/if}-->
                                                        <!--{if $thread}-->
                                                                <span class="threadpages">$thread</span>
                                                        <!--{/if}-->
                                                        <!--{if $thread['new']}-->
                                                                <a href="redirect.php?tid=$thread&amp;goto=newpost$highlight#newpost" class="new">New</a>
                                                        <!--{/if}-->
<p>
<span>
                                                <!--{if $thread['special'] == 1}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=poll"><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /></a>
                                                <!--{elseif $thread['special'] == 2}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=trade"><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /></a>
                                                <!--{elseif $thread['special'] == 3}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=reward"><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" <!--{if $thread['price'] < 0}-->class="solved"<!--{/if}--> /></a>
                                                <!--{elseif $thread['special'] == 4}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=activity"><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /></a>
                                                <!--{elseif $thread['special'] == 5}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=debate"><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /></a>
                                                <!--{elseif $thread['special'] == 6}-->
                                                        <a href="forumdisplay.php?fid=$fid&amp;filter=video"><img src="{IMGDIR}/videosmall.gif" alt="{lang thread_video}" /></a>
                                                <!--{else}-->
                                                        $thread['icon']
                                                <!--{/if}-->
</span>
                                                        <cite><!--{if $thread['lastposter']}--><a href="{if $thread != -2}space.php?username=$thread{else}viewthread.php?tid=$thread&amp;page={echo max(1, $thread);}{/if}">โพสล่าสุดโดย : $thread</a><!--{else}-->ตอบกลับโดย : {lang anonymous}<!--{/if}--></cite>
                                                        <em><a href="{if $thread != -2}redirect.php?tid=$thread&amp;goto=lastpost$highlight#lastpost{else}viewthread.php?tid=$thread&amp;page={echo max(1, $thread);}{/if}">$thread</a></em>
</p>
                                                </th>
                                                <td class="nums">
                                                        <a href="viewthread.php?tid=$thread&amp;extra=$extra" title="{lang target_blank}" target="_blank">
                                                        <!--{if $thread == 'lock'}-->
                                                                <img src="{IMGDIR}/folder_lock.gif" alt="Lock" />
                                                        <!--{elseif in_array($thread['displayorder'], array(1, 2, 3))}-->
                                                                <img src="{IMGDIR}/pin_$thread.gif" alt="$threadsticky]" />
                                                        <!--{else}-->
                                                                <img src="{IMGDIR}/folder_$thread.gif" alt="$thread" />
                                                        <!--{/if}-->
                                                        </a>
&nbsp;<span id="t$thread" onmouseover="showMenu(this.id)">
                                                <img src="uc_server/avatar.php?uid=$thread&size=small" class="ava_border" width="18px" height="18px" style="border:1px solid #ccc; padding:1px; margin:0px; background-color:#fff;" /><p>$thread</p></span>
</td>
                                        </tr>
                                </tbody>
                                <!--{/loop}-->
                                <tfoot class="colplural">
                                        <tr>
                                                <td class="folder">&nbsp;</td>

                                                <!--{if $forum['ismoderator']}--><td class="icon">&nbsp;</td><!--{/if}-->
                                                <th>
                                                        <a href="javascript:;" id="filtertype" class="dropmenu" onclick="showMenu(this.id);">{lang type}</a>
                                                        <a href="javascript:;" id="filterorder" class="dropmenu" onclick="showMenu(this.id);">{lang orderby}</a>
                                                        <a href="javascript:;" id="filtertime" class="dropmenu" onclick="showMenu(this.id);">{lang dateline_range}</a>
                                                </th>
                                                        <td class="nums">&nbsp;</td>               

                                        </tr>
                                </tfoot>
                        <!--{else}-->
                                <tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody>
                        <!--{/if}-->
                        </table>
                        <!--{if $forum['ismoderator'] && $threadcount}-->
                                {template topicadmin_modlayer}
                        <!--{/if}-->

                </form>
                </div>Last Step Upload IMAGE to.images/default/
**** Hidden Message *****

pppp002 โพสต์ 2009-1-27 05:21:37

ขอดูหน่อย..:P:victory:

suthida โพสต์ 2009-1-27 11:57:57

ขอบคุณค่ะ สกินพื้นๆ ปรับแต่งให้ดูดีได้เลยแบบนี้

HuaHin โพสต์ 2009-1-27 12:01:08

ขอบคุณครับ

psc_chine โพสต์ 2009-1-27 12:07:33

ขอบคุณค้าบบบ

monosolo โพสต์ 2009-1-27 12:21:16

THANKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

boongum โพสต์ 2009-1-27 12:44:29

ขอบคุณมากครับ

MinT โพสต์ 2009-2-1 02:13:47

ขอนำไปใช้หล่ะครับ

mza โพสต์ 2009-2-1 13:06:03

ตามเก็บงาน...:victory:

item โพสต์ 2009-2-2 01:10:32

เลขศูนย์ตรงนี้คืออะไรครับ จำนวนคนให้คะแนน หรือว่าคะแนนรึเปล่าถ้าใช่จะดีมากเลยครับ ผมกำลังพยายามทำอยู่
หน้า: [1] 2 3 4 5 6 7 8 9 10
ดูในรูปแบบกติ: [MY]Alternative Forumdisplay discuz 7.0