这个是针对ppvod2.0的神棍版修改.修改之前记得备份哦,养成良好习惯.
第一步:打开Lib\Lib\Action\Home\VodAction.class.php 找到
$rs = D("Vod");
$array_vod = $rs->where($where)->relation('Tag')->find();
if($array_vod){
然后在后面插入
$where['vod_id'] = array('lt',$Url['id']);
$array_vod['vod_last']=$rs->switchModel("Adv")->field('vod_id,vod_name,vod_play,vod_cid,vod_jumpurl')->where($where)->order('vod_id desc')->first();
$where['vod_id'] = array('gt',$Url['id']);
$array_vod['vod_next']=$rs->switchModel("Adv")->field('vod_id,vod_name,vod_play,vod_cid,vod_jumpurl')->where($where)->order('vod_id asc')->first();
第二步:打开Lib\Lib\Action\AllAction.class.php 找到
$array_list = list_search(F('_ppvod/list'),'list_id='.$array['vod_cid']);
//播放列表
$array['vod_playlist'] = $this->ff_playlist_all($array);
//2.0新加参数
然后在后面插入
if(!empty($array['vod_last'])){
$array['vod_lasturl'] = ff_data_url('vod',$array['vod_last']['vod_id'],$array['vod_last']['vod_cid'],$array['vod_last']['vod_name'],1,$array['vod_last']['vod_jumpurl']);
$array['vod_lastname'] = $array['vod_last']['vod_name'];
}
if(!empty($array['vod_next'])){
$array['vod_nexturl'] = ff_data_url('vod',$array['vod_next']['vod_id'],$array['vod_next']['vod_cid'],$array['vod_next']['vod_name'],1,$array['vod_next']['vod_jumpurl']);
$array['vod_nextname'] = $array['vod_next']['vod_name'];
}
第三步:模版调用
- 相关文章
- 查看评论:(0)
【已经有0位大神发现了看法】
- [分享]面试中问到了HTTP状态,把HTTP中常见的状态码再回顾一下 2022-12-05
- [分享]宝塔面板 v7.8.0 降级 v7.7.0 教程及解除强制绑定手机的方法 2022-01-14
- [分享]全局标签/条件判断(If Switch Empty),飞飞CMS2.0标签 2013-11-28
- [分享]导航菜单循环标签,飞飞CMS2.0标签 2013-11-28
- [分享]友情链接循环标签,飞飞CMS2.0标签 2013-11-28
- [分享]留言模块调用标签,飞飞CMS2.0标签 2013-11-28
- [分享]评论模块调用标签,飞飞CMS2.0标签 2013-11-28
- [分享]自定义标签使用方法及定义,飞飞CMS2.0标签 2013-11-28
- [分享]视频(内容页/播放页)普通标签,飞飞CMS2.0标签 2013-11-28
- [分享]视频(频道页/栏目页)普通标签,飞飞CMS2.0标签 2013-11-28
发表评论: