그누보드4 스킨 "선택항목 듣기"를 그누보드 5에서 사용했으면 합니다.

그누보드4 스킨 "선택항목 듣기"를 그누보드 5에서 사용했으면 합니다.

QA

그누보드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

의뢰를 하시는게 빠를것 같은데요

아니면 그누보드4와 그누보드5의 변수가 어떻게 바뀌었는지를 찾으시던지요

config.php 파일이 기본 그누보드 변수 설정이고

관리자 환경설정페이지도 그누보드 설정입니다

여기에 있는 페이지들의 변수들 파악하고 4~5로 바뀌면서 어떻게 사용되는지를 파악하셔야 할겁니다 

답변을 작성하시기 전에 로그인 해주세요.
전체 123,128 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT