新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

帝国cms未审核 帝国cms收费吗

帝国cms怎么批量添加信息的tags

修改步骤:

普宁ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为创新互联建站的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:18982081108(备注:SSL证书合作)期待与您的合作!

1、以下代码加入到admin/ecmsinfo.php,在任意2个elseif中间插入就行

elseif($enews=="AddTags_all")//列表批量添加Tags

{

$classid=$_POST['classid'];

$id=$_POST['id'];

$tags=$_POST['add_listtags'];

$newstime=time();

eInsertTags2($tags,$classid,$id,$newstime);

}

2、将以下代码加入到class/uesrfun.php

//加入TAG表

function eInsertTags2($tags,$classid,$id,$newstime){

global $empire,$dbtbpre,$class_r;

if(!trim($tags))

{

printerror("TAGS信息不能为空", "", 1, 0, 1);

return '';

}

$count = count($id); //统计ID数量

$tags = RepPostVar($tags);

$tag = explode(",", $tags);

if (emptyempty($count))

{

printerror("未选择信息ID", "", 1, 0, 1);

}

if (count($tag)1)

{

printerror("只能添加一个TAGS词", "", 1, 0, 1);

}

$classid=(int)$classid;

$id[$i] = (int)$id[$i];

$mid=(int)$class_r[$classid][modid];

for($i=0;$i$count;$i++)

{

$tbname=$class_r[$classid][tbname];//获取表名

$r=$empire-fetch1("select tagid from {$dbtbpre}enewstags where tagname='$tags' limit 1");

$t = $empire-fetch1("select infotags from {$dbtbpre}ecms_".$tbname." where id='$id[$i]'");

$taga=$t['infotags'].",".$tags; //组合TAGS

$tagb[$i] = explode(",",$taga); //设置数组

$tagc=array_values(array_unique($tagb[$i])); //数组排重

for($t=0;$tcount($tagc);$t++)

{//二级子循环TAGS数组输出

$newtags[$i].= ",".$tagc[$t];

}

if($r[tagid])

{

$datar=$empire-fetch1("select tagid,classid,newstime from {$dbtbpre}enewstagsdata where tagid='$r[tagid]' and id='$id[$i]' and mid='$mid' limit 1");

if($datar[tagid])

{

if($datar[classid]!=$classid||$datar[newstime]!=$newstime)

{

$empire-query("update {$dbtbpre}enewstagsdata set classid='$classid',newstime='$newstime' where tagid='$r[tagid]' and id='$id[$i]' and mid='$mid' limit 1");

}

}

else

{

$empire-query("update {$dbtbpre}enewstags set num=num+1 where tagid='$r[tagid]'");

$empire-query("update {$dbtbpre}ecms_".$tbname." set infotags='".trim($newtags[$i],",")."' where id='$id[$i]'");

$empire-query("insert into {$dbtbpre}enewstagsdata(tagid,classid,id,newstime,mid) values('$r[tagid]','$classid','$id[$i]','$newstime','$mid');");

}

}

else

{

$empire-query("update {$dbtbpre}ecms_".$tbname." set infotags='".trim($newtags[$i],",")."' where id='$id[$i]'");

$empire-query("insert into {$dbtbpre}enewstags(tagname,num,isgood,cid) values('$tags',1,0,0);");

$tagid=$empire-lastid();

$empire-query("insert into {$dbtbpre}enewstagsdata(tagid,classid,id,newstime,mid) values('$tagid','$classid','$id[$i]','$newstime','$mid');");

}

}

printerror("批量添加TAGS成功", "", 1, 0, 1);

}

3、信息管理列表模板最后一列修改成以下代码,在e/data/html/list/文件夹内

td height="25" colspan="8"

table width="100%" border="0" cellpadding="0" cellspacing="0"

tr

td width="68%" height="25"

font color="#666666"备注:多选框蓝色为未审核信息;发布者红色为会员投稿;信息ID粗体为未生成,点击ID可刷新页面./font

/td

td width="32%" input type="text" name="add_listtags" id="add_listtags" size="50" value="" /

input type="submit" name="Submit100" value="添加TAGS" onClick="document.listform.enews.value='AddTags_all';document.listform.action='ecmsinfo.php';"

/td

/tr

/table

/td

帝国cms在审核信息时出现下面提示,怎么解决

虽然我不是学这个的,,但从你的代码里看出来有两个问题,,,认真看根据他的提示来。 第一列数和行值不搭配,当IP=9354时从***_ecms_news_check中筛选所有重置***——ecms_news。第二,,,后面你慢慢看,我先忙啦

帝国cms文章可审核自动排版嘛

帝国cms文章可审核自动排版,帝国cms是一款编辑器,帝国cms的主要功能有自动排版、图片排版、简繁转换、文章审核,所以帝国cms文章可审核自动排版。

帝国cms 批量定时审核 代码 或者插件 我知道帝国cms 可以设置任务自动刷新首页和栏目

在首页模板中加入下面代码,尽量放在底部。

script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"/script

在 /e/ 建立文件夹 htmlindex 并设置 777权限

将下面代码保存在 /e/htmlindex/index_html.php

修改刷新时间,将文件中1200改为你想要的时间,单位为秒。

?php

require("../class/connect.php");

include("../class/db_sql.php");

include("../class/config.php");

include("../class/functions.php");

include("../class/t_functions.php");

require LoadLang("pub/fun.php");

require("../data/dbcache/class.php");

require("../data/dbcache/MemberLevel.php");

include("../class/chtmlfun.php"); 

$link=db_connect();

$empire=new mysqlquery();

$filepath_s="indexhtmlhc.txt";

$time=time();

@$filemtime=(int)filemtime($filepath_s)+1200;

/*

函数解释

file_exists() 函数检查文件或目录是否存在。

mkdir() 函数创建目录。

time() 函数返回当前时间的 Unix 时间戳。

filemtime() 函数返回文件内容上次的修改时间。

*/

if (!file_exists($filepath_s)){

fopen($filepath_s, 'w');

@chmod($filepath_s, 0777);

ReIndex();

}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)time()){

fopen($filepath_s, 'w');

@chmod($filepath_s, 0777);

ReIndex();

}else{

// do nothing

}

db_close();

$empire=null;

?


网站题目:帝国cms未审核 帝国cms收费吗
文章转载:http://www.wjwzjz.com/article/ddcopsi.html
在线咨询
服务热线
服务热线:028-86922220
TOP