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

yipeiwu_com6年前PHP代码库
到你目前在使用的模板中寻找 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>

相关文章

Linux系统下php获得系统分区信息的方法

本文实例讲述了Linux系统下php获得系统分区信息的方法。分享给大家供大家参考。具体实现方法如下: $pars = array_filter(explode("\n",`df -h...

PHP设计模式之单例模式定义与用法分析

本文实例分析了PHP设计模式之单例模式。分享给大家供大家参考,具体如下: 单例模式(Singleton Pattern 单件模式或单元素模式),是常见的一种设计模式,它有三个特点...

深入理解:单一入口、MVC、ORM、CURD、ActiveRecord概念

MVC MVC是一个设计模式,它强制性的使应用程序的输入、处理和输出分开。使用MVC应用程序被分成三个核心部件:模型(M)、视图(V)、控制器(C),它们各自处理自己的任务。 视图 :...

PHP页面转UTF-8中文编码乱码的解决办法

对于乱码这个问题php开发者几乎都会有碰到过,我们下面主要是介绍了php文件乱码和页面乱码。 PHP页面转UTF-8编码问题 1.在代码开始出加入一行: header("Content...

php快速url重写更新版[需php 5.30以上]

对于apache的rewrite模块打开和设置则非本文主题,请见其他文章详解. 这个类只能php 5.30以上的版本才能使用,继承了上一个版本的快速重定向的特点(单独类,全部使用静态调用...