花晨月夕
专注web开发,可开发网站、小程序、app、oa、erp等各种系统
LayCenter 发布文章时如何更改初始文章状态为草稿模式
2023-01-01 19:16:12
找到文件zb_users/plugin/LayCenter/class/json.php 搜索文件内容 $lcp->MemberRights('direct')?0 把0改为1
[img]https://kfuu.cn/zb_users/upload/2023/01/20230101191645167257180556927.png[/img]
2022-12-27 06:49:13
@Darren第一个问题:应该是问答插件没配置分类
第二个问题:应该是你某个标签是空名称,你在标签管理看看
2022-12-26 16:17:54
用户中心配置、其他配置、勾选停用插件时清空数据,然后停用插件,再启用插件试试
2022-12-20 20:09:45
找到文件 zb_users/plugin/qanda/template/qa-category.php
替换11行
[code:php]<li><a href="{$category->GetUrl($key)}" class="{if (GetVars('type','GET')?:0) === $key || GetVars('type','GET') == 'tag' && !$key}on{/if} qa-ajax-load" {if in_array($text, array('最新','热门'))}rel="nofollow"{/if}>{$text}</a></li>[/code]
2022-12-16 19:29:34
@零帕请更新到 3.2.2 版本
[新增]回答内容编辑(用户默认关闭该功能)
[优化]问题内容、回答内容中的图片可以点击放大
[优化]回复他人内容后,可能在回复内容处预览被回复内容
2022-12-15 15:30:44
在网站根目录新建一个php文件,保存后,浏览器打开后执行
代码如下:
[code:php]<?php
require 'zb_system/function/c_system_base.php';
foreach ($zbp->GetArticleList('*', array(array('=','log_LayCenter_VipView',1))) as $post) {
$post->Metas->defaultvipneedbuy = $post->Metas->defaultvipview; //选中及低于其等级的,强制收费查看
//$post->Metas->defaultvipfreeview = $post->Metas->defaultvipview; //选中及高于其等级的可免费查看
//以上是VIP访问内容中的“选中的会员等级及低于其等级的,则需要用户升级更高等级的会员才能查看”配置赋值到付费内容的两个VIP排除选项中,上面两行代码二选一,开头有//的为注释,此行代码不生效
$post->Metas->Del('defaultvipview'); //删除旧配置
$post->LayCenter_SaleStatus = 1; //开启销售
$post->LayCenter_BuyContent = $post->LayCenter_VipContent; //付费内容改为vip可见内容
$post->LayCenter_VipContent = ''; //清空VIP可见内容
$post->Save();
}
echo 'ok';[/code]
2022-12-12 15:47:36
用户组-下载次数限制
[img]https://kfuu.cn/zb_users/upload/2022/12/20221212154656167083121625609.png[/img]
2022-12-02 19:27:36
修改文件 zb_users/LayCenter/epay/include.php
比如将QQ支付,改为paypal,应该是在54行
[img]https://kfuu.cn/zb_users/upload/2022/12/20221202192210166998013086943.png[/img]
修改后,本行代码应该为
[code:php]$type = 'paypal';[/code]
还需要将支付图标修改,应该是在34行
[img]https://kfuu.cn/zb_users/upload/2022/12/20221202192425166998026551156.png[/img]
修改为logo链接,比如本行修改为
[code:php]'icon' => 'https://www.abc.com/paypal.png',[/code]
logo图片可以在网站任意位置,只要是正常的url就行
这样就修改完成,只要易支付插件启用了QQ支付,那么实际就是开启了paypal
注意:你所使用的易支付,必须要支持你所新增的支付,否则修改了也无法使用