新聞中心
帝國cms關(guān)鍵詞怎么更新到 tags里面去,sql數(shù)據(jù)庫命令怎么寫?
那你要把這個字段值寫進去呀。所以你要找到這個頁面的提交處理頁面,然后在這個頁面內(nèi)加入你要添加的那個字段值。最后在前臺輸出。
創(chuàng)新互聯(lián)建站-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比福鼎網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式福鼎網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋福鼎地區(qū)。費用合理售后完善,十年實體公司更值得信賴。
如何修改帝國CMS網(wǎng)站首頁的標題,關(guān)鍵詞,描述和LOGO
這個挺簡單的,建議用DW進行修改,這樣不會出現(xiàn)編碼格式不同,
把網(wǎng)站根目錄下面的index.php文件下載到本地,然后用工具打開編輯,在網(wǎng)頁的頂部,你會看到一對title/title標簽,里面默認的是“帝國網(wǎng)站管理系統(tǒng) - Powered by EmpireCMS”,您可以把默認的刪除,修改成你想要的網(wǎng)站標題;修改了標題之后,還需修改一下meta標簽內(nèi)的keywords(關(guān)鍵字)和description(網(wǎng)站內(nèi)容描述)屬性,把keywords里面的content這字段內(nèi)的內(nèi)容修改成你網(wǎng)站的關(guān)鍵字,把description里面的content這字段內(nèi)的內(nèi)容修改成你網(wǎng)站的內(nèi)容簡介;保存上傳就可以了。希望樓主采納~~~
帝國CMS,如何將關(guān)鍵字和tags 同步更新
修改系統(tǒng)字段---special.field (特殊屬性字段)
修改關(guān)鍵詞位置,修改為
function copykeyword(){
document.getElementById("keyword").focus()
document.getElementById("keyword").select()
document.getElementById("infotags").value=document.getElementById("keyword").value}關(guān)鍵字:
帝國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); //統(tǒng)計ID數(shù)量
$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); //設(shè)置數(shù)組
$tagc=array_values(array_unique($tagb[$i])); //數(shù)組排重
for($t=0;$tcount($tagc);$t++)
{//二級子循環(huán)TAGS數(shù)組輸出
$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/文件夾內(nèi)
td height="25" colspan="8"
table width="100%" border="0" cellpadding="0" cellspacing="0"
tr
td width="68%" height="25"
font color="#666666"備注:多選框藍色為未審核信息;發(fā)布者紅色為會員投稿;信息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修改tags 帝國cms修改網(wǎng)站顏色
網(wǎng)站網(wǎng)址:http://www.ef60e0e.cn/article/dogigpg.html