L

[팁] 클럽 공용 게시판을 넣고자 할때

아래를 새파일로 만들어서 클럽 루트에 넣은 다음에
게시판의 링크를

http://도메인/club/새파일이름.php?docb=게시판아이디

같은 형식으로 적어주면 됩니다.


<?
include_once "./_common.php";

$g4[title] = "클럽홈 - $nc[nf_title]";
include_once "$g4[path]/head.sub.php";
include_once "./include/cb_style.inc.php";
?>
<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<script language="JavaScript" type="text/JavaScript">
function resizeIFrame()
{
var iframeWin = document.frames['CLUB_BODY'];
var scrollbarWidth = 4;
var iframeWinBody = iframeWin.document.body;
var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight;

document.all.CLUB_BODY.style.pixelHeight = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth;
}
</script>
<link href="./club.css" rel="stylesheet" type="text/css">
<table width="<?=$nc[nf_width]?>" border="0" align="<?=$nc[nf_align]?>" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="baseline" style="padding:5px 5px 5px 5px"><a href="<?=$g4[path]?>/index_main.php">홈</a> | <a href="./club_index.php">클럽</a></td>
<td width="50%" align="right" style="padding:5px 5px 5px 5px"><select name="select" onChange="go_club(this.value);">
<option> ▼ 클럽 바로 가기 =====</option>
<?=get_my_club($member[mb_id])?>
</select>
<script language="javascript">
function go_club(cb_id)
{
if (cb_id != "")
window.location.href = "./club_main.php?cb_id=" + cb_id;
}
</script></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE">
<tr>
<td style="padding:10px 10px 8px 10px"><strong><a href="./club_index.php">클럽</a></strong> | <strong><a href="./club_index.php?doc=<?=urlencode("cb_list.php?cb_recommend=Y")?>">추천클럽</a></strong> | <strong><a href="./club_index.php?doc=<?=urlencode("cb_list.php?ssort=cb_total_member&sorder=desc&rank=1")?>">클럽랭킹</a></strong> | <strong><a href="./club_index.php?doc=<?=urlencode("cb_list.php?cb_recommend=N&ssort=cb_regdate")?>">전체클럽</a></strong> | <strong><a href="./club_index.php?doc=cb_open.php">클럽만들기</a></strong></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180" valign="top">
<?=outlogin($nc[nf_outlogin_skin]);?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<? include_once "./include/cb_category.inc.php"; ?></td>
<td width="10">&nbsp;</td>
<td valign="top">


<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" id="ifrm" src="http://www.djgospel.org/g4/bbs/board.php?bo_table=<?=$docb?>" name="CLUB_BODY" onLoad="resizeIFrame();location='#'" onChange="resizeIFrame();">

</td>

</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top-width: 1px; border-top-style: solid; border-top-color: #999999;">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" align="center">Copyright ⓒ <strong><a href='http://pilgrim.web-bi.net' target='_blank'>L L L</a></strong>. All Rights Reserved.</td>
</tr>
</table></td>
</tr>
</table>
<?
include_once "$g4[path]/tail.sub.php";
?>
|

댓글 3개

클럽 공용 게시판의 최근게시물을 뽑아오는 기능도 부탁드리면 안될까요?? ^^*
아직 소스가 익숙하지 않아서리...
그누보드 자체의 최신글뽑는 기능을 차용하여 구현하니...오류가 나는군요...
알꽈님 참조,,


http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=1843&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%C7%D4%BC%F6&sop=and&page=2
감사합니다. 이건 클럽 메인으로 들어가네요. 응용하면 해당 개인 클럽 메인에도 쓸수 있겠어요 ^^

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고