묻고답하기
xe 보드로 바꾸려는데 index에 최근글하는 방법
2011.01.05 19:53
전에 게시판을 쓰던게
제로보드 4입니다.
지금 게시판을 xe로 바꿨는데
index.html에 최근글 5개 나오는 부분이 잘 안되서 질문 글 올려요
제로보드4 쓰던 때에 index.html 최근글 5개 나오는 부분은
-----------------------------------------------------------------------------------------
<td align="center" valign=top height=155 background="image/index_bbs_back.gif" style="padding:5 0 0 0">
<?
// 최근 공지사항 5개만 가져오기
/***************************************************************************
* 공통 파일 include
**************************************************************************/
$_zb_url = "http://www.clubssports.co.kr/bbs/";
$_zb_path = "/home/01/clubssports41/www/bbs/";
include $_zb_path."outlogin.php";
print_bbs("nzeo/clubssports_bbs", "Club S Promotion", "promotion", 5, 35)
?>
</td>
----------------------------------------------------------------------------------------
이렇게 되어있는데
bbs 디렉토리는 지금은 쓰지않고 xe 로 바꿀려는데 어떻게 해야하나요
outlogin.php는 xe에는 없는데
다른 곳 찾다가 xe 위젯을 이용하라는데
최근글 보이는 위젯을 설치해서 코드생성을 한 결과가
<img class="zbxe_widget_output" widget="newest_document" skin="xe_official" colorset="white" order_target="list_order" order_type="desc" list_count="5" duration_new="24" subject_cut_size="20" display_regdate="Y" module_srls="3237" />
이거인데
이것을 붙여넣으면
그냥 안나오네요 네모 사진 표시만 나오는데
어디를 어떻게 바꿔야할까요
index.html 소스파일도 올려요
진하게 한 부분이 제로보드4 쓸때 있던 최근글 나오게 하는 부분입니다.
www.clubssports.co.kr 홈페이지 주소입니다.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Club S Fitness & Golf를 찾아주셔서 감사합니다</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="/html/clubs.css" type="text/css">
<script language="javascript" src="../embed.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src="x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc="x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="javascript">
var _scroll_topmargin=304;
var _scroll_ing_topmargin=20;
var _scroll_activate_speed=300;
var _scroll_ing_activate_speed=10;
var _divMenuID = "divMenu";
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset+_scroll_ing_topmargin;
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop)+_scroll_ing_topmargin;
}
if(yMenuTo<_scroll_topmargin) yMenuTo = _scroll_topmargin;
timeoutNextCheck = _scroll_activate_speed;
if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
if (yMenuTo < yMenuFrom) yOffset = -yOffset;
if (isNS4) divMenu.top += yOffset;
else if (isDOM) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
timeoutNextCheck = _scroll_ing_activate_speed;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}
function moveInit() {
if (isNS4) {
var divMenu = document[_divMenuID];
divMenu.top = top.pageYOffset + _scroll_topmargin;
divMenu.visibility = "visible";
moveRightEdge();
} else if (isDOM) {
var divMenu = getRef(_divMenuID);
divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + _scroll_topmargin;
divMenu.style.visibility = "visible";
moveRightEdge();
}
}
</script>
<script language="javascript">
function getCookie(name) {
var Found = false
var start, end
var i = 0
while(i <= document.cookie.length) {
start = i
end = start + name.length
if(document.cookie.substring(start, end) == name) {
Found = true
break
}
i++
}
if(Found == true) {
start = end + 1
end = document.cookie.indexOf(";", start)
if(end < start)
end = document.cookie.length
return document.cookie.substring(start, end)
}
return ""
}
function openPopup()
{
var noticeCookie=getCookie("map"); // 쿠키이름 지정합니다.
if (noticeCookie != "no")
window.open('html/pop_map.html','map','width=546,height=461,top=0,left=0,scrollbars=no');
}
function openPopup2()
{
var noticeCookie=getCookie("coupon"); // 쿠키이름 지정합니다.
if (noticeCookie != "no")
window.open('html/pop_coupon.html','coupon','width=525,height=430,top=0,left=0,scrollbars=yes,resizable=yes');
}
openPopup();
openPopup2();
</script>
</head>
<body onContextmenu="return false" onSelectstart = "return false">
<div id="divMenu" style="position:absolute; left:947px; top:150px; width:56px; height:275px; z-index:1">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/image/quickmenu.gif usemap="#quick"></td>
<map name="quick">
<area shape="rect" coords="4,27,53,92" href="/html/clubs_map.htm">
<area shape="rect" coords="4,92,53,145" href="/html/clubs_tour.htm">
<area shape="rect" coords="4,145,53,200" href="/html/coupon.htm">
<area shape="rect" coords="4,200,53,262" href="/html/program_schedule.htm">
</map>
</tr>
</table>
</div>
<table width="942" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="padding:9 0 15 7"><a href="http://www.clubssports.co.kr/"><img src="../image/logo.gif" width="147" height="99" border="0"></a></td>
<td width="746" align="right" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="bottom" style="padding:26 0 9 0"><img src="../image/utility.gif" width="359" height="14" border="0" usemap="#Map"></td>
</tr>
<tr>
<td align="right">
<script language="javascript">ShowFlash('../image/topmenu.swf', 746, 65)</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="0,0,43,17" href="http://www.clubssports.co.kr/">
<area shape="rect" coords="43,0,135,17" href="/bbs/zboard.php?id=news">
<area shape="rect" coords="135,0,229,17" href="/html/program_schedule.htm">
<area shape="rect" coords="229,0,291,17" href="/html/sitemap.htm">
<area shape="rect" coords="291,0,365,17" href="mailto:11cnco@hanmail.net">
</map>
<table width="942" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=center style="padding:10 0 50 20">
<table width="896" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:0 0 6 6">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/index_tit01.gif" width="101" height="12"></td>
<td align="right" valign=bottom style="padding:0 7 0 0"><a href="/bbs/zboard.php?id=news"><img src="image/ico_more.gif" width="33" height="7" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="image/index_bbs_top.gif" width="350" height="7"></td>
</tr>
<tr>
<td align="center" valign=top height=155 background="image/index_bbs_back.gif" style="padding:5 0 0 0">
<?
// 최근 공지사항 5개만 가져오기
/***************************************************************************
* 공통 파일 include
**************************************************************************/
$_zb_url = "http://www.clubssports.co.kr/bbs/";
$_zb_path = "/home/01/clubssports41/www/bbs/";
include $_zb_path."outlogin.php";
print_bbs("nzeo/clubssports_bbs", "News & Event", "news", 5, 38)
?>
</td>
</tr>
<tr>
<td><img src="image/index_bbs_bottom.gif" width="350" height="8"></td>
</tr>
</table>
</td>
<td width=11> </td>
<td>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:0 0 6 6">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/index_tit02.gif" width="127" height="12"></td>
<td align="right" valign=bottom style="padding:0 7 0 0"><a href="/bbs/zboard.php?id=promotion"><img src="image/ico_more.gif" width="33" height="7" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="image/index_bbs_top.gif" width="350" height="7"></td>
</tr>
<tr>
<td align="center" valign=top height=155 background="image/index_bbs_back.gif" style="padding:5 0 0 0">
<?
// 최근 공지사항 5개만 가져오기
/***************************************************************************
* 공통 파일 include
**************************************************************************/
$_zb_url = "http://www.clubssports.co.kr/bbs/";
$_zb_path = "/home/01/clubssports41/www/bbs/";
include $_zb_path."outlogin.php";
print_bbs("nzeo/clubssports_bbs", "Club S Promotion", "promotion", 5, 35)
?>
</td>
</tr>
<tr>
<td><img src="image/index_bbs_bottom.gif" width="350" height="8"></td>
</tr>
</table>
</td>
<td width=11> </td>
<td>
<table width="174" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:0 0 6 6"><img src="image/index_tit03.gif" width="102" height="12"></td>
</tr>
<tr>
<td><img src="image/index_time.gif width=174 height=170></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=5 height=35> </td>
</tr>
<tr>
<td colspan=5><script language="javascript">ShowFlash('image/index_flash.swf', 896, 261)</script></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<map name="info" id="info">
<area shape="rect" coords="313,99,357,116" href="/html/clubs_info.htm">
</map>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#F8E7C5"></td>
</tr>
<tr>
<td height="33" bgcolor="#FAEED3">
<table width="940" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=center style="padding:0 0 0 170"><img src="../image/footer_menu.gif" width="241" height="17" border="0" usemap="#footer"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1" bgcolor="#F8E7C5"></td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:7 0 5 25"><img src="../image/footer_logo.gif" width="114" height="49"></td>
<td valign=top style="padding:17 0 0 80"><img src="../image/footer_address.gif" width="500" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
<map name="footer">
<area shape="rect" coords="-10,0,50,22" href="/html/clubs_partner.htm">
<!--<area shape="rect" coords="50,0,140,22" href="/html/clubs_business.htm">-->
<area shape="rect" coords="50,0,165,22" href="/html/clubs_partner_ad.htm">
<area shape="rect" coords="165,0,250,22" href="/html/franchise.html">
</map>
</body>
</html>