그누보드4 스킨 "선택항목 듣기"를 그누보드 5에서 사용했으면 합니다.
그누보드4 스킨중 탈리온님의 "utf-8 음악게시판-선택해서 듣기 추가" 스킨을 그누보드5에서 써보고 싶은데,
초보라 너무 어려워 1주일째 요리저리 test 해봐도 한개듣기는 실행은 되는데, 선택듣기는 정말 모르겠습니다.
선배님의 가르침 부탁합니다.
보드의 체크박스를 선택해서 선택한것만 듣고자하여 실행해 보았으나, 번호는 팝업창에 보이는데,
① 제목(Titel)을 가져오지 못하고,
② 자동실행이 안되는 문제점을 부탁합니다.(head 부분의 함수안에 autoplay:true는 하였습니다.)
다음 소스중에 어떤 부분을 수정해야되는지 가르쳐 주세요.
소스 있는곳 :
http://wallel.com/25
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=152771
------------- 소스의 listen_selected.php ... body부분 스크립트 -----------------
<script type="text/javascript">
var myPlaylist = [
<?
@extract($_GET);
@extract($_POST);
include "../../../config.php";
include "../../../dbconfig.php";
$music_path = "../../../data/file/$bo_table/";
$connect = @mysql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = @mysql_select_db($mysql_db, $connect);
mysql_query("set names utf8");
$checked_song=explode(",",$selected);
$checked_song=array_reverse($checked_song);
$array_cnt=count($checked_song);
for($i=1;$i<$array_cnt;$i++)
{
$temp=mysql_fetch_array(mysql_query("select wr_subject as subject, wr_1 as singer, wr_2 as star, wr_hit as hit from g4_write_$bo_table where wr_id='$checked_song[$i]' "));
$subject[$i]=stripslashes($temp[subject]);
$singer[$i]=stripslashes($temp[singer]);
$star[$i]=stripslashes($temp[star]);
$sql = " select bf_source, bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$checked_song[$i]' and bf_no = '0' ";
$sql1 = " select bf_source, bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$checked_song[$i]' and bf_no = '1' ";
$sql2 = " select bf_source, bf_file from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$checked_song[$i]' and bf_no = '2' ";
$file = sql_fetch($sql);
$file1 = sql_fetch($sql1);
$file2 = sql_fetch($sql2);
$filepath = "$g4[path]/data/file/$bo_table/$file[bf_file]";
$filepath = addslashes($filepath);
$filepath1 = "$g4[path]/data/file/$bo_table/$file1[bf_file]";
$filepath1 = addslashes($filepath1);
$filepath2 = "$g4[path]/data/file/$bo_table/$file2[bf_file]";
$filepath2 = addslashes($filepath2);
?>
{
mp3:'<?=$filepath?>',
<? if (!$filepath1) { ?>oga:"<?=$filepath1?>",<? } else { ?>oga:"<?=$filepath?>",<? } ?>
title:"<?=$subject[$i]?>",
artist:"<?=$singer[$i]?>",
rating:"<?=$star[$i]?>",
/*buy:",*/
/*price:"0.99",*/
duration:"",
cover:"<?=$filepath2?>"
},
<?
//Hit Up
mysql_query("update zetyx_board"."_$id set hit=hit+1 where no='$no'");
}
mysql_close($connect);
?>
];
</script>
답변 2개
답변을 작성하려면 로그인이 필요합니다.