只需一步,快速开始
原帖由 lwyy 于 2006-9-4 01:29 发表 另: 后台控制根本就是假的,templates\default\discuz.htm里面的{template toplist}前后根本没有加控制语句,不管后台怎么选都是显示的。
使用道具 举报
原帖由 拒买日本货 于 2006-9-4 02:29 发表 当贴子的标题过长时,会排列多出一排来,难看!! 如何长能排列整齐???(不要排到第二行的)
原帖由 lwyy 于 2006-9-4 08:51 发表 修改include\cache.func.php里面的语句: $topthread = cutstr($topthread, 25); 调整红色数字就行! 可以到我网站参考一下,我设置的就是25。 www.lwyy.net
原帖由 拒买日本货 于 2006-9-4 09:05 发表 谢谢,我试试看。。 哦。你论坛里的那个标题前面的蓝色小园点如何加入?
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-BOTTOM: 0px solid {CATCOLOR}"> <tr> <td class="category" id=menu00 onclick=changebg(0);sltMenu(0) width=100 align=center>帖子排行</td> <td class="header" id=menu01 onclick=changebg(1);sltMenu(1) width=100 align=center>今日明星</td> <td class="header" id=menu02 onclick=changebg(2);sltMenu(2) width=100 align=center>本周明星</td> <td class="header" id=menu03 onclick=changebg(3);sltMenu(3) width=100 align=center>{$month}月明星</td> <td class="header" id=menu04 onclick=changebg(4);sltMenu(4) width=100 align=center>{$year}年明星</td> </tr> </table> <DIV id=curCon> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid {CATCOLOR}"> <tbody id="poststar" style="display:yes"> <tr class="altbg2" align="left"> <td><div style="overflow:auto; height:100%; width:100%;"> <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center"> <tr class="altbg2" align="left"> <td width="33%" align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最新发表的贴子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['newthread'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right>$toploop[postdate]</td></tr> <!--{/loop}--> <!--#循环结束--></table> </td> <td width="33%" align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最新回复的贴子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['newreply'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right><a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a></td></tr> <!--{/loop}--> <!--#循环结束--></table></td> <!--td align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 随机精华贴</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"--> <!--#最新贴循环开始--> <!--{loop $_DCACHE['topdigest'] $toploop}--> <!--a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}精华级别: $toploop[digest]级{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a> <a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a><br--> <!--{/loop}--> <!--#循环结束--><!--/td--> <td align="left" valign="top"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最热门的帖子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['topviews'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right><a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a></td></tr> <!--{/loop}--> <!--#循环结束--></table></td> </tr> </table> </div></td> </tr> </TBODY> </TABLE> </DIV> <DIV id=con0 style="DISPLAY: none"> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid {CATCOLOR}"> <tbody id="poststar" style="display:yes"> <tr class="altbg2" align="left"> <td><div style="height:100%; width:100%;"> <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center"> <tr class="altbg2" align="left"> <td width="33%" align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最新发表的贴子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['newthread'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right>$toploop[postdate]</td></tr> <!--{/loop}--> <!--#循环结束--></table></td> <td width="33%" align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最新回复的贴子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['newreply'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right><a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a></td></tr> <!--{/loop}--> <!--#循环结束--></table></td> <!--td align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}"><b> <img src={IMGDIR}/dot.gif BORDER=0> 随机精华贴</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"--> <!--#最新贴循环开始--> <!--{loop $_DCACHE['topdigest'] $toploop}--> <!--a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}精华级别: $toploop[digest]级{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a> <a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a><br--> <!--{/loop}--> <!--#循环结束--><!--/td--> <td align="left" valign="top"><b> <img src={IMGDIR}/dot.gif BORDER=0> 最热门的帖子</b> <hr color="{INNERBORDERCOLOR}" width="95%" size="1"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <!--#最新贴循环开始--> <!--{loop $_DCACHE['topviews'] $toploop}--> <tr><td><img src="images/common/dot.gif" width="10" hspace="3"></td><td>【$toploop[name]】</td><td><a href="viewthread.php?tid=$toploop[tid]" $toploop[threadcolor] title="主题: $toploop[subject]{LF}版块: $toploop[name]{LF}作者: $toploop[author]{LF}浏览: $toploop[views]{LF}回复: $toploop[replies]{LF}最后更新: $toploop[lastposter] 于 $toploop[lastpost] 发表">$toploop[subjectc]</a></td><td align=right><a href="redirect.php?tid=$toploop[tid]&goto=lastpost#lastpost" title="转入查看最后回复的内容">($toploop[replies]/$toploop[views])</a></td></tr> <!--{/loop}--> <!--#循环结束--></table></td> </tr> </table> </div></td> </tr> </TBODY> </TABLE> </DIV> <DIV id=con1 style="DISPLAY: none"> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid"> <tbody id="poststar" style="display:yes"> <tr class="category"> <td align=center colspan="2"><b>今日发贴状元</b></td> <td align=center colspan="2"><b>今日发贴榜眼</b></td> <td align=center colspan="2"><b>今日发贴探花</b></td> </tr> <tr class="altbg2"> $daystars </tr> </TBODY> <tr> <td colspan="7" bgcolor="{ALTBG1}"><b>今日发贴TOP10:</b> <!--{loop $_DCACHE['daystar'] $dstar}--> <a href=viewpro.php?uid=$dstar[authorid]>$dstar[author]</a><font color=red>[{$dstar[num]}]</font> <!--{/loop}--></td> </tr> </TBODY> </TABLE> </DIV> <DIV id=con2 style="DISPLAY: none"> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid"> <tbody id="poststar" style="display:yes"> <tr class="category"> <td align=center colspan="2"><b>本周发贴状元</b></td> <td align=center colspan="2"><b>本周发贴榜眼</b></td> <td align=center colspan="2"><b>本周发贴探花</b></td> </tr> <tr class="altbg2"> $weekstars </tr> </TBODY> <tr> <td colspan="7" bgcolor="{ALTBG1}"><b>本周发贴TOP10:</b> <!--{loop $_DCACHE['weekstar'] $wstar}--> <a href=viewpro.php?uid=$wstar[authorid]>$wstar[author]</a><font color=red>[{$wstar[num]}]</font> <!--{/loop}--></td> </tr> </TBODY> </TABLE> </DIV> <DIV id=con3 style="DISPLAY: none"> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid"> <tbody id="poststar" style="display:yes"> <tr class="category"> <td align=center colspan="2"><b>{$month}月发贴状元</b></td> <td align=center colspan="2"><b>{$month}月发贴榜眼</b></td> <td align=center colspan="2"><b>{$month}月发贴探花</b></td> </tr> <tr class="altbg2"> $monthstars </tr> </TBODY> <tr> <td colspan="7" bgcolor="{ALTBG1}"><b>{$month}月发贴TOP10:</b> <!--{loop $_DCACHE['monthstar'] $mstar}--> <a href=viewpro.php?uid=$mstar[authorid]>$mstar[author]</a><font color=red>[{$mstar[num]}]</font> <!--{/loop}--></td> </tr> </TBODY> </TABLE> </DIV> <DIV id=con4 style="DISPLAY: none"> <TABLE cellSpacing={INNERBORDERWIDTH} cellPadding={TABLESPACE} width="{TABLEWIDTH}" align="center" style="background: {INNERBORDERCOLOR}; border: {BORDERWIDTH}px solid {BORDERCOLOR};BORDER-TOP: 0px solid"> <tbody id="poststar" style="display:yes"> <tr class="category"> <td align=center colspan="2"><b>{$year}年发贴状元</b></td> <td align=center colspan="2"><b>{$year}年发贴榜眼</b></td> <td align=center colspan="2"><b>{$year}年发贴探花</b></td> </tr> <tr class="altbg2"> $yearstars </tr> </TBODY> <tr> <td colspan="7" bgcolor="{ALTBG1}"><b>{$year}年发贴TOP10:</b> <!--{loop $_DCACHE['yearstar'] $ystar}--> <a href=viewpro.php?uid=$ystar[authorid]>$ystar[author]</a><font color=red>[{$ystar[num]}]</font> <!--{/loop}--></td> </tr> </TABLE> </DIV> <br> <SCRIPT language=JavaScript type=text/javascript> function GetObj(objName){ if(document.getElementById){ return eval('document.getElementById("' + objName + '")'); }else{ return eval('document.all.' + objName); } } //preload menuImages function changebg(menuNo) { for(i=0;i<=4;i++) { eval("document.getElementById('menu0"+i+"').className='header'"); } eval("document.getElementById('menu0"+menuNo+"').className='category'"); } function sltMenu(menuNo){ //alert(menuNo); GetObj("curCon").innerHTML=GetObj("con"+menuNo).innerHTML; //document.frames['fav'].location.href='price'+menuNo+'.html'; } </SCRIPT>
原帖由 拒买日本货 于 2006-9-4 09:10 发表 不行。。。 贴子的标题字节过长时,给挤到第二排,不整齐,难看。 求助中。。。
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2025-4-5 01:04 , Processed in 0.047159 second(s), 15 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.