Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] Music Heartland(音乐厅_插件形式) For 4.0.0 By oytktk

[复制链接]
 楼主| oytktk 发表于 2005-12-18 21:43:00 | 显示全部楼层
原帖由 bssn 于 2005-12-18 20:45 发表
我附件最大就是 2m  这个东西看来不是太好实现!


这个主要考虑到这方面,所以这个功能分两类:


1.  发布音乐连接.. 这个占多数人使用.

2.  论坛上传音乐附件..

一般都是用第一类,但这个同时支持这两类.
回复

使用道具 举报

 楼主| oytktk 发表于 2005-12-18 21:44:11 | 显示全部楼层
原帖由 bssn 于 2005-12-18 20:55 发表
列表定制 是不是能 让人们选择他们所喜欢的 进行联播???

定制多个列表 说不定什么时候听那类

不用完了一个再找一个的 太麻烦 :)

如果有这个的话 个人认为就太爽了!!!!



呵呵... 貌似功能非常强大啊..这个要实现是要花时间的,而我暂时缺的就是时间..所以如果新版加入这些功能的话,也需要等相当长的一段时间..
回复

使用道具 举报

 楼主| oytktk 发表于 2005-12-18 21:45:11 | 显示全部楼层
原帖由 离恨天 于 2005-12-18 20:57 发表
看起来很复杂啊。

不过论坛装了点歌台,如果再装这个会不会重复了。



这个是跟点歌台有些不同的,你比对一下.
回复

使用道具 举报

yuja 发表于 2005-12-18 22:55:18 | 显示全部楼层
安装后,获取歌词连接失效,后台没会员下载设置....播放页面会员上传按钮默认是8,还改不了...汗死
回复

使用道具 举报

 楼主| oytktk 发表于 2005-12-18 23:13:54 | 显示全部楼层
弄个图出来看看嘛.
回复

使用道具 举报

haocius 发表于 2005-12-18 23:43:33 | 显示全部楼层
强,顶~
回复

使用道具 举报

燃烧的冰 发表于 2005-12-19 00:01:48 | 显示全部楼层
好东西啊,不过安装后发表帖子或发起交易就出现
Parse error: parse error in E:\zhuxiaoxiao\ningbo\include\newthread.inc.php on line 212
不知道是什么原因啊?

测试地址:http://newningbo.com/index.php

用户名:test  密码:test

[ 本帖最后由 燃烧的冰 于 2005-12-19 00:37 编辑 ]
回复

使用道具 举报

燃烧的冰 发表于 2005-12-19 00:35:15 | 显示全部楼层

修改后的newthread.inc.php

  1. <?php

  2. /*
  3.         [DISCUZ!] include/newthread.inc.php - starting new thread for post module
  4.         This is NOT a freeware, use is subject to license terms

  5.         Version: 4.0.0
  6.         Web: http://www.comsenz.com
  7.         Copyright: 2001-2005 Comsenz Technology Ltd.
  8.         Last Modified: 2005-3-7 16:15
  9. */

  10. if(!defined('IN_DISCUZ')) {
  11.         exit('Access Denied');
  12. }

  13. $discuz_action = 11;
  14. //Music Heartland (音乐厅) By oytktk(靖飒)
  15. @require DISCUZ_ROOT.'./forumdata/cache/plugin_mymusic.php';
  16. $mucfg = $_DPLUGIN['mymusic']['vars'];
  17. $musicfid=$mucfg['musicfid'];

  18. foreach( explode(',', $musicfid) as $fids ){
  19.         if ($fid == $fids) {$readonly = "readonly"; break;}
  20. }
  21. //Music Heartland (音乐厅) By oytktk(靖飒)  end...
  22. if(empty($forum['fid']) || $forum['type'] == 'group') {
  23.         showmessage('forum_nonexistence');
  24. }

  25. if(!$discuz_uid && !((!$forum['postperm'] && $allowpost) || ($forum['postperm'] && forumperm($forum['postperm'])))) {
  26.         showmessage('group_nopermission', NULL, 'NOPERM');
  27. } elseif(empty($forum['allowpost'])) {
  28.         if(!$forum['postperm'] && !$allowpost) {
  29.                 showmessage('group_nopermission', NULL, 'NOPERM');
  30.         } elseif($forum['postperm'] && !forumperm($forum['postperm'])) {
  31.                 showmessage('post_forum_newthread_nopermission', NULL, 'HALTED');
  32.         }
  33. }

  34. $isblog = empty($isblog) ? '' : 'yes';
  35. if($isblog && (!$allowuseblog || !$forum['allowblog'])) {
  36.         showmessage('post_newthread_blog_invalid', NULL, 'HALT');
  37. }

  38. checklowerlimit($postcredits);

  39. if(!submitcheck('topicsubmit', 0, $seccodecheck)) {

  40.         $typeselect = typeselect($typeid);

  41.         $icons = '';
  42.         if(is_array($_DCACHE['icons'])) {
  43.                 $key = 1;
  44.                 foreach($_DCACHE['icons'] as $id => $icon) {
  45.                         $icons .= ' <input type="radio" name="iconid" value="'.$id.'"><img src="'.SMDIR.'/'.$icon.'">';
  46.                         $icons .= !(++$key % 10) ? '<br>' : '';
  47.                 }
  48.         }

  49.         include template('post_newthread');

  50. } else {if($readonly && ($mp3_name == '' || $mp3_artist == '') && (!$upload && !$mp3_m_r == '')) {
  51.                 showmessage("对不起, 您没有输入音乐必选参数!");
  52.         }
  53.         if($subject == '' || $message == '') {
  54.                 showmessage('post_sm_isnull');
  55.         }

  56.         if($post_invalid = checkpost()) {
  57.                 showmessage($post_invalid);
  58.         }

  59.         if(checkflood()) {
  60.                 showmessage('post_flood_ctrl');
  61.         }

  62.         if(!empty($_FILES['attach'])) {
  63.                 checklowerlimit($creditspolicy['postattach']);
  64.         }

  65.         $typeid = isset($forum['threadtypes']['types'][$typeid]) ? $typeid : 0;
  66.         $iconid = !empty($iconid) && isset($_DCACHE['icons'][$iconid]) ? $iconid : 0;
  67.         $displayorder = $modnewthreads ? -2 : (($forum['ismoderator'] && !empty($sticktopic)) ? 1 : 0);
  68.         $digest = ($forum['ismoderator'] && !empty($addtodigest)) ? 1 : 0;
  69.         $blog = $allowuseblog && $forum['allowblog'] && !empty($addtoblog) ? 1 : 0;
  70.         $readperm = $allowsetreadperm ? $readperm : 0;
  71.         $price = $maxprice ? ($price <= $maxprice ? $price : $maxprice) : 0;

  72.         if(!$typeid && $forum['threadtypes']['required']) {
  73.                 showmessage('post_type_isnull');
  74.         }

  75.         if($price > 0 && floor($price * (1 - $creditstax)) == 0) {
  76.                 showmessage('post_net_price_iszero');
  77.         }

  78.         if(isset($poll) && $allowpostpoll && trim($polloptions)) {
  79.                 $poll = 1;
  80.                 $pollarray = array();
  81.                 $polloptions = explode("\n", $polloptions);
  82.                 if(count($polloptions) > $maxpolloptions) {
  83.                         showmessage('post_poll_option_toomany');
  84.                 }

  85.                 foreach($polloptions as $polloption) {
  86.                         $polloption = trim($polloption);
  87.                         if($polloption) {
  88.                                 $pollarray['options'][] = array($polloption, 0);
  89.                         }
  90.                 }
  91.                 $pollarray['multiple'] = !empty($multiplepoll);
  92.                 $pollarray['voters'] = array();
  93.                 $pollopts = addslashes(serialize($pollarray));
  94.         } elseif(isset($trade) && $allowposttrade && !empty($seller) && !empty($item_name) && !empty($item_price)) {
  95.                 include language('misc');

  96.                 $message = "[b]$language[post_trade_seller]:[/b] $seller\r\n\r\n".
  97.                         "[b]$language[post_trade_name]:[/b] $item_name\r\n\r\n".
  98.                         "[b]$language[post_trade_price]:[/b] $item_price $language[post_trade_yuan]\r\n\r\n".
  99.                         (!empty($item_quality) ? "[b]$language[post_trade_quality]:[/b] $item_quality\r\n\r\n" : '').
  100.                         (!empty($item_locus) ? "[b]$language[post_trade_locus]:[/b] $item_locus\r\n\r\n" : '').
  101.                         "[b]$language[post_trade_postage]:[/b] ".(empty($postage_mail) && empty($postage_express) ? $language['post_trade_postage_seller'] : $language['post_trade_postage_buyer']).(!empty($postage_mail) ? ", $language[post_trade_postage_mail] $postage_mail $language[post_trade_yuan]" : '').(!empty($postage_express) ? ", $language[post_trade_postage_express] $postage_express $language[post_trade_yuan]" : '')."\r\n\r\n".
  102.                         "[b]$language[post_trade_description]:[/b]\r\n\r\n".
  103.                         "[payto]\r\n".
  104.                         "(seller)$seller(/seller)\r\n".
  105.                         "(subject)$item_name(/subject)\r\n".
  106.                         "(body)".cutstr($message, 400)."(/body)\r\n".
  107.                         "(price)$item_price(/price)\r\n".
  108.                         "(ordinary_fee)$postage_mail(/ordinary_fee)\r\n".
  109.                         "(express_fee)$postage_express(/express_fee)\r\n".
  110.                         "[/payto]\r\n\r\n".
  111.                         $message;
  112.                 $iconid = 25;
  113.         } else {
  114.                 $poll = 0;
  115.                 $pollopts = '';
  116.         }

  117.         $moderated = $digest || $displayorder > 0 ? 1 : 0;
  118.         $attachment = ($allowpostattach && $attachments = attach_upload()) ? 1 : 0;

  119.         $db->query("INSERT INTO {$tablepre}threads (fid, readperm, price, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, mp3_type, blog, poll, attachment, moderated)
  120.                 VALUES ('$fid', '$readperm', '$price', '$iconid', '$typeid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '$digest', '$mp3_m_r', '$blog', '$poll', '$attachment', '$moderated')");
  121.         $tid = $db->insert_id();

  122.         if($moderated) {
  123.                 updatemodlog($tid, ($displayorder > 0 ? 'STK' : 'DIG'));
  124.         }

  125.         if($poll) {
  126.                 $db->query("INSERT INTO {$tablepre}polls (tid, pollopts)
  127.                         VALUES ('$tid', '$pollopts')");
  128.         }

  129.         $bbcodeoff = checkbbcodes($message, !empty($bbcodeoff));
  130.         $smileyoff = checksmilies($message, !empty($smileyoff));
  131.         $parseurloff = !empty($parseurloff);
  132.         $htmlon = $allowhtml && !empty($htmlon) ? 1 : 0;

  133.         $pinvisible = $modnewthreads ? -2 : 0;
  134.         $db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, mp3_url, smileyoff, parseurloff, attachment)
  135.                 VALUES ('$fid', '$tid', '1', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$pinvisible', '$usesig', '$htmlon', '$bbcodeoff', '$mp3_url', '$smileyoff', '$parseurloff', '$attachment')");
  136.         $pid = $db->insert_id();

  137.         if($attachment) {
  138.                 foreach($attachments as $attach) {
  139.                         $db->query("INSERT INTO {$tablepre}attachments (tid, pid, dateline, readperm, filename, description, filetype, filesize, attachment, downloads)
  140.                                 VALUES ('$tid', '$pid', '$timestamp', '$attach[perm]', '$attach[name]', '$attach[description]', '$attach[type]', '$attach[size]', '$attach[attachment]', '0')");
  141.                 }
  142.                 updatecredits($discuz_uid, $creditspolicy['postattach'], count($attachments));
  143.         }

  144.         if($modnewthreads) {

  145.                 $allowuseblog && $isblog && $blog ? showmessage('post_newthread_mod_blog_succeed', "blog.php?uid=$discuz_uid") :
  146.                         showmessage('post_newthread_mod_succeed', "forumdisplay.php?fid=$fid");

  147.         } else {

  148.                 if($digest) {
  149.                         foreach($creditspolicy['digest'] as $id => $addcredits) {
  150.                                 $forum['postcredits'][$id] = (isset($forum['postcredits'][$id]) ? $forum['postcredits'][$id] : 0) + $addcredits;
  151.                         }
  152.                 }
  153.                 updatepostcredits('+', $discuz_uid, $postcredits);

  154.                 $lastpost = "$tid\t$subject\t$timestamp\t$discuz_user";
  155.                 $db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost', threads=threads+1, posts=posts+1, todayposts=".todayposts()." WHERE fid='$fid'", 'UNBUFFERED');
  156.                 if($forum['type'] == 'sub') {
  157.                         $db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost' WHERE fid='$forum[fup]'", 'UNBUFFERED');
  158.                 }

  159.                 if(!empty($emailnotify) && $discuz_uid) {
  160.                         $query = $db->query("SELECT tid FROM {$tablepre}subscriptions WHERE uid='$discuz_uid' AND tid='$tid'");
  161.                         if(!$db->result($query, 0)) {
  162.                                 $db->query("INSERT INTO {$tablepre}subscriptions (uid, email, tid)
  163.                                         VALUES ('$discuz_uid', '$email', '$tid')", 'UNBUFFERED');
  164.                         }
  165.                 }

  166.                 $allowuseblog && $isblog && $blog ? showmessage('post_newthread_blog_succeed', "blog.php?tid=$tid") :
  167.                         showmessage('post_newthread_succeed', "viewthread.php?tid=$tid&extra=$extra");

  168.         }
复制代码
回复

使用道具 举报

wyu 发表于 2005-12-19 02:32:54 | 显示全部楼层
原帖由 yuja 于 2005-12-18 22:55 发表
安装后,获取歌词连接失效,后台没会员下载设置....播放页面会员上传按钮默认是8,还改不了...汗死


一样的,好像是少两个文件,获取地址和歌词的

还有就是在插件设置里设置参数时,没有作者贴图中显示的 会员下载的设置
回复

使用道具 举报

爱好者 发表于 2005-12-19 03:33:22 | 显示全部楼层
更新了啊,好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-19 05:52 , Processed in 0.107406 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表