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>

相关文章

php+js实现的无刷新下载文件功能示例

本文实例讲述了php+js实现的无刷新下载文件功能。分享给大家供大家参考,具体如下: 服务器端页面 步骤就是,设置头文件参数,然后读入并输出文件。下面代码的file_get_conten...

JSON字符串传到后台PHP处理问题的解决方法

在项目开发的时候由于涉及到批量记录数组的传入,由于字段多,所以不可能能用普通的方式&a=322&=gsd&v=rwe 这样去传送,所以想到了前端传JSON格式过去content=[{'a...

实例讲解通过&#8203;PHP创建数据库

实例讲解通过&#8203;PHP创建数据库

数据库是相互关联的数据的集合,我们可以从数据库中有效地检索,插入和删除数据,并以表格,视图,模式等形式组织数据。今天将要介绍如何通过PHP来创建MySQL数据库 PHP创建MySQL数据...

php fsockopen中多线程问题的解决办法[翻译]

问题: 有没有办法在php中实现多线程呢? 假设你正在写一个基于多台服务器的php应用,理想的情况时同时向多台服务器发送请求,而不是一台接一台。 可以实现吗? 回答: 当有人想要实现并发...

php垃圾代码优化操作代码

公司有几个网站搭在美国的虚拟主机上,服务器上的mysql服务差不多每一天都会突然不知什么时候挂掉,然后过一会又恢复了,怀疑是超出cpu的使用限制而被自动结束了,但是实际上该服务器上的流量...