Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 帖子列表修改 for 4.0

[复制链接]
123223 发表于 2006-1-19 14:44:11 | 显示全部楼层 |阅读模式
插件名称不知道该叫什么

原创: 123223

给大家个演示

大概意思就是:
置顶精华分开显示连同投票贴的图标一同移到第一列显示
使得主题标题栏不至于显得很乱
去掉主题栏“置顶I 。。。精华II”等字样显示  改用 图标处alt提示

分级置定和精华图标粗略的做了一下  只是抛砖引玉大家可以自己做漂亮的

把附件中的图标放到默认图片目录下即可

修改方法:

forumdisplay.htm中

查找:

  1.                 <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank"><img src="{IMGDIR}/$thread[folder]" border="0"></a></td>
复制代码


替换为:

  1.                 <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank">
  2.                 <!--{if $thread['displayorder']}-->
  3.              <!--{if $thread['displayorder'] == 1}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin1.gif" border="0"><b>
  4.              <!--{elseif $thread['displayorder'] == 2}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin2.gif" border="0"><b>
  5.              <!--{elseif $thread['displayorder'] == 3}--><img alt="{lang thread_sticky}{echo substr('III', - $thread['displayorder'])}" src="{IMGDIR}/pin3.gif" border="0"><b>
  6.                          <!--{/if}-->
  7.                 <!--{elseif $thread['poll']}--><img alt="{lang thread_poll} "  src="{IMGDIR}/pollsmall.gif" border="0">
  8.                 <!--{elseif $thread['digest']}-->
  9.              <!--{if $thread['digest'] == 1}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest1.gif" border="0"><b>
  10.              <!--{elseif $thread['digest'] == 2}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest2.gif" border="0"><b>
  11.              <!--{elseif $thread['digest'] == 3}--><img alt="{lang thread_digest}{echo substr('III', - $thread['digest'])} " src="{IMGDIR}/digest3.gif" border="0"><b>
  12.                          <!--{/if}-->
  13.                 <!--{else}-->
  14.                         <img src="{IMGDIR}/$thread[folder]" border="0">
  15.                 <!--{/if}--></a></td>
复制代码





查找:

  1. <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
  2.                 <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
  3.                 <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
  4.                 <!--{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}-->
  5.                 <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
  6.                 <!--{elseif $thread['digest']}--><img src="{IMGDIR}/digest.gif" align="absmiddle"> {lang thread_digest}<b>{echo substr('III', - $thread['digest'])}</b>:
  7.                 <!--{elseif $thread['displayorder']}--><img src="{IMGDIR}/pin.gif" align="absmiddle"> {lang thread_sticky}<b>{echo substr('III', - $thread['displayorder'])}</b>:
  8.                 <!--{elseif $thread['poll']}--><img src="{IMGDIR}/pollsmall.gif" align="absmiddle"> {lang thread_poll}:
复制代码



替换为:

  1.                 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
  2.                 <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
  3.                 <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
  4.                 <!--{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}-->
  5.                 <!--{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 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

journey99 发表于 2006-1-19 14:53:47 | 显示全部楼层
支持下
回复

使用道具 举报

haohao036 发表于 2006-1-19 15:50:34 | 显示全部楼层
呵 。还是这个方法好。。
回复

使用道具 举报

fengshen34 发表于 2006-1-19 15:55:59 | 显示全部楼层
美化么?
回复

使用道具 举报

 楼主| 123223 发表于 2006-1-19 16:02:50 | 显示全部楼层
每个人审美的标准不同
算不上美化
算简化合适 :)
所以叫修改
回复

使用道具 举报

西龍 发表于 2006-3-5 11:35:35 | 显示全部楼层
<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 11:41:51 | 显示全部楼层
把你的文件发上来
回复

使用道具 举报

西龍 发表于 2006-3-5 11:42:48 | 显示全部楼层
  1. {template header}
  2. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed">
  3. <tr><td class="nav" width="85%" align="left" nowrap>&nbsp;<a href="index.php">$bbname</a> $navigation</td>
  4. <td align="right" width="15%"><!--{if $rssstatus}--><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank"><img src="images/common/xml.gif" border="0" align="absmiddle" alt="{lang rss_subscribe_this}"></a><!--{/if}-->
  5. &nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" align="absmiddle"></a></td>        
  6. </tr></table><br>

  7. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  8. <tr class="mediumtxt"><td class="smalltxt">({lang forum_modedby}: <span class="bold">
  9. <!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}-->
  10. </span>)</td><td align="right" class="smalltxt"><img src="{IMGDIR}/showdigest.gif" border="0" align="absmiddle">
  11. <!--{if $filter == 'digest' || $filter == 'rate'}-->
  12.         <a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a>
  13. <!--{else}-->
  14.         <a href="forumdisplay.php?fid=$fid&filter=digest">{lang forum_viewdigest}</a>
  15.           <img src="{IMGDIR}/agree.gif" border="0" align="absmiddle"> <a href="forumdisplay.php?fid=$fid&filter=rate">查看本版加分主题</a>
  16. <!--{/if}-->
  17. &nbsp; <img src="{IMGDIR}/mytopic.gif" border="0" align="absmiddle"> <a href="search.php?srchuid=$discuz_uid&srchfid=$fid&mytopics=yes&searchsubmit=yes">{lang show_mytopics}</a>
  18. <!--{if $allowmodpost && $forum['modnewposts']}-->
  19.         &nbsp; <img src="{IMGDIR}/moderate.gif" border="0" align="absmiddle"> {lang forum_moderate}
  20.         <a href="admincp.php?action=modthreads&frames=yes" target="_blank">[{lang forum_moderate_threads}]</a>
  21.         <!--{if $forum['modnewposts'] == 2}--><a href="admincp.php?action=modreplies&frames=yes" target="_blank">[{lang forum_moderate_replies}]</a><!--{/if}-->
  22. <!--{/if}-->
  23. <!--{if $adminid == 1 && $forum['recyclebin']}-->
  24.         &nbsp; <img src="{IMGDIR}/recyclebin.gif" border="0" align="absmiddle"> <a href="admincp.php?action=recyclebin&frames=yes" target="_blank">{lang forum_recyclebin}</a>
  25. <!--{/if}-->
  26. </td></tr></table>

  27. <!--{if $forum['rules']}-->
  28.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  29.         <tr class="header"><td><a href="###" onClick="toggle_collapse('rules_$fid');"><img id="rules_{$fid}_img" src="{IMGDIR}/$rulescollapseimg" align="right" border="0"></a>{lang forum_rules}</td></tr>
  30.         <tbody id="rules_$fid" style="$collapserules">
  31.         <tr><td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">$forum['rules']</td></tr>
  32.         </tbody></table><br>
  33. <!--{/if}-->

  34. <!--{if !empty($newpmexists)}-->
  35.         {template pmprompt}
  36. <!--{/if}-->

  37. <!--{if $subexists}-->
  38.         {template forumdisplay_subforum}
  39. <!--{/if}-->

  40. <!--{if !empty($advlist['text'])}--><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">$advlist[text]</table><br><!--{/if}-->

  41. <form method="post" name="moderate" action="topicadmin.php?action=moderate&fid=$fid">
  42. <input type="hidden" name="formhash" value="{FORMHASH}">

  43. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  44. <tr><td valign="bottom">$multipage</td>
  45. <td align="right" valign="bottom">
  46. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  47. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  48. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  49. <!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}-->
  50.         <br><table cellspacing="0" cellpadding="0" border="0"><tr><td>
  51.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="2" class="tableborder"><tr class="smalltxt">
  52.         <!--{loop $forum['threadtypes']['types'] $id $name}-->
  53.                 <!--{if $typeid != $id}-->
  54.                         <td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id">$name</a>&nbsp;</td>
  55.                 <!--{else}-->
  56.                         <td class="header">&nbsp;<span class="bold">$name</span>&nbsp;</td>
  57.                 <!--{/if}-->
  58.         <!--{/loop}-->
  59.         <!--{if $typeid}--><td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid">{lang all}</a>&nbsp;</td><!--{else}--><td class="header">&nbsp;<span class="bold">{lang all}</span>&nbsp;</td><!--{/if}-->
  60.         </tr></table></td></tr><tr><td height="3"></td></tr></table>
  61. <!--{/if}-->
  62. </td></tr></table>

  63. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  64. <tr class="header"><td colspan="6">
  65. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  66. <tr><td width="65%">&nbsp;&nbsp;<a href="forumdisplay.php?fid=$fid" class="bold" style="font-size:12px; font-family:&Euml;&Icirc;&Igrave;&aring;;">$forum[name]</a></td>
  67. <td width="35%" align="right" nowrap><table cellspacing="0" cellpadding="0" border="0"><tr>
  68. <!--{if $visitedforums}-->
  69.         <td><select style="width: 12em" onChange="if(this.options[this.selectedIndex].value != '')
  70.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid')">
  71.         <option value="">{lang visited_forums}</option>$visitedforums</select></td>
  72. <!--{/if}-->
  73. <!--{if $searchbox == 1 || $searchbox == 3}-->
  74.         <td>&nbsp;<input type="text" name="searchbox" value="{lang keyword} ..." size="10" class="altbg2" onMouseOver="this.focus()" onFocus="this.select()"></td><td valign="bottom">&nbsp;<input type="button" value="{lang search}" style="height: 1.8em" onClick="window.open('search.php?srchtype=qihoo&srchtxt='+findobj('searchbox').value+'&searchsubmit=yes');"></td>
  75. <!--{/if}-->
  76. </tr></table></td></tr></table></td></tr>
  77. <tr class="category">
  78. <td width="4%">&nbsp;</td>
  79. <td align="center">{lang subject}</td>
  80. <td width="120" align="center" nowrap>{lang author}</td>
  81. <td width="80" align="center" nowrap>{lang replies} | {lang views}</td>
  82. <td width="120" align="center">{lang lastpost}</td>
  83. </tr>

  84. <!--{if $page == 1 && !empty($announcement)}-->
  85.         <tr>
  86. <td colspan="5" align="center" bgcolor="{ALTBG1}">{lang announcement}:  <a href="announcement.php?id=$announcement[id]#$announcement[id]">$announcement[subject]</a> <font color="#999999">$announcement[starttime]</font></td>
  87.         </tr>
  88. <!--{/if}-->

  89. <!--{if $threadcount}-->
  90.         <!--{loop $threadlist $key $thread}-->
  91.                 <!--{if $separatepos == $key + 1}-->
  92.                         <tr class="category"><td>&nbsp;</td><td colspan="4"><span class="bold">{lang forum_normal_threads}</span></td></tr>
  93.                 <!--{/if}-->
  94.                 <tr>
  95.                 <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank"><img src="{IMGDIR}/$thread[folder]" border="0"></a></td>
  96.                 <td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  97.                 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
  98.                 <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
  99.                
  100.                 <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
  101.                 <!--{elseif $thread['digest']}--><img src="{IMGDIR}/digest.gif" align="absmiddle">{echo substr('III', - $thread['digest'])}
  102.                 <!--{elseif $thread['displayorder']}--><img src="{IMGDIR}/pin.gif" align="absmiddle">{echo substr('III', - $thread['displayorder'])}
  103.                 <!--{elseif $thread['poll']}--><img src="{IMGDIR}/pollsmall.gif" align="absmiddle"> <!--{/if}-->$thread[typeid]
  104.                 <a href="viewthread.php?tid=$thread[tid]&extra=$extra" $thread[highlight]>$thread[subject]</a>
  105.                 <!--{if $thread['attachment']}--><img src="images/attachicons/common.gif"><!--{/if}-->
  106.                 <!--{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}-->
  107.                 <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
  108.                 <!--{if $thread['price'] > 0}--> - [{lang price} {$extcredits[$creditstrans][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstrans][unit]}]<!--{/if}-->
  109.                 $thread[multipage]
  110.                 </td><!--{if $discuz_user}-->
  111.                     <td width="18"><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--></td><!--{/if}-->
  112.                 </tr></table>                </td><td class="altbg1" align="center">
  113.                 <!--{if $thread['authorid']}--><a href="viewpro.php?uid=$thread[authorid]">$thread[author]</a><!--{else}-->{lang guest}<!--{/if}-->
  114.                 <br><span class="smalltxt" style="color:#666666;">$thread[dateline]</span></td>
  115.                 <td align="center" class="altbg2"><table width="74" border="0" align="center" cellpadding="0" cellspacing="0">
  116.           <tr align="center">
  117.             <td width="50%"><font color="#999999">$thread[replies]</font></td>
  118.             <td width="50%"><font color="#999999">$thread[views]</font></td>
  119.           </tr>
  120.         </table></td>
  121.                 <td class="altbg1">
  122.                 <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr align="right">
  123.                 <td nowrap><font class="smalltxt">
  124.                 <!--{if $thread['lastposter']}--><a href="viewpro.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang guest}<!--{/if}--><br>
  125.                   <font style="color:#999999;">$thread[lastpost]</font></font></td><td nowrap>&nbsp;<a href="redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a>
  126.                 </td></tr></table></td></tr>
  127.         <!--{/loop}-->
  128. <!--{else}-->
  129.         <tr><td colspan="5" class="altbg1">{lang forum_nothreads}</td></tr>
  130. <!--{/if}-->

  131.     <!--{if ($discuz_user || $forum['ismoderator']) && $threadcount}-->
  132.         <tr><td colspan="7" class="altbg1" align="center">
  133.         <!--{/if}-->
  134.         <!--{if !$forum['ismoderator'] && $threadcount && $discuz_user}-->        
  135.         <span class="bold">批量购买>>主题醒目高亮</span> &nbsp;
  136.         <input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')"> {lang checkall}        
  137.         <a href="###" onclick="javascript: document.moderate.action='./plugin.php?identifier=xmhl&module=xmhl&fid=$fid';document.moderate.submit();" class="bold">[{lang submit}]</a>
  138.         <!--{/if}-->
  139.         <!--{if $forum['ismoderator'] && $threadcount}-->        
  140.         <span class="bold">{lang admin_moderate}</span> &nbsp;
  141.         <input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')"> {lang checkall}        
  142.         <a href="###" onclick="javascript: document.moderate.action='./plugin.php?identifier=xmhl&module=xmhl&fid=$fid';document.moderate.submit();" >[<b>醒目高亮</b>]</a>

  143.         <!--{if $allowdelpost}--><input type="radio" name="operation" value="delete"> {lang admin_delthread} <!--{/if}-->
  144.         <input type="radio" name="operation" value="move"> {lang admin_move}
  145.         <input type="radio" name="operation" value="highlight"> {lang admin_highlight}
  146.         <input type="radio" name="operation" value="type"> {lang admin_type}
  147.         <input type="radio" name="operation" value="close"> {lang admin_openclose}
  148.         <!--{if $allowstickthread}--><input type="radio" name="operation" value="stick"> {lang admin_stick_unstick} <!--{/if}-->
  149.         <input type="radio" name="operation" value="digest"> {lang admin_digest_addremove} &nbsp;
  150.         <a href="###" onClick="javascript: document.moderate.submit()" class="bold">[{lang submit}]</a>
  151.         </td></tr>
  152. <!--{/if}-->
  153. </table>

  154. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  155. <tr><td valign="top">$multipage</td><td align="right">
  156. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  157. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  158. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  159. </td></tr></table></form>

  160. <!--{if $fastpost && $allowpost}-->
  161.         <script language="JavaScript">
  162.         var postminchars = parseInt('$minpostsize');
  163.         var postmaxchars = parseInt('$maxpostsize');
  164.         var disablepostctrl = parseInt('$disablepostctrl');
  165.         var typerequired = parseInt('$forum[threadtypes][required]');
  166.         function validate(theform) {
  167.                 if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
  168.                         alert("{lang post_type_isnull}");
  169.                         return false;
  170.                 } else if (theform.subject.value == "" || theform.message.value == "") {
  171.                         alert("{lang post_subject_or_message_isnull}");
  172.                         return false;
  173.                 } else if (theform.subject.value.length > 80) {
  174.                         alert("{lang post_subject_toolang}");
  175.                         return false;
  176.                 }
  177.                 if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
  178.                         alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
  179.                         return false;
  180.                 }                       
  181.                 theform.topicsubmit.disabled = true;
  182.                 return true;
  183.         }
  184.         </script>
  185.         <!--{/if}-->
  186.     <!--{if $whosonlinestatus}-->
  187. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  188.         <!--{if $detailstatus}-->
  189.                 <tr class="header"><td width="100%">
  190.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0"></a>{lang forum_activeusers}
  191.                 </td></tr>
  192.                 <tr><td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  193.                 <table cellspacing="0" cellpadding="0" border="0" width="98%" align="center">
  194.                 <tr><td nowrap>
  195.                 <!--{loop $whosonline $key $online}-->
  196.                         <!--{if $key % 7 == 0}--></td></tr><tr><td width="15%" nowrap><!--{else}--></td><td width="15%" nowrap><!--{/if}-->
  197.                         <img src="images/common/$online[icon]" align="absmiddle">
  198.                         <a href="viewpro.php?uid=$online[uid]" title="{lang time}: $online[lastactivity]{LF}
  199.                         {lang action}: $online[action]{LF}
  200.                         {lang forum}: $forumname">$online[username]</a>
  201.                 <!--{/loop}-->
  202.                 </td></tr></table></td></tr>
  203.         <!--{else}-->
  204.                 <tr class="header"><td width="100%">
  205.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" align="right" border="0"></a>{lang forum_activeusers}
  206.                 </td></tr>
  207.         <!--{/if}-->
  208. </table><br>
  209. <!--{/if}-->

  210. <br>
  211. <form method="get" action="forumdisplay.php">
  212. <input type="hidden" name="fid" value="$fid">
  213. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  214. <tr class="mediumtxt"><td align="left" class="smalltxt">
  215. <!--{if $forumjump}-->
  216.         <span class="bold">{lang forum_jump}: </span>
  217.         <select onChange="if(this.options[this.selectedIndex].value != '') {
  218.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid') }">
  219.         $forumselect
  220.         </select>
  221. <!--{/if}-->

  222. &nbsp;</td><td align="right" class="smalltxt">
  223. <!--{if $filter == 'digest' || $filter == 'type'}-->
  224.         <input type="hidden" name="filter" value="$filter">
  225.         <input type="hidden" name="typeid" value="$typeid">
  226. <!--{else}-->
  227.         {lang show} <select name="filter">
  228.         <option value="0" $check[0]>{lang threads_all}</option>
  229.         <option value="86400" $check[86400]>{lang last_1_days}</option>
  230.         <option value="172800" $check[172800]>{lang last_2_days}</option>
  231.         <option value="604800" $check[604800]>{lang last_7_days}</option>
  232.         <option value="2592000" $check[2592000]>{lang last_30_days}</option>
  233.         <option value="7948800" $check[7948800]>{lang last_90_days}</option>
  234.         <option value="15897600" $check[15897600]>{lang last_180_days}</option>
  235.         <option value="31536000" $check[31536000]>{lang last_356_days}</option>
  236.         </select>&nbsp;
  237. <!--{/if}-->
  238. {lang orderby}&nbsp;
  239. <select name="orderby">
  240. <option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
  241. <option value="dateline" $check[dateline]>{lang order_starttime}</option>
  242. <option value="replies" $check[replies]>{lang order_replies}</option>
  243. <option value="views" $check[views]>{lang order_views}</option>
  244. </select>&nbsp;
  245. <select name="ascdesc">
  246. <option value="ASC" $check[ASC]>{lang order_asc}</option>
  247. <option value="DESC" $check[DESC]>{lang order_desc}</option>
  248. </select>&nbsp;
  249. <input type="submit" value="{lang submit}">
  250. </td></tr></table></form>

  251. <br><table cellspacing="0" cellpadding="0" border="0" width="500" align="center" class="outertxt">
  252. <tr class="smalltxt"><td><img src="{IMGDIR}/red_folder.gif" alt="{lang thread_newposts}" align="absmiddle">&nbsp; {lang thread_newposts}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_red_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt"><img src="{IMGDIR}/lock_folder.gif" alt="{lang thread_closed}" align="absmiddle">&nbsp; {lang thread_closed}</td></tr>
  253. <tr class="smalltxt"><td><img src="{IMGDIR}/folder.gif" alt="{lang thread_nonewpost}" align="absmiddle">&nbsp; {lang thread_nonewpost}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt">&nbsp;</td></tr>
  254. </table>
  255. {template footer}
复制代码
回复

使用道具 举报

西龍 发表于 2006-3-5 11:53:18 | 显示全部楼层
大哥行不?
回复

使用道具 举报

 楼主| 123223 发表于 2006-3-5 12:32:30 | 显示全部楼层
改好了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 01:10 , Processed in 0.038446 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表