Home  >  Article  >  Backend Development  >  Discuz板块横排显示图片的实现方法_php技巧

Discuz板块横排显示图片的实现方法_php技巧

PHP中文网
PHP中文网Original
2016-05-17 09:39:191578browse

Discuz板块横排显示图片的实现方法_php技巧

到你目前在使用的模板中寻找 discuz.htm 
找到这一段代码: 

<td width="$cat[forumcolwidth]" class="altbg2" 
onMouseOver="this.className=&#39;altbg1&#39;" onMouseOut="this.className=&#39;altbg2&#39;"> 
<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=&#39;altbg1&#39;" onMouseOut="this.className=&#39;altbg2&#39;"> 

$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[&#39;permission&#39;] == 1}--> 
{lang private_forum} 
<!--{else}--> 
<!--{if is_array($forum[&#39;lastpost&#39;])}--> 
<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[&#39;lastpost&#39;][&#39;author&#39;]}-->$forum[&#39;lastpost&#39;][&#39;author&#39;]<!--{else}-->{lang anonymous}<!--{/if}--> 
<!--{else}--> 
{lang never} 
<!--{/if}--> 
<!--{/if}--></td>

以上就是Discuz板块横排显示图片的实现方法_php技巧的内容,更多相关内容请关注PHP中文网(www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn