花晨月夕
专注web开发,可开发网站、小程序、app、oa、erp等各种系统
LayCenter 如何批量把文章“VIP访问内容”改为销售内容
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
注意:你所使用的易支付,必须要支持你所新增的支付,否则修改了也无法使用
2022-11-30 20:10:45
可以将文章同时启用“付费内容”和“VIP访问内容”,付费内容依旧是0积分下载,将文章正文中的标志代码[NeadPay]放在VIP访问内容中,这样就只有VIP用户才可以看到这个附件下载
[img]https://kfuu.cn/zb_users/upload/2022/11/20221130201035166981023537667.png[/img]
[img]https://kfuu.cn/zb_users/upload/2022/11/20221130201044166981024410798.png[/img]
2022-11-12 21:02:42
[code:html]<div style="overflow-x:auto">
<table style="min-width:1000px">
<tbody>
<tr>
<th>姓名</th>
<th>年龄</th>
</tr>
<tr>
<td>张三</td>
<td>18</td>
</tr>
<tr>
<td>吴彦祖</td>
<td>28</td>
</tr>
</tbody>
</table>
</div>[/code]
2个重要点,要在table外加一个元素,加上style="overflow-x:auto",表示子元素超出后出现滚动条,另外就是这个table要加一个最小宽度style="min-width:1000px" 这样表格超出父元素div宽度才能出现滚动条