扫描二维码关注官方公众号
返回列表 发布新帖

[PT建站] 校内PT(nexusphp)架设6V在线播放教程

2920 9
发表于 2013-4-20 20:47:06 | 显示全部楼层 阅读模式
本人不是转载 。但是首发在
校内PT(nexusphp)架设6V在线播放教程
http://www.v6player.org/forum/forum.php?mod=viewthread&tid=32&fromuid=129
{:1_94:}

对于有一定基础的朋友可能看的更明白

因为本校是校内PT不对外访问,故没办法给各位访问验证

言归正传

对于nexusphp架设的网站

1.    Details.php修改

在原来的行为菜单代码后(start attachment block 注释前),加上v6player的代码,
/*********************6vdplayer**************************/

//搜索(在最前面16行左右)
$res = sql_query("SELECT torrents.temp+torrents.mod_temp as final_temp,torrents.title_image,torrents.ygp,torrents.editlock,torrents.editlockid,torrents.cache_stamp, torrents.sp_state, torrents.url, torrents.dburl, torrents.small_descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, nfo, LENGTH(torrents.nfo) AS nfosz, torrents.last_action, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, torrents.anonymous, categories.name AS cat_name, sources.name AS source_name, media.name AS medium_name, codecs.name AS codec_name, standards.name AS standard_name, processings.name AS processing_name, teams.name AS team_name, audiocds.name AS audiocd_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN sources ON torrents.source = sources.id LEFT JOIN media ON torrents.medium = media.id LEFT JOIN codecs ON torrents.codec = codecs.id LEFT JOIN standards ON torrents.standard = standards.id LEFT JOIN processings ON torrents.processing = processings.id LEFT JOIN teams ON torrents.team = teams.id LEFT JOIN audiocds ON torrents.audiocd = audiocds.id WHERE torrents.id = $id LIMIT 1")
or sqlerr();
改为
$res = sql_query("SELECT torrents.category,torrents.temp+torrents.mod_temp as final_temp,torrents.title_image,torrents.ygp,torrents.editlock,torrents.editlockid,torrents.cache_stamp, torrents.sp_state, torrents.url, torrents.dburl, torrents.small_descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, nfo, LENGTH(torrents.nfo) AS nfosz, torrents.last_action, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, torrents.anonymous, categories.name AS cat_name, sources.name AS source_name, media.name AS medium_name, codecs.name AS codec_name, standards.name AS standard_name, processings.name AS processing_name, teams.name AS team_name, audiocds.name AS audiocd_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN sources ON torrents.source = sources.id LEFT JOIN media ON torrents.medium = media.id LEFT JOIN codecs ON torrents.codec = codecs.id LEFT JOIN standards ON torrents.standard = standards.id LEFT JOIN processings ON torrents.processing = processings.id LEFT JOIN teams ON torrents.team = teams.id LEFT JOIN audiocds ON torrents.audiocd = audiocds.id WHERE torrents.id = $id LIMIT 1")
or sqlerr();
//如果对于某等级以上用户可见的话还可以添加 if(get_user_class() >= UC_STAFFLEADER)

//401和408这里是判断资源类别的,对于非视频类资源就可以除外了,要在以上修改过$res 才有用哦!
if($row['category'] == '401' || $row['category'] == '408'){

    $v6button = "| ".
        "<script type=\"text/javascript\">function play(){window.location.href='6xvod://{$id}&ty=1&ro=1&id={$id}&ua={$CURUSER['passkey']}';}</script>".
        "<img height='14px' src=\"pic/v6player.gif\"/>".
        "<a href=\"v6player.php?id={$id}&u={$CURUSER['passkey']}\" target=\"_blank\"><b><font class=\"small\"> 直接播放</font></b></a>";
}else {
    $v6button = "";
}
/*********************6vdplayer**************************/

改动紧接着下方的tr函数,在最后加上.$v6button
tr($lang_details['row_action'], $download. ($owned == 1 ? "<$editlink><img class=\"dt_edit\" src=\"pic/trans.gif\" alt=\"edit\" /> <b><font class=\"small\">".$lang_details['text_edit_torrent'] . "</font></b></a> | " : "").
  (get_user_class() >= $askreseed_class && $row[seeders] == 0 ? "<a title=\"".$lang_details['title_ask_for_reseed']."\" href=\"takereseed.php?reseedid=$id\"><img class=\"dt_reseed\" src=\"pic/trans.gif\" alt=\"reseed\"> <b><font cla
ss=\"small\">".$lang_details['text_ask_for_reseed'] ."</font></b></a> | " : "") . "<a title=\"".$lang_details['title_report_torrent']."\" href=\"report.php?torrent=$id\"><img class=\"dt_report\" src=\"pic/trans.gif\" alt=\"repo
rt\" /> <b><font class=\"small\">".$lang_details['text_report_torrent']."</font></b></a>     ".$v6button, 1);

// ---------------- start attachment block -------------------//

2. pic文件夹下放v6player.gif 和 v6playerad.gif
3. 编辑v6player.php  将网址替换为自己网站地址
4.编辑v6player.php  替换其中网站网址为你自己的
5. 将v6player.php放到根目录下
6. 望多多宣传
7.如有意向请加QQ群:108533467  注明:nexusphp直播

所需附件下载:

点击下载播放器: http://www.v6player.org/update/v6player1.02_ipv4.exe
此版本为默认ipv4线路,如有ipv6需要请在设置面板里设置 还可访问: http://www.v6player.org
效果图:




















播放器设置需注意:

1.设置下载目录为较大硬盘目录
2.需同意v6播放器绑定影音播放文件
3.右键可下载字幕,支持拖曳




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
毛盒中国QQ群:369732523

评论9

Geass-CCLv.9 发表于 2013-4-20 20:51:15 | 显示全部楼层
{:7_716:}  网速无力
回复 点赞

使用道具 举报

欢腾的小螃蟹Lv.10 发表于 2013-4-20 21:06:52 | 显示全部楼层
前排观摩
回复 点赞

使用道具 举报

68837758Lv.5 发表于 2013-4-20 21:12:06 | 显示全部楼层
云影云影!
回复 点赞

使用道具 举报

pengmingsongLv.8 发表于 2013-4-20 21:21:39 | 显示全部楼层
谁那么有时间{:7_752:}
回复 点赞

使用道具 举报

5211314Lv.8 发表于 2013-4-20 23:39:28 | 显示全部楼层
{:7_727:}非常感谢啊{:7_748:}
回复 点赞

使用道具 举报

wodeptLv.3 发表于 2013-4-21 09:49:04 | 显示全部楼层
可以学习一下{:7_725:}
回复 点赞

使用道具 举报

Elite710楼主Lv.5 发表于 2013-4-21 11:49:11 | 显示全部楼层
借用d大的话
v6影音和ut一样,是一个标准的bt客户端,有下载有上传,对网站的运行、考核没有任何影响,4g 720P的电影缓冲10秒左右就可以开始播放
支持文件的进度拖放,用户想看哪直接拖到哪,无需下载全部数据,节省流量
原先用户看一部电影需要打开网站、下载种子、ut下载文件、播放器播放电影,打开网站写评论,每个步骤都是中断的。现在的方案由下载变成了直播,随时能够回网站评论,用户体验上有很大提升。
毛盒中国QQ群:369732523
回复 点赞

使用道具 举报

Elite710楼主Lv.5 发表于 2013-5-29 02:37:28 | 显示全部楼层


来秀秀在线播放网页版咯~~~~~~~~哈哈

虽然重复。但是以后有机会把代码什么的贴出来到这

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
毛盒中国QQ群:369732523
回复 点赞

使用道具 举报

lgis80boy 发表于 2013-8-9 14:30:15 | 显示全部楼层
还挺牛逼的啊
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表