20、帝国留言验证码不刷新页面刷新验证码得方法:
6.0:
6.6: 加v=变量
21、帝国cms随机调用信息
按表随机调用: [ecmsinfo]”select * from phome_ecms_news order by rand() desc limit 6 “,6,18,0,24,2,0[/ecmsinfo]
随机调用本栏目:[ecmsinfo]”select * from phome_ecms_news where classid=’$GLOBALS[navclassid]’ order by rand() desc limit 6″,6,18,0,24,2,0[/ecmsinfo]
其中:news为表名,两个6表示调用的数量为6条,18表示标题取18个字符,第一个0表示不显示栏名名,随机调用的操作类型固定为24,2表示模板ID,第二个0标题图片不存在也调用…………,sql中栏目id要用终极栏目id
22、帝国当前位置的“首页”两个字变为您当前网站的名称
打开:D:\PHPnow\vhosts\huaming\e\data\language\gb\pub\fun.php
将’index’=>’首页’,的首页改为您的网站名称!
23、帝国CMS留言灵动标签调用和时间修改
[e:loop={‘select * from 表前缀_enewsgbook where bid=1 order by gtitle asc limit 10’,20,24,0}]
-
28、获取会员数量,评论数量
会员数量:gettotal(“select count(*) as total from phome_enewsmember”);?>
评论数量:gettotal(“select count(*) as total from phome_enewspl”);?>29、单独为某个信息页某个会员组访问的权限
alert(‘没有访问权限’);history.go(-1);”;
exit();
}
?>
00xx就是前台cookie变量前缀,在cinfig里面查!30、设置标签附加sql条件,调用非头条的信息:
[e:loop={0,7,3,0,”firsttitle=0″}]
PS:[e:loop={0,7,3,0}] 怎么改成调用非头条,并且非推荐?在附加sql中加上firsttitle=0 and isgood=0
31、在内容页发布