统计点击量
<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
评论模块
{if $allow_comment && module_exists('comment')}
<iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
{/if}
show 页面调试
{print_r(get_defined_vars())}
{print_r($rs)}
Array
(
[id] => 146
[catid] => 15
[typeid] => 0
[title] => 测试下载3
[style] =>
[thumb] => http://mall.sdinfo.cc/uploadfile/2013/0619/20130619101057291.jpg
[keywords] =>
[description] => G:\wamp\www\template\tpl\qilu\images\app
[posids] => 0
[url] => http://mall.sdinfo.cc/index.php?m=content&c=index&a=show&catid=15&id=146
[listorder] => 0
[status] => 99
[sysadd] => 1
[islink] => 0
[username] => admin
[inputtime] => 1371651045
[updatetime] => 1371655873
[appcat] => 3429
[fee] => 0
[content] => G:\wamp\www\template\tpl\qilu\images\app
[readpoint] => 0
[groupids_view] =>
[paginationtype] => 0
[maxcharperpage] => 10000
[template] =>
[paytype] => 0
[allow_comment] => 1
[relation] =>
[file] => array (
0 =>
array (
'fileurl' => 'http://mall.sdinfo.cc/uploadfile/2013/0619/20130619113046340.apk',
'filename' => '2',
),
)
)
时间替换
linkage 联动菜单
[title] => 手机品牌
[style] => 0
[siteid] => 0
[data] => Array
(
[3361] => Array
(
[linkageid] => 3361
[name] => 小米
[style] =>
[parentid] => 0
[child] => 0
[arrchildid] => 3361
[keyid] => 3360
[listorder] => 0
[description] =>
[setting] =>
[siteid] => 0
)
)
seajs
<script>
var mk = mk || {};
mk.seajsBase = '{JS_PATH}';
</script>
<script src="{JS_PATH}libs/seajs/2.0.0/sea.js" data-config="config"></script>
点击量排行
{pc:get sql="select p.title, p.url,pd.price from mk_hits h, mk_phone p, mk_phone_data pd where h.hitsid = concat('c-13-',p.id) and p.id = pd.id and p.catid=10 order by h.monthviews desc, p.updatetime desc" cache="0" num="9"}
<ul >
{loop $data $key $val}
<li><span >¥:{$val[price]}</span><a >{$val['title']}</a></li>
{/loop}
</ul>
{/pc}
随机排行
{pc:get sql="select p.id, p.title,p.thumb, pd.price from mk_phone p, mk_phone_data pd where p.id = pd.id order by rand()" num="8"}
{loop $data $k $v}
<div >
<a ><img src="{$v[thumb]}" ></a>
<a >{$v[title]}</a>
<span >{$v[price]}</span>
</div>
{/loop}
{/pc}
自定义调用推荐位
{pc:get sql="select a.title, a.appcat, a.url, a.thumb from mk_app a ,mk_position_data p where p.posid = 18 and p.catid=$r[catid] and a.id = p.id" num="8"}
{loop $data $key $val}
<div >
<img src="{$val['thumb']}" >
<h4><a >{$val[title]}</a></h4>
<span >评分:</span>
<span >分类:{$linkageApp[$val[appcat]][name]}</span>
</div>
{/loop}
{/pc}
无图片
{if $v[thumb]}
<img src="{$v[thumb]}" >
{else}
<img src="{IMG_PATH}web/nopic.jpg" >
{/if}
{mkThumb($v[thumb], '')}
万能字段
{FUNC(sendQuery~~{FIELD_VALUE})}
Error
密码重试次数太多,请过-22561967分钟后重新登录!
找到文件 \phpcms\modules\admin\index.php
将如下代码注释掉:
if($rtime['times'] >= $maxloginfailedtimes) {
$minute = 60-floor((SYS_TIME-$rtime['logintime'])/60);
showmessage(L('wait_1_hour',array('minute'=>$minute)));
}
注意哦,一共是4行
然后再次登录后台,更新全站缓存就好了。
禁止注册或用户已存在的解决方法
可能是因为程序默认是开启phpsso的,所以密钥要生成一样的。
详细:
(1) phpsso应用管理-通信密钥-点击自动生成
(2) 然后复制该密钥到后台-设置-相关设置-phpsso配置-粘贴进加密密钥里即可
emmet
Kinslideshow
ul[style=visibility:hidden;]>(li>a>img[width=300 height=200])
变量调用
列表调用的返回字段
[id] => 2
[catid] => 12
[typeid] => 0
[title] => 为何有人对“以房养老”不买账?
[style] =>
[thumb] => http://www.cms_com.com:8101/uploadfile/2016/0607/20160607072208815.jpg
[keywords] => 不买账
[description] => 首先要解决好事主与市场之间的关系,解决好各种矛盾,使大众顺应市场,顺应时代发展的潮流。
[posids] => 1
[url] => http://www.cms_com.com:8101/index.php?m=content&c=index&a=show&catid=12&id=2
[listorder] => 0
[status] => 99
[sysadd] => 1
[islink] => 0
[username] => admin
[inputtime] => 1465255211
[updatetime] => 1465255328