花晨月夕
专注web开发,可开发网站、小程序、app、oa、erp等各种系统
LayCenter 如何批量更改文章“VIP访问内容”中的VIP权限
2022-02-16 09:09:07
在网站根目录新建一个php文件
代码如下:
[code:php]<?php
require 'zb_system/function/c_system_base.php';
foreach ($zbp->GetArticleList('*', array(array('META_NAME','log_Meta','defaultvipview'),array('=','log_CateID',8))) as $post) {
$post->Metas->defaultvipview = 3; //0 - 4 分别依次代表这5个选项
$post->Save();
}
echo 'ok';[/code]
保存后,浏览器打开后执行
代码中的数字8代表分类ID
2022-01-25 13:50:26
主题配置 - 其它配置 - 自定义css
[code:css].article-focusbox{
display:none
}
.article-focusbox + .container{margin-top:30px}[/code]
如果分类也需要隐藏就用下面代码
[code:css].term-bar{display:none}
@media screen and (min-width:700px){
.term-bar + .site-content{margin-top:50px}
}[/code]
2022-01-19 10:38:09
.home-filter--content{background-image:none!important;margin-top:-120px;min-height:180px;}主题配置 - 其它配置 - 自定义css
2022-01-19 10:29:25
网站版权中添加代码
<script>$('.entry-content').after($("#cao_widget_pay-2").prop("outerHTML"))</script>2022-01-05 09:15:04
.home-filter--content{background-image:none!important;margin-top:-150px}主题配置 - 其它配置 - 自定义css
2021-12-15 20:47:45
主题配置 - 其它配置 - 自定义css
.article-meta span:nth-child(3){display:none}

