帝國cmstags參數(shù) 帝國cms到底好不好

帝國cms關(guān)鍵詞怎么更新到 tags里面去,sql數(shù)據(jù)庫命令怎么寫?

那你要把這個字段值寫進去呀。所以你要找到這個頁面的提交處理頁面,然后在這個頁面內(nèi)加入你要添加的那個字段值。最后在前臺輸出。

成都創(chuàng)新互聯(lián)公司是一家專業(yè)從事做網(wǎng)站、網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計的品牌網(wǎng)絡(luò)公司。如今是成都地區(qū)具影響力的網(wǎng)站設(shè)計公司,作為專業(yè)的成都網(wǎng)站建設(shè)公司,成都創(chuàng)新互聯(lián)公司依托強大的技術(shù)實力、以及多年的網(wǎng)站運營經(jīng)驗,為您提供專業(yè)的成都網(wǎng)站建設(shè)、營銷型網(wǎng)站建設(shè)及網(wǎng)站設(shè)計開發(fā)服務(wù)!

帝國cms的標(biāo)簽[!--pagetitle--]怎么修改?哪位大大知道的,告訴小弟下

帝國cms中的系統(tǒng)參數(shù)設(shè)置里面的“站點名稱”項的值即為網(wǎng)站首頁的[!-pagetitle-]值,至于列表模板和內(nèi)容模板中的[!--pagetitle-]的值為你所點鏈接的值(即a*/aA標(biāo)簽中*的值。

帝國CMS 標(biāo)簽:[ecmsinfo]1,10,30,0,0,2,0,0,0[/ecmsinfo]求解釋

[ecmsinfo]欄目ID/專題ID,顯示條數(shù),標(biāo)題截取數(shù),是否顯示欄目名,操作類型,模板ID,只顯示有標(biāo)題圖片,附加SQL條件,顯示排序[/ecmsinfo]

按照你的參數(shù)應(yīng)該是:

欄目id為2(確認(rèn)它是不是終極欄目的id,該欄目下有信息嗎?)

顯示10條信息

信息標(biāo)題截取30個字符

不顯示欄目名

顯示的是欄目最新信息

選擇了id為2的標(biāo)簽?zāi)0澹ù_認(rèn)該標(biāo)簽?zāi)0迨欠裾_)

不管有沒有標(biāo)題圖片的信息都顯示

沒有附加sql條件

不顯示排序

不知道你前面寫的那個在你模板里是不是能顯示信息,如果那個是正確的而你改了一個id就不對了,而你確認(rèn)所有參數(shù)在你模板里都是正確的話,那就奇怪了,不然你改成這樣試試

[ecmsinfo]'2',10,30,0,0,2,0,'','id?desc'[/ecmsinfo]

再不行你就干脆換成靈動標(biāo)簽吧,靈動標(biāo)簽,一招鮮,吃遍天。

帝國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"備注:多選框藍(lán)色為未審核信息;發(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

網(wǎng)站名稱:帝國cmstags參數(shù) 帝國cms到底好不好
URL標(biāo)題:http://muchs.cn/article24/ddipgce.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、網(wǎng)站改版、企業(yè)網(wǎng)站制作網(wǎng)站設(shè)計、網(wǎng)頁設(shè)計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名