FishV 主题的免费资源,需要登录才可以查看和播放。
如果希望不需登录,直接下载或者播放免费资源需要修改主题源码的一个字段。修改主题目录下的文件’./inc/classes/vip.php’中的函数 getTableState。
/**
* 表驱动
* @param string $login_state 登录状态
* @param string $pay_state 购买状态
* @return string 播放器状态
*/
public function getTableState($login_state, $pay_state){
/**
- 表驱动方法
- 登录状态
login_user: 已登录用户
login_vip: 已登录vip
login_svip: 已登录svip
logout: 未登录
- 文章状态
owner: 本人发布文章
free: 免费文章
paid: 收费文章,用户未购买
purchased: 收费文章,用户已购买
vip_free: vip用户,vip免费播放
vip_only: 仅限vip用户,vip免费播放
- 定义播放器状态
paly: 直接播放
login: 显示需要登录
login_free: 视频免费,但需要登录播放
paid: 显示需要登录并购买
vip_only: 提示给普通用户,仅限VIP免费
*/
$state = array(
"login_user" => array(
"owner" => "play",
"free" => "play",
"paid" => "paid",
"purchased" => "play",
"vip_free" => "paid",
"vip_only" => "vip_only"
),
"login_vip" => array(
"owner" => "play",
"free" => "play",
"paid" => "paid",
"purchased" => "play",
"vip_free" => "play",
"vip_only" => "play"
),
"login_svip" => array(
"owner" => "play",
"free" => "play",
"paid" => "paid",
"purchased" => "play",
"vip_free" => "play",
"vip_only" => "play"
),
"logout" => array(
"owner" => null,
// "free" => "login_free",
"free" => "play",
"paid" => "login",
"purchased" => null,
"vip_free" => null,
"vip_only" => "vip_only"
),
);
return $state[$login_state][$pay_state];
}
把 logout 数组下的 “free” => “login_free” 改成 “free” => “play” 即可。
声明:本站所有文章,如无特殊说明或标注,均为原创。