dedecms音乐插件安装方法
把player.php上传到根目录,如果不在根目录请修改js文件。list_music.js
查找/player
替换为: /url/player
上传music文件夹到你的默认模板目录,不一定是default可以是你指定的任意一个目录。替换为: /url/player
插件效果
channel.txt下的代码:
<channel:id>7</channel:id> <channel:nid>music</channel:nid> <channel:typename>音乐模型</channel:typename> <channel:maintable>dede_archives</channel:maintable> <channel:addtable>dede_addonmusic</channel:addtable> <channel:addcon>archives_add.php</channel:addcon> <channel:mancon>content_list.php</channel:mancon> <channel:editcon>archives_edit.php</channel:editcon> <channel:useraddcon>archives_add.php</channel:useraddcon> <channel:usermancon>content_list.php</channel:usermancon> <channel:usereditcon>archives_edit.php</channel:usereditcon> <channel:fieldset> <field:music_url itemname="音乐地址" autofield="1" notsend="0" type="media" isnull="true" islist="0" default="" maxlength="250" page=""> </field:music_url> <field:music_words itemname="歌词" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" default="" maxlength="250" page=""> </field:music_words> <field:music_writer itemname="歌曲作者" autofield="1" notsend="0" type="text" isnull="true" islist="0" default="" maxlength="250" page=""> </field:music_writer> </channel:fieldset> <channel:listfields>music_url,music_words,music_writer</channel:listfields> <channel:allfields></channel:allfields> <channel:issystem>0</channel:issystem> <channel:isshow>1</channel:isshow> <channel:issend>0</channel:issend> <channel:arcsta>-1</channel:arcsta> <channel:usertype></channel:usertype> <channel:sendrank>0</channel:sendrank> <channel:isdefault>0</channel:isdefault> <channel:needdes>1</channel:needdes> <channel:needpic>1</channel:needpic> <channel:titlename>标题</channel:titlename> <channel:onlyone>0</channel:onlyone> <channel:dfcid>0</channel:dfcid>