插件名称不知道该叫什么
原创: 123223
给大家个演示
大概意思就是:
置顶精华分开显示连同投票贴的图标一同移到第一列显示
使得主题标题栏不至于显得很乱
去掉主题栏“置顶I 。。。精华II”等字样显示 改用 图标处alt提示
分级置定和精华图标粗略的做了一下 只是抛砖引玉大家可以自己做漂亮的
把附件中的图标放到默认图片目录下即可
修改方法:
forumdisplay.htm中
查找:
- <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank"><img src="{IMGDIR}/$thread[folder]" border="0"></a></td>
复制代码
替换为:
- <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank">
- <!--{if $thread['displayorder']}-->
- <!--{if $thread['displayorder'] == 1}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin1.gif" border="0"><b>
- <!--{elseif $thread['displayorder'] == 2}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin2.gif" border="0"><b>
- <!--{elseif $thread['displayorder'] == 3}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin3.gif" border="0"><b>
- <!--{/if}-->
- <!--{elseif $thread['poll']}--><img alt="{lang thread_poll} " src="{IMGDIR}/pollsmall.gif" border="0">
- <!--{elseif $thread['digest']}-->
- <!--{if $thread['digest'] == 1}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest1.gif" border="0"><b>
- <!--{elseif $thread['digest'] == 2}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest2.gif" border="0"><b>
- <!--{elseif $thread['digest'] == 3}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest3.gif" border="0"><b>
- <!--{/if}-->
- <!--{else}-->
- <img src="{IMGDIR}/$thread[folder]" border="0">
- <!--{/if}--></a></td>
复制代码
查找:
- <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
- <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
- <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
- <!--{if $thread['new']}--><a href="redirect.php?tid=$thread[tid]&goto=newpost$highlight#newpost"><img src="{IMGDIR}/firstnew.gif" border="0" align="absmiddle"></a> <!--{/if}-->
- <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
- <!--{elseif $thread['digest']}--><img src="{IMGDIR}/digest.gif" align="absmiddle"> {lang thread_digest}<b>{echo substr('III', - $thread['digest'])}</b>:
- <!--{elseif $thread['displayorder']}--><img src="{IMGDIR}/pin.gif" align="absmiddle"> {lang thread_sticky}<b>{echo substr('III', - $thread['displayorder'])}</b>:
- <!--{elseif $thread['poll']}--><img src="{IMGDIR}/pollsmall.gif" align="absmiddle"> {lang thread_poll}:
复制代码
替换为:
- <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
- <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
- <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
- <!--{if $thread['new']}--><a href="redirect.php?tid=$thread[tid]&goto=newpost$highlight#newpost"><img src="{IMGDIR}/firstnew.gif" border="0" align="absmiddle"></a> <!--{/if}-->
- <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
复制代码
[ 本帖最后由 123223 于 2006-3-5 12:01 编辑 ] |