제로보드에서 활용했던 코드를 그누보드5에서 사용하려면? 채택완료
야돌이
10년 전
조회 3,434
그누보드를 사용한지 얼마되지 않은 초보입니다. 제로보드4에서 사용했던 플래쉬로 불러오기 위한 php 소스입니다.
<?php</p><p> $_zb_url = "<a href="<a href="http://www.sample.com/bbs/" target="_blank" rel="noopener noreferrer">http://www.sample.com/bbs/</a>"><a href="http://www.sample.com/bbs/" target="_blank" rel="noopener noreferrer">http://www.sample.com/bbs/</a></a>"; </p><p> $_zb_path = "c:/sample/bbs/";</p><p>include $_zb_path."outlogin.php";</p><p> </p><p>$bdid = "sample"; // 불러올 게시판 아이디?</p><p>$limit = "15"; // 몇개를 뽑을것인가?</p><p> </p><p> </p><p>// $limit 설정만큼 뽑아라. 비밀글, 공지사항은 제외</p><p>$query=mysql_query("select * from zetyx_board_$bdid where is_secret!='1' and headnum >-'2000000000' order by no desc limit $limit");</p><p> </p><p>$swfOn = "";</p><p>$swfOn .= "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";</p><p>$swfOn .= "<data>\n";</p><p>$swfOn .= "<channel>\n";</p><p>while($data = mysql_fetch_array($query)){ // 뽑기</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$url = $_zb_url."view.php?id=".$bdid."&no=".$data[no]; // 링크</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$file1 = $_zb_url.$data[file_name1]; // 첨부파일</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$subject = cut_str(stripslashes(iconv("CP949","utf-8",$data[subject])),50); // 제목, 50은 글자수</p><p> </p><p><span class="Apple-tab-span" style="white-space:pre"> </span>// 아래서부터 while 출력</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$swfOn .= "<item>\n";</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$swfOn .="<link>$url</link>";</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>if($data[file_name1]){</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$swfOn .= "<image>$file1</image>\n";</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>}</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$swfOn .="<title>$subject</title>";</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>$swfOn .= "</item>\n";</p><p>} // end while</p><p> </p><p> </p><p>$swfOn .= "</channel>\n";</p><p> </p><p>// 설정 시작</p><p>$swfOn .= "<config><span class="Apple-tab-span" style="white-space:pre"> </span></p><p><roundCorner>6</roundCorner></p><p><autoPlayTime>20</autoPlayTime></p><p><isHeightQuality>false</isHeightQuality></p><p><blendMode>normal</blendMode></p><p><transDuration>4</transDuration></p><p><windowOpen>detail</windowOpen></p><p><btnSetMargin>auto 0 0 auto</btnSetMargin></p><p><btnDistance>16</btnDistance></p><p><titleBgColor>0xblack</titleBgColor></p><p><titleTextColor>0xffffff</titleTextColor></p><p><titleBgAlpha>.30</titleBgAlpha></p><p><titleMoveDuration>3</titleMoveDuration></p><p><btnAlpha>.7</btnAlpha><span class="Apple-tab-span" style="white-space:pre"> </span></p><p><btnTextColor>0xffffff</btnTextColor><span class="Apple-tab-span" style="white-space:pre"> </span></p><p><btnDefaultColor>0x1B3433</btnDefaultColor></p><p><btnHoverColor>0xff9900</btnHoverColor></p><p><btnFocusColor>0xff6600</btnFocusColor></p><p><changImageMode>click</changImageMode></p><p><isShowBtn>true</isShowBtn></p><p><isShowTitle>true</isShowTitle></p><p><scaleMode>noBorder</scaleMode></p><p><transform>breathe</transform></p><p><isShowAbout>false</isShowAbout></p><p><titleFont>dotum</titleFont></p><p></config>\n"; // 설정 끝</p><p> </p><p>$swfOn .= "</data>\n";</p><p>echo $swfOn; </p><p>?></p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
전 간단히 생각했나봅니다.
$_zb_url
$_zb_path,include
include $_zb_path."outlogin.php";
$bdid
그리고
while($data = mysql_fetch_array($query)){ // 뽑기
$url = $_zb_url."view.php?id=".$bdid."&no=".$data[no]; // 링크
$file1 = $_zb_url.$data[file_name1]; // 첨부파일
$subject = cut_str(stripslashes(iconv("CP949","utf-8",$data[subject])),50); // 제목, 50은 글자수
요 부분만 그누보드5로 변환하면 될꺼라고 생각했거든요..
제가 그누보드 초보라 맡긴다는 개념을 아직 이해 못하고 있습니다.