帝国cms内容页正文字段newstext的PHP写法图片加扩展变量显示
<?
$artilce_body =stripslashes($navinfor['newstext']);
$newstext=str_replace('/d/',$public_r['add_zhann_cn_img'].'/d/',$artilce_body);
echo $newstext;
?>
<?
$artilce_body =stripslashes($navinfor['newstext']);
$newstext=str_replace('/d/',$public_r['add_zhann_cn_img'].'/d/',$artilce_body);
echo $newstext;
?>
调用会员头像php代码 <?php $muserid=(int)getcvar('mluserid'); $member=$empire->fetch1("select userpic from phome_enewsmemberadd where userid='$muserid'"...
帝国cms内容页SQl方式调用当前TAG标签的方式 具体调用代码如下: <?php $fr=$empire->fetch1("select infotags from {$dbtbpre}ecms_news_data_{$navinfor[stb]} where id='$navinf...
帝国CMS灵动标签怎么调用指定时间段的信息呢? 1、某天发布的文章: [e:loop={'news',10,18,0,'newstime>='.to_time('2010-11-11 00:00:01').' and newstime<='.to_time('2010-11-11 23...
帝国CMS怎么用灵动标签使用esub/substr截取前面,或者截取后面两个字符或者多个字符呢? ①、帝国网站 显示是"帝国" (这是灵动标签默认的截取标签字段“esub”), [e:loop={'select * from phome_enewsclass where bclassid=0 or...
正常调用文章信息,是从第一条信息开始调用的,或者是逐条调用,那么,假如我们需要从第二条信息开始调用 [e:loop={栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序}] [e:loop={栏目ID/专题ID,'1,2',操作类型,只显示有标题图片,附加SQL条件...
帝国CMS灵动标签调用文章缩略图的标签写法: <?=$bqr[smalltext]?> <?=esub($bqr[smalltext],50)?> (上面标签注释:该标签可限制内容简介显示的字数,举例中的50表示显示50个字符,算城成是汉字就是25个字,大家可以根据自己的...