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文件包含目录配置open_basedir的使用与性能详解

1.open_basedir介绍 open_basedir 将php所能打开的文件限制在指定的目录树中,包括文件本身。当程序要使用例如fopen()或file_get_contents(...

PHP查询附近的人及其距离的实现方法

本文实例讲述了PHP查询附近的人及其距离的实现方法。分享给大家供大家参考,具体如下: <?php //获取该点周围的4个点 $distance = 1;//范围(单位千...

Function eregi is deprecated (解决方法)

在php升级到php5.3之后后,在使用的过程经常发现有的程序会出现Function eregi() is deprecated 的报错信息。是什么原因呢?这是因为php5.3中不再支持...

php获取当前网址url并替换参数或网址的方法

一是PHP获取当前页面的网址: 复制代码 代码如下: //获得当前的脚本网址 function GetCurUrl() { if(!empty($_SERVER["REQUEST_URI...

php数组指针操作详解

数组指针的操作: 移动数组指针的操作: Next() 向下 同时会获得当前元素的值。 Prev() 向上同时会获得当前元素的值。 End() 移动到最后一个元素单元 获得最后一个元素的值...