帝国教程

帝国cms去除smalltext简介在列表页和搜索列表页多余的HTML代码

来源:帝国CMS模板网 作者:栗子 时间:2026-07-08
浏览:32 收藏 点赞(0)
简介:修改文件 /e/class/connect.php 找到 $ylisttemp=$listtemp; 在上面加 $nottobrf=',smalltext,';//标记 找 if($spf==0&&!strstr($emod_r[$mid]['editorf'],','.$f.',')) { if(strstr($emod_r[$mid]['tobrf'],','.$f.','))//加br {

修改文件 /e/class/connect.php

找到

$ylisttemp=$listtemp;

在上面加

$nottobrf=',smalltext,';//标记

   if($spf==0&&!strstr($emod_r[$mid]['editorf'],','.$f.','))
                {
                        if(strstr($emod_r[$mid]['tobrf'],','.$f.','))//加br
                        {
                                $value=nl2br($value);
                        }
                        if(!strstr($emod_r[$mid]['dohtmlf'],','.$f.','))//去除html
                        {
                                $value=RepFieldtextNbsp(htmlspecialchars($value));
                        }
                }


                if(!strstr($nottobrf,','.$f.','))//修改标记
                {
                        if(!strstr($field['tobrf'],','.$f.','))//加br
                        {
                                $value=nl2br($value);
                        }
                        if(strstr($field['dohtmlf'],','.$f.','))//去除html
                        {
                                $value=htmlspecialchars($value);
                        }
                }
在线
客服