统计点击量

  1. <script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>

评论模块

  1. {if $allow_comment && module_exists('comment')}
  2. <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>
  3. {/if}

show 页面调试

  1. {print_r(get_defined_vars())}
  2. {print_r($rs)}
  3. Array
  4. (
  5. [id] => 146
  6. [catid] => 15
  7. [typeid] => 0
  8. [title] => 测试下载3
  9. [style] =>
  10. [thumb] => http://mall.sdinfo.cc/uploadfile/2013/0619/20130619101057291.jpg
  11. [keywords] =>
  12. [description] => G:\wamp\www\template\tpl\qilu\images\app
  13. [posids] => 0
  14. [url] => http://mall.sdinfo.cc/index.php?m=content&c=index&a=show&catid=15&id=146
  15. [listorder] => 0
  16. [status] => 99
  17. [sysadd] => 1
  18. [islink] => 0
  19. [username] => admin
  20. [inputtime] => 1371651045
  21. [updatetime] => 1371655873
  22. [appcat] => 3429
  23. [fee] => 0
  24. [content] => G:\wamp\www\template\tpl\qilu\images\app
  25. [readpoint] => 0
  26. [groupids_view] =>
  27. [paginationtype] => 0
  28. [maxcharperpage] => 10000
  29. [template] =>
  30. [paytype] => 0
  31. [allow_comment] => 1
  32. [relation] =>
  33. [file] => array (
  34. 0 =>
  35. array (
  36. 'fileurl' => 'http://mall.sdinfo.cc/uploadfile/2013/0619/20130619113046340.apk',
  37. 'filename' => '2',
  38. ),
  39. )
  40. )

时间替换

linkage 联动菜单

  1. [title] => 手机品牌
  2. [style] => 0
  3. [siteid] => 0
  4. [data] => Array
  5. (
  6. [3361] => Array
  7. (
  8. [linkageid] => 3361
  9. [name] => 小米
  10. [style] =>
  11. [parentid] => 0
  12. [child] => 0
  13. [arrchildid] => 3361
  14. [keyid] => 3360
  15. [listorder] => 0
  16. [description] =>
  17. [setting] =>
  18. [siteid] => 0
  19. )
  20. )

seajs

  1. <script>
  2. var mk = mk || {};
  3. mk.seajsBase = '{JS_PATH}';
  4. </script>
  5. <script src="{JS_PATH}libs/seajs/2.0.0/sea.js" data-config="config"></script>

点击量排行

  1. {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"}
  2. <ul >
  3. {loop $data $key $val}
  4. <li><span >¥:{$val[price]}</span><a >{$val['title']}</a></li>
  5. {/loop}
  6. </ul>
  7. {/pc}

随机排行

  1. {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"}
  2. {loop $data $k $v}
  3. <div >
  4. <a ><img src="{$v[thumb]}" ></a>
  5. <a >{$v[title]}</a>
  6. <span >{$v[price]}</span>
  7. </div>
  8. {/loop}
  9. {/pc}

自定义调用推荐位

  1. {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"}
  2. {loop $data $key $val}
  3. <div >
  4. <img src="{$val['thumb']}" >
  5. <h4><a >{$val[title]}</a></h4>
  6. <span >评分:</span>
  7. <span >分类:{$linkageApp[$val[appcat]][name]}</span>
  8. </div>
  9. {/loop}
  10. {/pc}

无图片

  1. {if $v[thumb]}
  2. <img src="{$v[thumb]}" >
  3. {else}
  4. <img src="{IMG_PATH}web/nopic.jpg" >
  5. {/if}
  6. {mkThumb($v[thumb], '')}

万能字段

  1. {FUNC(sendQuery~~{FIELD_VALUE})}

Error

密码重试次数太多,请过-22561967分钟后重新登录!

找到文件 \phpcms\modules\admin\index.php

  1. 将如下代码注释掉:
  2. if($rtime['times'] >= $maxloginfailedtimes) {
  3. $minute = 60-floor((SYS_TIME-$rtime['logintime'])/60);
  4. showmessage(L('wait_1_hour',array('minute'=>$minute)));
  5. }
  6. 注意哦,一共是4
  7. 然后再次登录后台,更新全站缓存就好了。

禁止注册或用户已存在的解决方法

  1. 可能是因为程序默认是开启phpsso的,所以密钥要生成一样的。
  2. 详细:
  3. (1) phpsso应用管理-通信密钥-点击自动生成
  4. (2) 然后复制该密钥到后台-设置-相关设置-phpsso配置-粘贴进加密密钥里即可

emmet

  1. Kinslideshow
  2. ul[style=visibility:hidden;]>(li>a>img[width=300 height=200])

变量调用

列表调用的返回字段

  1. [id] => 2
  2. [catid] => 12
  3. [typeid] => 0
  4. [title] => 为何有人对“以房养老”不买账?
  5. [style] =>
  6. [thumb] => http://www.cms_com.com:8101/uploadfile/2016/0607/20160607072208815.jpg
  7. [keywords] => 不买账
  8. [description] => 首先要解决好事主与市场之间的关系,解决好各种矛盾,使大众顺应市场,顺应时代发展的潮流。
  9. [posids] => 1
  10. [url] => http://www.cms_com.com:8101/index.php?m=content&c=index&a=show&catid=12&id=2
  11. [listorder] => 0
  12. [status] => 99
  13. [sysadd] => 1
  14. [islink] => 0
  15. [username] => admin
  16. [inputtime] => 1465255211
  17. [updatetime] => 1465255328