统计点击量
  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%" id="comment_iframe" 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. )

时间替换
  1. <?php echo preg_replace("/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/", '$1年 $2月 $3日 $4:$5',$inputtime);?>

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 Lemon = Lemon || {}, Libs = Libs || {};
  3. Lemon.url_js = '{JS_PATH}';
  4. </script>
  5. <script src="{JS_PATH}libs/seajs/2.2.0/seajs.js"></script>
  6. <script src="{JS_PATH}config.js"></script>

seajs 加载阅读数量

  1. <script>
  2. seajs.use(['$'], function($){
  3. $(function(){ window.$ = Libs.$;
  4. $.get('{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}', function(data){eval(data);})
  5. })
  6. })
  7. </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})}

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

找到文件 \phpcms\modules\admin\index.php 将如下代码注释掉:

  1. if($rtime['times'] >= $maxloginfailedtimes) {
  2. $minute = 60-floor((SYS_TIME-$rtime['logintime'])/60);
  3. showmessage(L('wait_1_hour',array('minute'=>$minute)));
  4. }

注意哦,一共是4行
然后再次登录后台,更新全站缓存就好了。

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

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

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

get
  1. {pc:get sql="select * from "}{/pc}

分类调用
  1. {php $cats = subcat(126)}
  2. {php $num=1}
  3. <a title="{$SEO['title']}">返回首页</a>|
  4. {loop $cats $cat}
  5. <a title="{$cat[catname]}">{$cat[catname]}</a>{if (count($cats)!=$num++)}|{/if}
  6. {/loop}

顶部菜单标签
  1. <li ><a >网站首页</a></li>
  2. {php $cats = subcat(0)}
  3. {loop $cats $cat}
  4. {if $cat[ismenu]}
  5. <li >|</li>
  6. <li><a >{$cat[catname]}</a></li>
  7. {/if}
  8. {/loop}

插入产品信息
  1. INSERT INTO `mk_product` VALUES (null, 171, 0, '智选2900智选2900智选2900智选2900智选2900智选2900', '', 'http://www.www.cc/yun/haojiayi/uploadfile/2013/1229/20131229094801321.jpg', '', '智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智 ', 0, 'http://www.www.cc/yun/haojiayi/index.php?m=content&c=index&a=show&catid=171&id=23', 0, 99, 1, 0, 'admin', 1388324822, 1388324886, '', '');
  2. select @insertId:=LAST_INSERT_ID();
  3. INSERT INTO `mk_product_data` VALUES (@insertId, '智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900智选2900', 0, '', 0, 0, '', 0, 1, '', 'array (\n 0 => \n array (\n \'url\' => \'http://www.www.cc/yun/haojiayi/uploadfile/2013/1229/20131229094747250.jpg\',\n \'alt\' => \'imgProductSuggest\',\n ),\n)', '', '', '', '', '');

插入新闻信息
  1. INSERT INTO `mk_news` VALUES (null, 13, 0, '华东市场铺垫', '', 'http://www.www.cc/yun/haojiayi/uploadfile/2013/1229/20131229112941493.jpg', '', '华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华', 0,
  2. 'http://www.www.cc/yun/haojiayi/index.php?m=content&c=index&a=show&catid=120&id=4', 0, 99, 1, 0, 'admin', 1388330952, 1388330985);
  3. select @insertId:=LAST_INSERT_ID();
  4. INSERT INTO `mk_news_data` VALUES (@insertId, '测试动态测试动态测试动态测试动态测试动态测试动态测试动态测试动态', 0, '', 0, 0, '', 0, '', 0, 1, '');

插入案例信息
  1. INSERT INTO `mk_case` VALUES (null, 120, 0, '华东市场铺垫', '', 'http://www.www.cc/yun/haojiayi/uploadfile/2013/1229/20131229112941493.jpg', '', '华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华', 0,
  2. 'http://www.www.cc/yun/haojiayi/index.php?m=content&c=index&a=show&catid=120&id=4', 0, 99, 1, 0, 'admin', 1388330952, 1388330985);
  3. select @insertId:=LAST_INSERT_ID();
  4. INSERT INTO `mk_case_data` VALUES (@insertId, '华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫华东市场铺垫', 0, '', 0, 0, '', 0, 1, '');

碎片
  1. {pc:block pos="index"}{/pc}

友情链接
说明 说明
typeid 0 0为默认
linktype 0,1 0为logo, 1为文字
  1. {pc:link action="type_list" typesitelinktype="1" order="listorder DESC" num="8" return="pic_link"}
  2. {loop $pic_link $v}
  3. <li><a title="{$v['name']}" target="_blank"><img src="{$v[logo]}" width="90" height="30" /></a></li>
  4. {/loop}
  5. {/pc}

列表
  1. {pc:content action="lists" catnum="2" where="`thumb`!=''" return="data"}
  2. <ul>
  3. {php $num=1}
  4. {loop $data $n $r}
  5. <div >
  6. <a title="{$r[title]}"><img src="{$r[thumb]}" style="" /></a>
  7. <span ><a title="{$r[title]}">{$r[title]}</a></span>
  8. <p >{str_cut($r[description], 100)}</p>
  9. </div>
  10. {if (count($data) !=$num++)}
  11. <div ></div>
  12. {/if}
  13. {/loop}
  14. </ul>
  15. {/pc}