1、顯示會員發的文章數目怎麼調用 帝國cms
採用帝國CMS製作會員系統的時候經常會需要在各個頁面靈活的調用會員信息及對應欄目列表信息,本文講述了帝國CMS實現內容頁調用當前會員信息及文章信息的方法,具體步驟如下: 一、調用會員信息: 把以下代碼加到內容頁模板里即可 復制代碼 代碼...
2、如何統計該欄目十二個月份添加的信息數量 帝國cms
這個自己寫sql語句就OK了
3、帝國cms怎麼限制會員發布文章數量
你是指在後台發布文章嗎? 登錄後台之後,選擇相關欄目,點增加文章,填寫標題、文章內容等相關內容,點提交就可以了
4、高分急求!關於增加帝國cms首頁頭條信息數目問題!
帝國的標簽中有限制調用條數的限制!
加我hi吧,一句2句說不清楚!呵呵!我是帝國是老用戶!
例如:[phomenews]欄目ID/專題ID,顯示條數,標題截取數,是否顯示時間,操作類型,是否顯示欄目名,'時間格式化'[/phomenews]
[phomenews]2,10,40,0,0,0,'m-d'[/phomenews]
就會顯示欄目的ID為2的前10條記錄,每條記錄顯示20個漢字,不顯示時間,欄目的最新不顯示欄目名的記錄!
希望能幫到你!
5、怎麼把cnzz流量統計工具的代碼加進帝國cms的後台
直接把代碼放到網站底部模本後台裡面就可以了
6、帝國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>
7、帝國cms 怎麼顯示 某數據表中其中一個 欄位 的 文章數量
這個可以可以的,如: [totaldata]'news',2,0,0[/totaldata]這個是統計新聞數據表有多少信息的。
8、帝國cms如何實現統計某個數據表裡有多少文章
這個可以可以的,如:
[totaldata]'news',2,0,0[/totaldata]這個是統計新聞數據表有多少信息的。