Discuz板块横排显示图片的实现方法
程序员文章站
2022-08-04 09:49:58
到你目前在使用的模板中寻找 discuz.htm 找到这一段代码: 复制代码 代码如下:
到你目前在使用的模板中寻找 discuz.htm
找到这一段代码:
<td width="$cat[forumcolwidth]" class="altbg2" onmouseover="this.classname='altbg1'" onmouseout="this.classname='altbg2'">
<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a><br>
<span class="smalltxt"><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_threads}: $forum[threads]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_posts}: $forum[posts]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_todayposts}: $forum[todayposts]</div></span>
</td>
修改为:
<td class="altbg1">$forum[folder]</td>
<td width="$cat[forumcolwidth]" onmouseover="this.classname='altbg1'" onmouseout="this.classname='altbg2'">
$forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a><br>
<span class="smalltxt">$forum[description]</span><br>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="$forum[lastpost][dateline]" >
{lang forum_lastpost_in}: {$forum[lastpost][subject]}</a>
{lang forum_lastpost_by}<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}--></td>
找到这一段代码:
复制代码 代码如下:
<td width="$cat[forumcolwidth]" class="altbg2" onmouseover="this.classname='altbg1'" onmouseout="this.classname='altbg2'">
<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a><br>
<span class="smalltxt"><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_threads}: $forum[threads]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_posts}: $forum[posts]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_todayposts}: $forum[todayposts]</div></span>
</td>
修改为:
复制代码 代码如下:
<td class="altbg1">$forum[folder]</td>
<td width="$cat[forumcolwidth]" onmouseover="this.classname='altbg1'" onmouseout="this.classname='altbg2'">
$forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a><br>
<span class="smalltxt">$forum[description]</span><br>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="$forum[lastpost][dateline]" >
{lang forum_lastpost_in}: {$forum[lastpost][subject]}</a>
{lang forum_lastpost_by}<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}--></td>
上一篇: 你上辈子欠我一头猪
下一篇: discuz安全提问算法