導航:首頁 > 萬維百科 > 帝國cms批量增加欄目

帝國cms批量增加欄目

發布時間:2020-09-23 06:00:09

1、帝國cms設置了終極欄目,但是增加信息的時候提示「增加信息的欄目必須為終極欄目」。求解

這個就是這樣的,帝國的是,你不設置終極欄目他是不能發信息的,只有設置了終極欄目才能發表信息,這個,你可以重新建立個欄目,在選擇的時候一定要選擇終極欄目。看圖

2、帝國cms所有欄目都刪了 為什麼批量設置欄目屬性裡面還有欄目

數據更新,清理緩存

3、帝國CMS系統後台應用怎麼添加子欄目?

添加子欄目在要非終極欄目下添加的。。
添加完非終極欄目後,再添加欄目 會有一個選項 添加到哪個欄目之後。

4、帝國cms怎樣批量調用欄目名稱和鏈接

你直接在帝國後台上點擊自動生成標簽,然後設置好,自動生成。拷貝那段代碼。[e:loop={2,10,1,0}]"target="_blank">[/e:loop][e:loop={2,10,1,0}]這句就是循環的開始"target="_blank">[/e:loop]這句就是循環的結束然後你按照你的div+css看那裡要循環。把這些替換就可以了

5、帝國cms 新建一個發布產品欄目,如何實現發布後數據插入到多個表中

你的意思是共用一個系統模型吧,其實產品信息,和產品類別表,都放在一個系統模型里最好,因為都是關於產品的,你要調用信息或者類別的時候,只需要把你定義的欄位調用一下就OK了!希望對你有用!

6、帝國cms增加欄目直接用自定義頁面

關於我們欄目設為不生成欄目頁,在關於我們添加信息,文件名默認是信息id將其該為index即可

7、帝國cms怎麼批量添加信息的tags

修改步驟:
  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;$t<count($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>

8、帝國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;
?>

9、帝國cms怎麼設置欄目更新數量

帝國的副表,是指不參與搜索,結合項,列表頁顯示的欄位,從主表分離,存放到另一個表中。

每一個省做一個數據表,可以做好一個主數據表後,比如「山東數據表」,復制該表即可。

如果你的數據量只有幾萬的話,一個表差不多了,方便管理。當然長遠來看多表也好。

10、帝國cms的欄目可以批量添加嗎

可以批量添加的

與帝國cms批量增加欄目相關的知識